summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorMartin Liu <liumartin@google.com>2021-06-11 08:53:13 +0800
committerMartin Liu <liumartin@google.com>2021-06-11 15:07:34 +0800
commit1b860d61d976435f1dbf8f5fa1aca7c95153652f (patch)
tree6c64038427173673586489337751f862bc32da9f /mm
parent43e4d63427a8a574b1f40814a1a1ee10179f1e00 (diff)
MM: create Pixel GKI version mk and rc file
This commit creates Pixel GKI version mk file and basic pixel GKI version of rc file. Bug: 190571517 Bug: 189938926 Bug: 190732106 Test: build Signed-off-by: Martin Liu <liumartin@google.com> Change-Id: If84f7e3eac3260cccadfbde1b59cbdc944a44af0 Merged-In: If84f7e3eac3260cccadfbde1b59cbdc944a44af0
Diffstat (limited to 'mm')
-rw-r--r--mm/device_gki.mk15
-rw-r--r--mm/pixel-mm-gki.rc16
2 files changed, 31 insertions, 0 deletions
diff --git a/mm/device_gki.mk b/mm/device_gki.mk
new file mode 100644
index 0000000..f6b4f0f
--- /dev/null
+++ b/mm/device_gki.mk
@@ -0,0 +1,15 @@
+PRODUCT_COPY_FILES += \
+ hardware/google/pixel/mm/pixel-mm-gki.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/pixel-mm-gki.rc
+
+ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
+PRODUCT_PACKAGES += \
+ mm_logd
+endif
+
+# ZRAM writeback
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.zram.mark_idle_delay_mins=60 \
+ ro.zram.first_wb_delay_mins=1440 \
+ ro.zram.periodic_wb_delay_hours=24
+
+BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/mm/gki
diff --git a/mm/pixel-mm-gki.rc b/mm/pixel-mm-gki.rc
new file mode 100644
index 0000000..188c30c
--- /dev/null
+++ b/mm/pixel-mm-gki.rc
@@ -0,0 +1,16 @@
+# Copyright (C) 2021 The Android Open-Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+on property:sys.boot_completed=1
+ chmod 444 /sys/kernel/debug/page_owner