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
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:
<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:
android:allowMassStorage="true"
after edit you must have this
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:
persist.sys.usb.config=mtp
to
Code:
persist.sys.usb.config=mass_storage
for miui 5 (jb)
edit this line
Code:
persist.sys.usb.config=mtp
to
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)
hit the thank button if i help u
Attachments
Last edited: