java.lang.SecurityException

Permission Denial: opening provider com.android.browser.provider.BrowserProvider2 from ProcessRecord{f90b843 2798:org.cade.codigos/u0a57} (pid=2798, uid=10057) requires com.android.browser.permission.READ_HISTORY_BOOKMARKS or com.android.browser.permission.WRITE_HISTORY_BOOKMARKS

Samebug tips5

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


rafaelrafael

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()


rafaelrafael

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

Solutions on the web1308

  • via Stack Overflow by AlanRubinoff
    ,
  • Stack trace

    • java.lang.SecurityException: Permission Denial: opening provider com.android.browser.provider.BrowserProvider2 from ProcessRecord{f90b843 2798:org.cade.codigos/u0a57} (pid=2798, uid=10057) requires com.android.browser.permission.READ_HISTORY_BOOKMARKS or com.android.browser.permission.WRITE_HISTORY_BOOKMARKS at android.os.Parcel.readException(Parcel.java:1599) at android.os.Parcel.readException(Parcel.java:1552) at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3550) at android.app.ActivityThread.acquireProvider(ActivityThread.java:4778) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2018) at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1468) at android.content.ContentResolver.query(ContentResolver.java:475) at android.content.ContentResolver.query(ContentResolver.java:434) at org.cade.codigos.providers.BookmarksProviderWrapper.updateHistory(BookmarksProviderWrapper.java:370) at org.cade.codigos.ui.runnables.HistoryUpdater.run(HistoryUpdater.java:53) at java.lang.Thread.run(Thread.java:818)

    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

    Mihail MelnicMihail Melnic
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    SacchiSacchi
    194 times, last one
    filipebatistafilipebatista
    21 times, last one
    233 more bugmates