@@ -7,25 +7,47 @@ weight: 5
77
88## Commands
99
10- ``` sh
11- # Install apk
10+ Install apk
11+ ``` bash
1212adb install < path.apk>
13+ ```
1314
14- # Lists all installed packages
15+ Uninstalls the application
16+ ``` sh
17+ adb shell am start < package_name> /< activity_name>
18+ ```
19+
20+ Clear the application data
21+ ``` sh
22+ adb shell pm clear < package_name>
23+ ```
24+
25+ Lists all installed packages
26+ ``` sh
1527adb shell pm list packages
28+ ```
1629
17- # List only third party packages
30+ List only third party packages
31+ ``` sh
1832adb shell pm list packages -3
33+ ```
1934
20- # Clear the application data
21- adb shell pm clear < package_name>
22-
23- # List information such as activities and permissions of a package
35+ List information such as activities and permissions of a package
36+ ``` sh
2437adb shell dumpsys package < package_name>
38+ ```
2539
26- # Starts the activity of the specified package
40+ Starts the activity of the specified package
41+ ``` sh
2742adb shell am start < package_name> /< activity_name>
43+ ```
2844
29- # Uninstalls the application
30- adb shell am start < package_name> /< activity_name>
45+ Copy a file from the device
46+ ``` sh
47+ adb pull < remote-file> < local-file>
48+ ```
49+
50+ Copy a file on the device
51+ ``` sh
52+ adb push < local-file> < destination-directory>
3153```
0 commit comments