安卓adb命令使用

3188板卡 安卓4.4.4 系统

查看连接到pc的安卓设备

D:\scrcpy-win64>adb devices
List of devices attached
QK214QZ7JD      device

将pc文件 push到安卓设备上

D:\scrcpy-win64>adb push d:/adb_push.txt /mnt/internal_sd/
d:/adb_push.txt: 1 file pushed.

查看内存卡上的文件列表

D:\scrcpy-win64>adb shell
root@rk3188:/ # ls -la /mnt/internal_sd/
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 .android_secure
drwxrwxr-x system   sdcard_rw          2019-08-09 11:44 .com.arcsoft.apilog
drwxrwxr-x system   sdcard_rw          2019-08-09 10:59 AIclient
drwxrwxr-x system   sdcard_rw          2019-08-09 11:44 Aiplayer
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 Alarms
drwxrwxr-x system   sdcard_rw          2019-08-09 09:56 Android
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 DCIM
drwxrwxr-x system   sdcard_rw          2019-08-09 10:56 Download
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 LOST.DIR
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 Movies
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 Music
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 Notifications
drwxrwxr-x system   sdcard_rw          2019-08-09 09:55 Pictures
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 Podcasts
drwxrwxr-x system   sdcard_rw          2019-08-09 09:12 Ringtones
drwxrwxr-x system   sdcard_rw          2019-08-09 11:00 Screenshots
-rwxrwxr-x system   sdcard_rw        0 2019-08-09 14:17 adb_push.txt

将文件夹下载到pc上

D:\scrcpy-win64>adb pull /mnt/internal_sd/Screenshots/ D:/test
/mnt/internal_sd/Screenshots/: 7 files pulled. 2.8 MB/s (1795387 bytes in 0.612s)

adb  命令截屏

D:\scrcpy-win64>adb shell /system/bin/screencap -p /mnt/internal_sd/screenshots/1.png

 adb启动app命令

命令参考

https://blog.csdn.net/sinat_19635357/article/details/38683583

   adb shell dumpsys package>package.txt,然后打开package.txt,你会看到很长的信息:

D:\scrcpy-win64>adb shell am  start com.example.aiplayer/.AIplayerActivity

通常ip  adb 连接设备

adb connect 192.168.0.9

查看设备ip

root@sugar-adtv:/ # ifconfig eth0

 

你可能感兴趣的:(安卓adb命令使用)