2015-06-19 19:47:26 +02:00
|
|
|
# idmap, when executed by installd
|
2016-12-10 04:30:39 +01:00
|
|
|
type idmap, domain;
|
2018-09-27 19:21:37 +02:00
|
|
|
type idmap_exec, system_file_type, exec_type, file_type;
|
2015-06-19 19:47:26 +02:00
|
|
|
|
2022-06-10 12:58:21 +02:00
|
|
|
# Allow read + write access to /data/resource-cache
|
2018-06-15 08:08:19 +02:00
|
|
|
allow idmap resourcecache_data_file:file create_file_perms;
|
|
|
|
allow idmap resourcecache_data_file:dir rw_dir_perms;
|
2015-06-19 19:47:26 +02:00
|
|
|
|
|
|
|
# Open and read from target and overlay apk files passed by argument.
|
|
|
|
allow idmap apk_data_file:file r_file_perms;
|
2015-06-22 09:31:25 +02:00
|
|
|
allow idmap apk_data_file:dir search;
|
2017-04-04 18:30:41 +02:00
|
|
|
|
2019-04-16 01:10:02 +02:00
|
|
|
# Allow /data/app/vmdl*.tmp, /data/app-private/vmdl*.tmp files
|
|
|
|
allow idmap { apk_tmp_file apk_private_tmp_file }:file r_file_perms;
|
|
|
|
allow idmap { apk_tmp_file apk_private_tmp_file }:dir search;
|
|
|
|
|
2017-04-04 18:30:41 +02:00
|
|
|
# Allow apps access to /vendor/app
|
|
|
|
r_dir_file(idmap, vendor_app_file)
|
2017-04-06 01:16:13 +02:00
|
|
|
|
|
|
|
# Allow apps access to /vendor/overlay
|
|
|
|
r_dir_file(idmap, vendor_overlay_file)
|
2018-06-15 08:08:19 +02:00
|
|
|
|
|
|
|
# Allow the idmap2d binary to register as a service and communicate via AIDL
|
|
|
|
binder_use(idmap)
|
2019-09-18 13:45:15 +02:00
|
|
|
binder_service(idmap)
|
2018-06-15 08:08:19 +02:00
|
|
|
add_service(idmap, idmap_service)
|