From 9d8fd6ceed8c3f457188e1add5cb5dd91f4cfda4 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 21 May 2021 15:32:47 +0200 Subject: [PATCH] zeus: overlay: Set default Settings.Global.DEVICE_NAME according to MIUI MIUI uses ro.product.vendor.marketname for default device name. Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16 --- device.mk | 4 ++++ overlay/SettingsProvider/Android.bp | 10 ++++++++++ overlay/SettingsProvider/AndroidManifest.xml | 10 ++++++++++ overlay/SettingsProvider/res/values/defaults.xml | 9 +++++++++ 4 files changed, 33 insertions(+) create mode 100644 overlay/SettingsProvider/Android.bp create mode 100644 overlay/SettingsProvider/AndroidManifest.xml create mode 100644 overlay/SettingsProvider/res/values/defaults.xml diff --git a/device.mk b/device.mk index 812d7f5..1819b18 100644 --- a/device.mk +++ b/device.mk @@ -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) diff --git a/overlay/SettingsProvider/Android.bp b/overlay/SettingsProvider/Android.bp new file mode 100644 index 0000000..59f696c --- /dev/null +++ b/overlay/SettingsProvider/Android.bp @@ -0,0 +1,10 @@ +// +// Copyright (C) 2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderResZeus", + device_specific: true +} \ No newline at end of file diff --git a/overlay/SettingsProvider/AndroidManifest.xml b/overlay/SettingsProvider/AndroidManifest.xml new file mode 100644 index 0000000..d1c940b --- /dev/null +++ b/overlay/SettingsProvider/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/overlay/SettingsProvider/res/values/defaults.xml b/overlay/SettingsProvider/res/values/defaults.xml new file mode 100644 index 0000000..ba49815 --- /dev/null +++ b/overlay/SettingsProvider/res/values/defaults.xml @@ -0,0 +1,9 @@ + + + + + Xiaomi 12 Pro +