summaryrefslogtreecommitdiffstats
path: root/android/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'android/app/src/main')
-rw-r--r--android/app/src/main/AndroidManifest.xml53
1 files changed, 43 insertions, 10 deletions
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 4122f36..e1c8b57 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,25 +1,58 @@
1<manifest xmlns:android="http://schemas.android.com/apk/res/android"> 1<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools">
2 3
3 <uses-permission android:name="android.permission.INTERNET" /> 4 <uses-permission android:name="android.permission.INTERNET" />
4 5
5 <application 6 <uses-permission android:name="android.permission.BLUETOOTH" tools:remove="android:maxSdkVersion" />
7 <!--
8 should normally only be needed on android < 12 if you want to:
9 - activate bluetooth programmatically
10 - discover local BLE devices
11 see: https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#discover-local-devices.
12 Same as above, may still be wrongly needed by some manufacturers on android 12+.
13 -->
14 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" tools:remove="android:maxSdkVersion" />
15
16 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="28"/>
17 <uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/>
18
19 <!-- Only when targeting Android 12 or higher -->
20 <!--
21 Please make sure you read the following documentation
22 to have a better understanding of the new permissions.
23 https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#assert-never-for-location
24 -->
25
26 <!-- Needed if your app search for Bluetooth devices. -->
27 <!--
28 If your app doesn't use Bluetooth scan results to derive physical location information,
29 you can strongly assert that your app doesn't derive physical location.
30 -->
31 <uses-permission android:name="android.permission.BLUETOOTH_SCAN"
32 android:usesPermissionFlags="neverForLocation" />
33 <!-- Needed if you want to interact with a BLE device. -->
34 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
35 <!-- Needed if your app makes the current device discoverable to other Bluetooth devices. -->
36 <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
37
38 <application
6 android:name=".MainApplication" 39 android:name=".MainApplication"
7 android:label="@string/app_name" 40 android:label="@string/app_name"
8 android:icon="@mipmap/ic_launcher" 41 android:icon="@mipmap/ic_launcher"
9 android:roundIcon="@mipmap/ic_launcher_round" 42 android:roundIcon="@mipmap/ic_launcher_round"
10 android:allowBackup="false" 43 android:allowBackup="false"
11 android:theme="@style/AppTheme"> 44 android:theme="@style/AppTheme">
12 <activity 45 <activity
13 android:name=".MainActivity" 46 android:name=".MainActivity"
14 android:label="@string/app_name" 47 android:label="@string/app_name"
15 android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" 48 android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
16 android:launchMode="singleTask" 49 android:launchMode="singleTask"
17 android:windowSoftInputMode="adjustResize" 50 android:windowSoftInputMode="adjustResize"
18 android:exported="true"> 51 android:exported="true">
19 <intent-filter> 52 <intent-filter>
20 <action android:name="android.intent.action.MAIN" /> 53 <action android:name="android.intent.action.MAIN" />
21 <category android:name="android.intent.category.LAUNCHER" /> 54 <category android:name="android.intent.category.LAUNCHER" />
22 </intent-filter> 55 </intent-filter>
23 </activity> 56 </activity>
24 </application> 57 </application>
25</manifest> 58</manifest>