ADB (Android Debug Bridge) is a versatile command-line tool that allows you to communicate with and control Android devices. It's highly useful for developers and advanced users wanting to perform deeper system modifications or troubleshooting. Here's a guide on using ADB commands for advanced Android system modifications:
Prerequisites
-
Install ADB: Ensure you have installed Android SDK Platform Tools on your computer. This package includes ADB and fastboot. You can download it from the official Android Developers website.
-
Enable Developer Options: On your Android device, go to Settings > About Phone and tap "Build Number" seven times to unlock Developer Options.
-
Enable USB Debugging: In Developer Options, enable "USB Debugging" to allow your device to communicate with your computer via ADB.
-
Connect Your Device: Use a USB cable to connect your device to the computer. Confirm the security prompt on your device if asked.
Using ADB Commands
Basic Commands
-
Check ADB Connection
adb devicesThis command lists all devices connected to the computer. Your device should be listed if connected properly.
-
Reboot the Device
adb rebootRestarts the Android device.
-
Reboot into Recovery Mode
adb reboot recoveryBoots the device into recovery mode for advanced troubleshooting and mods.
-
Reboot into Bootloader
adb reboot bootloaderUseful for flashing ROMs or updating firmware.
Advanced Commands
-
Install an APK
adb install path/to/app.apkInstalls an APK on your device. Replace
path/to/app.apkwith the actual file path. -
Pull a File from Device
adb pull /device/path /local/pathCopies a file from the device to your computer.
-
Push a File to Device
adb push /local/path /device/pathTransfers a file from your computer to the device.
-
Record Device Screen
adb shell screenrecord /sdcard/demo.mp4Records the device's screen activity. Stop with Ctrl + C.
-
Remove System App
WARNING: Removing system apps can destabilize your device. Proceed with caution.
adb shell pm uninstall -k --user 0 PACKAGE_NAMEReplace
PACKAGE_NAMEwith the specific package name of the app you want to remove. -
Change Device Resolution
adb shell wm size 1080x1920Adjusts the device resolution. Replace with desired dimensions.
-
Modify Device Density
adb shell wm density 320Changes the screen density. Replace with desired DPI value.
-
Clear App Data
adb shell pm clear PACKAGE_NAMEClears app data and cache. Replace
PACKAGE_NAMEwith the specific package name of the app.
Best Practices
- Backup Data: Always backup important data before performing system modifications.
- Use with Caution: Advanced ADB commands can significantly change how your device operates. Make sure you understand the command fully.
- Ensure Compatibility: Some commands may not work on certain devices or Android versions due to manufacturer restrictions.
By mastering ADB commands, you can enhance your Android experience with custom modifications and troubleshooting capabilities.


