Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / translate / src / main / AndroidManifest.xml
AndroidManifest.xml75 lines · 3.5 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | |
| 4 | <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). --> |
| 5 | <!-- This app uses no motion/environment sensors; MAOS withholds the --> |
| 6 | <!-- Sensors permission at install instead of auto-granting it. --> |
| 7 | <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> |
| 8 | |
| 9 | <!-- NLLB model downloads are network fetches: declare INTERNET directly --> |
| 10 | <!-- instead of riding it transitively from :library:downloadservice. --> |
| 11 | <uses-permission android:name="android.permission.INTERNET" /> |
| 12 | |
| 13 | <uses-permission android:name="android.permission.CAMERA" /> |
| 14 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
| 15 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| 16 | <!-- ModelDownloadWorker (downloadservice) foreground dataSync promotion. --> |
| 17 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 18 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /> |
| 19 | |
| 20 | <permission |
| 21 | android:name="com.vayunmathur.translate.permissions.ACCESS_TRANSLATE" |
| 22 | android:protectionLevel="signature" /> |
| 23 | |
| 24 | <uses-feature android:name="android.hardware.camera.any" android:required="false" /> |
| 25 | |
| 26 | <queries> |
| 27 | <intent> |
| 28 | <action android:name="android.speech.RecognitionService" /> |
| 29 | </intent> |
| 30 | </queries> |
| 31 | |
| 32 | <application |
| 33 | android:allowBackup="true" |
| 34 | android:backupAgent=".platform.AppBackupAgent" |
| 35 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 36 | android:icon="@mipmap/ic_launcher" |
| 37 | android:label="@string/app_name" |
| 38 | android:roundIcon="@mipmap/ic_launcher" |
| 39 | android:supportsRtl="true" |
| 40 | android:theme="@style/Theme.General"> |
| 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.General"> |
| 46 | <intent-filter> |
| 47 | <action android:name="android.intent.action.MAIN" /> |
| 48 | <category android:name="android.intent.category.LAUNCHER" /> |
| 49 | </intent-filter> |
| 50 | <intent-filter> |
| 51 | <action android:name="android.intent.action.PROCESS_TEXT" /> |
| 52 | <category android:name="android.intent.category.DEFAULT" /> |
| 53 | <data android:mimeType="text/plain" /> |
| 54 | </intent-filter> |
| 55 | <!-- Share an image / open an image with Translate: OCR-translate it (#846). --> |
| 56 | <intent-filter> |
| 57 | <action android:name="android.intent.action.SEND" /> |
| 58 | <category android:name="android.intent.category.DEFAULT" /> |
| 59 | <data android:mimeType="image/*" /> |
| 60 | </intent-filter> |
| 61 | <intent-filter> |
| 62 | <action android:name="android.intent.action.VIEW" /> |
| 63 | <category android:name="android.intent.category.DEFAULT" /> |
| 64 | <data android:mimeType="image/*" /> |
| 65 | </intent-filter> |
| 66 | </activity> |
| 67 | |
| 68 | <activity |
| 69 | android:name=".intents.TranslateIntent" |
| 70 | android:exported="true" |
| 71 | android:theme="@android:style/Theme.NoDisplay" |
| 72 | android:permission="com.vayunmathur.translate.permissions.ACCESS_TRANSLATE" /> |
| 73 | </application> |
| 74 | |
| 75 | </manifest> |