-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a827c5
commit 4901b37
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |