From e1ea607c7c5bea84e43ee66b1575846de6cba477 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 1 Aug 2024 23:42:12 +0800 Subject: [PATCH] LG8n: Set default Settings.Global.DEVICE_NAME according to HiOS HiOS uses ro.product.product.tran.device.name.default for default device name. Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16 Signed-off-by: dodyirawan85 Signed-off-by: Shirayuki39 --- device.mk | 1 + .../SettingsProviderOverlayLG8n/Android.bp | 9 ++++++++ .../AndroidManifest.xml | 13 +++++++++++ .../res/values/config.xml | 22 +++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 overlay/SettingsProviderOverlayLG8n/Android.bp create mode 100644 overlay/SettingsProviderOverlayLG8n/AndroidManifest.xml create mode 100644 overlay/SettingsProviderOverlayLG8n/res/values/config.xml diff --git a/device.mk b/device.mk index 730640d..f91abfd 100644 --- a/device.mk +++ b/device.mk @@ -345,6 +345,7 @@ PRODUCT_PACKAGES += \ CarrierConfigOverlay \ FrameworksResOverlayLG8n \ SettingsResOverlayLG8n \ + SettingsProviderOverlayLG8n \ SystemUIOverlayLG8n \ TelephonyOverlayLG8n diff --git a/overlay/SettingsProviderOverlayLG8n/Android.bp b/overlay/SettingsProviderOverlayLG8n/Android.bp new file mode 100644 index 0000000..3aff626 --- /dev/null +++ b/overlay/SettingsProviderOverlayLG8n/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2022 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderOverlayLG8n", + vendor: true +} diff --git a/overlay/SettingsProviderOverlayLG8n/AndroidManifest.xml b/overlay/SettingsProviderOverlayLG8n/AndroidManifest.xml new file mode 100644 index 0000000..275ca2a --- /dev/null +++ b/overlay/SettingsProviderOverlayLG8n/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/overlay/SettingsProviderOverlayLG8n/res/values/config.xml b/overlay/SettingsProviderOverlayLG8n/res/values/config.xml new file mode 100644 index 0000000..c5df253 --- /dev/null +++ b/overlay/SettingsProviderOverlayLG8n/res/values/config.xml @@ -0,0 +1,22 @@ + + + + + TECNO POVA 4 Pro +