茜茜公主是谁演的:[经验] Milestone内存优化中文教程,让你的手机从此飞速。

来源:百度文库 编辑:九乡新闻网 时间:2024/04/28 05:01:44
[经验] Milestone内存优化中文教程,让你的手机从此飞速。
下面是一个教程如何优化你的内存,其实是个脚本可以自动释放你的内存。最大可以释放到190MB的内存,所以我们可以安装大量的应用。
安装方法:
首先把附件放到sd卡根目录,然后依次执行以下命令。
su
mount -o remount,rw /dev/block/mtdblock6 /system
cd /system/bin
cp mot_boot_mode mot_boot_mode.bin
rm mot_boot_mode
cp  /sdcard/mot_boot_mode .
chown root.shell mot_boot_mode
chown root.shell mot_boot_mode.bin
chmod 755 mot_boot_mode
chmod 755 mot_boot_mode.bin
复制代码
重起
你会发现你多出了100多mb内存
用Mini Info检查一下:
/data: 201856K total, 99384K used, 102472K available (block size 4096)
/cache: 108544K total, 57936K used, 50608K available (block size 4096)
请注意:安装后第一次启动会用比较长的时间。
下面是附件:
安装完成,大家不用继续往下看!
如果高手想看原理的话,下面是脚本语句:(3楼要求的)
#!/system/bin/sh
export PATH=/system/bin:$PATH
#run original script
mot_boot_mode.bin
## automatic move /dalvik-cache for free space
## @bijitwit
# set perm
chmod 771 /cache
# remove old symlink, if exist
rm /data/dalvik-cache
# move it, nothing moved if applied
cp -a /data/dalvik-cache /cache
rm -r /data/dalvik-cache
# if /cache wiped need to cr8 dir
mkdir /cache/dalvik-cache
chown system.system /cache/dalvik-cache
chmod 771 /cache/dalvik-cache
# now link
ln -s /cache/dalvik-cache /data/dalvik-cache
#
log -p w dalvik-cache is now on /cache
复制代码