Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[guide] [xperia] fix cm10 & miui jb mass storage |

$
0
0

in the name of god


hi all


as you know , we have two select in usb conect mod in cm 10


media device

camera






and just mtp in miui 5 (jb)


i think this simple guide can help u

Quote:
Quote:

you need :

apk tool ( & apk manager & ...) - to decompile and recompile framework-res.apk

notepad++ - to edit the xml file

root explorer - to copy file from rom to sd card

================================================== ==============================

1- copy framework-res.apk to your pc from /system/framework

2- decompile it with apk tool

3- go to created framework-res.apk/res/xml/

4-open " storage_list.xml " with notepad++

5- in this line

Code:

Code:

<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:maxFileSize="4096" />

add this line Among its



Code:

Code:

android:allowMassStorage="true"


after edit you must have this


Code:

Code:

<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" android:maxFileSize="4096" />
screen shot





6- save edit and recompile the framework-res.apk

7- copy build.prop in pc and open it with notepad++


8-

for cm 10


edit this line


Code:

Code:

persist.sys.usb.config=mtp
to

Code:
Code:

persist.sys.usb.config=mass_storage

for miui 5 (jb)


edit this line

Code:

Code:

persist.sys.usb.config=mtp

to

Code:

Code:

persist.sys.usb.config=mass_storage,adb


9- save change and replace build.prop and framework-res.apk in rom






you can putt them in flashable zip and install with recovery (attached for u)

Attached Files
File Type: zip flash-able.zip - [Click for QR Code] (126.6 KB)

Viewing all articles
Browse latest Browse all 3614


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>