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>
This commit is contained in:
Dirk Hohndel 2021-09-12 15:13:40 -07:00
parent e454669215
commit 2bb88a354f

View file

@ -91,14 +91,22 @@
<!-- <!--
The following comment will be replaced upon deployment with default permissions based on the dependencies of the application. 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. Remove the comment if you do not require these default permissions.
--> %% no space here INSERT_PERMISSIONS
<!-- %%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. 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. Remove the comment if you do not require these default features.
--> -->
<!-- %%INSERT_FEATURES --> <!-- %% no space here INSERT_FEATURES -->
</manifest> </manifest>