mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2025-07-01 15:26:59 +00:00
lemonadep: overlay: Convert to RRO packages
Change-Id: Iae6ef9fa9743bd2447991ad11d38fa184b12981d
This commit is contained in:
parent
7d583b2ff4
commit
1c49159bab
2
Android.bp
Normal file
2
Android.bp
Normal file
@ -0,0 +1,2 @@
|
||||
soong_namespace {
|
||||
}
|
10
device.mk
10
device.mk
@ -24,9 +24,13 @@
|
||||
|
||||
# Overlays
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay \
|
||||
$(LOCAL_PATH)/overlay-lineage
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
OPlusFrameworksResTarget \
|
||||
OPlusSettingsProviderResTarget \
|
||||
OPlusSystemUIResTarget
|
||||
|
||||
# Device uses high-density artwork where available
|
||||
PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
|
||||
@ -43,6 +47,10 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
init.recovery.target.rc
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
||||
|
||||
PRODUCT_SHIPPING_API_LEVEL := 30
|
||||
|
||||
# Inherit from oneplus sm8350-common
|
||||
|
10
overlay/OPlusFrameworksResTarget/Android.bp
Normal file
10
overlay/OPlusFrameworksResTarget/Android.bp
Normal file
@ -0,0 +1,10 @@
|
||||
//
|
||||
// Copyright (C) 2022 The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "OPlusFrameworksResTarget",
|
||||
sdk_version: "current",
|
||||
device_specific: true,
|
||||
}
|
13
overlay/OPlusFrameworksResTarget/AndroidManifest.xml
Normal file
13
overlay/OPlusFrameworksResTarget/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.overlay.oplus.target">
|
||||
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="350"
|
||||
android:targetPackage="android" />
|
||||
</manifest>
|
@ -1,22 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 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.
|
||||
<!--
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. Do not translate. -->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
||||
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
16
overlay/OPlusFrameworksResTarget/res/values/dimens.xml
Normal file
16
overlay/OPlusFrameworksResTarget/res/values/dimens.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- Height of the status bar.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
<dimen name="status_bar_height">138px</dimen>
|
||||
|
||||
<!-- Default radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius">8dp</dimen>
|
||||
|
||||
</resources>
|
10
overlay/OPlusSettingsProviderResTarget/Android.bp
Normal file
10
overlay/OPlusSettingsProviderResTarget/Android.bp
Normal file
@ -0,0 +1,10 @@
|
||||
//
|
||||
// Copyright (C) 2022 The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "OPlusSettingsProviderResTarget",
|
||||
sdk_version: "current",
|
||||
device_specific: true,
|
||||
}
|
13
overlay/OPlusSettingsProviderResTarget/AndroidManifest.xml
Normal file
13
overlay/OPlusSettingsProviderResTarget/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.providers.settings.overlay.oplus.target">
|
||||
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="350"
|
||||
android:targetPackage="com.android.providers.settings" />
|
||||
</manifest>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
|
||||
<string name="def_device_name_simple">OnePlus 9 Pro</string>
|
||||
|
||||
</resources>
|
10
overlay/OPlusSystemUIResTarget/Android.bp
Normal file
10
overlay/OPlusSystemUIResTarget/Android.bp
Normal file
@ -0,0 +1,10 @@
|
||||
//
|
||||
// Copyright (C) 2022 The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "OPlusSystemUIResTarget",
|
||||
sdk_version: "current",
|
||||
device_specific: true,
|
||||
}
|
13
overlay/OPlusSystemUIResTarget/AndroidManifest.xml
Normal file
13
overlay/OPlusSystemUIResTarget/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.overlay.oplus.target">
|
||||
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="350"
|
||||
android:targetPackage="com.android.systemui" />
|
||||
</manifest>
|
14
overlay/OPlusSystemUIResTarget/res/values-land/dimens.xml
Normal file
14
overlay/OPlusSystemUIResTarget/res/values-land/dimens.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- the padding on the start of the statusbar -->
|
||||
<dimen name="status_bar_padding_start">63px</dimen>
|
||||
|
||||
<!-- the padding on the end of the statusbar -->
|
||||
<dimen name="status_bar_padding_end">33px</dimen>
|
||||
|
||||
</resources>
|
14
overlay/OPlusSystemUIResTarget/res/values/config.xml
Normal file
14
overlay/OPlusSystemUIResTarget/res/values/config.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- Respect drawable/rounded.xml intrinsic size for multiple radius corner path customization -->
|
||||
<bool name="config_roundedCornerMultipleRadius">true</bool>
|
||||
|
||||
<!-- The Enrollment Progress bar for UDFPS sensor in pixels -->
|
||||
<integer name="config_udfpsEnrollProgressBar" translatable="false">115</integer>
|
||||
|
||||
</resources>
|
@ -1,21 +1,10 @@
|
||||
<?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.
|
||||
*/
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- Allow CornerHandleView and PathSpecCornerPathRenderer to decouple from corner-radius -->
|
||||
<dimen name="config_rounded_mask_size">156px</dimen>
|
||||
|
||||
@ -32,4 +21,5 @@
|
||||
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
|
||||
|
||||
<dimen name="keyguard_indication_margin_bottom">400px</dimen>
|
||||
|
||||
</resources>
|
@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/assets/res/any/dimens.xml
|
||||
**
|
||||
** Copyright 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>
|
||||
<!-- Height of the status bar.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
<dimen name="status_bar_height">138px</dimen>
|
||||
|
||||
<!-- Default radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius">8dp</dimen>
|
||||
</resources>
|
@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
|
||||
<string name="def_device_name_simple">OnePlus 9 Pro</string>
|
||||
</resources>
|
@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2011, 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>
|
||||
<!-- the padding on the start of the statusbar -->
|
||||
<dimen name="status_bar_padding_start">63px</dimen>
|
||||
|
||||
<!-- the padding on the end of the statusbar -->
|
||||
<dimen name="status_bar_padding_end">33px</dimen>
|
||||
</resources>
|
@ -1,29 +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. -->
|
||||
<resources>
|
||||
<!-- Respect drawable/rounded.xml intrinsic size for multiple radius corner path customization -->
|
||||
<bool name="config_roundedCornerMultipleRadius">true</bool>
|
||||
|
||||
<!-- The Enrollment Progress bar for UDFPS sensor in pixels -->
|
||||
<integer name="config_udfpsEnrollProgressBar" translatable="false">115</integer>
|
||||
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user