/devices/13560000.dwmmc2/mmc_host/mmc* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/devices/13510000.usb/usb* auto auto defaults voldmanaged=usb:auto
/devices/13520000.usb/usb* auto auto defaults voldmanaged=usb:auto
+
+# ZRAM
+/dev/block/zram0 none swap defaults zramsize=75%,max_comp_streams=8
on early-init
mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755
+ # ZRAM setup
+ write /sys/block/zram0/comp_algorithm lz4
+ write /proc/sys/vm/page-cluster 0
+
on init
# RIL <-> audioserver comm
chmod 0644 /proc/cmdline
mount_all /fstab.samsungexynos7580
setprop ro.crypto.fuse_sdcard true
+ # Enable swap
+ swapon_all /fstab.samsungexynos7580
+ write /proc/sys/vm/swappiness 100
+
# Permissions for ION
chmod 0660 /sys/class/ion_cma/ion_video_ext/isolated
chown system system /sys/class/ion_cma/ion_video_ext/isolated
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor powersave
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor powersave
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor powersave
-
-service sswap /vendor/bin/sswap -s -f 1024
- class core
- user root
- group root
- oneshot
/dev/ttySAC[0-1]* u:object_r:gps_device:s0
/dev/block/vnswap0 u:object_r:sswap_device:s0
+/dev/block/zram0 u:object_r:swap_block_device:s0
/dev/block/mmcblk0p[0-9]* u:object_r:emmcblk_device:s0