Skip to content

Instantly share code, notes, and snippets.

@willyaranda
Last active December 22, 2015 03:48
Show Gist options
  • Save willyaranda/6412216 to your computer and use it in GitHub Desktop.
Save willyaranda/6412216 to your computer and use it in GitHub Desktop.
Modify contents in omni.ja, under dom/ path in gecko. Credits to @mcjimenez
#!/bin/sh
if [ $# -ne 2 ]
then
echo "Usage: `basename $0` /path/to/your/gecko/objdir DOM-component(push, apps…)"
exit $E_BADARGS
fi
DIR_SRC="$1"
DIR_SRC1="$DIR_SRC/dom/$2"
cd ${DIR_SRC1}
make
cd ${DIR_SRC}
make package
OMNI_JA_PATH=/system/b2g
OMNI_JA=omni.ja
SRC_F=${DIR_SRC}/dist/b2g/omni.ja
adb shell stop b2g
adb remount
adb push ${SRC_F} ${OMNI_JA_PATH}/${OMNI_JA}
adb logcat -c
adb shell start b2g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment