adb

RSA fingerprint change every time a new build is started

谁说我不能喝 提交于 2019-12-31 07:05:08
问题 I have a CI pipeline to build my android app and run instrumented test using gitlab pipelines. My gitlab runner is a ubuntu 16.04 machine running each build in a docker container. I have a physical android device connected via USB to my gitlab runner. Recently, every time a new build is triggered, I am prompted to allow the RSA fingerprint for the USB device on my android target. The problem is that the fingerprint changes with every build. I suspect that this is because a new container is

change android development device id

大兔子大兔子 提交于 2019-12-31 02:10:29
问题 I'd like to connect multiple android devices to the same machine and manage them by the adb. Unfortunately some android models show the same development device id to adb. Is there a way to change the development device id? $ adb devices List of devices attached LG_ANDROID_E0OPEN_GB_ device LG_ANDROID_E0OPEN_GB_ device Please note that this question is related to 9786928. As I understand it, the OP was misunderstood and the question is still not answered. Thanks for your help. 回答1: For the LG

IDA动态调试技术及Dump内存

扶醉桌前 提交于 2019-12-31 02:04:01
IDA动态调试技术及Dump内存 来源 https://blog.csdn.net/u010019468/article/details/78491815 最近研究SO文件调试和dump内存时,为了完整IDA调试起来,前后摸索了3天才成功,里面有很多坑和细节,稍微不注意,就一直排行,需要理解每步骤的作用意义,否则就会觉得教程不对,要详细的教程可能找不到,大部分都是简单介绍,没有提醒细节和易忽视的点 动态调试步骤,顺序严格如下 事先准备工作 1、要求root手机或者直接用模拟器 否则没有权限启动android_server 2、IDA在6.6以上版本 或者手机为5.0以下 否则会出现 pie异常: error: only position independent executables (PIE) are supported. 1 细步骤如下:: 1、首先把IDA安装目录下的android_server文件通过adb push 命令push到手机/data/local/tmp/目录下,并通过root权限身份运行./android_server C:\Windows\System32>adb shell shell@HWGRA:/ $ cd /data/local/tmp/ shell@HWGRA:/data/local/tmp $ ./android_server IDA

Is there any difference between adb wait-for-device and adb wait-for-devices?

六月ゝ 毕业季﹏ 提交于 2019-12-30 20:20:50
问题 There are two commands that I used wait for a device to come up: adb wait-for-device and adb wait-for-devices. Both seem to wait for a device to boot up, I din't find any difference in their behaviour. Is there any difference in their behaviour? Adding more information on what I did: So here is what I did, from the android documentation I used adb wait-for-device but then sometime while using this command I used it as adb wait-for-devices, as you can see I added a extra 's' at the end, but

delete packages of domain by adb shell pm

丶灬走出姿态 提交于 2019-12-30 11:16:06
问题 There is a command to ease the pain of managing packages for Android phone, adb shell pm uninstall org.kde.necessitas.example.one adb shell pm uninstall org.kde.necessitas.example.two But I have many phones and just want to delete all packages from a particular domain on them. It cannot be done by adb shell pm uninstall org.kde.necessitas.example.* what is your suggestion? 回答1: You can use the following in a batch file: (I am assuming Windows though) adb shell pm list packages org.kde

Device owner issue using adb method with LG devices only

怎甘沉沦 提交于 2019-12-30 10:38:06
问题 I have been trying to get device owner, inspired by google sample code Using adb, I am able to get device owner on nexus 4,5,7,9 and micromax. However in LG G Pad (LG-V400) and LG G3 (LG G3 855) I get an error. java.lang.SecurityException: Neither user 2000 nor current process has android.permission.BIND_DEVICE_ADMIN. I noticed that the device admin is enabled on these devices, but not the device owner. I was able to capture the bug report from the device found here. I have tried contacting

How to open “adb shell” in context of application being debugged (on non-rooted device)?

可紊 提交于 2019-12-30 07:35:29
问题 When I just run adb shell , I get shell running from uid=2000(shell) gid=2000(shell) , without ptrace access to my application. How to open a shell with the same UID as launched application? 回答1: Use run-as <your package name> to switch to your app's UID or run-as <your package name> <command> to run a single command with your app's UID. 回答2: From this answer: The packages.xml file present in /data/system The packages.list file present in /data/system Contain the list of applications

How to test Doze Mode on Android?

限于喜欢 提交于 2019-12-30 06:37:25
问题 There is an old Android app which work background 2 service (Service). It took to update the app with the possibility of sending data and logging while working is not a new DozeMode. Before you amend the current code I decided to check how everything will work now. To run the application, in the logs I see that both services are running (the basic meaning of the service to read the position of the device, the second service sends the data to the server). Turn off the screen with the command

R.java file not updating with UI element's id

微笑、不失礼 提交于 2019-12-30 05:56:09
问题 I added some UI elements to the main.xml file in the res\layout folder and when I try to access them through the call, R.layout.my_uielement , the UI element that I created is not there. Even when I add a new xml file with UI elements, it still doesn't show up in the R.layout class. I have made checked the ids on them and they have the correct format (I think): android:id="@+id/my_button" . What could be the problem? Do I need to compile the code first? UPDATE : I have already tried adb kill

adb server is out of date. killing… cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * in ubuntu 14.04 LTS

江枫思渺然 提交于 2019-12-30 05:49:13
问题 I could not run the android application never on my laptop. Eclipse gives same error constantly, that is "ADB server didn't ack" When I manage to start adb server and re-open eclipse, as soon as I run the android application, same error comes to console; ADB server didn't ack. Could you give an idea except restarting adb 回答1: You need to set the path of your SDK's adb into Genymotion. By default, Genymotion uses its own ADB tool (for many reasons). If the both binaries are not compatible (if