> On 11/07/2012 09:31 AM, Lucas Adamski wrote:
> > I've been using this simple script for messing with CSP policies:
> > 
> > adb pull /system/b2g/defaults/pref/user.js
> > vim user.js
> > adb shell mount -o rw,remount /system
> > adb push user.js /system/b2g/defaults/pref/user.js
> > adb shell mount -o ro,remount /system
> > adb reboot
> > sleep 5
> > adb logcat > temp.log &
> > tail -f temp.log
> > 
> > The reboot is probably not optimal but better safe than sorry.
> 
> You can use |adb shell stop b2g && adb shell start b2g| instead of
> rebooting to just restart gecko.
> 

Based on these instructions, I have created a script that allows you to easy 
change the UA from the command line. The script prereqs adb on your path. 

https://gist.github.com/4234696

Use the script as follows

./changeUA.sh fennec
./changeUA.sh android
./changeUA.sh

The third command (no option) reverts B2G to the default UA.

Lawrence
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to