Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / euicc / src / main / AndroidManifest.xml
AndroidManifest.xml128 lines · 7.0 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | xmlns:tools="http://schemas.android.com/tools"> |
| 4 | |
| 5 | <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). --> |
| 6 | <!-- This app uses no motion/environment sensors; MAOS withholds the --> |
| 7 | <!-- Sensors permission at install instead of auto-granting it. --> |
| 8 | <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> |
| 9 | |
| 10 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 11 | <!-- Privileged LPA permissions: granted only to the platform-signed LPA; inert when sideloaded. --> |
| 12 | <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" |
| 13 | tools:ignore="ProtectedPermissions" /> |
| 14 | <uses-permission android:name="android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS" |
| 15 | tools:ignore="ProtectedPermissions" /> |
| 16 | <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" |
| 17 | tools:ignore="ProtectedPermissions" /> |
| 18 | <!-- Download progress notifications (DownloadService). Runtime grant on API 33+. --> |
| 19 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 20 | <!-- Telephony is optional hardware; the LPA reports "no eUICC" without it. --> |
| 21 | <uses-feature android:name="android.hardware.telephony" android:required="false" /> |
| 22 | <uses-permission android:name="android.permission.INTERNET" /> |
| 23 | <uses-permission android:name="android.permission.CAMERA" /> |
| 24 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 25 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 26 | <uses-feature android:name="android.hardware.camera.any" android:required="false" /> |
| 27 | |
| 28 | <application |
| 29 | android:allowBackup="true" |
| 30 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 31 | android:icon="@mipmap/ic_launcher" |
| 32 | android:label="@string/app_name" |
| 33 | android:roundIcon="@mipmap/ic_launcher" |
| 34 | android:supportsRtl="true" |
| 35 | android:theme="@style/Theme.General"> |
| 36 | <!-- |
| 37 | **No launcher activity, deliberately.** eSIMs are managed from Settings' own SIM screens, |
| 38 | which reach this app through [LuiActivity] below - the component the platform resolves. |
| 39 | A second icon in the launcher opened the same screen by a route nothing else uses, and an |
| 40 | eSIM manager is not an app a user goes looking for by name. |
| 41 | |
| 42 | `MainActivity` existed only to carry that icon and has been removed with it; LuiActivity |
| 43 | shows the same `Navigation` composable and is reachable, which MainActivity would not |
| 44 | have been. |
| 45 | --> |
| 46 | |
| 47 | <!-- |
| 48 | The LUI the platform opens from Settings. Guarded by BIND_EUICC_SERVICE because |
| 49 | EuiccConnector.isValidEuiccComponent applies that requirement to the resolving |
| 50 | activity, not just to the EuiccService - without it the platform finds no LUI and |
| 51 | the Settings row silently does nothing. It cannot live on MainActivity, since |
| 52 | android:permission constrains the caller and the launcher holds no signature |
| 53 | permission. See LuiActivity. |
| 54 | --> |
| 55 | <activity |
| 56 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 57 | android:name=".platform.LuiActivity" |
| 58 | android:exported="true" |
| 59 | android:permission="android.permission.BIND_EUICC_SERVICE" |
| 60 | android:excludeFromRecents="true" |
| 61 | android:taskAffinity="" |
| 62 | android:theme="@style/Theme.General"> |
| 63 | <intent-filter android:priority="100"> |
| 64 | <action android:name="android.service.euicc.action.MANAGE_EMBEDDED_SUBSCRIPTIONS" /> |
| 65 | <action android:name="android.service.euicc.action.PROVISION_EMBEDDED_SUBSCRIPTION" /> |
| 66 | <category android:name="android.intent.category.DEFAULT" /> |
| 67 | <category android:name="android.service.euicc.category.EUICC_UI" /> |
| 68 | </intent-filter> |
| 69 | </activity> |
| 70 | |
| 71 | <!-- |
| 72 | Standard eSIM universal link handler: |
| 73 | https://esimsetup.android.com/esim_qrcode_provisioning?carddata=<code>. |
| 74 | Scanners fire ACTION_VIEW on this URL and the LPA declaring the host+path |
| 75 | receives it instead of a browser. Deliberately NOT gated by |
| 76 | BIND_EUICC_SERVICE: that permission constrains the caller, and a |
| 77 | third-party app holds no signature permission, so gating this would make |
| 78 | the handoff unopenable. It carries no eUICC capability itself — it only |
| 79 | seeds the normal AddSim/Download flow, which needs no privilege to |
| 80 | display and fails gracefully where there is no eUICC. |
| 81 | --> |
| 82 | <activity |
| 83 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 84 | android:name=".platform.AddEsimActivity" |
| 85 | android:exported="true" |
| 86 | android:excludeFromRecents="true" |
| 87 | android:taskAffinity="" |
| 88 | android:theme="@style/Theme.General"> |
| 89 | <intent-filter android:autoVerify="false"> |
| 90 | <action android:name="android.intent.action.VIEW" /> |
| 91 | <category android:name="android.intent.category.DEFAULT" /> |
| 92 | <category android:name="android.intent.category.BROWSABLE" /> |
| 93 | <data |
| 94 | android:scheme="https" |
| 95 | android:host="esimsetup.android.com" |
| 96 | android:path="/esim_qrcode_provisioning" /> |
| 97 | </intent-filter> |
| 98 | <!-- Raw `lpa:` activation-code deep link alongside the universal link. --> |
| 99 | <intent-filter> |
| 100 | <action android:name="android.intent.action.VIEW" /> |
| 101 | <category android:name="android.intent.category.DEFAULT" /> |
| 102 | <category android:name="android.intent.category.BROWSABLE" /> |
| 103 | <data android:scheme="lpa" /> |
| 104 | </intent-filter> |
| 105 | </activity> |
| 106 | |
| 107 | <service |
| 108 | android:name=".service.EuiccManagerService" |
| 109 | android:exported="true" |
| 110 | android:permission="android.permission.BIND_EUICC_SERVICE"> |
| 111 | <intent-filter android:priority="100"> |
| 112 | <action android:name="android.service.euicc.EuiccService" /> |
| 113 | </intent-filter> |
| 114 | </service> |
| 115 | |
| 116 | <!-- |
| 117 | Foreground lifetime guard for the BPP install phase (shortService: |
| 118 | no extra permission beyond FOREGROUND_SERVICE, ~3 min budget, which |
| 119 | covers a profile install; the wake lock has its own 10-min backstop). |
| 120 | Started by EuiccViewModel around nativeFinishDownload, never exported. |
| 121 | --> |
| 122 | <service |
| 123 | android:name=".service.DownloadService" |
| 124 | android:exported="false" |
| 125 | android:foregroundServiceType="shortService" /> |
| 126 | </application> |
| 127 | |
| 128 | </manifest> |