mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 03:40:35 +00:00
Move /data/misc/radio to /data/vendor/radio as per treble rules
1) Modify the sepolicy to use /data/vendor partition to hold vendor radio data. 2) Modify Dumpstate to access /data/vendor for logging. Test: Basic telephony sanity with radio enforce mode Bug: 36736902 Bug: 36717606 Change-Id: I1f8f1026189c1262cfe0af251451e0efcc98c7f7
This commit is contained in:
committed by
Jayachandran Chinnakkannu
parent
a05b888385
commit
86b6fcc8a6
@@ -65,8 +65,8 @@ void DumpstateDevice::dumpModem(int fd, int fdModem)
|
||||
std::string diagLogDir = "/data/vendor/radio/diag_logs/logs";
|
||||
std::vector<std::string> rilAndNetmgrLogs
|
||||
{
|
||||
"/data/misc/radio/ril_log",
|
||||
"/data/misc/radio/ril_log_old",
|
||||
"/data/vendor/radio/ril_log",
|
||||
"/data/vendor/radio/ril_log_old",
|
||||
"/data/vendor/netmgr/netmgr_log",
|
||||
"/data/vendor/netmgr/netmgr_log_old"
|
||||
};
|
||||
|
||||
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -289,7 +289,6 @@
|
||||
/vendor/lib/dsp/fastrpc_shell_0 u:object_r:hexagon_halide_file:s0
|
||||
|
||||
# data files
|
||||
/data/misc/radio(/.*)? u:object_r:radio_data_file:s0
|
||||
/data/vendor/netmgr(/.*)? u:object_r:netmgr_data_file:s0
|
||||
/data/vendor/location(/.*)? u:object_r:location_data_file:s0
|
||||
/data/ramdump(/.*)? u:object_r:ramdump_data_file:s0
|
||||
|
||||
4
sepolicy/vendor/init_radio.te
vendored
4
sepolicy/vendor/init_radio.te
vendored
@@ -7,5 +7,5 @@ init_daemon_domain(init_radio)
|
||||
allow init_radio vendor_shell_exec:file rx_file_perms;
|
||||
allow init_radio vendor_toolbox_exec:file rx_file_perms;
|
||||
|
||||
allow init_radio radio_data_file:dir create_dir_perms;
|
||||
allow init_radio radio_data_file:file create_file_perms;
|
||||
allow init_radio radio_vendor_data_file:dir create_dir_perms;
|
||||
allow init_radio radio_vendor_data_file:file create_file_perms;
|
||||
|
||||
3
sepolicy/vendor/rild.te
vendored
3
sepolicy/vendor/rild.te
vendored
@@ -22,3 +22,6 @@ allow rild time_daemon:unix_stream_socket connectto;
|
||||
userdebug_or_eng(`
|
||||
domain_auto_trans(rild, smlog_dump_exec, smlog_dump)
|
||||
')
|
||||
|
||||
allow rild radio_vendor_data_file:dir rw_dir_perms;
|
||||
allow rild radio_vendor_data_file:file create_file_perms;
|
||||
|
||||
2
sepolicy/vendor/smlog_dump.te
vendored
2
sepolicy/vendor/smlog_dump.te
vendored
@@ -8,7 +8,7 @@ userdebug_or_eng(`
|
||||
r_dir_file(smlog_dump, sysfs_rmtfs)
|
||||
|
||||
allow smlog_dump diag_device:chr_file rw_file_perms;
|
||||
allow smlog_dump radio_data_file:file { append read write };
|
||||
allow smlog_dump radio_vendor_data_file:file { append read write };
|
||||
allow smlog_dump rild:fd use;
|
||||
allow smlog_dump rild:fifo_file { read write };
|
||||
allow smlog_dump rild:unix_stream_socket { read write };
|
||||
|
||||
Reference in New Issue
Block a user