我正在为我的 android 盒子构建自定义固件,想知道是否可以强制所有应用程序安装在 SD 卡上?我知道亚行的方式。但我想在编译之前对 android SDK 进行更改,因为我会将 ROM 刷新到许多盒子。
提前致谢
我正在为我的 android 盒子构建自定义固件,想知道是否可以强制所有应用程序安装在 SD 卡上?我知道亚行的方式。但我想在编译之前对 android SDK 进行更改,因为我会将 ROM 刷新到许多盒子。
提前致谢
我想我最好的选择是编辑ROM的参数文件并使内部系统分区足够大以容纳许多应用程序
brother Fahim, this is how you increase your userdata partition size: extract your rom image and get the parameter file and open it in text editer.
Here is an example of a parameter file: 0x00002000@0x00002000(misc),0x00006000@0x00004000(kernel),0x00008000@0x0000A000(boot),0x00020000@0x00012000(recovery),0x00020000@0x00032000(backup),0x00040000@0x00052000(cache),0x00200000@0x00092000(userdata),0x00002000@0x00292000(kpanic),0x00180000@0x00294000(system),-@0x00414000(user)
these numbers are in hexadecimal and are blocks of 512 bytes. 512 bytes means 200 in hex. look at the userdata part: 0x00200000@0x00092000(userdata) The second number 0x00092000 is the offset into the NAND chip from 0 location. dont touch this
The first number 0x00200000 is the size of the partition. so it is 200000 blocks of 200 thats 200kx200=40000000 bytes in hex. use pc calculator and change view to programmer.put 200000 in hex multiply by 200 then convert to decimal you get 1073,741,824 bytes which is 1Gb of userdata.
to make that 2Gb for e.g just double the 200000. so it becomes 0x00400000@0x00092000(userdata). and so on..
do not mess anything else otherwise your ROM wont work