rosemary: libinit: Set default USB and Bluetooth name

Change-Id: I65948d08d95b138d9faed262ad3376305b9510a7
This commit is contained in:
althafvly
2022-09-20 11:16:46 +05:30
committed by Matsvei Niaverau
parent e210ef7949
commit 4a2f4468f2

View File

@@ -36,8 +36,10 @@ void set_variant_props(const variant_info_t variant) {
set_ro_build_prop("device", variant.device, true); set_ro_build_prop("device", variant.device, true);
set_ro_build_prop("marketname", variant.marketname, true); set_ro_build_prop("marketname", variant.marketname, true);
set_ro_build_prop("model", variant.model, true); set_ro_build_prop("model", variant.model, true);
property_override("vendor.usb.product_string", variant.marketname, true);
if (access("/system/bin/recovery", F_OK) != 0) { if (access("/system/bin/recovery", F_OK) != 0) {
property_override("bluetooth.device.default_name", variant.marketname, true);
set_ro_build_prop("fingerprint", variant.build_fingerprint); set_ro_build_prop("fingerprint", variant.build_fingerprint);
property_override("ro.bootimage.build.fingerprint", variant.build_fingerprint); property_override("ro.bootimage.build.fingerprint", variant.build_fingerprint);