Skip to content

Commit

Permalink
pocket2: Add device swap from stock rom
Browse files Browse the repository at this point in the history
* This seems to be necessary for Android Games to work well.
  • Loading branch information
turtleletortue committed Mar 30, 2021
1 parent 907da0e commit 8ba74d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 2 additions & 3 deletions device.mk
Expand Up @@ -67,7 +67,8 @@ PRODUCT_PACKAGES += \
fstab.mt6580 \
ueventd.mt6580.rc \
init.mt6580.usb.rc \
init.nvdata.rc
init.nvdata.rc \
fstab.enableswap

# Graphics
PRODUCT_PACKAGES += \
Expand Down Expand Up @@ -141,8 +142,6 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \



# Tablet characteristics
PRODUCT_CHARACTERISTICS := tablet

Expand Down
9 changes: 9 additions & 0 deletions rootdir/Android.mk
Expand Up @@ -137,3 +137,12 @@ LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/ueventd.mt6580.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := fstab.enableswap
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/fstab.enableswap
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)

1 change: 1 addition & 0 deletions rootdir/etc/fstab.enableswap
@@ -0,0 +1 @@
/dev/block/zram0 none swap defaults zramsize=75%,swapprio=10

0 comments on commit 8ba74d7

Please sign in to comment.