aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AndroidProducts.mk2
-rw-r--r--aicp.dependencies7
-rw-r--r--aicp_polaris.mk (renamed from lineage_polaris.mk)10
-rw-r--r--device.mk3
-rw-r--r--lineage.dependencies6
-rw-r--r--overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml20
-rw-r--r--overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml73
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml42
8 files changed, 58 insertions, 105 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index bdfc20c..42d62df 100644
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -14,4 +14,4 @@
# limitations under the License.
PRODUCT_MAKEFILES := \
- $(LOCAL_DIR)/lineage_polaris.mk
+ $(LOCAL_DIR)/aicp_polaris.mk
diff --git a/aicp.dependencies b/aicp.dependencies
new file mode 100644
index 0000000..1915fbc
--- /dev/null
+++ b/aicp.dependencies
@@ -0,0 +1,7 @@
+[
+ {
+ "repository": "AICP/device_xiaomi_sdm845-common",
+ "target_path": "device/xiaomi/sdm845-common",
+ "branch": "p9.0"
+ }
+]
diff --git a/lineage_polaris.mk b/aicp_polaris.mk
index be9d6be..852c3a0 100644
--- a/lineage_polaris.mk
+++ b/aicp_polaris.mk
@@ -6,11 +6,11 @@
$(call inherit-product, device/xiaomi/polaris/device.mk)
-# Inherit some common Lineage stuff.
-$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
+# Inherit some common AICP stuff.
+$(call inherit-product, vendor/aicp/config/common_full_phone.mk)
# Device identifier. This must come after all inclusions.
-PRODUCT_NAME := lineage_polaris
+PRODUCT_NAME := aicp_polaris
PRODUCT_DEVICE := polaris
PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Mi MIX 2S
@@ -24,3 +24,7 @@ PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_DEVICE="polaris"
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
+
+# AICP Device Maintainers
+PRODUCT_BUILD_PROP_OVERRIDES += \
+ DEVICE_MAINTAINERS="Michele B (Miccia)"
diff --git a/device.mk b/device.mk
index 22e83ec..ceb1787 100644
--- a/device.mk
+++ b/device.mk
@@ -15,8 +15,7 @@ TARGET_SCREEN_WIDTH := 1080
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
- $(LOCAL_PATH)/overlay \
- $(LOCAL_PATH)/overlay-lineage
+ $(LOCAL_PATH)/overlay
# Permissions
PRODUCT_COPY_FILES += \
diff --git a/lineage.dependencies b/lineage.dependencies
deleted file mode 100644
index 262bcc3..0000000
--- a/lineage.dependencies
+++ /dev/null
@@ -1,6 +0,0 @@
-[
- {
- "repository": "android_device_xiaomi_sdm845-common",
- "target_path": "device/xiaomi/sdm845-common"
- }
-]
diff --git a/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml
deleted file mode 100644
index 8a564fa..0000000
--- a/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<!--
- Copyright (C) 2018 The LineageOS 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>
- <!-- Max visible notification icons -->
- <integer name="config_maxVisibleNotificationIcons">6</integer>
- <integer name="config_maxVisibleNotificationIconsWhenDark">7</integer>
-</resources>
diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
deleted file mode 100644
index 87cef62..0000000
--- a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2015-2016 The CyanogenMod Project
- 2017-2018 The LineageOS 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>
- <!-- All the capabilities of the LEDs on this device, stored as a bit field.
- This integer should equal the sum of the corresponding value for each
- of the following capabilities present:
-
- // Device has a color adjustable battery light.
- LIGHTS_RGB_NOTIFICATION_LED = 1
-
- // Device has a color adjustable notification light.
- LIGHTS_RGB_BATTERY_LED = 2
-
- LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
-
- // The notification light has adjustable pulsing capability.
- LIGHTS_PULSATING_LED = 8
-
- // Device has a multi-segment battery light that is able to
- // use the light brightness value to determine how many
- // segments to show (in order to represent battery level).
- LIGHTS_SEGMENTED_BATTERY_LED = 16
-
- // The notification light supports HAL adjustable brightness
- // via the alpha channel.
- // Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
- // then HAL support is not necessary for brightness control. In this case,
- // brightness support will be provided by lineage-sdk through the scaling of
- // RGB color values.
- LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
-
- // Device has a battery light.
- LIGHTS_BATTERY_LED = 64
-
- // The battery light supports HAL adjustable brightness via
- // the alpha channel.
- // Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
- // support is not necessary for brightness control. In this case,
- // brightness support will be provided by lineage-sdk through the scaling of
- // RGB color values.
- LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
-
- For example, a device with notification and battery lights that supports
- pulsating and RGB control would set this config to 75. -->
- <integer name="config_deviceLightCapabilities">232</integer>
-
- <!-- 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>00default:standard</item>
- <item>sRGB_d65:srgb</item>
- <item>srgb_d65:srgb</item>
- </string-array>
-
- <!-- Should we filter any display modes which are unampped? -->
- <bool name="config_filterDisplayModes">true</bool>
-</resources>
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 9c5c5ba..ab8448b 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -213,4 +213,46 @@
<!-- Component name of the combo network location provider. -->
<string name="config_comboNetworkLocationProvider" translatable="false">com.qualcomm.location</string>
+
+ <!-- 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>00default:standard</item>
+ <item>sRGB_d65:srgb</item>
+ <item>srgb_d65:srgb</item>
+ </string-array>
+
+ <!-- Should we filter any display modes which are unampped? -->
+ <bool name="config_filterDisplayModes">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">64</integer>
+
+ <!-- Hardware keys present on the device with the ability to wake, 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_deviceHardwareWakeKeys">64</integer>
</resources>