19 lines
		
	
	
		
			586 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			586 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# access to perflock
 | 
						|
unix_socket_send(untrusted_app, mpctl, mpdecision)
 | 
						|
unix_socket_connect(untrusted_app, mpctl, mpdecision)
 | 
						|
 | 
						|
# read temp sensors
 | 
						|
allow untrusted_app sysfs_thermal:file r_file_perms;
 | 
						|
allow untrusted_app sysfs_thermal:lnk_file r_file_perms;
 | 
						|
allow untrusted_app sysfs_thermal:dir r_dir_perms;
 | 
						|
 | 
						|
# allow apps to read battery status
 | 
						|
allow untrusted_app sysfs_battery_supply:dir r_dir_perms;
 | 
						|
allow untrusted_app sysfs_battery_supply:file r_file_perms;
 | 
						|
 | 
						|
# test apps needs to communicate with imscm
 | 
						|
# using binder call
 | 
						|
userdebug_or_eng(`
 | 
						|
  binder_call(untrusted_app, imscm)
 | 
						|
')
 |