ADB Cheat Sheet¶
On linux, ADB commands requires to be run as root to actually get access to the connected devices, if you ran ADB as an user, you need to kill the server as this user first.
General Commands¶
Kill ADB server:
List ADB devices (make them ask to accept the signature):
Open a shell to a device (device needs to be detected by adb devices first):
On-device Shell Commands¶
Note: com.android.chrome is the package name of Google Chrome, replace it with the package name of the application you want to be uninstalled
Uninstall any application (including system one) from the device (usually fail) (!DANGEROUS!):
Uninstall any application (including system one) from the user-side of the device (dangerous, but can be canceled with a device format/reset):
Install an APK (stored on the device) without using the APK installer installed on the device (useful if it's broken)