zeus: overlay: Set default Settings.Global.DEVICE_NAME according to MIUI
MIUI uses ro.product.vendor.marketname for default device name. Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
This commit is contained in:
parent
6b2faff44b
commit
9d8fd6ceed
4 changed files with 33 additions and 0 deletions
|
@ -10,6 +10,10 @@ $(call inherit-product, device/xiaomi/sm8450-common/common.mk)
|
|||
# Inherit from the proprietary version
|
||||
$(call inherit-product, vendor/xiaomi/zeus/zeus-vendor.mk)
|
||||
|
||||
# Overlay
|
||||
PRODUCT_PACKAGES += \
|
||||
SettingsProviderResZeus
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
||||
|
|
10
overlay/SettingsProvider/Android.bp
Normal file
10
overlay/SettingsProvider/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// Copyright (C) 2023 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "SettingsProviderResZeus",
|
||||
device_specific: true
|
||||
}
|
10
overlay/SettingsProvider/AndroidManifest.xml
Normal file
10
overlay/SettingsProvider/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!--
|
||||
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.zeus">
|
||||
<overlay android:targetPackage="com.android.providers.settings"
|
||||
android:isStatic="true"
|
||||
android:priority="700"/>
|
||||
</manifest>
|
9
overlay/SettingsProvider/res/values/defaults.xml
Normal file
9
overlay/SettingsProvider/res/values/defaults.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2023 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
|
||||
<string name="def_device_name_simple">Xiaomi 12 Pro</string>
|
||||
</resources>
|
Loading…
Reference in a new issue