ADB Commands Documentation
This documentation provides a complete guide to commonly used ADB commands for Android debugging, package management, bloat removal, log retrieval, file transfers, reboots, and shell operations.
All commands use a VS Code–styled terminal theme for clarity.
Introduction
ADB (Android Debug Bridge) is a command-line tool used to communicate with Android devices for debugging, app removal, file transfers, shell access, and system modifications.
ADB must be enabled under Developer Options → USB Debugging on your Android device.
Setup and Connect Device
adb devices
# Restart ADB server
adb kill-server
adb start-server
# Connect wirelessly (optional)
adb tcpip 5555
adb connect 192.168.x.x:5555
ADB Shell Basics
adb shell
# List installed packages
pm list packages
pm list packages | grep -i keyword
# Check device info
getprop
# Show battery info
dumpsys battery
# Check running services
service list
Package Management Commands
pm uninstall --user 0 package.name
# Disable an app instead of uninstalling
pm disable-user --user 0 package.name
# Clear app data
pm clear package.name
# Re-enable disabled app
pm enable package.name
Safe Bloatware Removal (TECNO / Infinix / itel)
The following apps can be safely removed using ADB. These commands only uninstall the app for user 0 (your main user). The system keeps the original APK, so it is safe and reversible.
pm uninstall --user 0 com.transsion.statisticalsales
pm uninstall --user 0 com.transsion.magazineservice
pm uninstall --user 0 com.transsion.manualguide
pm uninstall --user 0 com.transsion.repaircard
pm uninstall --user 0 com.transsion.trancarelite
pm uninstall --user 0 com.transsion.chromecustomization
# Themes & Fonts
pm uninstall --user 0 com.transsion.magicfont
pm uninstall --user 0 com.transsion.theme.icon
pm uninstall --user 0 com.transsion.os.typeface
# Tools
pm uninstall --user 0 com.transsion.applock
pm uninstall --user 0 com.transsion.notebook
# Hi Translate
pm uninstall --user 0 com.zaz.translate
# Google Duo / Meet
pm uninstall --user 0 com.google.android.apps.tachyon
# AI Gallery
pm uninstall --user 0 com.gallery20
Disable Apps (Alternative to Uninstall)
Instead of uninstalling, apps can be disabled. Disabling keeps the APK but prevents the app from running or updating.
# Example:
pm disable-user --user 0 com.transsion.applock
File Transfer Operations
adb push localfile.txt /sdcard/
# Pull file from phone to PC
adb pull /sdcard/file.txt ./
# List files
adb shell ls /sdcard/
Reboot & Recovery Commands
adb reboot
# Reboot to fastboot mode
adb reboot bootloader
# Reboot to recovery
adb reboot recovery
Log & Debugging Commands
adb logcat
# Save logs to file
adb logcat -d > logs.txt
# Check system info
adb shell dumpsys
Important Notes
- Uninstalling with --user 0 is safe. The system keeps the original APK.
- Disabled apps can be re-enabled anytime.
- Do NOT remove system-critical apps like launcher, telephony, or system UI.
- ADB must be authorized on the device before use.
- To restore all removed apps, factory reset will reinstall them.