Skip to content

Commit

Permalink
Require FOREGROUND_SERVICE permission
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Aug 21, 2019
1 parent b022e3e commit c041403
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 35 deletions.
57 changes: 29 additions & 28 deletions src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="de.blau.android.test" >

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- cache tiles -->
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />

<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="25"
tools:overrideLibrary="android.support.test.uiautomator.v18" />

<instrumentation
android:name="android.support.test.runner.AndroidJUnitRunner"
android:functionalTest="false"
android:handleProfiling="false"
android:label="Tests for de.blau.android"
android:targetPackage="de.blau.android" />

<application>
<uses-library android:name="android.test.runner" />
</application>

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="de.blau.android.test" >

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="25"
tools:overrideLibrary="android.support.test.uiautomator.v18" />

<instrumentation
android:name="android.support.test.runner.AndroidJUnitRunner"
android:functionalTest="false"
android:handleProfiling="false"
android:label="Tests for de.blau.android"
android:targetPackage="de.blau.android" />

<application>
<uses-library android:name="android.test.runner" />
</application>

</manifest>
8 changes: 1 addition & 7 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<uses-sdk
tools:overrideLibrary="com.nononsenseapps.filepicker,ch.poole.openinghoursfragment,ch.poole.rangebar,ch.poole.android.numberpickerpreference,com.buildware.widget.indeterm,com.heinrichreimersoftware.androidissuereporter,com.davemorrissey.labs.subscaleview,android.support.exifinterface" />

<!--
disable for now to see if it solves the Play Store problem of the app not showing up for many devices
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
<uses-feature android:name="android.hardware.faketouch" />
-->
<uses-feature
android:name="android.hardware.sensor.compass"
android:required="false" />
Expand All @@ -33,7 +27,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- cache tiles -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<application
android:name="de.blau.android.App"
Expand Down

0 comments on commit c041403

Please sign in to comment.