zram: add zram size property

Bug: 200899926
Test: check zram swap and backing device
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ife748938f5e7cfb34c343a3f568c93824f33e8fe
Merged-In: Ife748938f5e7cfb34c343a3f568c93824f33e8fe
This commit is contained in:
Martin Liu 2021-10-05 12:24:18 +00:00 committed by TreeHugger Robot
parent c946f4e563
commit bbb311acfc
3 changed files with 8 additions and 3 deletions

View file

@ -56,6 +56,3 @@ on property:ro.revision=PROTO1.0
# SecureElement eSE2 cts mode
on property:persist.vendor.se.ese2.mode=ctsmode
write /sys/class/st33spi/st33spi/st33spi_state 33
on late-fs
setprop vendor.zram.size 3GB

View file

@ -212,3 +212,7 @@ PRODUCT_PACKAGES += \
# Override default distortion output gain according to UX experiments
PRODUCT_PRODUCT_PROPERTIES += \
vendor.audio.hapticgenerator.distortion.output.gain=0.5
# Set zram size
PRODUCT_VENDOR_PROPERTIES += \
vendor.zram.size=3g

View file

@ -219,3 +219,7 @@ PRODUCT_PACKAGES += \
# Override default distortion output gain according to UX experiments
PRODUCT_PRODUCT_PROPERTIES += \
vendor.audio.hapticgenerator.distortion.output.gain=0.5
# Set zram size
PRODUCT_VENDOR_PROPERTIES += \
vendor.zram.size=3g