land: Enable zRAM

Change-Id: I6edebe7668195de8bcb52cf7fe8fc807e083b247
This commit is contained in:
Zhao Wei Liew 2016-11-01 14:13:59 +08:00
parent 2ecbcc8276
commit 148b670d9a
4 changed files with 7 additions and 12 deletions

3
product/zram.mk Normal file
View file

@ -0,0 +1,3 @@
# ZRAM
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.zram=true

View file

@ -123,3 +123,6 @@ on property:sys.boot_completed=1
rm /data/system/perfd/default_values
start perfd
swapon_all fstab.qcom
write /proc/sys/vm/swappiness 100

View file

@ -25,6 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
import init.qcom.power.rc
import init.qcom.usb.rc
import init.target.rc
import init.qcom.factory.rc
@ -856,16 +857,9 @@ service wifi-crda /system/bin/sh /system/etc/init.crda.sh
disabled
oneshot
service config-zram /system/bin/sh /system/etc/init.qcom.zram.sh
class late_start
user root
disabled
oneshot
on property:sys.boot_completed=1
start qcom-post-boot
start qti-testscripts
start config-zram
service atfwd /system/bin/ATFWD-daemon
class late_start

View file

@ -98,11 +98,6 @@ service qcamerasvr /system/bin/mm-qcamera-daemon
on init
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
#enable zram
on property:ro.config.zram=true
swapon_all fstab.qcom
write /proc/sys/vm/swappiness 100
service qfp-daemon /system/bin/qfp-daemon
class late_start
user system