equal
deleted
inserted
replaced
49 See: |
49 See: |
50 |
50 |
51 http://teamw.in/project/twrp2 |
51 http://teamw.in/project/twrp2 |
52 Custom recovery built. |
52 Custom recovery built. |
53 |
53 |
|
54 ADB tips. |
|
55 ========= |
54 |
56 |
|
57 List available devices:: |
|
58 |
|
59 $ adb devices |
|
60 |
|
61 Install application from ``.apk`` file:: |
|
62 |
|
63 $ adb install -r /path/to/application.apk |
|
64 |
|
65 List installed package names:: |
|
66 |
|
67 $ adb shell 'pm list packages -f' |
|
68 |
|
69 Uninstall application by it name:: |
|
70 |
|
71 $ adb uninstall PACKAGE_NAME |
|
72 |
|
73 List currently run activities:: |
|
74 |
|
75 $ adb shell 'dumpsys activity' |
|
76 |
|
77 Find activities from package:: |
|
78 |
|
79 $ adb shell 'pm list packages -f' |
|
80 $ adb pull APK_FROM_LIST |
|
81 $ aapt dump badging APK_FILE |
|
82 |
|
83 Start an activity:: |
|
84 |
|
85 $ adb shell am start PACKAGE_NAME/ACTIVITY_IN_PACKAGE |
|
86 $ adb shell am start PACKAGE_NAME/FULLY_QUALIFIED_ACTIVITY |
|
87 |
|
88 Take a screenshort:: |
|
89 |
|
90 $ adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png |
|
91 |
|
92 Power button:: |
|
93 |
|
94 $ adb shell input keyevent 26 |
|
95 |
|
96 Unlock screen:: |
|
97 |
|
98 $ adb shell input keyevent 82 |
|
99 |
|
100 Show system log:: |
|
101 |
|
102 $ adb logcat |
|
103 $ adb logcat "*:W" |
|
104 |