记录ADB命令,手动敲一敲
1.adb shell wm size 输出手机物理分辨率
输出:Physical size: 1080x1920
2.adb devices 输出连接的设备以及状态
输出:
List of devices attached
APU7N16323009233 device
3.adb get-serialno 获取当前连接设备的序列号
输出:APU7N16323009233
4.adb shell ls -l mnt 输出设备存储区
输出:
drwxr-xr-x root system 2016-12-02 22:58 asec
drwxrwx--x system system 2016-12-02 22:58 expand
lrwxrwxrwx root root 2016-12-02 22:59 ext_sdcard -> /storage/6439-6631
lstat 'mnt/media_rw' failed: Permission denied
drwxr-xr-x root system 2016-12-02 22:58 obb
drwx------ root root 2016-12-02 22:58 runtime
lrwxrwxrwx root root 2016-12-02 22:58 sdcard -> /sdcard
drwx------ root root 2016-12-02 22:58 secure
drwxr-xr-x root root 2016-12-02 22:58 user
5.adb shell input keyevent 4 相当于按下返回键
6.adb shell input keyevent 5 相当于按下home键
网友评论