ADB man
am - Activity Manager
Π‘ΡΠ°ΡΡ Π°ΠΊΡΠΈΠ²ΠΈΡΠΈ
am start [options] intent
-D - debugging
-W - Π΄ΠΎΠΆΠ΄Π°ΡΡΡΡ, ΠΏΠΎΠΊΠ° Π·Π°ΠΏΡΡΡΠΈΡΡΡ
-S - ΠΎΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ ΠΏΠ΅ΡΠ΅Π΄ Π·Π°ΠΏΡΡΠΊΠΎΠΌ
Π‘ΡΠ°ΡΡ ΡΠ΅ΡΠ²ΠΈΡΠΎΠ²
am startservice [options] intent
ΠΡΡΠ°Π²ΠΈΡΡ Π²ΡΠ΅, ΡΡΠΎ ΡΠ²ΡΠ·Π°Π½ΠΎ Ρ ΠΏΠ°ΠΊΠ΅ΡΠΎΠΌ
adb shell am force-stop package
adb shell am kill [options] package
ΠΠ°ΠΊΡΡΡΡ Π²ΡΠ΅ ΠΏΡΠΎΡΠ΅ΡΡΡ Π² background
adb shell am kill-all
broadcast intent
adb shell am broadcast [options] intent
ΠΠ°ΠΊΠΎΠΉ-ΡΠΎ ΠΌΠΎΠ½ΠΈΡΠΎΡΠΈΠ½Π³
adb shell am instrument [options] component
-e name value - set arguments
-p file - write profileng data to file
-w - wait ΠΏΠΎΠΊΠ° Π½Π΅ Π·Π°ΠΊΠΎΠ½ΡΠΈΡΡΡ
Start profiler on process, write results to file.
adb shell am profile start process file
Stop profiler on process
adb shell am profile stop process
dump the heap of process, write to file:
adb shell am dumpheap [options] process file
adb shell am to-uri intent
adb shell am to-intent-uri intent
pm - Package Manager
adb shell pm dump <package> - ΡΠ°ΠΉΠΌΠΈΠ½Π³ΠΈ ΡΠ°Π±ΠΎΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ, ΡΡΠΎ Π·Π°ΠΏΡΡΠΊΠ°Π»ΠΎ ΠΈ ΡΠΏ
Π£Π΄Π°Π»ΠΈΡΡ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ (ΡΠΈΡΠ°ΠΉ: ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅)
adb shell pm remove-user USER_ID
Π‘ΠΏΠΈΡΠΎΠΊ ΠΏΠ°ΠΊΠ΅ΡΠΎΠ²/ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΉ ΡΡΡΠ°Π½ΠΎΠ²Π»Π΅Π½Π½ΡΡ
adb shell pm list packages
ΠΏΡΡΡ Π΄ΠΎ apk
adb shell pm path <package>