maos: designate updater for updater_app domain for OTA staging
- Commit
6d3e29dc40828e70ee6735b18fefc6e55c3bedde- Author
- Vayun Mathur <[email protected]>
- When
- 2026-09-27 22:10 UTC (2 months ago)
- Parents
280e478
Diff
build-maos.sh
diff --git a/build-maos.sh b/build-maos.shindex f6e9476..56b5068 100755--- a/build-maos.sh+++ b/build-maos.sh@@ -257,6 +257,7 @@ apply_maos_patches() { "frameworks/opt/telephony:frameworks_opt_telephony.patch" \ "frameworks/libs/systemui:frameworks_libs_systemui.patch" \ "build/release:build_release.patch" \+ "system/sepolicy:system_sepolicy.patch" \ "script:script.patch" \ "packages/apps/Settings:settings.patch" \ "packages/apps/SetupWizard2:setupwizard2.patch" \
patches/system_sepolicy.patch
diff --git a/patches/system_sepolicy.patch b/patches/system_sepolicy.patchnew file mode 100644index 0000000..976783e--- /dev/null+++ b/patches/system_sepolicy.patch@@ -0,0 +1,15 @@+diff --git a/private/seapp_contexts b/private/seapp_contexts+index 86333892a..bc9fd7dd1 100644+--- a/private/seapp_contexts++++ b/private/seapp_contexts+@@ -197,6 +197,10 @@ user=_app seinfo=platform isPrivApp=true name=com.android.permissioncontroller d+ user=_app isPrivApp=true name=com.android.rkpdapp domain=rkpdapp type=privapp_data_file levelFrom=all+ user=_app isPrivApp=true name=app.grapheneos.logviewer domain=logviewer_app type=app_data_file levelFrom=all+ user=_app isPrivApp=true name=app.seamlessupdate.client domain=updater_app type=app_data_file levelFrom=all++# MAOS: designate the bundled updater for the updater_app domain so it++# can stage OTA packages in /data/ota_package (ota_package_file create++# rules live on updater_app; priv_app has none, hence EACCES on download).++user=_app isPrivApp=true name=com.vayunmathur.updater domain=updater_app type=app_data_file levelFrom=all+ user=_app minTargetSdkVersion=37 domain=untrusted_app type=app_data_file levelFrom=all+ user=_app minTargetSdkVersion=34 domain=untrusted_app_34 type=app_data_file levelFrom=all+ user=_app minTargetSdkVersion=32 domain=untrusted_app_32 type=app_data_file levelFrom=all