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

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

AndroidManifest.xml93 lines · 4.2 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 <!-- Assistant tools (search / product / cart / orders) for openassistant.
11 Signature-level: only apps signed with the Modern Apps key can call. -->
12 <permission
13 android:name="com.vayunmathur.shop.permissions.ACCESS_SHOP"
14 android:protectionLevel="signature" />
15
16 <uses-permission android:name="android.permission.INTERNET" />
17 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
18 <!-- Delivery updates for placed orders (shipped, out for delivery, delivered). -->
19 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
20
21 <!-- Lets the embedded checkout's Payment Request find wallet apps such as Google Pay. -->
22 <queries>
23 <intent>
24 <action android:name="org.chromium.intent.action.PAY" />
25 </intent>
26 <intent>
27 <action android:name="org.chromium.intent.action.IS_READY_TO_PAY" />
28 </intent>
29 <intent>
30 <action android:name="org.chromium.intent.action.UPDATE_PAYMENT_DETAILS" />
31 </intent>
32 </queries>
33
34 <application
35 android:allowBackup="false"
36 android:dataExtractionRules="@xml/data_extraction_rules"
37 android:icon="@mipmap/ic_launcher"
38 android:roundIcon="@mipmap/ic_launcher"
39 android:label="@string/app_name"
40 android:supportsRtl="true"
41 android:theme="@style/Theme.General">
42 <activity
43 android:name=".MainActivity"
44 android:exported="true"
45 android:launchMode="singleTop"
46 android:theme="@style/Theme.General">
47 <intent-filter>
48 <action android:name="android.intent.action.MAIN" />
49 <category android:name="android.intent.category.LAUNCHER" />
50 </intent-filter>
51 <!-- Assistant checkout handoff: prepare-only, opens the cart;
52 checkout itself remains a one-tap user action in the app. -->
53 <intent-filter>
54 <action android:name="android.intent.action.VIEW" />
55 <category android:name="android.intent.category.DEFAULT" />
56 <category android:name="android.intent.category.BROWSABLE" />
57 <data android:scheme="shop" android:host="cart" />
58 </intent-filter>
59 </activity>
60
61 <activity
62 android:name=".intents.SearchProductsIntent"
63 android:exported="true"
64 android:permission="com.vayunmathur.shop.permissions.ACCESS_SHOP"
65 android:theme="@android:style/Theme.NoDisplay" />
66 <activity
67 android:name=".intents.GetProductIntent"
68 android:exported="true"
69 android:permission="com.vayunmathur.shop.permissions.ACCESS_SHOP"
70 android:theme="@android:style/Theme.NoDisplay" />
71 <activity
72 android:name=".intents.GetCartIntent"
73 android:exported="true"
74 android:permission="com.vayunmathur.shop.permissions.ACCESS_SHOP"
75 android:theme="@android:style/Theme.NoDisplay" />
76 <activity
77 android:name=".intents.AddToCartIntent"
78 android:exported="true"
79 android:permission="com.vayunmathur.shop.permissions.ACCESS_SHOP"
80 android:theme="@android:style/Theme.NoDisplay" />
81 <activity
82 android:name=".intents.RemoveFromCartIntent"
83 android:exported="true"
84 android:permission="com.vayunmathur.shop.permissions.ACCESS_SHOP"
85 android:theme="@android:style/Theme.NoDisplay" />
86 <activity
87 android:name=".intents.GetOrdersIntent"
88 android:exported="true"
89 android:permission="com.vayunmathur.shop.permissions.ACCESS_SHOP"
90 android:theme="@android:style/Theme.NoDisplay" />
91 </application>
92
93</manifest>