-
-
Save Vgdn1942/9132a0de0b6c55d5b0b9d57b37645d2f to your computer and use it in GitHub Desktop.
[ROOT] [Termux] [Script] [Fix] [begonia] DriveDroid on Android 9+
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
#!/data/data/com.termux/files/usr/bin/bash | |
setprop sys.usb.config cdrom | |
setprop sys.usb.configfs 1 | |
getprop sys.usb.config >/config/usb_gadget/g1/configs/b.1/strings/0x409/configuration | |
rm /config/usb_gadget/g1/configs/b.1/f* &>/dev/null | |
mkdir -p /config/usb_gadget/g1/functions/mass_storage.0/lun.0/ | |
touch /config/usb_gadget/g1/functions/mass_storage.0/lun.0/file | |
echo $1 >/config/usb_gadget/g1/functions/mass_storage.0/lun.0/file | |
ln -s /config/usb_gadget/g1/functions/mass_storage.0 /config/usb_gadget/g1/configs/b.1/f99 | |
getprop sys.usb.controller >/config/usb_gadget/g1/UDC | |
setprop sys.usb.state cdrom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment