Skip to content

Added a way to use sdtool with rooted android phone - #28

Open
HkHacker22 wants to merge 3 commits into
BertoldVdb:masterfrom
HkHacker22:master
Open

Added a way to use sdtool with rooted android phone#28
HkHacker22 wants to merge 3 commits into
BertoldVdb:masterfrom
HkHacker22:master

Conversation

@HkHacker22

Copy link
Copy Markdown

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.

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.
Copilot AI review requested due to automatic review settings July 30, 2026 13:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md with 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 mmcblk0 is internal storage, and running the later parted rm/mklabel commands 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 update before ensuring sudo is installed, so the first step can fail on a fresh Termux install. Termux package installs typically don't require sudo (use pkg/apt directly), and reserve sudo for 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.

Comment thread README.md Outdated
Comment thread ANDROID.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants