Modified property name to follow the naming rule

According to go/treble-sysprop-compatibility, vendor relative property
should have prefix "vendor". This patch changes the property name to
follow the naming rule.

Bug: 110327460
Test: WLAN driver and FW version are saved to a new property.

Change-Id: I8d9d70399c3af67b38d82b9c38cf0281a4ad1c35
Merged-In: I8d9d70399c3af67b38d82b9c38cf0281a4ad1c35
This commit is contained in:
chenpaul
2018-12-05 14:57:27 +08:00
committed by Paul Chen
parent f79d38f578
commit 4eb18c9485
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#! /vendor/bin/sh
wlan_driver_version=`cat /sys/kernel/wifi/wlan/driver_version`
setprop sys.wlan.driver.version "$wlan_driver_version"
setprop vendor.wlan.driver.version "$wlan_driver_version"
wlan_fw_version=`cat /sys/kernel/wifi/wlan/fw/0/version`
setprop sys.wlan.firmware.version "$wlan_fw_version"
setprop vendor.wlan.firmware.version "$wlan_fw_version"

View File

@@ -6,7 +6,7 @@ init_daemon_domain(init-qcom-wlan-sh)
allow init-qcom-wlan-sh vendor_shell_exec:file rx_file_perms;
allow init-qcom-wlan-sh vendor_toolbox_exec:file rx_file_perms;
# Set the sys.wlan.driver.version and sys.wlan.firmware.version property
# Set the vendor.wlan.driver.version and vendor.wlan.firmware.version property
set_prop(init-qcom-wlan-sh, vendor_wifi_version)
# /sys/kernel/wifi/wlan/driver_version and /sys/kernel/wifi/wlan/fw/0/version

View File

@@ -25,8 +25,8 @@ persist.radio.atfwd.start u:object_r:atfwd_start_prop:s0
sys.logger.bluetooth u:object_r:bluetooth_log_prop:s0
vendor.powerhal.state u:object_r:power_prop:s0
vendor.powerhal.audio u:object_r:power_prop:s0
sys.wlan.driver.version u:object_r:vendor_wifi_version:s0
sys.wlan.firmware.version u:object_r:vendor_wifi_version:s0
vendor.wlan.driver.version u:object_r:vendor_wifi_version:s0
vendor.wlan.firmware.version u:object_r:vendor_wifi_version:s0
persist.vendor.usb.config u:object_r:vendor_usb_config_prop:s0
vendor.usb.config u:object_r:vendor_usb_config_prop:s0
persist.vendor.charge. u:object_r:vendor_charge_prop:s0