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

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

AndroidManifest.xml121 lines · 6.1 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 <uses-permission android:name="android.permission.INTERNET" />
6 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
7 <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
8 <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
9 <uses-permission android:name="android.permission.ENFORCE_UPDATE_OWNERSHIP" />
10 <!-- Silent background updates: SessionInstaller commits with USER_ACTION_NOT_REQUIRED,
11 which the system only honours for holders of this (normal, auto-granted) permission
12 on API 33+ targets. Without it every background commit degrades to a confirmation
13 prompt the background job cannot answer, so nothing ever installs (#898). -->
14 <uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" />
15 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
16 tools:ignore="QueryAllPackagesPermission" />
17 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
18 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
19 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
20
21 <!-- Leanback is supported, not required: one APK serves phones and TVs. Without these,
22 a TV launcher never lists the app; with required="true" phones would lose it. -->
23 <uses-feature
24 android:name="android.software.leanback"
25 android:required="false" />
26 <uses-feature
27 android:name="android.hardware.touchscreen"
28 android:required="false" />
29
30 <application
31 android:allowBackup="true"
32 android:banner="@drawable/tv_banner"
33 android:dataExtractionRules="@xml/data_extraction_rules"
34 android:icon="@mipmap/ic_launcher"
35 android:label="@string/app_name"
36 android:roundIcon="@mipmap/ic_launcher"
37 android:supportsRtl="true"
38 android:theme="@style/Theme.General">
39
40 <provider
41 android:name="androidx.core.content.FileProvider"
42 android:authorities="${applicationId}.fileprovider"
43 android:exported="false"
44 android:grantUriPermissions="true">
45 <meta-data
46 android:name="android.support.FILE_PROVIDER_PATHS"
47 android:resource="@xml/file_paths" />
48 </provider>
49
50 <activity
51 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
52 android:name=".MainActivity"
53 android:exported="true"
54 android:theme="@style/Theme.General">
55 <intent-filter>
56 <action android:name="android.intent.action.MAIN" />
57 <category android:name="android.intent.category.LAUNCHER" />
58 </intent-filter>
59 <intent-filter>
60 <action android:name="android.intent.action.VIEW" />
61 <category android:name="android.intent.category.DEFAULT" />
62 <category android:name="android.intent.category.BROWSABLE" />
63 <data android:scheme="market" />
64 </intent-filter>
65 <intent-filter android:autoVerify="false">
66 <action android:name="android.intent.action.VIEW" />
67 <category android:name="android.intent.category.DEFAULT" />
68 <category android:name="android.intent.category.BROWSABLE" />
69 <data android:scheme="https" android:host="play.google.com" android:pathPrefix="/store/apps/details" />
70 </intent-filter>
71 <intent-filter android:autoVerify="false">
72 <action android:name="android.intent.action.VIEW" />
73 <category android:name="android.intent.category.DEFAULT" />
74 <category android:name="android.intent.category.BROWSABLE" />
75 <!-- Plain /packages/<pkg> listing URLs. -->
76 <data
77 android:scheme="https"
78 android:host="f-droid.org"
79 android:pathPrefix="/packages/" />
80 <!-- Localised /<locale>/packages/<pkg>/ listing URLs. -->
81 <data
82 android:scheme="https"
83 android:host="f-droid.org"
84 android:pathPattern="/.*/packages/.*" />
85 </intent-filter>
86 </activity>
87
88 <!--
89 TV entry: a separate activity carrying only LEANBACK_LAUNCHER, so the TV row
90 opens the D-pad UI instead of the phone pager. Separate activity (not a second
91 filter on MainActivity): split filters on one activity build separate resolve
92 entries that confuse launcher resolution (the tvlauncher HOME lesson).
93 -->
94 <activity
95 android:name=".tv.TvMainActivity"
96 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
97 android:exported="true"
98 android:launchMode="singleTask"
99 android:screenOrientation="landscape"
100 android:theme="@style/Theme.General">
101 <intent-filter>
102 <action android:name="android.intent.action.MAIN" />
103 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
104 </intent-filter>
105 </activity>
106
107 <service
108 android:name="androidx.work.impl.foreground.SystemForegroundService"
109 android:foregroundServiceType="dataSync"
110 tools:node="merge" />
111
112 <receiver
113 android:name=".data.installer.InstallStatusReceiver"
114 android:exported="false">
115 <intent-filter>
116 <action android:name="com.vayunmathur.appstore.INSTALL_STATUS" />
117 </intent-filter>
118 </receiver>
119
120 </application>
121</manifest>