Pixel Logger: Move logger_app sepolicy to Pixel specific area
In order to minimize the dependency concern, move the logger_app
sepolicy from device specific scope to Pixel scope.
It will include the general definition only, and device specific
definition will stay in the device specific scope (such as
device/google/coral-sepolicy)
Bug: 159650456
Test: Pixel Logger is workable
Change-Id: Iaa7ee3d28ae3c97ad42df68156b14c16099a3cac
diff --git a/logger_app/logger_app.te b/logger_app/logger_app.te
new file mode 100644
index 0000000..e61df02
--- /dev/null
+++ b/logger_app/logger_app.te
@@ -0,0 +1,8 @@
+type logger_app, domain;
+
+userdebug_or_eng(`
+ app_domain(logger_app)
+ net_domain(logger_app)
+
+ allow logger_app app_api_service:service_manager find;
+')
diff --git a/logger_app/seapp_contexts b/logger_app/seapp_contexts
new file mode 100644
index 0000000..b2d35c3
--- /dev/null
+++ b/logger_app/seapp_contexts
@@ -0,0 +1,2 @@
+# Domain for Pixel Logger
+user=_app seinfo=platform name=com.android.pixellogger domain=logger_app type=app_data_file levelFrom=all