本文主要是介绍【sdcard-common】KK版本如何去掉内置T卡,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用emmc flash的手机,默认是支持内置T卡的,如果只需要一个外置T卡,需要把内置T卡去掉。
[SOLUTION]
KK版本去掉内T卡的步骤如下:
1,把Multi-storage feature关闭
Path:alps/mediatek/config/common/ProjectConfig.mk
修改:
MTK_MULTI_STORAGE_SUPPORT=no
2,修改RESOURCE_OVERLAY_SUPPORT
Path:alps/mediatek/config/project/ProjectConfig.mk
修改:
RESOURCE_OVERLAY_SUPPORT=sd_ex(ps:多加上sd_ex,只有外卡)
3,check storage_list.xml
Path: mediatek/custom/common/resource_overlay/sd_ex
/Frameworks/base/core/res/res
/xml/storage_list.xml
storage_list.xml 配置如下:
4,修改fstab
Path: mediatek/config/common/fstab
修改:
5,修改init.no_ssd.rc
Path: mediatek/config/{platform}/init.no_ssd.rc
修改:
6,修改StorageManagerEx.java
Path:
alps/mediate/frameworks/base/storage/java/com/mediate/storage/StorageManag
erEx.java
修改:
将sdcard0修改为sdcard
即: private statIC final String STORAGE_PATH_SD1 = "/storage/sdcard";
7,修改userdata分区大小
[SOLUTION]
KK版本去掉内T卡的步骤如下:
1,把Multi-storage feature关闭
Path:alps/mediatek/config/common/ProjectConfig.mk
修改:
MTK_MULTI_STORAGE_SUPPORT=no
2,修改RESOURCE_OVERLAY_SUPPORT
Path:alps/mediatek/config/project/ProjectConfig.mk
修改:
RESOURCE_OVERLAY_SUPPORT=sd_ex(ps:多加上sd_ex,只有外卡)
3,check storage_list.xml
Path: mediatek/custom/common/resource_overlay/sd_ex
/Frameworks/base/core/res/res
/xml/storage_list.xml
storage_list.xml 配置如下:
4,修改fstab
Path: mediatek/config/common/fstab
修改:
5,修改init.no_ssd.rc
Path: mediatek/config/{platform}/init.no_ssd.rc
修改:
6,修改StorageManagerEx.java
Path:
alps/mediate/frameworks/base/storage/java/com/mediate/storage/StorageManag
erEx.java
修改:
将sdcard0修改为sdcard
即: private statIC final String STORAGE_PATH_SD1 = "/storage/sdcard";
7,修改userdata分区大小
这篇关于【sdcard-common】KK版本如何去掉内置T卡的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!