Explorar o código

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
Arian hai 1 ano
pai
achega
b9c2346f04
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      rootdir/etc/init.xiaomi_sm8450.rc

+ 3 - 0
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}