diff options
author | Ahmad Rulim <personal@rulim34.dev> | 2022-12-31 21:50:22 +0700 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-05 22:04:15 +0530 |
commit | 39d12df3fbb341a0fbbea17d372109a8ae81a5be (patch) | |
tree | 28527534ea9f6e93293db4344641a3a5894f407d /rro_overlays/SettingsProviderOverlayS88107BA1 | |
parent | 0be2f0d3f718e7d7b0728af775913bdc0c3777e7 (diff) |
veux: overlay: Set device name based on ro.boot.board_id
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
Diffstat (limited to 'rro_overlays/SettingsProviderOverlayS88107BA1')
3 files changed, 71 insertions, 0 deletions
diff --git a/rro_overlays/SettingsProviderOverlayS88107BA1/Android.bp b/rro_overlays/SettingsProviderOverlayS88107BA1/Android.bp new file mode 100644 index 0000000..c17c7d1 --- /dev/null +++ b/rro_overlays/SettingsProviderOverlayS88107BA1/Android.bp @@ -0,0 +1,21 @@ +// +// Copyright (C) 2021 ArrowOS +// +// 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: "SettingsProviderOverlayS88107BA1", + sdk_version: "current", + product_specific: true, +} diff --git a/rro_overlays/SettingsProviderOverlayS88107BA1/AndroidManifest.xml b/rro_overlays/SettingsProviderOverlayS88107BA1/AndroidManifest.xml new file mode 100644 index 0000000..f3a38ab --- /dev/null +++ b/rro_overlays/SettingsProviderOverlayS88107BA1/AndroidManifest.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2021 ArrowOS + 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.overlay.S88107BA1"> + + <application android:hasCode="false" /> + <overlay android:targetPackage="com.android.providers.settings" + android:requiredSystemPropertyName="ro.boot.board_id" + android:requiredSystemPropertyValue="S88107BA1" + android:isStatic="true" + android:priority="1"/> +</manifest> diff --git a/rro_overlays/SettingsProviderOverlayS88107BA1/res/values/defaults.xml b/rro_overlays/SettingsProviderOverlayS88107BA1/res/values/defaults.xml new file mode 100644 index 0000000..ec256e4 --- /dev/null +++ b/rro_overlays/SettingsProviderOverlayS88107BA1/res/values/defaults.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * Copyright (c) 2015, 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=MANUFACTURER $2=MODEL--> + <string translatable="false" name="def_device_name">Xiaomi POCO X4 Pro 5G</string> + + <!-- Default for Settings.Global.DEVICE_NAME $1=MODEL--> + <string translatable="false" name="def_device_name_simple">POCO X4 Pro 5G</string> + +</resources> |