-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Brave Country Id
There's two ways of retrieving the countryid_at_install value within Brave.
You'll need to look at the Preferences file which is located in the following directories:
- macOS -->
~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default - Windows -->
C:\Users\[user name]\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default - Linux -->
~/.config/BraveSoftware/Brave-Browser/Default
You'll simply need to type in brave://prefs-internals into the URL and search for countryid_at_install.
Once you've retrieved countryid_at_install using one of the methods mentioned above, the next step will be to convert the code into a usable country code using the following method. We'll go through US and Canada as examples:
The countryid_at_install for US is 21843. You'll need to convert 21843 into binary. Example:
-
21843=0101010101010011:
Once you've converted countryid_at_install into binary, you'll need to split into 8 bit chunks. Example:
-
01010101=85= U (in ASCII) -
01010011=83= S (in ASCII)
The countryid_at_install for Canada is 17217. You'll need to convert 17217 into binary. Example:
-
17217=0100001101000001
Once you've converted countryid_at_install into binary, you'll need to split into 8 bit chunks. Example:
-
01000011=67= C (in ASCII) -
01000001=65= A (in ASCII)
| countryid_at_install | Country |
|---|---|
| 21843 | US |
| 17217 | CA |
| 18766 | IN |
| 16725 | AU |