"passive" location provider requires ACCESS_FINE_LOCATION permission.

Samebug tips5

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()


You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1297

  • via Stack Overflow by Visionwriter
  • Stack trace

    • java.lang.SecurityException: "passive" location provider requires ACCESS_FINE_LOCATION permission. at android.os.Parcel.readException( at android.os.Parcel.readException( at android.location.ILocationManager$Stub$Proxy.getLastLocation( at android.location.LocationManager.getLastKnownLocation( at com.vblast.dir.g.e(SourceFile:177) at com.vblast.dir.g.d(SourceFile:75) at com.vblast.dir.uberstations.b.onPreExecute(SourceFile:240) at android.os.AsyncTask.executeOnExecutor( at com.vblast.dir.uberstations.b.a(SourceFile:226) at com.vblast.dir.uberstations.DirService.a(SourceFile:123) at com.vblast.dir.AbstractDirService.onStartCommand(SourceFile:85) at at$2400( at$H.handleMessage( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at$ at

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    9 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Hiren AmaliyarHiren Amaliyar
    669 times, last one
    48 times, last one
    138 times, last one
    230 more bugmates