5,605,311 Members 38,554 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
DooMLoRD
Old
(Last edited by DooMLoRD; 6th July 2012 at 06:49 PM.)
#1  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 34286
Posts: 12,263
Join Date: Jul 2010
Location: Noida
Angry [MOD/APP]{Xperia S/U/P}[GB] SDCARD Mounter as Mass Storage (MSC Mode) {Dt: 27/April}

[ 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!!
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
The Following 67 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
Sikiduck
Old
(Last edited by Sikiduck; 18th April 2012 at 10:37 PM.)
#2  
Sikiduck's Avatar
Senior Member
Thanks Meter 49
Posts: 337
Join Date: Aug 2010
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
The Following User Says Thank You to Sikiduck For This Useful Post: [ Click to Expand ]
 
duckysempai
Old
#3  
Member
Thanks Meter 11
Posts: 50
Join Date: May 2007
Awesome! Working perfectly for me. Thanks! Was hoping for something like this
 
Tigrer
Old
#4  
Member
Thanks Meter 16
Posts: 49
Join Date: Oct 2008
Location: Warsaw
Thank you very much DooMLoRD Now copying is speeeedy...even 28MB/s
 
sminki
Old
(Last edited by sminki; 18th April 2012 at 11:32 PM.)
#5  
sminki's Avatar
Senior Member
Thanks Meter 78
Posts: 270
Join Date: Feb 2012
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..)

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ NEXUS 5 ~ Faux Kernel
~ Galaxy Nexus ~ AOKP
~ NEXUS 7 (original) ~ AOKP
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 
onemandivision
Old
#6  
Member
Thanks Meter 19
Posts: 59
Join Date: 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: [ Click to Expand ]
 
anthon
Old
#7  
Member
Thanks Meter 7
Posts: 81
Join Date: Apr 2008
Incredible!

Thanks you for all your work, donation is coming

I dunno why Sony has removed this function in the rom, MTP is horrible!
 
electrash
Old
#8  
electrash's Avatar
Senior Member
Thanks Meter 383
Posts: 1,232
Join Date: Aug 2011
Location: Mali Lošinj - Rijeka

 
DONATE TO ME
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
 
kazuni
Old
#9  
kazuni's Avatar
Senior Member
Thanks Meter 212
Posts: 656
Join Date: Aug 2007
Location: 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
HTC One
Xpera Z + SanDisk 64GB
Astell and Kern / Rainbow Audio RAWK100 + 2xSanDisk 64GB
SGS3 LTE /w kzn v1.0 ROM + SanDisk 64GB
SGS3 /w Omega v27.2 ROM + SanDisk 64GB
Previous Devices:
HTC: Rezound, Desire Z, HD2, Hero, Dream, Touch, Atom, Tytn II, 838 Pro
Samsung: P6800,P7500,N7000,I9250,SHV-E160S,I9200,I9100,I9000,F388
Sony: Arc, X10, XPS
Apple: 2,3G,3GS,4,4S,iPad2,iPad3,iPadMini
Mods for I9305 > Chinese IME - 15 Button toggle Mod - Note 2 Gallery + Camera Mod - Extended Power Menu
 
sminki
Old
(Last edited by sminki; 19th April 2012 at 01:43 PM.)
#10  
sminki's Avatar
Senior Member
Thanks Meter 78
Posts: 270
Join Date: Feb 2012
^ /etc/vold.fstab

possibly

the dir and symlinks are done in init

Sent from my LT26i using XDA

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ NEXUS 5 ~ Faux Kernel
~ Galaxy Nexus ~ AOKP
~ NEXUS 7 (original) ~ AOKP
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes