aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarragh McGee <darraghmcgee20@gmail.com>2019-06-30 14:26:15 +0200
committerDarragh McGee <darraghmcgee20@gmail.com>2019-06-30 14:26:15 +0200
commit97287e858a725099788c0389c750a8b3c5e34475 (patch)
tree1eacefd44ae72b7fbfb62bdd6ac3a5c90354ab94
parent5a4ee490ed02a3c2a640d1b803c6a863a4c7b62f (diff)
oneplus3: AICPify
-rw-r--r--AndroidProducts.mk2
-rw-r--r--aicp.dependencies (renamed from aosip.dependencies)0
-rw-r--r--aicp_oneplus3.mk (renamed from aosip.mk)4
-rw-r--r--device.mk9
-rw-r--r--overlay-aosip/frameworks/base/core/res/res/values/config.xml46
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml43
6 files changed, 50 insertions, 54 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index 93c2c5ec..9448385a 100644
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -14,4 +14,4 @@
# limitations under the License.
PRODUCT_MAKEFILES := \
- $(LOCAL_DIR)/aosip.mk
+ $(LOCAL_DIR)/aicp_oneplus3.mk
diff --git a/aosip.dependencies b/aicp.dependencies
index da83ada9..da83ada9 100644
--- a/aosip.dependencies
+++ b/aicp.dependencies
diff --git a/aosip.mk b/aicp_oneplus3.mk
index 18f70f50..8002e2d1 100644
--- a/aosip.mk
+++ b/aicp_oneplus3.mk
@@ -21,9 +21,9 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, device/oneplus/oneplus3/device.mk)
# Inherit some common AOSiP stuff.
-$(call inherit-product, vendor/aosip/config/common_full_phone.mk)
+$(call inherit-product, vendor/aicp/config/common_full_phone.mk)
-PRODUCT_NAME := aosip_oneplus3
+PRODUCT_NAME := aicp_oneplus3
PRODUCT_DEVICE := oneplus3
PRODUCT_MANUFACTURER := OnePlus
PRODUCT_BRAND := OnePlus
diff --git a/device.mk b/device.mk
index f47c386d..b1ebccc1 100644
--- a/device.mk
+++ b/device.mk
@@ -29,7 +29,6 @@ $(call inherit-product, vendor/oneplus/oneplus3/oneplus3-vendor.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
- $(LOCAL_PATH)/overlay-aosip
# Permissions
PRODUCT_COPY_FILES += \
@@ -243,7 +242,7 @@ PRODUCT_PACKAGES += \
# Doze mode
PRODUCT_PACKAGES += \
- OneplusDoze
+ Doze
# DRM
PRODUCT_PACKAGES += \
@@ -253,7 +252,7 @@ PRODUCT_PACKAGES += \
# Fingerprint sensor
PRODUCT_PACKAGES += \
- OneplusPocketMode \
+ # OneplusPocketMode \
android.hardware.biometrics.fingerprint@2.1-service
# Gatekeeper HAL
@@ -311,9 +310,9 @@ PRODUCT_PACKAGES += \
android.hardware.light@2.0-impl \
android.hardware.light@2.0-service
-# Lineage hardware
+# LiveDisplay
PRODUCT_PACKAGES += \
- libjni_livedisplay
+ vendor.lineage.livedisplay@2.0-service-sdm
# Media
PRODUCT_COPY_FILES += \
diff --git a/overlay-aosip/frameworks/base/core/res/res/values/config.xml b/overlay-aosip/frameworks/base/core/res/res/values/config.xml
deleted file mode 100644
index 427c6ea6..00000000
--- a/overlay-aosip/frameworks/base/core/res/res/values/config.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2013, 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.
-*/
--->
- <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
- <bool name="config_button_brightness_support">true</bool>
- <!-- Hardware keys present on the device, stored as a bit field.
- This integer should equal the sum of the corresponding value for each
- of the following keys present:
- 1 - Home
- 2 - Back
- 4 - Menu
- 8 - Assistant (search)
- 16 - App switch
- 32 - Camera
- 64 - Volume rocker
- For example, a device with Home, Back and Menu keys would set this
- config to 7. -->
- <integer name="config_deviceHardwareKeys">83</integer>
- <!-- Whether notify fingerprint client of successful cancelled authentication -->
- <bool name="config_notifyClientOnFingerprintCancelSuccess">true</bool>
- <!-- Whether device has dash charging support -->
- <bool name="config_hasDashCharger">true</bool>
- <!-- Stop listening to the fingerprint reader when NON-WAKEUP proximity sensor is covered & screen is off.
- config_proximityCheckOnWake must be true. -->
- <bool name="config_proximityCheckOnFingerprintWake">true</bool>
- <!-- Default value for proximity check on screen wake
- NOTE ! - Enable for devices that have a fast response proximity sensor (ideally < 300ms)-->
- <bool name="config_proximityCheckOnWake">true</bool>
- <integer name="config_proximityCheckTimeout">100</integer>
- <bool name="config_proximityCheckOnWakeEnabledByDefault">true</bool>
- </resources> \ No newline at end of file
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 51b5d9b7..def6dccc 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -406,8 +406,51 @@
<!-- Whether the always on display mode is available. -->
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
+ <!-- Whether the display blanks itself when transitioning from a doze to a non-doze state -->
+ <bool name="config_displayBlanksAfterDoze">false</bool>
+
<!-- Control whether the always on display mode is enabled by default. This value will be used
during initialization when the setting is still null. -->
<bool name="config_dozeAlwaysOnEnabled">false</bool>
+ <!-- Should we filter any display modes which are unampped? -->
+ <bool name="config_filterDisplayModes">true</bool
+
+ <!-- Display mode remapping table.
+ If the mode names returned by the backend do not match
+ the predefined and translated strings in the Settings
+ app, they can be remapped here. The format is
+ "oldname:newname", one per entry. -->
+ <string-array name="config_displayModeMappings" translatable="false">
+ <item>default:standard</item>
+ <item>xianyan:dynamic</item>
+ <item>ziran:photography</item>
+ <item>rouhe:basic</item>
+ <item>movie:cinema</item>
+ </string-array>
+
+ <!-- Statusbar Burn in protection -->
+ <bool name="config_statusBarBurnInProtection">true</bool>
+
+ <!-- Smart Pixels -->
+ <bool name="config_enableSmartPixels">true</bool>
+
+ <!-- Override the default detection behavior for the framework method
+ android.view.ViewConfiguration#hasPermanentMenuKey().
+ Valid settings are:
+ 0 - No change. Use the default autodetection behavior.
+ 1 - The device DOES have a permanent menu key; ignore autodetection.
+ 2 - The device DOES NOT have a permanent menu key; ignore autodetection. -->
+ <integer name="config_overrideHasPermanentMenuKey">2</integer
+
+ <!-- Whether device has dash charging support -->
+ <bool name="config_hasDashCharger">true</bool>
+
+<!-- Default state for LiveDisplay -->
+ <bool name="config_liveDisplayAvailable">true</bool>
+
+ <!-- Use default display mode -->
+ <integer name="config_defaultLiveDisplayMode">0</integer>
+
</resources>
+