|
| 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 | + <!-- Permissions for USB access --> |
| 6 | + <uses-permission android:name="android.permission.USB_PERMISSION" /> |
| 7 | + |
| 8 | + <!-- Internet permission for WebView --> |
| 9 | + <uses-permission android:name="android.permission.INTERNET" /> |
| 10 | + |
| 11 | + <!-- Storage permissions for file access --> |
| 12 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
| 13 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" |
| 14 | + android:maxSdkVersion="28" /> |
| 15 | + <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" |
| 16 | + tools:ignore="ScopedStorage" /> |
| 17 | + |
| 18 | + <!-- Declare that the app uses USB features --> |
| 19 | + <uses-feature android:name="android.hardware.usb.host" /> |
| 20 | + |
| 21 | + <application |
| 22 | + android:name="com.chaquo.python.android.PyApplication" |
| 23 | + android:allowBackup="true" |
| 24 | + android:dataExtractionRules="@xml/data_extraction_rules" |
| 25 | + android:fullBackupContent="@xml/backup_rules" |
| 26 | + android:icon="@mipmap/ic_launcher" |
| 27 | + android:label="@string/app_name" |
| 28 | + android:roundIcon="@mipmap/ic_launcher_round" |
| 29 | + android:supportsRtl="true" |
| 30 | + android:theme="@style/Theme.FirmwareFlasher" |
| 31 | + android:usesCleartextTraffic="true" |
| 32 | + tools:targetApi="34"> |
| 33 | + |
| 34 | + <activity |
| 35 | + android:name="bruce.app.MainActivity" |
| 36 | + android:exported="true" |
| 37 | + android:theme="@style/Theme.FirmwareFlasher"> |
| 38 | + <intent-filter> |
| 39 | + <action android:name="android.intent.action.MAIN" /> |
| 40 | + <category android:name="android.intent.category.LAUNCHER" /> |
| 41 | + </intent-filter> |
| 42 | + |
| 43 | + <intent-filter> |
| 44 | + <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |
| 45 | + </intent-filter> |
| 46 | + |
| 47 | + <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" |
| 48 | + android:resource="@xml/device_filter" /> |
| 49 | + |
| 50 | + </activity> |
| 51 | + </application> |
| 52 | + |
| 53 | +</manifest> |
| 54 | + |
| 55 | + |
0 commit comments