- Label the chosen/bootloader device-tree node (sysfs path; /proc/device-tree is only a symlink) and /dev/vcio for the native pawlet-hwinfo helper. - Allow pawlet_memtier to exec the vendor shell and toybox. - Let platform_app read ro.vendor.pawlet.hw.* for the hardware info screen.
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
# pawlet-memtier (vendor/pawlet/memtier): early-init oneshot that reads
|
|
# /proc/meminfo, buckets RAM into a tier, writes min_free_kbytes directly
|
|
# and sets vendor.memtier (which vendor_init's own on-property triggers in
|
|
# memtier.rc use to set dalvik.vm.* -- not this domain, vendor_init already
|
|
# has set_prop to dalvik_config_prop). New domain rather than reusing
|
|
# vendor_misc_writer (recoveryboot's pattern) -- that reuse exists only for
|
|
# vendor_misc_writer's specific misc_block_device neverallow carve-out,
|
|
# which doesn't apply here.
|
|
type pawlet_memtier, domain;
|
|
type pawlet_memtier_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
init_daemon_domain(pawlet_memtier)
|
|
|
|
# /proc/meminfo
|
|
allow pawlet_memtier proc_meminfo:file r_file_perms;
|
|
|
|
# it's a /vendor/bin/sh script using toolbox setprop
|
|
allow pawlet_memtier vendor_shell_exec:file rx_file_perms;
|
|
allow pawlet_memtier vendor_toolbox_exec:file rx_file_perms;
|
|
|
|
# /proc/sys/vm/min_free_kbytes
|
|
allow pawlet_memtier proc_min_free_kbytes:file rw_file_perms;
|
|
|
|
# vendor.memtier
|
|
set_prop(pawlet_memtier, vendor_memtier_prop)
|
|
|
|
# logwrapper/log output
|
|
allow pawlet_memtier kmsg_device:chr_file w_file_perms;
|