From 2099b087c57e8c93140015797e97e1090cfd4dbe Mon Sep 17 00:00:00 2001 From: Arian Date: Sun, 20 Aug 2023 20:13:10 +0200 Subject: [PATCH] sm8450-common: rootdir: Set hardware revision property The bootloader sets androidboot.hwversion, use this and set the ro.boot.hardware.revision property in order to show it in settings. Change-Id: I3c6c678bf055091ea9fcb2a1524d321e2c1be043 --- rootdir/etc/init.xiaomi_sm8450.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/etc/init.xiaomi_sm8450.rc b/rootdir/etc/init.xiaomi_sm8450.rc index c91ca90..0c74404 100644 --- a/rootdir/etc/init.xiaomi_sm8450.rc +++ b/rootdir/etc/init.xiaomi_sm8450.rc @@ -129,3 +129,6 @@ service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@ capabilities BLOCK_SUSPEND rlimit rtprio 10 10 socket audio_us_socket_1 seqpacket 0666 system system + +on property:ro.boot.hwversion=* + setprop ro.boot.hardware.revision ${ro.boot.hwversion}