Skip to content

Instantly share code, notes, and snippets.

@jryans
Created September 4, 2013 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jryans/6442196 to your computer and use it in GitHub Desktop.
Save jryans/6442196 to your computer and use it in GitHub Desktop.
B2G Hotfix: Update JS without a full B2G build
#!/bin/sh
adb shell mount -o rw,remount /system
adb shell stop b2g && \
cd tmp && rm -rf * && \
unzip ../omni.ja.orig ; \
rm ../omni.ja ; \
cp ../shell.js chrome/chrome/content/shell.js && \
cp ~/mozilla/git/toolkit/devtools/server/main.js modules/devtools/server/ && \
cp ~/mozilla/git/toolkit/devtools/server/protocol.js modules/devtools/server/ && \
cp ~/mozilla/git/toolkit/devtools/server/actors/device.js modules/devtools/server/actors && \
cp ~/mozilla/git/toolkit/devtools/server/actors/mozsettings.js modules/devtools/server/actors && \
zip -r ../omni.ja * && \
cd .. && \
adb push omni.ja /system/b2g/omni.ja && \
adb shell rm '/data/b2g/mozilla/ywi6cih7.default/startupCache/*' ; \
adb shell mount -o ro,remount /system && \
adb shell /system/bin/b2g.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment