Added a way to use sdtool with rooted android phone - #28
Open
HkHacker22 wants to merge 3 commits into
Open
Conversation
Updated the introduction to clarify the use of Android's built-in SD card slots and Termux for running sdtool.
Added instructions for using sdtool on Android devices.
There was a problem hiding this comment.
Pull request overview
Adds documentation for using sdtool on a rooted Android device via Termux as an alternative workflow when built-in card readers aren’t available on laptops.
Changes:
- Adds an Android (root-required) usage section to the main README linking to a dedicated guide.
- Introduces
ANDROID.mdwith a step-by-step Termux workflow for checking/unlocking (temporary) write protection and optionally formatting the card.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Adds a new Android usage section and link to the Android guide. |
| ANDROID.md | New, detailed rooted-Android/Termux guide for running sdtool against /dev/block/mmcblk* devices. |
Comments suppressed due to low confidence (3)
ANDROID.md:60
- Device selection guidance is risky: on many devices
mmcblk0is internal storage, and running the laterparted rm/mklabelcommands on it could wipe the phone. The guide should explicitly warn against guessing the device name and recommend verifying it's the removable SD card.
**Important:** Look for a device named `mmcblk0` or `mmcblk1` with a size matching your SD card. (It may be found 5-10 lines from bottom).
ANDROID.md:75
- The example label "locked BYJU'S card" is brand-specific and not necessary for understanding the output. A generic description keeps the guide neutral and broadly applicable.
Expected output for a locked BYJU'S card:
ANDROID.md:28
- The guide uses
sudo apt updatebefore ensuringsudois installed, so the first step can fail on a fresh Termux install. Termux package installs typically don't requiresudo(usepkg/aptdirectly), and reservesudofor block-device operations later in the guide.
Open Termux and update the package list:
```bash
sudo apt update && sudo apt upgrade
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Because Modern Laptops no longer comes with built-in card readers and usb card reader won't work, I developed a way to use rooted android phone to use sdtool.