Skip to content

Commit

Permalink
Create adb.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yinhangfeng authored Mar 11, 2019
1 parent 2a827c5 commit 4901b37
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions adb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
```
修改adb的默认端口
http://bbs.csdn.net/topics/390870699
下载文件
adb pull [文件名] /源路径/
例如:
adb pull blade_keypad.kl /system/usr/keylayout/
adb pull /sdcard/mp3/1.mp3
上传文件
adb push [文件名] /目标路径/
例如:
adb push qwerty.kl /system/usr/keylayout/
adb push 1.mp3 /sdcard/mp3/
安装程序
adb install -r [/路径/软件名.apk]
例如:adb install -r com.android.vending.apk
adb install -r com.android.vending.apk
获取当前运行的activity
adb shell dumpsys activity | grep "mFocusedActivity"
dumpsys activity top
调试已安装的app(在启动时就开始调试)
adb shell am set-debug-app -w com.example.xxx
```

0 comments on commit 4901b37

Please sign in to comment.