-
Notifications
You must be signed in to change notification settings - Fork 0
/
adb_commands.txt
58 lines (37 loc) · 1.53 KB
/
adb_commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
adb模拟发送广播消息:
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
CPU abilist:
adb shell getprop ro.product.cpu.abilist
arm64-v8a,armeabi-v7a,armeabi
adb devices
List of devices attached
xxxxxxxxxxxxxxxx device
adb install xxx.apk
adb shell pm path com.xxx
adb pull /data/app/xxx
adb shell
run-as com.your.packagename
cp /data/data/com.your.packagename/
adb logcat --pid=$(adb shell pidof -s com.xxx)
adb logcat --pid=$(adb shell pidof -s com.huawei.browser)
adb logcat --pid=`adb shell pidof -s com.huawei.browser`
adb shell "logcat --pid=$(pidof -s com.example.myapplication)"
adb shell pidof 'com.example.debug'
adb logcat -v time > time1.log
adb logcat -v threadtime > tt.txt
adb logcat -v threadtime
https://stackoverflow.com/questions/6854127/filter-logcat-to-get-only-the-messages-from-my-application-in-android
https://www.jianshu.com/p/5e00094417bc adb shell logcat 命令
adb logcat --pid=$(adb shell pidof -s com.yc.pts)
adb logcat --pid=`adb shell pidof -s com.yc.pts`
adb shell pidof -s com.yc.pts
adb logcat --pid=xxx
D:\>adb shell dumpsys window | grep mCurrentFocus
D:\>adb shell dumpsys window
D:\>adb shell dumpsys activity | grep "mFocusedActivity"
adb shell dumpsys activity | grep "mFocusedWindow"
adb shell dumpsys activity | grep "mFocusedApp"
adb shell "dumpsys window w | grep name="
adb shell "dumpsys activity services com.tencent.mm"
通过ADB快速定位 Android APP 当前页面(Activity / Fragment) https://www.jianshu.com/p/83888c369eca
adb shell "dumpsys window w | grep name="