sm8250-common: Reapply "Set ro.boot.hardware.revision based on RF version"
ro.boot.hardware.revision is used in fastbootd UI, getvar hw-revision output and Settings app. Set based on the RF version so external tools can use it to flash the correct firmware variant and show the HW variant in Settings. Change-Id: I1adfb6514fdbaa2e5b9782c37d9eaf8112a110fc
This commit is contained in:
@@ -266,6 +266,8 @@ PRODUCT_PACKAGES += \
|
||||
# Init
|
||||
PRODUCT_PACKAGES += \
|
||||
init.class_main.sh \
|
||||
init.oplus.hw.rc \
|
||||
init.oplus.hw.rc.recovery \
|
||||
init.oplus.rc \
|
||||
init.oplus.sh \
|
||||
init.qcom.early_boot.sh \
|
||||
|
||||
@@ -10,6 +10,14 @@ prebuilt_etc {
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.oplus.hw.rc",
|
||||
src: "init.oplus.hw.rc",
|
||||
sub_dir: "init",
|
||||
device_specific: true,
|
||||
recovery_available: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.oplus.rc",
|
||||
src: "init.oplus.rc",
|
||||
|
||||
20
init/init.oplus.hw.rc
Normal file
20
init/init.oplus.hw.rc
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
on property:ro.boot.rf_version=11
|
||||
setprop ro.boot.hardware.revision "CN"
|
||||
|
||||
on property:ro.boot.rf_version=12
|
||||
setprop ro.boot.hardware.revision "TMO"
|
||||
|
||||
on property:ro.boot.rf_version=13
|
||||
setprop ro.boot.hardware.revision "IN"
|
||||
|
||||
on property:ro.boot.rf_version=14
|
||||
setprop ro.boot.hardware.revision "EU"
|
||||
|
||||
on property:ro.boot.rf_version=15
|
||||
setprop ro.boot.hardware.revision "NA"
|
||||
Reference in New Issue
Block a user