forked from LineageOS/android_device_google_wahoo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wifi: create the sys property for wlan driver/firmware
Bug: 76220544 Test: No denial error found for selinux Signed-off-by: Ecco Park <[email protected]> Change-Id: If379812a7c8df7fd84beec6734313459938d540e
- Loading branch information
Showing
10 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /vendor/bin/sh | ||
|
||
wlan_driver_version=`cat /sys/kernel/wifi/wlan/driver_version` | ||
setprop sys.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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
type init-qcom-wlan-sh, domain; | ||
type init-qcom-wlan-sh_exec, exec_type, vendor_file_type, file_type; | ||
|
||
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_prop(init-qcom-wlan-sh, vendor_wifi_version) | ||
|
||
# /sys/kernel/wifi/wlan/driver_version and /sys/kernel/wifi/wlan/fw/0/version | ||
allow init-qcom-wlan-sh sysfs_msm_wlan:dir r_dir_perms; | ||
allow init-qcom-wlan-sh sysfs_msm_wlan:file r_file_perms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters