Or Continue to Thread: [KERNEL]{S} Advanced Stock ICS…
Find Your Device:
30th June 2012, 09:54 PM   |  #254  
Arakmar's Avatar
OP Senior Member
Flag Grenoble
Thanks Meter: 795
 
211 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by Tigrer

Great work:)

It is any hope to run msc mass storage mode not only in recovery? Like DooMLords script and later app for 2.3.7

Xperia S Tapatalk

Yes, I just tried and it works just fine
Here are the scripts :
mount.sh :
Code:
echo 0 > /sys/devices/virtual/android_usb/android0/enable
echo "mass_storage,adb" > /sys/class/android_usb/android0/functions
echo "/dev/block/mmcblk0p15" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
echo 1 > /sys/devices/virtual/android_usb/android0/enable
umount.sh :
Code:
echo "" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
echo 0 > /sys/devices/virtual/android_usb/android0/enable
echo "mtp,adb" > /sys/class/android_usb/android0/functions
echo 1 > /sys/devices/virtual/android_usb/android0/enable
DoomLord just need to update path in his app and it'll be fine
The Following 8 Users Say Thank You to Arakmar For This Useful Post: [ View ]