config: cleanup low ram boot profile
Change-Id: I787ef9e592abfae9054fee1a900b95f5ee32766d
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
runtime_resource_overlay {
|
||||
name: "LowProfileOverlay",
|
||||
certificate: "platform",
|
||||
sdk_version: "current",
|
||||
product_specific: true
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="android.overlay.lowram.target.overlay">
|
||||
<overlay android:isStatic="true" android:priority="600" android:targetName="LowProfileOverlay" android:targetPackage="android"/>
|
||||
|
||||
<application android:hasCode="false" android:label="LowProfileOverlay"/>
|
||||
</manifest>
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2024-2025 Lunaris OS
|
||||
|
||||
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.
|
||||
-->
|
||||
<resources>
|
||||
<!-- The amount to scale fullscreen snapshots for Overview and snapshot starting windows. -->
|
||||
<item name="config_highResTaskSnapshotScale" format="float" type="dimen">0.6</item>
|
||||
</resources>
|
||||
@@ -667,5 +667,5 @@
|
||||
<bool name="config_isDesktopModeDevOptionSupported">true</bool>
|
||||
|
||||
<!-- The amount to scale fullscreen snapshots for Overview and snapshot starting windows. -->
|
||||
<item name="config_highResTaskSnapshotScale" format="float" type="dimen">0.8</item>
|
||||
<item name="config_highResTaskSnapshotScale" format="float" type="dimen">0.7</item>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user