How I Recovered a Samsung / Byju’s Preloaded SD Card Using sdtool on *Rooted Android*
Hi, apologies for opening an issue. I’m posting this so future users can find it using search keywords like “Byju’s card unlock”, “Samsung SD card not writable”, “MMC write protected SD”.
I successfully recovered a Samsung 64 GB Byju’s preloaded SD card that could be read but could not be overwritten, even after formatting on PC or Android.
Device Info
- Device: Samsung SM‑J701F
- Android: 10 (SDK 29)
- ROM: LineageOS 17.1 (may work differently on stock ROMs)
Requirements
-
Root access on Android (
su) -
Termux installed F-Droid link
-
Build tools in Termux:
pkg update pkg install build-essential git
Step-by-Step Instructions
1. Build sdtool
git clone https://github.com/BertoldVdb/sdtool.git
cd sdtool
make
- This compiles the tool and creates the
sdtoolbinary.
2. Identify Your SD Card
su
ls /dev/block
- External SD card is usually
mmcblk1 - Internal storage is
mmcblk0— do not use this
Check mount points:
mount | grep mmcblk1
Example:
/dev/block/mmcblk1p1 on /mnt/media_rw/8801-1AF1
3. Unmount the SD Card
umount /storage/8801-1AF1 2>/dev/null
umount /mnt/media_rw/8801-1AF1 2>/dev/null
Stop Android volume manager to prevent remount:
stop vold
4. Run sdtool (MMC-level unlock)
./sdtool /dev/block/mmcblk1 unlock
Expected output:
[+] Found RCA for /dev/block/mmcblk1: 59B4.
[+] Writing CSD.
[+] Write protection state: Off
This clears MMC-level write-protection flags so the card can now be written to.
5. Formatting the SD Card (Optional)
After unlocking, you do not need to use sdtool for formatting.
Options:
-
Standard Android formatting:
- Go to Settings → Storage → SD card → Format
- Or use any file manager to delete all files.
-
Command-line formatting (optional for advanced users):
mkfs.exfat /dev/block/mmcblk1p1
# Or FAT32:
mkfs.vfat -F 32 /dev/block/mmcblk1p1
- Restart
voldto remount:
start vold
- Verify writable:
touch /storage/8801-1AF1/testfile
df -h | grep 8801
✅ After unlocking, you can delete files normally or format using Android’s standard tools.
sdtoolis not needed for formatting.
Notes / Tips
- Root is mandatory.
- This method only works on phones or ROMs that allow MMC-level access.
- Normal USB SD card readers cannot perform this unlock.
- Behavior may vary depending on ROM and Android version.
dayum, i did the exact same way