Modern Apps git

← MAOS.git

maos: add sysconfig granting NetworkLocation Doze/Data-Saver/location exemptions

Commit
1010c031f99245c0daac1f39a2f5ddfd42c8ca63
Author
Vayun Mathur <[email protected]>
When
2026-08-09 22:01 UTC (3 months ago)
Parents
a460f9d

Diff

sysconfig-modern-apps.xml
diff --git a/sysconfig-modern-apps.xml b/sysconfig-modern-apps.xmlnew file mode 100644index 0000000..6fe2df5--- /dev/null+++ b/sysconfig-modern-apps.xml@@ -0,0 +1,17 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+  Sysconfig for Modern Apps headless system services.+  Copied to /product/etc/sysconfig/ by modern_apps.mk.++  NetworkLocation (com.vayunmathur.networklocation) replaces GrapheneOS's NetworkLocation+  module and must keep running in the background to service location/geocoder requests. These+  entries mirror GrapheneOS's own networklocation sysconfig so the app is:+    - allow-in-power-save        exempt from Doze app-standby (runs during idle windows)+    - allow-in-data-usage-save   exempt from Data Saver background-data restrictions+    - allow-unthrottled-location exempt from the background location throttle+-->+<config>+    <allow-in-power-save package="com.vayunmathur.networklocation" />+    <allow-in-data-usage-save package="com.vayunmathur.networklocation" />+    <allow-unthrottled-location package="com.vayunmathur.networklocation" />+</config>