This article goes over using ADB Platform Tools and utilizing adb to uninstall packages by using these tools.
Setup all of the following to use ADB
choco install adb
sudo apt-get install android-tools-adb android-tools-fastboot
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask install android-platform-tools
adb devices
- shows all connected adb devicesadb shell
- launches a shell on the deviceadb shell pm list packages
- list all installed packages on the deviceadb shell pm list packages -3"|cut -f 2 -d ":
- lists all user installed packagesadb push <local> <remote>
- pushes the file adb pull <remote> [<local>]
- pulls the file adb logcat
- allows you to view the device log in real-time. You can use adb logcat -b radio to view radio logs, and adb logcat -C to view logs in colouradb install <file>
- installs the given .apk file to your deviceadb uninstall com.packagename
- uninstalls package from shell pm list packagesadb shell pm uninstall --user 0 <appname>
adb reboot
- reboots systemadb reboot bootloader
- reboots to bootloaderadb reboot recovery
- reboots into recovery modeadb reboot fastboot
- reboots into fastboot modefastboot devices
- shows all connected devicesfastboot reboot
- reboots device - can add bootloader, recovery, and fastbootfastboot oem device-info
- shows oem bootloader status (unlocked or locked)fastboot oem unlock
- unlocks oem phones - note: aosp and unlocked phones don’t need thisfastboot flashing unlock
- unlocks system for custom rom in pixel and other phonesfastboot flashing unlock_critical
- unlocks bootloader and system partitions - note: this isn’t generally neededfastboot format:ext4 userdata
- format userdata on device - note: this will erase your entire devicefastboot boot recovery.img
- test recovery image without flashingfastboot flash recovery recovery.img
- flash recovery image then run fastboot reboot recovery
to boot into it.fastboot flash boot boot.img
- flash boot image - this is the kernelfastboot -w
- wipes devicefastboot update </path/to/your/Rom.zip>
- flashes zip to the device