[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
[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..)
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
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
The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?