Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use initial_preferences to supply griffin seed for new installations #15229

Open
iefremov opened this issue Apr 12, 2021 · 1 comment
Open

Use initial_preferences to supply griffin seed for new installations #15229

iefremov opened this issue Apr 12, 2021 · 1 comment
Assignees
Labels
griffin OS/Android Fixes related to Android browser functionality OS/Desktop

Comments

@iefremov
Copy link
Contributor

iefremov commented Apr 12, 2021

Currently, griffin provides clients only with seed, fetched from Brave endpoints. Given that the browser needs to restart to apply a new seed, new Brave installations don't have the actual griffin state on a first launch, since they never restarted.

To fix that we'd need to supply initial_preferences containing the initial seed to fresh installations.

initial_preferences is a JSON that should be located in the same directory as the brave binary executable. Each brave installer (win/mac/lin/android) should contain this file. The file should have the following format:

{
  "variations_compressed_seed": "<base64-encoded gzipped protobuf same as on https://variations.brave.com/seed>,
  "variations_seed_signature": "<seed signature returned in x-seed-signature from the variations endpoint"
}
@goodov
Copy link
Member

goodov commented Sep 20, 2023

@goodov goodov self-assigned this Sep 20, 2023
@goodov goodov changed the title Use master_preferences to supply griffin seed for new installations Use initial_preferences to supply griffin seed for new installations Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
griffin OS/Android Fixes related to Android browser functionality OS/Desktop
Projects
None yet
Development

No branches or pull requests

2 participants