mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 22:45:11 -04:00
Small changes
- Add m7 and avicii (untested) - Use low_ram target on <2GB devices Silly me, this never did anything due to the git reset... - Update Chromium WebView cherrypick
This commit is contained in:
parent
08ea27fd00
commit
5d14e4b4f7
20 changed files with 631 additions and 229 deletions
|
@ -14,19 +14,20 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Changes various properties to reduce memory usage even on devices with 1GB+ RAM
|
||||
# Changes various properties to reduce memory usage
|
||||
|
||||
# Set lowram options
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.config.low_ram=true \
|
||||
ro.lmk.critical_upgrade=true \
|
||||
ro.lmk.upgrade_pressure=40 \
|
||||
ro.lmk.downgrade_pressure=60 \
|
||||
ro.lmk.kill_heaviest_task=false \
|
||||
config.disable_atlas=true \
|
||||
persist.sys.use_16bpp_alpha=1
|
||||
|
||||
# set threshold to filter unused apps
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
pm.dexopt.downgrade_after_inactive_days=14
|
||||
persist.sys.use_16bpp_alpha=1 \
|
||||
dalvik.vm.madvise-random=true
|
||||
# dalvik.vm.heapgrowthlimit=128m \
|
||||
# dalvik.vm.heapsize=256m
|
||||
|
||||
# Speed profile services and wifi-service to reduce RAM and storage.
|
||||
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
||||
|
@ -34,3 +35,11 @@ PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
|||
# Always preopt extracted APKs to prevent extracting out of the APK for gms
|
||||
# modules.
|
||||
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
|
||||
|
|
|
@ -26,7 +26,6 @@ index f402c86..c84be43 100644
|
|||
|
||||
# Filesystem
|
||||
diff --git a/device.mk b/device.mk
|
||||
index 33c1fc9..8d8c65a 100644
|
||||
--- a/device.mk
|
||||
+++ b/device.mk
|
||||
@@ -24,7 +24,8 @@ PRODUCT_COPY_FILES += \
|
||||
|
@ -40,7 +39,6 @@ index 33c1fc9..8d8c65a 100644
|
|||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
device/asus/grouper/overlay
|
||||
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
|
||||
index d28e4fb..c9ec73a 100644
|
||||
--- a/overlay/frameworks/base/core/res/res/values/config.xml
|
||||
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
|
||||
@@ -219,4 +219,11 @@
|
||||
|
@ -56,10 +54,9 @@ index d28e4fb..c9ec73a 100644
|
|||
+
|
||||
</resources>
|
||||
diff --git a/system.prop b/system.prop
|
||||
index b1d9807..1f31c09 100644
|
||||
--- a/system.prop
|
||||
+++ b/system.prop
|
||||
@@ -12,6 +12,29 @@ ro.sf.lcd_density=213
|
||||
@@ -12,6 +12,27 @@ ro.sf.lcd_density=213
|
||||
# Wi-Fi
|
||||
wifi.interface=wlan0
|
||||
|
||||
|
@ -78,8 +75,6 @@ index b1d9807..1f31c09 100644
|
|||
+dalvik.vm.dex2oat-flags=--no-watch-dog
|
||||
+dalvik.vm.dex2oat-swap=true
|
||||
+debug.hwui.render_dirty_regions=false
|
||||
+persist.debug.wfd.enable=1
|
||||
+persist.sys.force_highendgfx=true
|
||||
+persist.sys.scrollingcache=1
|
||||
+persist.sys.use_16bpp_alpha=1
|
||||
+pm.sleep_mode=1
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
From 3f038f4a5e81a78f286f5557066af271683fadbc Mon Sep 17 00:00:00 2001
|
||||
From: Luca Stefani <luca.stefani.ge1@gmail.com>
|
||||
Date: Thu, 24 Nov 2016 13:31:24 +0100
|
||||
Subject: [PATCH] MediaProvider: Add read storage permission
|
||||
|
||||
* Fixes:
|
||||
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/fs_id
|
||||
|
||||
Change-Id: Id4dd5e287c1162f4c8b7fbb2411b834fe98f2516
|
||||
---
|
||||
AndroidManifest.xml | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
||||
index 05e6d77..2e33a3a 100644
|
||||
--- a/AndroidManifest.xml
|
||||
+++ b/AndroidManifest.xml
|
||||
@@ -13,6 +13,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_MTP" />
|
||||
<uses-permission android:name="android.permission.MANAGE_USERS" />
|
||||
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
|
||||
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
|
||||
<application android:process="android.process.media"
|
||||
android:label="@string/app_label"
|
||||
--
|
||||
2.30.2
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue