Hi Martijn,

----- Original Message -----
> From: "Martijn" <[email protected]>
> To: "Justin Lebar" <[email protected]>
> Cc: [email protected]
> Sent: Thursday, November 29, 2012 4:26:32 PM
> Subject: Re: [b2g] Setting preferences in the b2g browser
> 
> Is that with the assumption that I build my own B2G build?
> I can't seem to find b2g/app/b2g.js on the device, at least.
> Can I edit some config file on the (Otoro) device itself?

There are preferences stored in the profile

/data/b2g/mozilla/*.default/prefs.js

I have a script I wrote for turning the omtc pref on/off which you can find 
over here:
https://gist.github.com/2656232

You can probably use that as a template for something else.

Alternatively, you can do something like (untested):

PREFS_JS=$(adb shell echo -n "/data/b2g/mozilla/*.default")/prefs.js
adb pull $PREFS_JS
edit prefs.js
adb shell stop b2g
adb push prefs.js $PREFS_JS
adb shell start b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to