android_device_oneplus_dre/sepolicy/private/init_sim_restart.te
egaunnac 61b1fbd7dc dre: Setup sim restart shell script
sm8450 and above have a very annoying SMS receiving bug where for some
carriers it won't work after a device restart if QTI telephony injection
isn't available, but one of the workarounds is to either use airplane
mode toggle or eject the sim card and reinsert it

Instead of doing that? Let's try and automate disabling and enabling the
sim card

EDIT: Some holi/blair devices have this problem too.

Co-authored-by: Marc Bourgoin <themard85@gmail.com>
Change-Id: I76732c2a668ff179e32050aee4abe315de3d9357
2024-08-20 11:20:57 -05:00

14 lines
637 B
Text

type init_sim_restart, domain, coredomain;
type init_sim_restart_exec, system_file_type, exec_type, file_type;
init_daemon_domain(init_sim_restart)
allow init_sim_restart init:unix_stream_socket connectto;
allow init_sim_restart property_socket:sock_file write;
allow init_sim_restart shell_exec:file { execute getattr map read };
allow init_sim_restart toolbox_exec:file { execute execute_no_trans getattr map open read };
allow init_sim_restart radio:binder call;
allow init_sim_restart radio_service:service_manager find;
allow init_sim_restart servicemanager:binder call;
allow init_sim_restart system_file:file execute_no_trans;