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

# Check if device is detected
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

# Enter ADB shell (Android command-line)
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

# Uninstall an app (user 0 only, safe)
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.

# Ads & Bloat
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.

pm disable-user --user 0 package.name

# Example:
pm disable-user --user 0 com.transsion.applock

File Transfer Operations

# Push file from PC to phone
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

# Reboot device normally
adb reboot

# Reboot to fastboot mode
adb reboot bootloader

# Reboot to recovery
adb reboot recovery

Log & Debugging Commands

# View live logs (very useful for debugging)
adb logcat

# Save logs to file
adb logcat -d > logs.txt

# Check system info
adb shell dumpsys

Important Notes