diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-09-12 15:13:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-09-13 11:21:34 -0700 |
commit | 2bb88a354ff684693a3f3787ddd99c1b3514684c (patch) | |
tree | 2f9aca067f14cb7affe2423331e88bb64aef06a9 /android-mobile | |
parent | e4546692155eb5ecb8fdd50ccbfd91a0a70023a1 (diff) | |
download | subsurface-2bb88a354ff684693a3f3787ddd99c1b3514684c.tar.gz |
Android: hardcode permissions and don't ask for features
That seems to be the way to force it to not request FINE_LOCATION or GPS access.
If I leave this on 'auto' then the dependency on QtPositioning (for showing the
map) appears enough for it to claim access to GPS location. I no longer want
to deal with the Google Play police for that.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'android-mobile')
-rw-r--r-- | android-mobile/AndroidManifest.xml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/android-mobile/AndroidManifest.xml b/android-mobile/AndroidManifest.xml index e4f8df3ac..6c3a09d3f 100644 --- a/android-mobile/AndroidManifest.xml +++ b/android-mobile/AndroidManifest.xml @@ -91,14 +91,22 @@ <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application. Remove the comment if you do not require these default permissions. - --> - <!-- %%INSERT_PERMISSIONS --> + %% no space here INSERT_PERMISSIONS + this always requests FINE_LOCATION which I no longer want to deal with - so instead manually request what we know we need. + stupidly COARSE LOCATION appears to be necessary for BLE + --> + <uses-permission android:name="android.permission.INTERNET" /> + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> + <uses-permission android:name="android.permission.BLUETOOTH" /> + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application. Remove the comment if you do not require these default features. --> - <!-- %%INSERT_FEATURES --> + <!-- %% no space here INSERT_FEATURES --> </manifest> |