vermeer: Set Settings DEVICE.variant

Signed-off-by: Lunark :3 <jvillaltamatos3007@gmail.com>

Change-Id: I53b4ace61cd7eb3f6751bf3dffd8e5ed08722eb3
This commit is contained in:
ByteWave1014
2025-02-18 10:53:48 -05:00
committed by Lunark :3
parent 19b6b90f41
commit 2487ddfc8f
7 changed files with 75 additions and 0 deletions

View File

@@ -10,6 +10,11 @@ $(call inherit-product, device/xiaomi/sm8550-common/common.mk)
# Inherit from the proprietary version
$(call inherit-product, vendor/xiaomi/vermeer/vermeer-vendor.mk)
# Overlay
PRODUCT_PACKAGES += \
SettingsProviderResVermeerPOCO \
SettingsProviderResVermeerRedmi
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)

View File

@@ -0,0 +1,10 @@
//
// Copyright (C) 2025 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "SettingsProviderResVermeerPOCO",
device_specific: true,
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2025 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.vermeer.poco">
<overlay
android:isStatic="true"
android:priority="801"
android:targetPackage="com.android.providers.settings"
android:requiredSystemPropertyName="ro.product.model"
android:requiredSystemPropertyValue="23113RKC6G" />
</manifest>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple">POCO F6 Pro</string>
</resources>

View File

@@ -0,0 +1,10 @@
//
// Copyright (C) 2025 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "SettingsProviderResVermeerRedmi",
device_specific: true,
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2025 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.vermeer.redmi">
<overlay
android:isStatic="true"
android:priority="801"
android:targetPackage="com.android.providers.settings"
android:requiredSystemPropertyName="ro.product.model"
android:requiredSystemPropertyValue="23113RKC6C" />
</manifest>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple">Redmi K70</string>
</resources>