Skip to content

Instantly share code, notes, and snippets.

@luke-chang
Forked from mnjul/pull.sh
Last active August 29, 2015 14:19
Show Gist options
  • Save luke-chang/a0097937c0a2f0623979 to your computer and use it in GitHub Desktop.
Save luke-chang/a0097937c0a2f0623979 to your computer and use it in GitHub Desktop.
Pull & Extract / Pack & Push omni.ja from/to FxOS phone
adb pull /system/b2g/omni.ja
rm -rf omni.old
mv omni omni.old
mkdir omni
mv omni.ja omni
cd omni
unzip omni.ja
rm omni.ja
cd ..
mv omni.ja omni.ja.old
cd omni
zip -qr9XD omni.ja *
mv omni.ja ..
cd ..
adb shell stop b2g
adb remount
adb push omni.ja /system/b2g
adb shell start b2g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment