Skip to content

Instantly share code, notes, and snippets.

@jedp
Created May 9, 2013 20:30
Show Gist options
  • Save jedp/5550357 to your computer and use it in GitHub Desktop.
Save jedp/5550357 to your computer and use it in GitHub Desktop.
Push preferences to b2g device

Create a file called user.js:

pref('toolkit.identity.debug', true);
pref('toolkit.identity.uri', 'https://login.dev.anosrep.org'); // for example

Push it to the device:

adb shell stop b2g
adb push user.js /data/local/user.js
adb shell start b2g

If it's already there, you can adb pull /data/local/user.js, edit it, and push it back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment