12/29/2012

How to remove internal mass storage on QRD Android (ICS)

1. remove the "UDISK" partition from the partition table, and correspondingly enlarge the size of Userdata partition:
modem_proc\core\storage\tools\jsdcc\partition_load_pt\partiton.xml
Then regenerate rawprogram0.xml and patch0.xml

2. set the new size for BOARD_USERDATAIMAGE_PARTITION_SIZE in file /device/qcom/msm7626a/boardconfig.mk

3. change persist.sys.emmcpartition property to 0 in the file /device/qcom/msm7627a/system.prop

persist.sys.emmcpartition=0

and make sure persist.sys.emmcsdcard.enabled is disabled(0)

4. remove the USB lun item in file kernel/drivers/usb/gadget/android.c:
function 'mass_storage_function_init':

<...>
#if 0 // modified this line, remove internal stroage.
config->fsg.luns[0].cdrom = 0; // sdcard
config->fsg.luns[1].cdrom = 0; // internal storage
config->fsg.luns[2].cdrom = 1; // cdrom
#else
config->fsg.luns[0].cdrom = 0; // sdcard
config->fsg.luns[1].cdrom = 1; // cdrom

No comments:

Post a Comment