Donal wrote:Hello,
first of all thank you very much Tytung for this great ROM. After Booting and filling up all the caches the ROM is very fast. Sometimes tasks are getting stuck and draining the battery. After rejecting the task it is OK. But that is a minor issue.
Im using HD2 form Deutsche Telekom - low RAM. Therefore I would like to activate the linux swap partition. The method with fstab on etc and 05userinit on intit.d is working up to Android 4.3 - on kit kat it is not working. Swapon manually ist possible, but I would like to automate it after reboot.
Does anyone have an idea, what has changed?
Thx
I use this method, which works fine for me:
1) Create the file data/local/userinit.sh, with these contents:
- Code: Select all
#!/system/bin/sh
mkswap /dev/block/mmcblk0p3
swapon /dev/block/mmcblk0p3
2) Make sure the file permissions are set to allow it to be executed.
At boot, the shell script system/etc/init.d/90userinit checks for the existence of the userinit.sh file and executes it if found.
This code assumes that the third partition on your SD card exists and uses it in entirety for swap.






