Enable AOD on Moto Razr

This commit is contained in:
Pierre-Hugues Husson 2021-03-07 00:50:20 +01:00
parent cefb2f6490
commit c41c759468
4 changed files with 31 additions and 0 deletions

8
Moto/Razr/Android.mk Normal file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-moto-razr
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,14 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.moto.razr"
android:versionCode="1"
android:versionName="1.0">
<!--
TESTS: Ignore ro.vendor.product.name
Avoid issues with modified vendors
-->
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.product.name"
android:requiredSystemPropertyValue="+*olson_retail"
android:priority="213"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<integer name="config_screenBrightnessDoze">3</integer>
</resources>

View file

@ -66,6 +66,7 @@ PRODUCT_PACKAGES += \
treble-overlay-moto-one \
treble-overlay-moto-one-action \
treble-overlay-moto-onehyper \
treble-overlay-moto-razr \
treble-overlay-mtk-ims \
treble-overlay-nokia-b2n-7plus \
treble-overlay-nokia-ctl-7-1 \