diff --git a/rootdir/etc/fstab.mt6763 b/rootdir/etc/fstab.mt6763 index f0179efe14fc8a5c3fc9a863c6f1870031894774..b21ca67d4696ba121077663de9fb1b2483f938de 100644 --- a/rootdir/etc/fstab.mt6763 +++ b/rootdir/etc/fstab.mt6763 @@ -26,3 +26,4 @@ /devices/platform/externdevice* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata /devices/platform/mt_usb* auto vfat defaults voldmanaged=usbotg:auto +/dev/block/zram0 none swap defaults zramsize=55% diff --git a/rootdir/etc/init.mt6763.rc b/rootdir/etc/init.mt6763.rc index 8467343735c7d564953bf43871ddebeb9f0deb11..adc906605452219ae0529d71c448bc5b7c69ee08 100644 --- a/rootdir/etc/init.mt6763.rc +++ b/rootdir/etc/init.mt6763.rc @@ -105,6 +105,10 @@ on fs write /sys/kernel/debug/tracing/trace_marker "E" write /proc/bootprof "INIT:Mount_END" + swapon_all /vendor/etc/fstab.mt6763 + # It might be overwritten by AGO setting if needed + write /proc/sys/vm/swappiness 100 + on late-fs # Wait for keymaster HALs (TEE and StrongBox) exec_start wait_for_strongbox