App: Allow wrapped app to send pid
Allow wrapped app to send pid back to zygote.
Bug: 63566721
Bug: 63635227
Test: lunch angler-userdebug && m
Test: lunch angler-user && m
Test: lunch angler-user && m && fastboot flashall && m cts && cts-tradefed run commandAndExit cts-dev -m CtsWrapWrapDebugTestCases
Change-Id: Ie1b41c3eb124aa5ee321c124d0121a0e965f0f0e
diff --git a/private/app.te b/private/app.te
index 79adee0..28895a3 100644
--- a/private/app.te
+++ b/private/app.te
@@ -41,10 +41,10 @@
# Search /storage/emulated tmpfs mount.
allow appdomain tmpfs:dir r_dir_perms;
-userdebug_or_eng(`
- # Notify zygote of the wrapped process PID when using --invoke-with.
- allow appdomain zygote:fifo_file write;
+# Notify zygote of the wrapped process PID when using --invoke-with.
+allow appdomain zygote:fifo_file write;
+userdebug_or_eng(`
# Allow apps to create and write method traces in /data/misc/trace.
allow appdomain method_trace_data_file:dir w_dir_perms;
allow appdomain method_trace_data_file:file { create w_file_perms };