Note: this solution requires a rooted Android.
In a terminal emulator app, execute:
(Requires Busybox if running Android 5.1.1 or below. For Marshmallow, remove the term busybox from the following command.)
su
content query --uri content://org.mozilla.firefox.db.tabs/tabs/ --projection url | busybox cut -d '=' f 2 > /sdcard/firefox_tabs.txt
Explanation of the second command:
content query
: to query a Content Provider
org.mozilla.firefox.db.tabs
: a content provider from Firefox.
--projection url
: list data from the url
column only
(Click image to enlarge)
Or if you have the sqlite3
tool in Android, then you can do:
su
sqlite3 /data/data/org.mozilla.firefox/files/mozilla/*.default/browser.db "SELECT url FROM tabs ORDER BY position" > /sdcard/firefox_tabs.txt
I've assumed that you have a single Firefox profile and its name has not been altered. If you've a multi-profile setup or if you did change the profile's name, then instead of *.default
provide the correct name of the profile of whose tabs you want in your list.