Lazada Indonesia

Menambah swap ram di partisi cache

Written By Unknown on Senin, 12 Januari 2015 | 16.39

Android
RAM ANDROID


kenapa partisi cache?
karena kapasitas gedhe 370 MB ,yg terpakai plg cm di bawah 10 MB
Swap ram di cache partition

Stepnya
1. Buat file swapcache.txt dengan rotex
2. Tuliskan script di bawah ini dlm file
#!/system/bin/sh
# By
SWAPADD="loop7"
mount -o remount rw /cache
busybox swapoff /dev/block/$SWAPADD
busybox rm -rf /cache/swap
busybox rm -rf /data/property/swapfile-run
dd if=/dev/zero of=/cache/swap.file bs=1024 count=360000
mount -o remount rw /cache
busybox losetup /dev/block/$SWAPADD  /cache/swap.file
busybox mkswap /dev/block/$SWAPADD
busybox swapon /dev/block/$SWAPADD
if cat /proc/swaps |busybox grep -q $SWAPADD
then
busybox mkdir /data/property/swapfile-run
else
busybox rm -rf /cache/swap.file
fi

exit
3. Taruh file di system/etc/init.d
4. Remove extensi. .txt, sehingga hanya menjadi swapcache
5. Set permission, 777
6. Reboot.
7. Setelah on, cek dgn terminal emulator
   Ketik free, harusnya di baris swap ada isinya ±355000
Dwyor
Klo lag berarti gak beruntung, del aja...
NB : count;  360000 berarti 360mB, silakan edit sendiri, jgn melebihi kapasitas cache partition (±370)
efek samping booting nambah lama

0 komentar:

Posting Komentar