{"id":24922987,"url":"https://github.com/anbuinfosec/fastboot-cmds","last_synced_at":"2026-01-07T01:51:49.847Z","repository":{"id":274697337,"uuid":"923777471","full_name":"anbuinfosec/fastboot-cmds","owner":"anbuinfosec","description":"ADB and Fastboot commands are powerful tools for Android users to troubleshoot and fix common device issues. This guide provides a list of essential commands and tips to help you take control of your device.","archived":false,"fork":false,"pushed_at":"2025-01-28T20:14:31.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T21:24:56.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anbuinfosec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-28T20:10:09.000Z","updated_at":"2025-01-28T20:14:48.000Z","dependencies_parsed_at":"2025-01-29T22:45:38.204Z","dependency_job_id":null,"html_url":"https://github.com/anbuinfosec/fastboot-cmds","commit_stats":null,"previous_names":["anbuinfosec/fastboot-cmds"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbuinfosec%2Ffastboot-cmds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbuinfosec%2Ffastboot-cmds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbuinfosec%2Ffastboot-cmds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbuinfosec%2Ffastboot-cmds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anbuinfosec","download_url":"https://codeload.github.com/anbuinfosec/fastboot-cmds/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017722,"owners_count":20710240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-02T11:34:16.740Z","updated_at":"2026-01-07T01:51:49.821Z","avatar_url":"https://github.com/anbuinfosec.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Essential ADB Fastboot Commands for Troubleshooting\n\nADB and Fastboot commands are powerful tools for Android users to troubleshoot and fix common device issues. This guide provides a list of essential commands and tips to help you take control of your device.\n\n## ADB Fastboot Commands\n\n### 1. ADB Devices\nThe first command to check if your device is properly connected:\n```bash\nadb devices\n```\nThis will list all connected devices. If your device appears, you’re good to go. Otherwise, you may need to troubleshoot your USB connection or drivers.\n\n### 2. ADB Reboot\nTo reboot your Android device, use:\n```bash\nadb reboot\n```\nThis is useful when your device is stuck or not responding. You can also reboot into recovery or bootloader mode with:\n```bash\nadb reboot recovery\nadb reboot bootloader\n```\n\n### 3. ADB Push\nTo transfer files from your computer to your Android device:\n```bash\nadb push \u003clocal_file_path\u003e \u003cremote_file_path\u003e\n```\nExample:\n```bash\nadb push myfile.zip /sdcard/myfile.zip\n```\n\n### 4. ADB Pull\nTo transfer files from your Android device to your computer:\n```bash\nadb pull \u003cremote_file_path\u003e \u003clocal_file_path\u003e\n```\nExample:\n```bash\nadb pull /sdcard/myfile.zip ./myfile.zip\n```\n\n### 5. Fastboot Flash Recovery\nTo flash a custom recovery like TWRP:\n```bash\nfastboot flash recovery recovery.img\n```\nThis command is essential for installing custom software on your Android device.\n\n### 6. Fastboot Flash Boot\nTo flash a boot image:\n```bash\nfastboot flash boot boot.img\n```\nThis is often used when installing a custom kernel or fixing boot issues.\n\n### 7. Fastboot OEM Unlock\nTo unlock your bootloader for rooting or custom ROM installation:\n```bash\nfastboot oem unlock\n```\n\u003e **Note:** Unlocking the bootloader will wipe all data on your device. Back up important data before proceeding.\n\n### 8. Fastboot OEM Lock\nTo relock the bootloader:\n```bash\nfastboot oem lock\n```\nThis is useful if you want to restore your device to its original state.\n\n### 9. ADB Sideload\nFor manually installing a software update:\n1. Boot into recovery mode.\n2. Use the following command:\n   ```bash\n   adb sideload update.zip\n   ```\nThis command is particularly useful when OTA (Over-The-Air) updates fail to install.\n\n### 10. Fastboot Erase\nTo erase specific partitions (e.g., cache, userdata):\n```bash\nfastboot erase \u003cpartition_name\u003e\n```\nExample:\n```bash\nfastboot erase cache\n```\n\n### 11. Fastboot Format\nTo format a partition:\n```bash\nfastboot format \u003cpartition_name\u003e\n```\nExample:\n```bash\nfastboot format userdata\n```\n\n### 12. Fastboot Reboot\nTo reboot the device from Fastboot mode:\n```bash\nfastboot reboot\n```\nYou can also reboot into bootloader mode using:\n```bash\nfastboot reboot bootloader\n```\n\n### 13. Fastboot Flash System\nTo flash a system image:\n```bash\nfastboot flash system system.img\n```\nThis is useful for restoring stock firmware.\n\n### 14. ADB Shell\nTo open a shell on your Android device:\n```bash\nadb shell\n```\nYou can execute commands directly on the device from the shell. Example:\n```bash\nadb shell ls /sdcard\n```\n\n### 15. ADB Install\nTo install an APK file on your device:\n```bash\nadb install \u003capk_file_path\u003e\n```\nExample:\n```bash\nadb install app.apk\n```\n\n### 16. ADB Uninstall\nTo uninstall an app from your device:\n```bash\nadb uninstall \u003cpackage_name\u003e\n```\nExample:\n```bash\nadb uninstall com.example.app\n```\n\n---\n\n## Fixing Common Android Issues with ADB Fastboot Commands\n\n### 1. Bootloop Issues\nIf your device is stuck in a bootloop, clear the cache partition with:\n```bash\nfastboot erase cache\n```\n\n### 2. Bricked Devices\nFor devices stuck in a \"bricked\" state (won’t boot at all), flash the stock firmware:\n```bash\nfastboot flash system system.img\n```\n\u003e **Note:** Ensure you download the correct firmware for your device model before flashing.\n\n### 3. Unresponsive Devices\nIf your device becomes unresponsive, reboot it using:\n```bash\nfastboot reboot\n```\nThis simple command often resolves issues.\n\n### 4. Insufficient Storage\nTo clear space by removing unnecessary files:\n```bash\nadb shell rm -rf /sdcard/\u003cfolder_or_file_name\u003e\n```\n\n### 5. Debugging App Issues\nTo view the logcat (system logs) for troubleshooting:\n```bash\nadb logcat\n```\nYou can filter logs for specific tags or errors, for example:\n```bash\nadb logcat *:E\n```\n\n---\n\n## Safety Tips When Using ADB Fastboot Commands\n\n1. **Backup Your Data:** Always back up your data before using any ADB Fastboot commands that modify your system.\n2. **Use Verified Firmware:** Ensure you’re using the correct firmware files for your device model to avoid bricking your phone.\n3. **Follow Instructions Carefully:** If you’re unsure about a command, double-check the documentation or seek expert advice.\n4. **Charge Your Device:** Ensure your device has sufficient charge before performing operations to prevent interruptions.\n\n---\n\n## Conclusion\n\nADB and Fastboot commands are essential tools for Android users who want to troubleshoot, customize, or fix their devices. Whether you’re fixing bootloop issues, flashing custom ROMs, or unlocking your device’s bootloader, these commands make the process quick and painless. With the right setup and some caution, you’ll be able to resolve common Android issues in just a few minutes.\n\n---\n\n### References\n- [Android Developer Documentation](https://developer.android.com/studio/command-line)\n- [ADB and Fastboot Tools Download](https://developer.android.com/studio/releases/platform-tools)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbuinfosec%2Ffastboot-cmds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanbuinfosec%2Ffastboot-cmds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbuinfosec%2Ffastboot-cmds/lists"}