[MOD/APP]{Xperia S/U/P}[GB] SDCARD Mounter as Mass Storage (MSC Mode) {Dt: 27/April}

Search This thread

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
[ info ]


so friends i know some of u are getting pissed because Sony didnt include MSC (mass storage mode) in the Xperia S/U/P GB firmware... the MTP mode is fine but some users (including me) prefer the MSC mode...

so here is a MOD/HACK which will enable that functionality!!!




[ credits ]

  • Napstar - for discussing this workaround which was ment for recovery but it works in OS very well :D
  • rogro82 - for creating and posting the GScript App here
  • finally me (DooMLoRD) - for implementing it for Xperia S/U/P and creating this easy to use package


[ requirements ]

  • stock GingerBread firmware
  • rooted device with busybox installed


[ downloads ]



APP for Xperia S


APP for Xperia U/P



if u want me to make a version of this app for ur Xperia P, Sola read this




OLD MANUAL WAY


test it out and let me know ur feedback!!!


icon8.gif



ENJOY!!
 
Last edited:

Sikiduck

Senior Member
Aug 27, 2010
335
49
twitter.com
Saw requirements and rooted, almost cried :(

But very good work u guys! Finally someone made this mod! I'll test out when bl is unlocked! xD

Sent from my LT26i using xda premium
 
Last edited:
  • Like
Reactions: matchung

sminki

Senior Member
Feb 18, 2012
485
261
hard shoulders of reality
Sweet!!

Code:
[260388.740074] usb 1-4: new high speed USB device using ehci_hcd and address 60
[260388.878673] usb 1-4: New USB device found, idVendor=0fce, idProduct=b169
[260388.878680] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[260388.878683] usb 1-4: Product: SEMC HSUSB Device
[260388.878686] usb 1-4: Manufacturer: SEMC
[260388.878688] usb 1-4: SerialNumber: **********
[260388.878919] usb 1-4: configuration #1 chosen from 1 choice
[260388.880622] scsi12 : SCSI emulation for USB Mass Storage devices
[260388.880894] usb-storage: device found at 60
[260388.880897] usb-storage: waiting for device to settle before scanning
[260393.876839] usb-storage: device scan complete
[260393.877392] scsi 12:0:0:0: Direct-Access     SEMC     Mass storage     0100 PQ: 0 ANSI: 4
[260393.878421] sd 12:0:0:0: Attached scsi generic sg2 type 0
[260393.880092] sd 12:0:0:0: [sdb] 54128640 512-byte logical blocks: (27.7 GB/25.8 GiB)
[260393.880585] sd 12:0:0:0: [sdb] Write Protect is off
[260393.880591] sd 12:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[260393.880596] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[260393.882455] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[260393.882463]  sdb:
[260393.891209] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[260393.891218] sd 12:0:0:0: [sdb] Attached SCSI removable disk
[260394.093218] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

Brilliant! and so simple too, 2 lines! Makes the recent donation all the more sweet, so yet again - thanks DooMLoRD :D & Napstar

It seriously screws this Notification Bar mod, but that can go in favour of this :)

EDIT: also works on SO-02D - 6.0.A.4.1 (personal project I'm working on..)
 
Last edited:

anthon

Senior Member
Apr 11, 2008
85
7
Incredible!

Thanks you for all your work, donation is coming

I dunno why Sony has removed this function in the rom, MTP is horrible!
 

kazuni

Senior Member
Aug 28, 2007
667
208
Hong Kong
some funny things I did (don't try this at home)

I've formatted the mounted internal SDCard as NTFS and guess what, it didn't mount properly (as expected) by the operating system - but using gscript, it did mount properly in windows.

After that, I used adb shell to gain access to the device to manually mount /dev/block/mmcblk0p15 and voila, it supports NTFS - though root explorer etc. It's not practical (as the OS reports the /sdcard/ is not mounted - even though it is), but still fun to investigate.

Code:
# df -h
df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   348.4M     64.0K    348.3M   0% /dev
tmpfs                   348.4M         0    348.4M   0% /mnt/asec
tmpfs                   348.4M         0    348.4M   0% /mnt/obb
/dev/block/mmcblk0p12
                       1007.9M    352.9M    654.9M  35% /system
/dev/block/mmcblk0p14
                          2.0G    484.3M      1.5G  24% /data
/dev/block/mmcblk0p13
                        246.1M    164.0M     82.0M  67% /cache
/dev/block/mmcblk0p10
                          7.9M      4.1M      3.7M  53% /data/idd
/dev/block/mmcblk0p13
                        246.1M    164.0M     82.0M  67% /data/dalvik-cache
/dev/block/mmcblk0p15
                         25.8G     86.5M     25.7G   0% /mnt/sdcard
# mount
mount
rootfs on / type rootfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mmcblk0p12 on /system type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/block/mmcblk0p14 on /data type ext4 (rw,nosuid,nodev,relatime,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/mmcblk0p13 on /cache type ext4 (rw,nosuid,nodev,relatime,barrier=1,data=ordered)
/dev/block/mmcblk0p10 on /data/idd type ext4 (rw,nosuid,nodev,relatime,barrier=0,data=ordered)
/dev/block/mmcblk0p13 on /data/dalvik-cache type ext4 (rw,nosuid,nodev,relatime,barrier=1,data=ordered)
/dev/block/mmcblk0p15 on /mnt/sdcard type ntfs (ro,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_
multiplier=1)


---------- Post added at 05:11 PM ---------- Previous post was at 04:54 PM ----------

On the side note - which part denotes how the system boots up and mounts /sdcard/ ? I am not that good with android in terms of bootup sequences, so I thought I can look up /etc/fstab but there's nothing there :eek:
 

shuttleu

Member
Mar 2, 2008
34
9
works perfectly

but i was just wondering (not complaining)

would it be possible to make this part of the os so you dont have to run the script

so for example, mod a system file?
 
Last edited:

Tigrer

Senior Member
Oct 30, 2008
56
21
Warsaw
It's even better than Xperia Arc. I've simultanously Mass Storage mode, MTP mode and access in phone.


..i just donated 10$ for good cofee or something you like :) Best regards
 
  • Like
Reactions: DooMLoRD

Emrul

Senior Member
Dec 30, 2009
329
21
Chittagong
Seems great work. It is possible to install Gscript zip file manually by using root explorer and then follow rest of the guideline ? :)
 

Mycorrhiza

Senior Member
Aug 12, 2007
210
7
Autmatic Mounting and Unmounting

Hello,

I hate MTP so much that I cried tears of joy after seeing this post, so thx Doomlord!

The only thing annoying was always having to manually Mount / Dismount.
So I went and made a Tasker Profile that complete automates this :cool:

You need the following for this to work:



Step 1:
Follow Doomlords awesome instructions on page 1

Step 2:
Install all of the above mentioned Programs

Step 3:
Download the attached ZIP File and extract to /sdcard/Tasker/profiles

Step 4:
Import the profiles by long pressing the "Profiles" Button in Tasker (top left) and then pressing import. And don't forget to engable the profile.

Step 5:
Now everytime you connect to USB the drive gets mounted, everytime you disconnect it gets dismounted.


It should work with Locale instead of Tasker, too but I don't own that programm so I haven't tried.


Enjoy :)
 

Attachments

  • Mount-Unmout-SD.zip
    1.3 KB · Views: 243
Last edited:
  • Like
Reactions: visser and DooMLoRD

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
OLD INFO!



[ info ]


so friends i know some of u are getting pissed because Sony didnt include MSC (mass storage mode) in the Xperia S GB firmware... the MTP mode is fine but some users (including me) prefer the MSC mode...

so here is a MOD/HACK which will enable that functionality!!!


[ credits ]

  • Napstar - for discussing this workaround which was ment for recovery but it works in OS very well :D
  • rogro82 - for creating and posting the GScript App here
  • finally me (DooMLoRD) - for implementing it for Xperia S and creating this easy to use package


[ requirements ]

  • stock GingerBread firmware (.62/.63/.73)
  • rooted device
  • recovery



[ how to install? ]


  1. download the zip file provided in download section below

  2. put the zip on sdcard

  3. reboot into recovery

  4. flash the zip from sdcard

  5. reboot into system

  6. open app drawer, a new app GScript will be available

  7. open GScript app and click MENU button

    xps-gs-1.png

  8. select "Add Script"

    xps-gs-2.png

  9. now select "sdcard-mount.sh"

    xps-gs-3.png

  10. now click on "Save"

  11. do the above 4 steps again to add "sdcard-unmount.sh"

    xps-gs-4.png

  12. now go to homescreen and long press on blank space, you will get a menu to add things to homescreen

  13. now select "Shortcuts" and browse to "GScript Lite"

    xps-gs-5.png

  14. now select "sdcard-mount"

    xps-gs-4.png

  15. a shortcut will now be placed on homescreen to autolaunch this script

  16. do the above 3 steps to add "sdcard-unmount"

    xps-gs-6.png

that it!! now everything is in place!



[ how to use? ]

mounting

  1. now when ever u have the phone connected to PC just click on the shortcut "sdcard-mount" (you might get a SuperUser prompt, accept/allow it)

    xps-gs-7.png

  2. at first run it might take a while for the new drive to show up as drivers are getting installed in background but once thats done sdcard should now be mounted to PC


unmounting

  1. now to unmount, safely remove the drive from ur PC and click on shortcut "sdcard-unmount"

    xps-gs-8.png

  2. done sdcard is now unmounted!!!




[ downloads ]

KINDLY DO NOT MIRROR MY FILES

SDCARD Mounter as MSC Mode (V01)



test it out and let me know ur feedback!!!


icon8.gif



ENJOY!!
 
Last edited:
  • Like
Reactions: Elwino2.3

Top Liked Posts

  • There are no posts matching your filters.
  • 68
    [ info ]


    so friends i know some of u are getting pissed because Sony didnt include MSC (mass storage mode) in the Xperia S/U/P GB firmware... the MTP mode is fine but some users (including me) prefer the MSC mode...

    so here is a MOD/HACK which will enable that functionality!!!




    [ credits ]

    • Napstar - for discussing this workaround which was ment for recovery but it works in OS very well :D
    • rogro82 - for creating and posting the GScript App here
    • finally me (DooMLoRD) - for implementing it for Xperia S/U/P and creating this easy to use package


    [ requirements ]

    • stock GingerBread firmware
    • rooted device with busybox installed


    [ downloads ]



    APP for Xperia S


    APP for Xperia U/P



    if u want me to make a version of this app for ur Xperia P, Sola read this




    OLD MANUAL WAY


    test it out and let me know ur feedback!!!


    icon8.gif



    ENJOY!!
    33
    [APP] SDCARD Mounter for Xperia S (v1.0)

    [APP] SDCARD Mounter for Xperia S (v1.0)


    xps-sdcardmounter-1.png



    [ info ]


    so guys after having a tough time getting my build environment up and running (MOTODEV Studio was acting up), finally finished the app and thanks to Soheil_rf now it has a nice graphics...

    we have kept it simple and straight forward...


    the app requires ROOT privileged so allow it when u get a SU prompt...


    [ credits ]

    • Napstar - for discussing this workaround which was ment for recovery but it works in OS very well :D
    • Soheil_rf - for graphics and design
    • finally me (DooMLoRD) - for implementing it for Xperia S and creating this easy to use app


    [ usage ]

    to mount press "Mount" button, to unmount press "Unmount" ;)


    P.S.: this works ONLY WHEN DEVICE IS CONNECTED TO PC!!!!



    [ download link ]

    PLEASE DO NOT MIRROR MY FILES

    SDCARD Mounter for Xperia S (v1.0)



    icon8.gif


    enjoy!
    21
    [APP] SDCARD Mounter for Xperia U/P (v1.0)

    [APP] SDCARD Mounter for Xperia U/P (v1.0)​




    [ info ]


    so guys after having a tough time getting my build environment up and running (MOTODEV Studio was acting up), finally finished the app and thanks to Soheil_rf now it has a nice graphics...

    we have kept it simple and straight forward...


    the app requires ROOT privileged so allow it when u get a SU prompt...



    [ download link ]

    PLEASE DO NOT MIRROR MY FILES

    SDCARD Mounter for Xperia U/P (v1.0)



    icon8.gif


    enjoy!
    10
    Made some little hack. Unpack attached zip, put sdcard.sh to your internal memory (/sdcard/ partition) and install SDCARD_mount.apk (if you have installed previous version of DoomLord's mounter - uninstall it first). Now you can use DoomLord's app on ICS ;)
    2
    @Doom this app is f#cking sweet. Very nice job love the splash screen and icon. Can't wait for a Doom updater for your Kernal. Ps will you be putting this on market as a paid app as will put link out on our site for some more adverts for you. Thanks nice work:)

    Sent from my LT26i using XDA

    yes i am planning to do that ;) if its uploaded to market i will post market link here :D