
PhoneDrive

PhoneDrive turns a rooted Android phone into a USB drive for a PC. Keep your ISO and disk images on the phone,
pick one, and the PC sees a USB stick or a CD/DVD drive - to install Windows or Linux, boot a rescue system, or
just carry your files. One phone instead of a drawer full of USB sticks.
It keeps the simple workflow of DriveDroid (abandoned since 2018), written from scratch for current Android with
Kotlin and Jetpack Compose. No code or graphics from DriveDroid are used.
Screenshots
Features
Hosting
- Three modes: Read-only USB (the safe default, boots hybrid ISOs and Rufus-written images), Writable USB
(for Rufus, Ventoy or your own files) and CD-ROM (real ISO 9660/UDF images)
- Swap images without leaving USB mode; the PC shows the image name as the drive name, for example
“PhoneDrv Kali Live USB Device”
- Eject from the app, the notification or a Quick Settings tile - also when the PC locks the drive
(
forced_eject on kernels that have it, a short re-connect on others)
- Puts the USB mode back to what it was before hosting, so adb keeps working
- Live status read straight from the kernel: what is hosted, whether the PC really sees it, link speed, and a
clear message for a charge-only cable or a link that keeps dropping
Images
- Shows what is inside every file: hybrid or plain ISO, GPT/MBR disk and its file systems, Ventoy disk, blank
image, fixed VHD, compressed archives that must be unpacked first, and more
- Tells Windows, Linux and data images apart from their drive label and top folders, with a colour and a word
in the list
- Creates fully allocated images: blank (for Rufus or Ventoy), with an empty GPT or MBR partition to format on the
PC (for example NTFS), or ready to use with exFAT or FAT32 - labels in any language on exFAT, with a progress bar
- Verifies an image against the official
SHA256SUMS next to it (also after renaming), or calculates
SHA-256, SHA-1, MD5 and SHA-512
- Rename, grow and delete images
Privacy
- No internet permission, no ads, no tracking, no accounts. Everything stays on the phone.
Requirements
- Root: SukiSU, KernelSU, Magisk or another root solution
- A kernel with USB mass storage in configfs (
CONFIG_USB_CONFIGFS_MASS_STORAGE) - most phones have it
- Android 10 or newer
- A USB data cable (a USB 3 cable and port make copying much faster)
Developed and tested on a Poco F6 Pro (HyperOS, Android 16, Qualcomm). Other phones with a configfs USB gadget
should work the same way - reports are welcome in the issues.
Most kernels show only the first 2.3 GB of an image in CD-ROM mode. PhoneDrive learns this from the kernel after
the first try and suggests Read-only USB, which boots hybrid ISOs (most Linux ISOs) with their full size.
Install
- Download
PhoneDrive-<version>.apk from Releases and install it.
- Open PhoneDrive and allow root. SukiSU and KernelSU show no prompt: enable PhoneDrive in their Superuser list,
then tap Retry.
- Choose a folder for your images in the internal storage - one you already have (DriveDroid used
/storage/emulated/0/iso) or a new one made right in the app - and put your .iso and .img files there.
- Connect the phone to the PC, tap an image and choose a mode.
The Help screen in the app explains every mode, message and option.
How it works
PhoneDrive writes the image path and the ro/cdrom flags to the mass storage LUN in
/config/usb_gadget/*/functions/mass_storage.*/lun.0, then sets sys.usb.config=mass_storage so the
vendor USB stack adds the drive to the USB configuration (adb stays available). Eject clears the LUN (first with
lun.0/forced_eject when the kernel has it) and restores the previous sys.usb.config.
Building
See BUILD.md.
License
MIT - Tears Burn (nikakvo)
评论