diff options
author | Chris Lu <luchris@google.com> | 2018-11-20 16:25:48 +0800 |
---|---|---|
committer | Raylin Hsu <raylinhsu@google.com> | 2018-11-22 10:04:56 +0000 |
commit | 780392ac2798ba872e992191e030ba51779b7dd5 (patch) | |
tree | f59a29808a40c1d33e33369ed3a0c5e802411181 /sargo | |
parent | 915b9226972afa94ac4cfb27e425092dbb54564e (diff) | |
download | bonito-780392ac2798ba872e992191e030ba51779b7dd5.tar.gz |
bonito: allow HardwareInfoService access
Allow to read display serial number and panel vendor name.
Bug: 117884619
Test: Verify the log
Connect to WIFI
rm -r /data/data/com.google.android.hardwareinfo/
reboot and check logcat TAG "HardwareInfoService"
Change-Id: I92feda3cc20080af7aeda88b543628176d069575
Diffstat (limited to 'sargo')
-rw-r--r-- | sargo/init.sargo.rc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sargo/init.sargo.rc b/sargo/init.sargo.rc index f410ecc0..257a554d 100644 --- a/sargo/init.sargo.rc +++ b/sargo/init.sargo.rc @@ -18,3 +18,8 @@ import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc on init setprop ro.sf.lcd_density 440 + +on property:sys.boot_completed=1 + # HardwareInfo needs to be able to read display info + chmod 444 /sys/devices/platform/soc/soc:qcom,dsi-display@51/panel_info/panel0/serial_number + chmod 444 /sys/devices/platform/soc/soc:qcom,dsi-display@51/panel_info/panel0/panel_vendor_name |