No location API

We use Edge2 and the latest Android release. Some Apps dense work on our system. So we found out that the location API doesn’t work or doesn’t exist. Does anyone have a workable solution? Here is the error message:

Caused by [com.google.android](http://com.google.android/).gms.common.api.ApiException: 17: API: LocationServices.API is not available on this device. Connection failed with: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}

at [com.google.android](http://com.google.android/).gms.common.internal.ApiExceptionUtil.fromStatus(com.google.android.gms:play-services-base@@18.1.0:3)

at [com.google.android](http://com.google.android/).gms.common.api.internal.ApiExceptionMapper.getException(com.google.android.gms:play-services-base@@18.1.0:1)

at [com.google.android](http://com.google.android/).gms.common.api.internal.zag.zad(com.google.android.gms:play-services-base@@18.1.0:1)

at [com.google.android](http://com.google.android/).gms.common.api.internal.zabq.zaE(com.google.android.gms:play-services-base@@18.1.0:7)

at [com.google.android](http://com.google.android/).gms.common.api.internal.zabq.zaD(com.google.android.gms:play-services-base@@18.1.0:2)

at [com.google.android](http://com.google.android/).gms.common.api.internal.zabq.zar(com.google.android.gms:play-services-base@@18.1.0:24)

at [com.google.android](http://com.google.android/).gms.common.api.internal.zabq.zao(com.google.android.gms:play-services-base@@18.1.0:13)

at [com.google.android](http://com.google.android/).gms.common.api.internal.zabq.zap(com.google.android.gms:play-services-base@@18.1.0:8)

at [com.google.android](http://com.google.android/).gms.common.api.internal.GoogleApiManager.handleMessage(com.google.android.gms:play-services-base@@18.1.0:64)

at android.os.Handler.dispatchMessage([Handler.java:102](http://handler.java:102/))

at android.os.Looper.loopOnce([Looper.java:201](http://looper.java:201/))

at android.os.Looper.loop([Looper.java:288](http://looper.java:288/))

at [android.os.HandlerThread.run](http://android.os.handlerthread.run/)([HandlerThread.java:67](http://handlerthread.java:67/))

Hello @appscreen

@william.lin @goenjoy will help you then.

1 Like

(1)Edge2 requires an external GPS module to use GPS functionality.

(2)What APK did you use for testing. Can you provide us with testing.

Latest official Android image downloaded via OOWOW.

We have a problem with this app…

We tried to use Fake GPS but the app needs the location api.

Edge2 has no GPS onboard? So on Edge + Captain was the GPS on Captain?

That would be a small catastrophe.

YES, Edge2 has no GPS onboard。 Currently, we have disabled GPS by default.

OK…solution? Can we enable it? Workaround? USB GPS model?

(1) enable GPS.
device/khadas/rk3588/BoardConfig.mk
BOARD_HAS_GPS := true
(2) Get better results. update external\libgps\gps_zkw.c 。(will send you via email)