Privacy Browser Settings Format

Beginning with Privacy Browser 2.13, there is an option to export and import settings and bookmarks. These settings are stored in an SQLite database. Both flavors of Privacy Browser use the same database format, so files can be exported and imported between them. Privacy Browser defaults to using a .pbs (Privacy Browser Settings) file extension, but the import/export algorithm doesn’t care what extension is used. This page documents the database schema.

Changelog

SchemaVersionChanges
12.13Initial release.
22.14Add download_with_external_app to the Preferences table.
32.15Rename the default_font_size field to font_size in the Preferences table.
42.16Add the pinned_ip_addresses fields to the Domains table.
52.17Remove hide_system_bars and translucent_navigation_bar from the Preferences table and add hide_app_bar and scroll_app_bar.
63.0Add open_intents_in_new_tab to the Preferences table.
73.1Add wide_viewport to the Preferences and Domains tables and google_analytics, facebook_click_ids, and twitter_amp_redirects to the Preferences table.
83.2Add ultralist to the Preferences and Domains tables.
93.3Remove proxy_through_orbot, tor_homepage, tor_search, and tor_search_custom_url from the Preferences table and add proxy and proxy_custom_url to the Preferences table.
103.4Remove download_with_external_app and add download_location and download_custom_location to the Preferences table.
113.5Replace nightmode with webview_theme in the domains table, replace dark_theme with app_theme in the preferences table, and replace night_mode with webview_theme in the preferences table.
123.6Add clear_logcat to the preferences table.
133.7Remove download_location and download_custom_location from the Preferences table.
143.8Remove enablethirdpartycookies from the Domains table and do_not_track and third_party_cookies from the Preferences table and. Rename enablefirstpartycookies to cookies in the Domains table and first_party_cookies to cookies in the Preferences table. Add download_with_external_app to the Preferences table.

The database contains three tables: Bookmarks, Domains, and Preferences.

Bookmarks

FieldTypeSchemaVersion
_idINTEGER PRIMARY KEY12.13
bookmarknameTEXT12.13
bookmarkurlTEXT12.13
parentfolderTEXT12.13
displayorderINTEGER12.13
isfolderBOOLEAN12.13
favoriteiconBLOB12.13

Domains

FieldTypeSchemaVersion
_idINTEGER PRIMARY KEY12.13
domainnameTEXT12.13
enablejavascriptBOOLEAN12.13
cookiesBOOLEAN143.8
enabledomstorageBOOLEAN12.13
enableformdataBOOLEAN12.13
enableeasylistBOOLEAN12.13
enableeasyprivacyBOOLEAN12.13
enablefanboysannoyancelistBOOLEAN12.13
enableffanboyssocialblockinglistBOOLEAN12.13
ultralistBOOLEAN83.2
enableultraprivacyBOOLEAN12.13
blockallthirdpartyrequestsBOOLEAN12.13
useragentTEXT12.13
fontsizeINTEGER12.13
swipetorefreshINTEGER12.13
webview_themeINTEGER113.5
wide_viewportINTEGER73.1
displayimagesINTEGER12.13
pinnedsslcertificateBOOLEAN12.13
sslissuedtocommonnameTEXT12.13
sslissuedtoorganizationTEXT12.13
sslissuedtoorganizationalunitTEXT12.13
sslissuedbycommonnameTEXT12.13
sslissuedbyorganizationTEXT12.13
sslissuedbyorganizationalunitTEXT12.13
sslstartdateINTEGER12.13
sslenddateINTEGER12.13
pinned_ip_addressesBOOLEAN42.16
ip_addressesTEXT42.16

Preferences

FieldTypeSchemaVersion
_idINTEGER PRIMARY KEY12.13
javascriptBOOLEAN12.13
cookiesBOOLEAN143.8
dom_storageBOOLEAN12.13
save_form_dataBOOLEAN12.13
user_agentTEXT12.13
custom_user_agentTEXT12.13
incognito_modeBOOLEAN12.13
allow_screenshotsBOOLEAN12.13
easylistBOOLEAN12.13
easyprivacyBOOLEAN12.13
fanboys_annoyance_listBOOLEAN12.13
fanboys_social_blocking_listBOOLEAN12.13
ultralistBOOLEAN83.2
ultraprivacyBOOLEAN12.13
block_all_third_party_requestsBOOLEAN12.13
google_analyticsBOOLEAN73.1
facebook_click_idsBOOLEAN73.1
twitter_amp_redirectsBOOLEAN73.1
searchTEXT12.13
search_custom_urlTEXT12.13
proxyTEXT93.3
proxy_custom_urlTEXT93.3
full_screen_browsing_modeBOOLEAN12.13
hide_app_barBOOLEAN52.17
clear_everythingBOOLEAN12.13
clear_cookiesBOOLEAN12.13
clear_dom_storageBOOLEAN12.13
clear_form_dataBOOLEAN12.13
clear_logcatBOOLEAN123.6
clear_cacheBOOLEAN12.13
homepageTEXT12.13
font_sizeTEXT32.15
open_intents_in_new_tabBOOLEAN63.0
swipe_to_refreshBOOLEAN12.13
download_with_external_appBOOLEAN143.8
scroll_app_barBOOLEAN52.17
display_additional_app_bar_iconsBOOLEAN12.13
app_themeTEXT113.5
webview_themeTEXT113.5
wide_viewportBOOLEAN73.1
display_webpage_imagesBOOLEAN12.13

Leave a comment

Your email address will not be published. Required fields are marked *