Skip to content

Commit

Permalink
wahoo: sepolicy: Add missing vendor_radio_prop
Browse files Browse the repository at this point in the history
Add missing vendor_radio_prop:
vendor.radio.pwr.curb_backoff

radio_prop is neverallow since android P.
Move this prop to vendor_radio_prop

Bug: 115943152
Test: Camera function work.
Change-Id: Ia6e9bc68e3e71e14a00bf10718c656eb64b5ea13
(cherry picked from commit be739c6)
  • Loading branch information
samchchang authored and android-build-team Robot committed Nov 30, 2018
1 parent 6c4402d commit 8356cef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sepolicy/vendor/hal_camera_default.te
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ userdebug_or_eng(`
allow hal_camera_default camera_vendor_data_file:dir create_dir_perms;
allow hal_camera_default camera_vendor_data_file:file create_file_perms;
')

get_prop(hal_camera_default, vendor_radio_prop);
1 change: 1 addition & 0 deletions sepolicy/vendor/property_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ persist.radio.snapshot_timer u:object_r:vendor_radio_prop:s0
persist.radio.videopause.mode u:object_r:vendor_radio_prop:s0
persist.radio.VT_ENABLE u:object_r:vendor_radio_prop:s0
persist.radio.VT_HYBRID_ENABLE u:object_r:vendor_radio_prop:s0
vendor.radio.pwr.curb_backoff u:object_r:vendor_radio_prop:s0

# vendor_bluetooth_prop
persist.vendor.bluetooth.a4wp u:object_r:vendor_bluetooth_prop:s0
Expand Down
2 changes: 1 addition & 1 deletion sepolicy/vendor/rild.te
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dontaudit rild diag_device:chr_file rw_file_perms;
allow rild radio_vendor_data_file:dir rw_dir_perms;
allow rild radio_vendor_data_file:file create_file_perms;

get_prop(rild, vendor_radio_prop)
set_prop(rild, vendor_radio_prop)

# Allow vendor native process to read the proc file of xt_qtaguid
allow rild proc_qtaguid_stat:file r_file_perms;

0 comments on commit 8356cef

Please sign in to comment.