Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / euicc / src / main / AndroidManifest.xml

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