rosemary: 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:
LuK1337
2023-10-07 16:44:47 +02:00
committed by Matsvei Niaverau
parent 4a2f4468f2
commit ddf15185be
4 changed files with 66 additions and 0 deletions

View File

@@ -324,6 +324,7 @@ PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
PRODUCT_PACKAGES += \
CarrierConfigOverlayRosemary \
FrameworksResOverlayRosemary \
SettingsProviderOverlayRosemary \
SystemUIOverlayRosemary \
TelephonyOverlayRosemary \
TetheringConfigOverlayRosemary \

View File

@@ -0,0 +1,22 @@
//
// Copyright (C) 2019 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.
//
runtime_resource_overlay {
name: "SettingsProviderOverlayRosemary",
sdk_version: "current",
resource_dirs: ["res"],
vendor: true,
}

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!-- Copyright (C) 2019 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.providers.settings.rosemary">
<application android:hasCode="false"/>
<overlay android:targetPackage="com.android.providers.settings"
android:isStatic="true"
android:priority="1"/>
</manifest>

View File

@@ -0,0 +1,22 @@
<?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">Redmi Note 10S</string>
</resources>