Skip to content
Snippets Groups Projects
Commit 0a807828 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes I1a468e7c,I4d0d8896

* changes:
  hal_wifi: Allow HAL to reload wifi firmware
  hal_wifi: Allow system_server to access wifi HIDL services
parents 35aa81ad 85e3e7d6
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@ type hal_wifi_exec, exec_type, file_type;
## hwbinder access
hwbinder_use(hal_wifi)
## call into wificond process (callbacks)
binder_call(hal_wifi, wificond)
## call into system_server process (for invoking callbacks)
binder_call(hal_wifi, system_server)
r_dir_file(hal_wifi, proc_net)
r_dir_file(hal_wifi, sysfs_type)
......@@ -20,3 +20,5 @@ allow hal_wifi self:capability { net_admin net_raw };
allow hal_wifi self:netlink_socket create_socket_perms_no_ioctl;
# newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
allow hal_wifi self:netlink_generic_socket create_socket_perms_no_ioctl;
# hal_wifi writes firmware paths to this file.
allow hal_wifi sysfs_wlan_fwpath:file { w_file_perms };
......@@ -146,13 +146,6 @@ allow system_server surfaceflinger:unix_stream_socket { read write setopt };
# Perform Binder IPC.
binder_use(system_server)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_light)
binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_power)
binder_call(system_server, hal_thermal)
binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vr)
binder_call(system_server, { appdomain ephemeral_app })
binder_call(system_server, binderservicedomain)
binder_call(system_server, dumpstate)
......@@ -163,6 +156,18 @@ binder_call(system_server, netd)
binder_call(system_server, wificond)
binder_service(system_server)
# Perform HwBinder IPC.
hwbinder_use(system_server)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_light)
binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_power)
binder_call(system_server, hal_thermal)
binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vr)
binder_call(system_server, hal_wifi)
binder_call(system_server, wpa)
# Ask debuggerd to dump backtraces for native stacks of interest.
#
# This is derived from the list that system server defines as interesting native processes
......
......@@ -5,10 +5,6 @@ type wificond_exec, exec_type, file_type;
binder_use(wificond)
binder_call(wificond, system_server)
hwbinder_use(wificond)
binder_call(wificond, hal_wifi)
binder_call(wificond, wpa)
allow wificond wificond_service:service_manager { add find };
# wificond writes firmware paths to this file.
......
......@@ -26,7 +26,7 @@ binder_use(wpa)
# HIDL interface exposed by WPA.
hwbinder_use(wpa)
binder_call(wpa, wificond)
binder_call(wpa, system_server)
# Create a socket for receiving info from wpa
allow wpa wpa_socket:dir create_dir_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment