Read Browser History In Marshmallow And Nougat Android
I am trying to use Android Browser.BOOKMARKS_URI in Android Marshmallow. Until Lollipop, there is a way to read the history from the Chrome Browser using the permission. But in Mar
Solution 1:
Due to security reason the browser history read/write are now not accessible by to the app. This step was taken by Google after API >= 23
.
query()
calls hasReadAccess()
, which calls hasPermission("com.android.browser.permission.READ_HISTORY_BOOKMARKS")
, which on API >= M
ignores the permission argument and instead checks for com.android.chrome.permission.READ_WRITE_BOOKMARK_FOLDERS.
This permission is limited to system apps and apps signed with Google's key.
Post a Comment for "Read Browser History In Marshmallow And Nougat Android"