java.lang.RuntimeException: Unable to resume activity {com.androidfu.example.geofences/com.androidfu.example.geofences.GeofenceExampleLauncher}: java.lang.SecurityException: com.androidfu.example.geofences from uid 10170 not allowed to perform MOCK_LOCATION

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

Solutions on the web

via Stack Overflow by TheQ
, 1 year ago
Unable to resume activity {com.androidfu.example.geofences/com.androidfu.example.geofences.GeofenceExampleLauncher}: java.lang.SecurityException: com.androidfu.example.geofences from uid 10170 not allowed to perform MOCK_LOCATION
via Stack Overflow by Gus
, 10 months ago
Unable to resume activity {com.example.a8460p.locationotes/com.example.a8460p.locationotes.MapsActivity}: java.lang.IllegalStateException: System services not available to Activities before onCreate()
via GitHub by heyzhuyue
, 9 months ago
Unable to resume activity {com.ucloud.ulive.example/com.ucloud.ulive.example.PublishDemo}: java.lang.NullPointerException: Attempt to read from field 'java.util.concurrent.locks.Lock com.ucloud.ulive.av.a.b.e' on a null object reference
via GitHub by mhwu1103
, 5 months ago
Unable to resume activity {com.flurgle.camerakit.demo/com.flurgle.camerakit.demo.MainActivity}: java.lang.RuntimeException: setParameters failed
via GitHub by victorv
, 8 months ago
Unable to resume activity {com.example.bwasti.aicamera/com.example.bwasti.aicamera.MainActivity}: java.lang.RuntimeException: Fail to connect to camera service
via GitHub by cjmarkham
, 1 year ago
Unable to resume activity {com.hundredrooms/com.hundredrooms.MainActivity}: java.lang.IllegalArgumentException: Both context and applicationId must be non-null
java.lang.SecurityException: com.androidfu.example.geofences from uid 10170 not allowed to perform MOCK_LOCATION
at android.os.Parcel.readException(Parcel.java:1599)
at android.os.Parcel.readException(Parcel.java:1552)
at android.location.ILocationManager$Stub$Proxy.addTestProvider(ILocationManager.java:1096)
at com.androidfu.example.geofences.MapsActivity.onResume(MapsActivity.java:120)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1258)
at android.app.Activity.performResume(Activity.java:6347)

Users with the same issue

Once, 5 days ago
Once, 1 month ago
Once, 1 month ago
Once, 1 month ago
7 times, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.