rosemary: Convert overlays into Runtime Resource Overlays

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I9105bbd5b4cb183b9eed02d15d4ca3134fbcb6d2
This commit is contained in:
bengris32
2022-09-26 15:30:40 +01:00
committed by Matsvei Niaverau
parent 2936b30620
commit d2fdc245cd
17 changed files with 63 additions and 67 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,5 +1,5 @@
runtime_resource_overlay {
name: "CarrierConfigOverlayRosemary,
name: "CarrierConfigOverlayRosemary",
theme: "CarrierConfigOverlay",
certificate: "platform",
sdk_version: "current",

View File

@@ -0,0 +1,6 @@
runtime_resource_overlay {
name: "FrameworksResOverlayRosemary",
sdk_version: "current",
resource_dirs: ["res"],
vendor: true,
}

View File

@@ -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>

View File

@@ -0,0 +1,6 @@
runtime_resource_overlay {
name: "TelephonyOverlayRosemary",
sdk_version: "current",
resource_dirs: ["res"],
vendor: true,
}

View 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>

View File

@@ -1,5 +1,5 @@
runtime_resource_overlay {
name: "TetheringConfigOverlay",
name: "TetheringConfigOverlayRosemary",
theme: "TetheringConfigOverlay",
sdk_version: "current",
vendor: true

View File

@@ -1,5 +1,5 @@
runtime_resource_overlay {
name: "WifiOverlay",
name: "WifiOverlayRosemary",
theme: "WifiOverlay",
sdk_version: "current",
vendor: true