2

I am having some slight issue using the query

adb shell content query --uri content://browser/bookmarks" & "adb shell content query --uri content://browser/searches 

I have played around with the browser and added some bookmarks, but I am receiving nothing in return. Does anyone have encounter any issue using the queries?

1
  • 1
    AFAIK, this browser content provider is not always utilized by all browsers, maybe AOSP Browser though. What browser are you using? Commented Oct 23, 2020 at 17:16

1 Answer 1

2

according to the chromium issuetracker, that API got deprecated.

The alternative in userdebug / eng builds is using adb root to get the full sqlite History file from the apps data directory and query that instead. But that is for developers and some customrom users only.

adb pull /data/data/com.android.chrome/app_chrome/Default/History 
1
  • 1
    Looks like the URI mentioned in this answer com.android.chrome is specific to Chrome, not browser mentioned in the question. Though, now I can see that the browser URI mentioned in the question might be unclear, if it's literally browser, or just a generic placeholder for the browser's package. Commented Jul 3 at 4:12

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.