Last active
December 22, 2015 03:48
-
-
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
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 | |
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