Created
December 14, 2021 15:42
-
-
Save sleirsgoevy/4370ffe3cb2c305631c4c3fc1abb79b2 to your computer and use it in GitHub Desktop.
Script for enabling mass storage emulation on rooted Samsung phones
This file contains 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
A=/sys/class/android_usb/android0 | |
set -x | |
killall -STOP adbd | |
sleep 1 | |
echo 0 > $A/enable | |
echo mass_storage > $A/functions | |
echo disk > $A/f_mass_storage/luns | |
echo 1 > $A/enable | |
sleep 1 | |
echo 0 > $A/enable | |
echo "$1" > $A/f_mass_storage/lun0/file | |
echo 1 > $A/enable |
This file contains 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
A=/sys/class/android_usb/android0 | |
set -x | |
echo 0 > $A/enable | |
echo mtp,acm,ffs > $A/functions | |
echo 1 > $A/enable | |
killall -CONT adbd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please do 9.03 jailbreak ps4 soon