Skip to main content

No Google Services: Position freezes during routing

Environment: Google Pixel 8a, GrapheneOS, No Google Play Services

Expected Behavior:
While a route is active, position updates should continue normally.

Observed Behavior:

When no route is active, position updates are handled normally.

As soon as a route is active, the position freezes and updates only roughly once a minute.

adb logcat shows

17: API: LocationService.API is not available on this device

Analysis:

Position updates for routing a handled by a serivce. This service selects FUSED and registration fails with 17: API: LocationService.API is not available on this device. The function onBackgroundError handles this error bat leaves isBackgroundLocationActive set. The foreground useWatchPosition hook is disabled, so neither provider delivers updates.
When I reset isBackgroundLocationActive in the background-error handler restores the functionality and makes the app work correctly again.

I suggest either resetting isBackgroundLocationActive on fatal background failure or adding a platform provider fallback in the background controller.

Thanks for this great route planner!

Where does this happen?
ABRP version number (found at bottom of settings menu)

This request was merged into another request

No comments yet

Be the first to share your thoughts.