miatoll: Convert overlays to RROs

Change-Id: I3cf5c896c713a32b3206acdb83b9d17fd21a1dee
This commit is contained in:
Alexander Winkowski 2022-04-24 12:15:26 +00:00
parent 6d749e99cd
commit 9ff8b577e4
No known key found for this signature in database
GPG Key ID: 72762A66704CDE44
10 changed files with 72 additions and 52 deletions

View File

@ -31,8 +31,9 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_nfc/com.nxp.mifare.xml frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_nfc/com.nxp.mifare.xml
# Overlays # Overlays
DEVICE_PACKAGE_OVERLAYS += \ PRODUCT_PACKAGES += \
$(LOCAL_PATH)/overlay MiatollFrameworks \
MiatollSystemUI
# Rootdir # Rootdir
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \

View File

@ -0,0 +1,9 @@
//
// Copyright (C) 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "MiatollFrameworks",
vendor: true,
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.miatoll">
<overlay
android:isStatic="true"
android:priority="300"
android:targetPackage="android" />
</manifest>

View File

@ -1,15 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2021 The LineageOS Project Copyright (C) 2022 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: Apache-2.0
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> <resources>
@ -252,4 +244,5 @@
<item>760</item> <!-- sensorLocationY --> <item>760</item> <!-- sensorLocationY -->
<item>100</item> <!-- sensorRadius --> <item>100</item> <!-- sensorRadius -->
</array> </array>
</resources> </resources>

View File

@ -1,17 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2021 The LineageOS Project Copyright (C) 2022 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: Apache-2.0
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> <resources>
<!-- Height of the status bar in portrait --> <!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">102px</dimen> <dimen name="status_bar_height_portrait">102px</dimen>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="utf-8"?>
<device xmlns:android="http://schemas.android.com/apk/res/android" name="Android"> <device name="Android">
<item name="battery.capacity">5020</item> <item name="battery.capacity">5020</item>
<array name="cpu.clusters.cores"> <array name="cpu.clusters.cores">
<value>6</value> <value>6</value>

View File

@ -0,0 +1,9 @@
//
// Copyright (C) 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "MiatollSystemUI",
vendor: true,
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.systemui.miatoll">
<overlay
android:isStatic="true"
android:priority="300"
android:targetPackage="com.android.systemui" />
</manifest>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<dimen name="rounded_corner_content_padding">16dp</dimen>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">760px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">760px</dimen>
</resources>

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, 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>
<dimen name="rounded_corner_content_padding">16dp</dimen>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">760px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">760px</dimen>
</resources>