5

Is there a way to export the entire browser history from Chrome under Android, in any file format (CSV, XML, whatever)?

I have Chrome 42.0.2311.111 under Android 4.2.2.

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
martin
  • 151
  • 1
  • 1
  • 3

5 Answers5

6

You can use Google Takeout to download a JSON file of your Android Chrome history.

You can also download your bookmarks, along with a lot of other Google data.

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
unknownprotocol
  • 181
  • 1
  • 7
3

Chrome doesn't allow backup using ADB and there are no extensions available for mobile version so you should have root access before you proceed further.

  1. Grab the History file from the location /data/data/com.android.chrome/app_chrome/Default/ into PC. A Root Explorer may help.

  2. Install an SQLite manager such as SQLiteman or DB Browser for SQLite in PC.

    Both has the option under menu bar to export the database into an SQL file or a particular table into CSV file.

Well at least you now know where the history is stored, so you may find a relevant software to directly export the database into a CSV or XML file.

Firelord
  • 25,084
  • 20
  • 124
  • 286
1

If the tabs are still open you may find the following useful, via dev.to - When you never close tabs on your mobile Chrome browser. Not quite a solution here, but was what I was looking for when I came across this question.

Export open tabs

Chrome's remote debugging has a remote-debugging-legacy mode that allows you to view tabs on a connected computer via adb.

Set up adb

  1. First, install the Android Command Line Tools from Android Studio.
  2. Enable developer mode on your phone by going to Settings > About Phone > Build Number and tapping 7 times
  3. Enable USB debug mode from Settings > Developer options or Settings > System > Advanced > Developer options. This menu will only be visible after the previous step.
  4. Connect to laptop and verify with ./adb devices -l. You may need to configure adb and grant permission from your phone.

Connect to chrome remote devtools

Once your phone is set up with adb you can:

# Connect to Chrome Android's legacy debugging API
./adb forward tcp:9222 localabstract:chrome_devtools_remote

Visit http://localhost:9222 to verify, then

curl http://localhost:9222/json/list > mobile-tabs.json

James EJ
  • 111
  • 2
0

You should be able to export ALL your history from ALL devices under your Google Account on practically any browser. It's generally easiest to do it from your desktop, however.

RVT
  • 111
  • 4
0

Touch the 3 dots on right top of screen. choose "history" when it loads, again touch 3 dots and choose "print" Give new filename to save to then scroll to bottom of history and choose "older". after the page loads, repeat the above.

A hassle, but it works for me... Later you can use various apps to combine the created .pdf files. Oh, if this works for you, then.. "You're welcome".