Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / web / src / main / AndroidManifest.xml
AndroidManifest.xml84 lines · 4.6 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.INTERNET" /> |
| 11 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 12 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 13 | <uses-permission android:name="android.permission.ACCESS_LOCAL_NETWORK" /> |
| 14 | <uses-permission android:name="android.permission.CAMERA" /> |
| 15 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
| 16 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
| 17 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 18 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 19 | <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> |
| 20 | <uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" /> |
| 21 | <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> |
| 22 | <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" /> |
| 23 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" /> |
| 24 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> |
| 25 | |
| 26 | <!-- Camera is only used for WebRTC/site capture when a page asks; not required hardware. --> |
| 27 | <uses-feature android:name="android.hardware.camera" android:required="false" /> |
| 28 | |
| 29 | <application |
| 30 | android:allowBackup="true" |
| 31 | android:backupAgent=".platform.AppBackupAgent" |
| 32 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 33 | android:icon="@mipmap/ic_launcher" |
| 34 | android:label="@string/app_name" |
| 35 | android:roundIcon="@mipmap/ic_launcher" |
| 36 | android:supportsRtl="true" |
| 37 | android:networkSecurityConfig="@xml/network_security_config" |
| 38 | android:theme="@style/Theme.Web" |
| 39 | tools:replace="android:networkSecurityConfig"> |
| 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=".MainActivity" |
| 44 | android:exported="true" |
| 45 | android:theme="@style/Theme.Web" |
| 46 | android:launchMode="singleTop"> |
| 47 | <intent-filter> |
| 48 | <action android:name="android.intent.action.MAIN" /> |
| 49 | <category android:name="android.intent.category.LAUNCHER" /> |
| 50 | <category android:name="android.intent.category.APP_BROWSER" /> |
| 51 | </intent-filter> |
| 52 | <intent-filter> |
| 53 | <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> |
| 54 | <category android:name="android.intent.category.DEFAULT" /> |
| 55 | </intent-filter> |
| 56 | <intent-filter> |
| 57 | <action android:name="android.intent.action.VIEW" /> |
| 58 | <category android:name="android.intent.category.DEFAULT" /> |
| 59 | <category android:name="android.intent.category.BROWSABLE" /> |
| 60 | <data android:scheme="http" /> |
| 61 | <data android:scheme="https" /> |
| 62 | </intent-filter> |
| 63 | </activity> |
| 64 | |
| 65 | <!-- |
| 66 | Empty taskAffinity keeps installed sites out of the browser's task, and |
| 67 | documentLaunchMode gives each one a task of its own keyed off the intent's data URI - |
| 68 | the site's start URL - so relaunching a site returns to its existing task instead of |
| 69 | stacking a duplicate. Both have to be declared here rather than as intent flags, |
| 70 | because shortcuts already pinned to the home screen carry the old flags forever. |
| 71 | documentLaunchMode is ignored unless launchMode is the default "standard". |
| 72 | --> |
| 73 | <activity |
| 74 | android:name=".platform.PwaActivity" |
| 75 | android:exported="true" |
| 76 | android:theme="@style/Theme.Web" |
| 77 | android:taskAffinity="" |
| 78 | android:documentLaunchMode="intoExisting" |
| 79 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"> |
| 80 | </activity> |
| 81 | |
| 82 | </application> |
| 83 | |
| 84 | </manifest> |