summaryrefslogtreecommitdiffstats
path: root/android/app/src/debug
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-12-11 15:31:44 +0100
committerjdlugosz963 <jdlugosz963@gmail.com>2023-12-11 15:32:33 +0100
commit1749bd5e7fa959a022472defb8ba78c689c994af (patch)
treeb591bf4d58c83065033cc845b56d6883782b7938 /android/app/src/debug
parentf0600c5ec4ffa5a84f6a08c07ec341a22e0430de (diff)
downloadcyberbadge_mobile-1749bd5e7fa959a022472defb8ba78c689c994af.tar.gz
cyberbadge_mobile-1749bd5e7fa959a022472defb8ba78c689c994af.zip
Add initial ble-service.
Diffstat (limited to 'android/app/src/debug')
-rw-r--r--android/app/src/debug/AndroidManifest.xml42
1 files changed, 41 insertions, 1 deletions
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
index eb98c01..b7c3a3c 100644
--- a/android/app/src/debug/AndroidManifest.xml
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -1,6 +1,46 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android" 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"> 3 xmlns:tools="http://schemas.android.com/tools">
4
5 <uses-permission android:name="android.permission.INTERNET" />
6
7 <!--
8 HACK: this permission should not be needed on android 12+ devices anymore,
9 but in fact some manufacturers still need it for BLE to properly work :
10 https://stackoverflow.com/a/72370969
11 -->
12 <uses-permission android:name="android.permission.BLUETOOTH" tools:remove="android:maxSdkVersion" />
13 <!--
14 should normally only be needed on android < 12 if you want to:
15 - activate bluetooth programmatically
16 - discover local BLE devices
17 see: https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#discover-local-devices.
18 Same as above, may still be wrongly needed by some manufacturers on android 12+.
19 -->
20 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" tools:remove="android:maxSdkVersion" />
21
22 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="28"/>
23 <uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/>
24
25 <!-- Only when targeting Android 12 or higher -->
26 <!--
27 Please make sure you read the following documentation
28 to have a better understanding of the new permissions.
29 https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#assert-never-for-location
30 -->
31
32 <!-- Needed if your app search for Bluetooth devices. -->
33 <!--
34 If your app doesn't use Bluetooth scan results to derive physical location information,
35 you can strongly assert that your app doesn't derive physical location.
36 -->
37 <uses-permission android:name="android.permission.BLUETOOTH_SCAN"
38 android:usesPermissionFlags="neverForLocation" />
39 <!-- Needed if you want to interact with a BLE device. -->
40 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
41 <!-- Needed if your app makes the current device discoverable to other Bluetooth devices. -->
42 <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
43
4 44
5 <application 45 <application
6 android:usesCleartextTraffic="true" 46 android:usesCleartextTraffic="true"