mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_miatoll.git
synced 2025-05-09 23:57:22 +09:00
miatoll: Convert overlays to RROs
Change-Id: I3cf5c896c713a32b3206acdb83b9d17fd21a1dee
This commit is contained in:
parent
6d749e99cd
commit
9ff8b577e4
@ -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 += \
|
||||||
|
9
overlay/MiatollFrameworks/Android.bp
Normal file
9
overlay/MiatollFrameworks/Android.bp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "MiatollFrameworks",
|
||||||
|
vendor: true,
|
||||||
|
}
|
13
overlay/MiatollFrameworks/AndroidManifest.xml
Normal file
13
overlay/MiatollFrameworks/AndroidManifest.xml
Normal 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>
|
@ -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>
|
@ -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>
|
||||||
|
|
@ -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>
|
9
overlay/MiatollSystemUI/Android.bp
Normal file
9
overlay/MiatollSystemUI/Android.bp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "MiatollSystemUI",
|
||||||
|
vendor: true,
|
||||||
|
}
|
13
overlay/MiatollSystemUI/AndroidManifest.xml
Normal file
13
overlay/MiatollSystemUI/AndroidManifest.xml
Normal 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>
|
17
overlay/MiatollSystemUI/res/values/dimens.xml
Normal file
17
overlay/MiatollSystemUI/res/values/dimens.xml
Normal 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>
|
@ -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>
|
|
Loading…
x
Reference in New Issue
Block a user