1 # goldfish logcat service: runs logcat -Q in logpersist domain 2 3 # See global logcat.te/logpersist.te, only set for eng & userdebug, 4 # allow for all builds in a non-conflicting manner. 5 6 domain_auto_trans(init, logcat_exec, logpersist) 7 8 # Read from logd. 9 unix_socket_connect(logpersist, logdr, logd) 10 11 # Write to /dev/ttyS2 and /dev/ttyGF2. 12 allow logpersist serial_device:chr_file { write open }; 13 get_prop(logpersist, qemu_cmdline) 14