Created
September 4, 2013 20:07
-
-
Save jryans/6442196 to your computer and use it in GitHub Desktop.
B2G Hotfix: Update JS without a full B2G build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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