extend app policy to fix wrapped processes
Bug: 15435041
Change-Id: I26209bf8e0b896eac016b5dd1faf6b6e97d72aff
Signed-off-by: Daniel Micay <danielmicay@gmail.com>
diff --git a/app.te b/app.te
index 27ec14b..0c866c5 100644
--- a/app.te
+++ b/app.te
@@ -27,6 +27,11 @@
# Notify zygote of death;
allow appdomain zygote:process sigchld;
+# Notify zygote of the wrapped process PID when using --invoke-with.
+userdebug_or_eng(`
+ allow appdomain zygote:fifo_file write;
+')
+
# Notify shell and adbd of death when spawned via runas for ndk-gdb.
allow appdomain shell:process sigchld;
allow appdomain adbd:process sigchld;