Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP DooMLoRD

18th April 2012, 11:26 PM   |  #1  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 39,109
 
13,127 posts
Join Date:Joined: Jul 2010
[ 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
  • 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!!!





ENJOY!!
Last edited by DooMLoRD; 6th July 2012 at 07:49 PM.
The Following 67 Users Say Thank You to DooMLoRD For This Useful Post: [ View ]
18th April 2012, 11:30 PM   |  #2  
Sikiduck's Avatar
Senior Member
Thanks Meter: 49
 
337 posts
Join Date:Joined: Aug 2010
More
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 by Sikiduck; 18th April 2012 at 11:37 PM.
The Following User Says Thank You to Sikiduck For This Useful Post: [ View ]
18th April 2012, 11:51 PM   |  #3  
Member
Thanks Meter: 13
 
53 posts
Join Date:Joined: May 2007
Awesome! Working perfectly for me. Thanks! Was hoping for something like this
18th April 2012, 11:53 PM   |  #4  
Member
Flag Warsaw
Thanks Meter: 17
 
51 posts
Join Date:Joined: Oct 2008
Thank you very much DooMLoRD Now copying is speeeedy...even 28MB/s
18th April 2012, 11:59 PM   |  #5  
sminki's Avatar
Senior Member
Thanks Meter: 78
 
270 posts
Join Date:Joined: Feb 2012
More
Thumbs up
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 & 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 by sminki; 19th April 2012 at 12:32 AM.
19th April 2012, 07:49 AM   |  #6  
Member
Thanks Meter: 19
 
60 posts
Join Date:Joined: Jun 2011
wow i didn't think you would release it this quickly donation coming your way, thanks a lot man!
The Following User Says Thank You to onemandivision For This Useful Post: [ View ]
19th April 2012, 08:44 AM   |  #7  
Member
Thanks Meter: 7
 
81 posts
Join Date:Joined: Apr 2008
More
Incredible!

Thanks you for all your work, donation is coming

I dunno why Sony has removed this function in the rom, MTP is horrible!
19th April 2012, 09:54 AM   |  #8  
electrash's Avatar
Senior Member
Flag Mali Lošinj - Rijeka
Thanks Meter: 484
 
1,697 posts
Join Date:Joined: Aug 2011
Donate to Me
More
One more great job doom.
Thx you for developing for SXS.
Cant wait to put my hands on it.

Sent from my LT26i using XDA
19th April 2012, 11:11 AM   |  #9  
kazuni's Avatar
Senior Member
Flag Hong Kong
Thanks Meter: 215
 
670 posts
Join Date:Joined: Aug 2007
More
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
19th April 2012, 02:41 PM   |  #10  
sminki's Avatar
Senior Member
Thanks Meter: 78
 
270 posts
Join Date:Joined: Feb 2012
More
^ /etc/vold.fstab

possibly

the dir and symlinks are done in init

Sent from my LT26i using XDA
Last edited by sminki; 19th April 2012 at 02:43 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes