openbmap / radiocells-scanner-android

WLAN and cell tower scanner for Radiocells.org
https://www.radiocells.org
Other
57 stars 25 forks source link

Make main service a foreground service to avoid throttling in Android 8 (Oreo) #219

Closed mvglasow closed 6 years ago

mvglasow commented 6 years ago

As discussed in #218, this makes the main logger service a foreground service, which (as per the docs) will not get throttled by Android 8. This is still untested; I will report back once I’ve had the chance to test it.

This includes some fixes which were necessary to get the project to build:

No fix for Android 9 (Pie) yet, as I am still gathering some information (and have no Android 9 device to test on anyways). If I find out more, I’ll add it here, but ton’t let that keep you from merging—I can always add another PR.

mvglasow commented 6 years ago

As mentioned in the ticket, there currently doesn’t seem to be a fix for Android 9 (Pie). I will test the current fix on 8.1 as soon as I can and report back.

mvglasow commented 6 years ago

Tested today, background performance is back at previous levels. This apparently fixes things on Android 8 and is OK to merge as far as I’m concerned.

wish7code commented 6 years ago

Sounds great! Thanks!!