diff --git a/config/common.mk b/config/common.mk
index 23005444..64f33026 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -106,7 +106,7 @@ PRODUCT_COPY_FILES += \
#Enable transitional log for Privileged permissions
PRODUCT_PRODUCT_PROPERTIES += \
- ro.control_privapp_permissions=enforce
+ ro.control_privapp_permissions=disable
ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true)
# Lineage SDK
diff --git a/config/defaults_common.mk b/config/defaults_common.mk
index 443deed6..f98e750c 100644
--- a/config/defaults_common.mk
+++ b/config/defaults_common.mk
@@ -1,19 +1,3 @@
-# Speed profile services and wifi-service to reduce RAM and storage.
-PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
-PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER := speed-profile
-
-# Do not generate libartd.
-PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
-
-# Strip the local variable table and the local variable type table to reduce
-# the size of the system image. This has no bearing on stack traces, but will
-# leave less information available via JDWP.
-PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
-
-# Always preopt extracted APKs to prevent extracting out of the APK for gms
-# modules.
-PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := true
-
# Use a profile based boot image for this device. Low ram optimized taken from atv devices.
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
PRODUCT_COPY_FILES += vendor/lineage/product/lowram_boot_profiles/preloaded-classes:system/etc/preloaded-classes
@@ -27,8 +11,5 @@ PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.madvise.odexfile.size=31457280\
dalvik.vm.madvise.artfile.size=0
-PRODUCT_PACKAGES += \
- LowProfileOverlay
-
TARGET_PRODUCT_PROP += \
vendor/lineage/config/defaults_common.prop
diff --git a/config/defaults_common.prop b/config/defaults_common.prop
index ddd1bfcb..87853c9f 100644
--- a/config/defaults_common.prop
+++ b/config/defaults_common.prop
@@ -8,9 +8,6 @@ persist.sys.nmm.low_adj=201
persist.sys.nmm.mid_adj=601
persist.sys.nmm.high_adj=801
-# set threshold to filter unused apps
-pm.dexopt.downgrade_after_inactive_days=10
-
# Default heap sizes. Allow up to 256m for large heaps to make sure a single app
# doesn't take all of the RAM.
dalvik.vm.heapgrowthlimit=128m
@@ -25,4 +22,3 @@ ro.nnapi.extensions.deny_on_product=true
# disable RescueParty
persist.sys.disable_rescue=true
-
diff --git a/config/mist.mk b/config/mist.mk
index d7ba900d..487750aa 100644
--- a/config/mist.mk
+++ b/config/mist.mk
@@ -62,9 +62,14 @@ PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := true
# Do not generate libartd.
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
+# Strip the local variable table and the local variable type table to reduce
+# the size of the system image. This has no bearing on stack traces, but will
+# leave less information available via JDWP.
+PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
+
# Speed profile services and wifi-service to reduce RAM and storage.
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
-PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER := speed
+PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER := speed-profile
OVERRIDE_DISABLE_DEXOPT_ALL := false
# Disable async MTE on a few processes
diff --git a/overlay/LowProfileOverlay/Android.bp b/overlay/LowProfileOverlay/Android.bp
deleted file mode 100644
index 858d4232..00000000
--- a/overlay/LowProfileOverlay/Android.bp
+++ /dev/null
@@ -1,6 +0,0 @@
-runtime_resource_overlay {
- name: "LowProfileOverlay",
- certificate: "platform",
- sdk_version: "current",
- product_specific: true
-}
\ No newline at end of file
diff --git a/overlay/LowProfileOverlay/AndroidManifest.xml b/overlay/LowProfileOverlay/AndroidManifest.xml
deleted file mode 100644
index f203bdc4..00000000
--- a/overlay/LowProfileOverlay/AndroidManifest.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/overlay/LowProfileOverlay/res/values/config.xml b/overlay/LowProfileOverlay/res/values/config.xml
deleted file mode 100644
index 34fe9964..00000000
--- a/overlay/LowProfileOverlay/res/values/config.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
- - 0.6
-
\ No newline at end of file
diff --git a/overlay/common/frameworks/base/core/res/res/values/config.xml b/overlay/common/frameworks/base/core/res/res/values/config.xml
index 1bb52e3d..25197c84 100644
--- a/overlay/common/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/common/frameworks/base/core/res/res/values/config.xml
@@ -667,5 +667,5 @@
true
- - 0.8
+ - 0.7