Hung Nguyen | 9c7d306 | 2024-11-05 15:50:00 -0800 | [diff] [blame] | 1 | # mmd memory management daemon |
| 2 | type mmd, domain; |
| 3 | typeattribute mmd coredomain; |
| 4 | type mmd_exec, system_file_type, exec_type, file_type; |
| 5 | |
| 6 | init_daemon_domain(mmd) |
| 7 | |
Shintaro Kawamura | 9444dab | 2024-11-22 14:05:05 +0900 | [diff] [blame] | 8 | # Set mmd.enabled_aconfig properties. |
| 9 | set_prop(mmd, mmd_prop) |
Shintaro Kawamura | 81c4bae | 2024-11-22 17:37:03 +0900 | [diff] [blame] | 10 | get_prop(mmd, device_config_mmd_native_prop) |
Shintaro Kawamura | 9444dab | 2024-11-22 14:05:05 +0900 | [diff] [blame] | 11 | |
Hung Nguyen | 9c7d306 | 2024-11-05 15:50:00 -0800 | [diff] [blame] | 12 | # mmd binder setup |
| 13 | add_service(mmd, mmd_service) |
| 14 | binder_use(mmd) |
Shintaro Kawamura | 2712c90 | 2024-11-21 11:59:17 +0900 | [diff] [blame] | 15 | |
| 16 | # zram sysfs access |
| 17 | allow mmd sysfs_zram:dir search; |
| 18 | allow mmd sysfs_zram:file rw_file_perms; |
| 19 | |
| 20 | # procfs |
| 21 | allow mmd proc_meminfo:file r_file_perms; |