Skip to content

Instantly share code, notes, and snippets.

@ganadist
Last active February 2, 2022 15:56
Show Gist options
  • Save ganadist/059c1c651474971d383fc4bcda2801d0 to your computer and use it in GitHub Desktop.
Save ganadist/059c1c651474971d383fc4bcda2801d0 to your computer and use it in GitHub Desktop.
Ram-Plus implementation from Galaxy Fold 3 (SM-F926N)
### /vendor/etc/fstab.ramplus
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
# SWAP
/dev/block/zram0 none swap defaults zramsize=2147483648,auto_configure
### /vendor/etc/init/init.ramplus.rc
# KERNEL CORE MEMORY
on property:sys.boot_completed=1
swapon_all /vendor/etc/fstab.ramplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment