adb

android studio adb 打不开

删除回忆录丶 提交于 2020-01-08 09:54:37
1.cmd-->C:\Users\Administrator>adb start-server adb server is out of date. killing... error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 閫氬父姣忎釜濂楁帴瀛楀湴鍧€(鍗忚/缃戠粶鍦板潃/绔彛)鍙厑璁镐娇鐢ㄤ竴娆°€?(10048) could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemon 2.netstat -ano | findstr "5037" TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 3224 3.C:\Users\Administrator>tasklist| findstr 3224 360MobileLoader.exe 3224 Console 1 28,260 K 4、关闭并移除360MobileLoader.exe 打开任务管理器,找到360MobileLoader.exe,发现无法关闭进程。我已经把该文件删除,所以没有图为证,这里只说方法,选中”360MobileLoader.exe“,右击——

adb连接手机的两种方式

孤者浪人 提交于 2020-01-08 09:54:05
adb连接手机进行调试有两种方式,一种使用USB线,一种使用无线WiFi。 第一种 使用USB线连接 1. 在手机上启用USB调试 2. CMD窗口输入adb devices,此时可以看到自己的设备。 PS:无法看到自己设备时,查看手机USB调试是否打开;PC端是否安装手机驱动。 第二种 使用无线WiFi连接 首先先了解一点底层的知识: Android系统底层运行着一个服务(adbd),用于响应和管理大家在电脑端的adb命令连接,这个服务在启动时会根据手机的配置监听USB连接或网络其中之一。配置的属性为:service.adb.tcp.port,也就是监听的网络端口 以上属性的值 > 0:adbd将监听网络对应的端口(一般为5555) 以上属性的值 <=-1:adbd将监听USB 接下来是连接步骤: 1. 命令行输入:adb connect 172.16.4.37:5555 (:5555可省略) 提示:unable to connect to 172.16.4.37:5555 解决办法: 1)手机与PC相连,执行以下命令:adb tcpip 5555 成功提示:restarting in TCP mode port 5555 如果手机没有和PC连接,直接使用以上命令会提示 error:device not found 然后断开USB 2)接着执行adb connect 172.16

No such file or directory when 'cp' but not with 'ls'

…衆ロ難τιáo~ 提交于 2020-01-07 16:59:04
问题 I am trying to copy the shared preferences folder of my app to the /sdcard partition from my PC using the following ADB command: adb shell su -c "cp /data/data/com.anrapps.pixelbatterysaver/shared_prefs/ /sdcard/appdata/" But this returns cp: Skipped dir '/data/data/com.anrapps.pixelbatterysaver/shared_prefs': No such file or directory . However when executing the ls command, it says that folder is present: adb shell su -c "ls /data/data/com.anrapps.pixelbatterysaver" cache code_cache files

No such file or directory when 'cp' but not with 'ls'

≯℡__Kan透↙ 提交于 2020-01-07 16:58:11
问题 I am trying to copy the shared preferences folder of my app to the /sdcard partition from my PC using the following ADB command: adb shell su -c "cp /data/data/com.anrapps.pixelbatterysaver/shared_prefs/ /sdcard/appdata/" But this returns cp: Skipped dir '/data/data/com.anrapps.pixelbatterysaver/shared_prefs': No such file or directory . However when executing the ls command, it says that folder is present: adb shell su -c "ls /data/data/com.anrapps.pixelbatterysaver" cache code_cache files

No such file or directory when 'cp' but not with 'ls'

痞子三分冷 提交于 2020-01-07 16:58:06
问题 I am trying to copy the shared preferences folder of my app to the /sdcard partition from my PC using the following ADB command: adb shell su -c "cp /data/data/com.anrapps.pixelbatterysaver/shared_prefs/ /sdcard/appdata/" But this returns cp: Skipped dir '/data/data/com.anrapps.pixelbatterysaver/shared_prefs': No such file or directory . However when executing the ls command, it says that folder is present: adb shell su -c "ls /data/data/com.anrapps.pixelbatterysaver" cache code_cache files

No such file or directory when 'cp' but not with 'ls'

混江龙づ霸主 提交于 2020-01-07 16:57:27
问题 I am trying to copy the shared preferences folder of my app to the /sdcard partition from my PC using the following ADB command: adb shell su -c "cp /data/data/com.anrapps.pixelbatterysaver/shared_prefs/ /sdcard/appdata/" But this returns cp: Skipped dir '/data/data/com.anrapps.pixelbatterysaver/shared_prefs': No such file or directory . However when executing the ls command, it says that folder is present: adb shell su -c "ls /data/data/com.anrapps.pixelbatterysaver" cache code_cache files

How to view sqlite database in android application at run time

我的梦境 提交于 2020-01-07 08:58:40
问题 I am trying to copy data from DDBMS perspective -> file explorer -> data -> [my_app_package] then PULL this is working when I am running application on emulator but when I am running application on mobile nothing is shown under data folder. I have also tried to do same thing from adb but its not working.. Is their any way to explore sqllite database created by my application without rooting my phone. 回答1: One can surely retreive database .db file from Android Device programmatically. I used

How to view sqlite database in android application at run time

孤人 提交于 2020-01-07 08:58:13
问题 I am trying to copy data from DDBMS perspective -> file explorer -> data -> [my_app_package] then PULL this is working when I am running application on emulator but when I am running application on mobile nothing is shown under data folder. I have also tried to do same thing from adb but its not working.. Is their any way to explore sqllite database created by my application without rooting my phone. 回答1: One can surely retreive database .db file from Android Device programmatically. I used

安卓设备 使用adb命令截图

Deadly 提交于 2020-01-07 08:21:26
安卓设备,使用adb指令截图,方法如下: 1. 连好数据线 2. 打开控制台(cmd) 3. 输入指令 adb shell screencap /sdcard/1.png //截图并保存到设备指定目录 adb pull /sdcard/1.png e:/1.png //从设备中把图片复制到电脑上指定目录 来源: CSDN 作者: zhouyingge1104 链接: https://blog.csdn.net/zhouyingge1104/article/details/103855429

Android ADB command to get the application specific log in command prompt of windows

喜你入骨 提交于 2020-01-07 05:03:12
问题 Hi i want to get the application specific log in the command prompt of windows i tried this Filter LogCat to get only the messages from My Application in Android? adb -d logcat com.mycompanyname.demoapp:I *:S But didn't work for me huge log was printing which was very difficult for me to find my app specific log. I want to print my app specific log in command prompt. 回答1: The string that logcat uses for filtering by is not a package name but a TAG. So logcat com.mycompanyname.demoapp:* won't