mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 13:35:09 +00:00
rosemary: Convert overlays into Runtime Resource Overlays
Signed-off-by: bengris32 <bengris32@protonmail.ch> Change-Id: I9105bbd5b4cb183b9eed02d15d4ca3134fbcb6d2
This commit is contained in:
committed by
Matsvei Niaverau
parent
2936b30620
commit
d2fdc245cd
13
device.mk
13
device.mk
@@ -233,19 +233,20 @@ PRODUCT_COPY_FILES += \
|
||||
|
||||
# Overlays
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay \
|
||||
$(LOCAL_PATH)/overlay-lineage
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
WifiOverlay \
|
||||
TetheringConfigOverlay \
|
||||
CarrierConfigOverlayRosemary
|
||||
|
||||
PRODUCT_ENFORCE_RRO_TARGETS := *
|
||||
|
||||
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay-lineage
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
CarrierConfigOverlayRosemary \
|
||||
FrameworksResOverlayRosemary \
|
||||
TelephonyOverlayRosemary \
|
||||
TetheringConfigOverlayRosemary \
|
||||
WifiOverlayRosemary
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power-service-mediatek
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2009, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. Do not translate.
|
||||
NOTE: The naming convention is "config_camelCaseValue". Some legacy
|
||||
entries do not follow the convention, but all new entries should. -->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<string-array name="config_locationExtraPackageNames" translatable="false">
|
||||
<!-- ImsService -->
|
||||
<item>com.mediatek.ims</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2012, 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">
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height_portrait">93.0px</dimen>
|
||||
|
||||
<!-- Radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius_bottom">106.0px</dimen>
|
||||
<dimen name="rounded_corner_radius_top">106.0px</dimen>
|
||||
</resources>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
runtime_resource_overlay {
|
||||
name: "CarrierConfigOverlayRosemary,
|
||||
name: "CarrierConfigOverlayRosemary",
|
||||
theme: "CarrierConfigOverlay",
|
||||
certificate: "platform",
|
||||
sdk_version: "current",
|
||||
|
||||
6
rro_overlays/FrameworksResOverlayRosemary/Android.bp
Normal file
6
rro_overlays/FrameworksResOverlayRosemary/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
||||
runtime_resource_overlay {
|
||||
name: "FrameworksResOverlayRosemary",
|
||||
sdk_version: "current",
|
||||
resource_dirs: ["res"],
|
||||
vendor: true,
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.frameworksres.overlay.rosemary">
|
||||
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="android"
|
||||
android:isStatic="true"
|
||||
android:priority="1"/>
|
||||
</manifest>
|
||||
6
rro_overlays/TelephonyOverlayRosemary/Android.bp
Normal file
6
rro_overlays/TelephonyOverlayRosemary/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
||||
runtime_resource_overlay {
|
||||
name: "TelephonyOverlayRosemary",
|
||||
sdk_version: "current",
|
||||
resource_dirs: ["res"],
|
||||
vendor: true,
|
||||
}
|
||||
20
rro_overlays/TelephonyOverlayRosemary/AndroidManifest.xml
Normal file
20
rro_overlays/TelephonyOverlayRosemary/AndroidManifest.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.telephony.overlay.rosemary">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="com.android.phone"
|
||||
android:isStatic="true"
|
||||
android:priority="1"/>
|
||||
</manifest>
|
||||
@@ -1,5 +1,5 @@
|
||||
runtime_resource_overlay {
|
||||
name: "TetheringConfigOverlay",
|
||||
name: "TetheringConfigOverlayRosemary",
|
||||
theme: "TetheringConfigOverlay",
|
||||
sdk_version: "current",
|
||||
vendor: true
|
||||
@@ -1,5 +1,5 @@
|
||||
runtime_resource_overlay {
|
||||
name: "WifiOverlay",
|
||||
name: "WifiOverlayRosemary",
|
||||
theme: "WifiOverlay",
|
||||
sdk_version: "current",
|
||||
vendor: true
|
||||
Reference in New Issue
Block a user