Android ADB Cheat Sheet: Difference between revisions
Created page with "Start the server/service ./adb kill-server ./adb start-server Show connected devices ./adb devices Enter the O/S shell (ls,...) ./adb shell" |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
Enter the O/S shell (ls,...) | Enter the O/S shell (ls,...) | ||
./adb shell | ./adb shell | ||
On a un-rooted device you'll need to run-as within the shell | |||
run-as me.stevet.android.gpsapplication | |||
You can use package manager (pm) over adb shell to list packages: | |||
./adb shell pm list packages | sort | |||
and to display where the .apk file is: | |||
./adb shell pm path com.myzeo.android | |||
package:/data/app/com.myzeo.android-1/base.apk | |||
And adb pull to download the apk. | |||
./adb pull data/app//data/app/com.myzeo.android-1/base.apk |
Latest revision as of 16:05, 9 January 2023
Start the server/service
./adb kill-server ./adb start-server
Show connected devices
./adb devices
Enter the O/S shell (ls,...)
./adb shell
On a un-rooted device you'll need to run-as within the shell
run-as me.stevet.android.gpsapplication
You can use package manager (pm) over adb shell to list packages:
./adb shell pm list packages | sort
and to display where the .apk file is:
./adb shell pm path com.myzeo.android package:/data/app/com.myzeo.android-1/base.apk
And adb pull to download the apk.
./adb pull data/app//data/app/com.myzeo.android-1/base.apk