diff --git a/device.mk b/device.mk index 97a04cf..d3da9b2 100644 --- a/device.mk +++ b/device.mk @@ -287,7 +287,16 @@ PRODUCT_PACKAGES += \ SystemUIOverlayVEUX \ WifiOverlayVEUX +PRODUCT_PACKAGES += \ + SettingsProviderOverlay2201116SG \ + SettingsProviderOverlay2201116SC \ + SettingsProviderOverlay2201116SI \ + SettingsProviderOverlay2201116SR \ + SettingsProviderOverlay2201116PG \ + SettingsProviderOverlay2201116PI + PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/overlay/config-odm.xml:$(TARGET_COPY_OUT_ODM)/overlay/config/config.xml \ $(LOCAL_PATH)/overlay/config-vendor.xml:$(TARGET_COPY_OUT_VENDOR)/overlay/config/config.xml # Partitions diff --git a/overlay/SettingsProviderOverlay2201116PG/Android.bp b/overlay/SettingsProviderOverlay2201116PG/Android.bp new file mode 100644 index 0000000..07dcce9 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116PG/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023-2024 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderOverlay2201116PG", + device_specific: true, +} diff --git a/overlay/SettingsProviderOverlay2201116PG/AndroidManifest.xml b/overlay/SettingsProviderOverlay2201116PG/AndroidManifest.xml new file mode 100644 index 0000000..b255ee8 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116PG/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/overlay/SettingsProviderOverlay2201116PG/res/values/defaults.xml b/overlay/SettingsProviderOverlay2201116PG/res/values/defaults.xml new file mode 100644 index 0000000..74834dd --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116PG/res/values/defaults.xml @@ -0,0 +1,11 @@ + + + + + + POCO X4 Pro 5G + + diff --git a/overlay/SettingsProviderOverlay2201116PI/Android.bp b/overlay/SettingsProviderOverlay2201116PI/Android.bp new file mode 100644 index 0000000..ff87d5c --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116PI/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023-2024 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderOverlay2201116PI", + device_specific: true, +} diff --git a/overlay/SettingsProviderOverlay2201116PI/AndroidManifest.xml b/overlay/SettingsProviderOverlay2201116PI/AndroidManifest.xml new file mode 100644 index 0000000..8c60577 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116PI/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/overlay/SettingsProviderOverlay2201116PI/res/values/defaults.xml b/overlay/SettingsProviderOverlay2201116PI/res/values/defaults.xml new file mode 100644 index 0000000..74834dd --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116PI/res/values/defaults.xml @@ -0,0 +1,11 @@ + + + + + + POCO X4 Pro 5G + + diff --git a/overlay/SettingsProviderOverlay2201116SC/Android.bp b/overlay/SettingsProviderOverlay2201116SC/Android.bp new file mode 100644 index 0000000..83bea4a --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SC/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023-2024 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderOverlay2201116SC", + device_specific: true, +} diff --git a/overlay/SettingsProviderOverlay2201116SC/AndroidManifest.xml b/overlay/SettingsProviderOverlay2201116SC/AndroidManifest.xml new file mode 100644 index 0000000..d0f607c --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SC/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/overlay/SettingsProviderOverlay2201116SC/res/values/defaults.xml b/overlay/SettingsProviderOverlay2201116SC/res/values/defaults.xml new file mode 100644 index 0000000..dedd756 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SC/res/values/defaults.xml @@ -0,0 +1,11 @@ + + + + + + Redmi Note 11E Pro + + diff --git a/overlay/SettingsProviderOverlay2201116SG/Android.bp b/overlay/SettingsProviderOverlay2201116SG/Android.bp new file mode 100644 index 0000000..ed5d012 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SG/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023-2024 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderOverlay2201116SG", + device_specific: true, +} diff --git a/overlay/SettingsProviderOverlay2201116SG/AndroidManifest.xml b/overlay/SettingsProviderOverlay2201116SG/AndroidManifest.xml new file mode 100644 index 0000000..384b72f --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SG/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/overlay/SettingsProviderOverlay2201116SG/res/values/defaults.xml b/overlay/SettingsProviderOverlay2201116SG/res/values/defaults.xml new file mode 100644 index 0000000..3e6dcaf --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SG/res/values/defaults.xml @@ -0,0 +1,11 @@ + + + + + + Redmi Note 11 Pro 5G + + diff --git a/overlay/SettingsProviderOverlay2201116SI/Android.bp b/overlay/SettingsProviderOverlay2201116SI/Android.bp new file mode 100644 index 0000000..abeddd6 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SI/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023-2024 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderOverlay2201116SI", + device_specific: true, +} diff --git a/overlay/SettingsProviderOverlay2201116SI/AndroidManifest.xml b/overlay/SettingsProviderOverlay2201116SI/AndroidManifest.xml new file mode 100644 index 0000000..9aba4eb --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SI/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/overlay/SettingsProviderOverlay2201116SI/res/values/defaults.xml b/overlay/SettingsProviderOverlay2201116SI/res/values/defaults.xml new file mode 100644 index 0000000..d6f25b3 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SI/res/values/defaults.xml @@ -0,0 +1,11 @@ + + + + + + Redmi Note 11 Pro+ 5G + + diff --git a/overlay/SettingsProviderOverlay2201116SR/Android.bp b/overlay/SettingsProviderOverlay2201116SR/Android.bp new file mode 100644 index 0000000..88ec835 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SR/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023-2024 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsProviderOverlay2201116SR", + device_specific: true, +} diff --git a/overlay/SettingsProviderOverlay2201116SR/AndroidManifest.xml b/overlay/SettingsProviderOverlay2201116SR/AndroidManifest.xml new file mode 100644 index 0000000..de35933 --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SR/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/overlay/SettingsProviderOverlay2201116SR/res/values/defaults.xml b/overlay/SettingsProviderOverlay2201116SR/res/values/defaults.xml new file mode 100644 index 0000000..3e6dcaf --- /dev/null +++ b/overlay/SettingsProviderOverlay2201116SR/res/values/defaults.xml @@ -0,0 +1,11 @@ + + + + + + Redmi Note 11 Pro 5G + + diff --git a/overlay/config-odm.xml b/overlay/config-odm.xml new file mode 100644 index 0000000..a6bc88e --- /dev/null +++ b/overlay/config-odm.xml @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/rootdir/etc/init.device.rc b/rootdir/etc/init.device.rc index 0dbd92f..1757772 100644 --- a/rootdir/etc/init.device.rc +++ b/rootdir/etc/init.device.rc @@ -27,20 +27,38 @@ service secureelement-hal_1_2 /vendor/bin/hw/vendor.qti.secure_element@1.2-servi # Redmi Note 11 Pro 5G (Global) on early-init && property:ro.boot.board_id=S88006AA1 + setprop bluetooth.device.default_name "Redmi Note 11 Pro 5G" + setprop vendor.usb.product_string "Redmi Note 11 Pro 5G" setprop ro.boot.product.hardware.sku pn557 # Redmi Note 11E Pro on early-init && property:ro.boot.board_id=S88007AA1 + setprop bluetooth.device.default_name "Redmi Note 11E Pro" + setprop vendor.usb.product_string "Redmi Note 11E Pro" setprop ro.boot.product.hardware.sku sn100 +# Redmi Note 11 Pro+ 5G (India) +on early-init && property:ro.boot.board_id=S88007EA1 + setprop bluetooth.device.default_name "Redmi Note 11 Pro+ 5G" + setprop vendor.usb.product_string "Redmi Note 11 Pro+ 5G" + # Redmi Note 11 Pro 5G (Japan) on early-init && property:ro.boot.board_id=S88008BA1 + setprop bluetooth.device.default_name "Redmi Note 11 Pro 5G" + setprop vendor.usb.product_string "Redmi Note 11 Pro 5G" setprop ro.boot.product.hardware.sku sn100 # POCO X4 Pro 5G (Global) on early-init && property:ro.boot.board_id=S88106BA1 + setprop bluetooth.device.default_name "POCO X4 Pro 5G" + setprop vendor.usb.product_string "POCO X4 Pro 5G" setprop ro.boot.product.hardware.sku pn557 +# POCO X4 Pro 5G (India) +on early-init && property:ro.boot.board_id=S88107BA1 + setprop bluetooth.device.default_name "POCO X4 Pro 5G" + setprop vendor.usb.product_string "POCO X4 Pro 5G" + on property:ro.boot.product.hardware.sku=pn557 enable vendor.nfc_hal_service