-
-
Save st3fan/6514295 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ro.secure=0 | |
ro.allow.mock.location=1 | |
ro.debuggable=1 | |
persist.usb.serialno=full_inari | |
persist.sys.usb.config=adb |
This file contains hidden or 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
cd ~/downloads/fxos/boot # create a folder where you can work with the boot image | |
adb shell | |
su | |
cat /dev/mtd/mtd1 > /sdcard/boot.img # create copy of boot image on sdcard | |
exit;exit # exit from su and adb | |
adb pull /sdcard/boot.img # copy boot image to desktop | |
abootimg -x boot.img # extract boot image contents | |
mkdir initrd;cd initrd # create initrd folder where you can work with initrd image | |
mv ../initrd.img initrd.gz # change extension to gz (for gunzip tool) | |
gunzip initrd.gz; cpio -id < initrd # extract initrd contents | |
vi build.prop # change default.prop to the same as the attached default.prop file | |
cd .. | |
# download mkbootfs and mkbootimg tools | |
wget https://zen-droid.googlecode.com/files/mkbootfs | |
wget https://zen-droid.googlecode.com/files/mkbootimg | |
chmod 755 mkbootfs;chmod 755 mkbootimg # make them executable | |
cd initrd; ../mkbootfs . | gzip > ../newinitramfs.cpio.gz | |
cd .. | |
./mkbootimg --kernel zImage --ramdisk newinitramfs.cpio.gz --base 0x200000 --cmdline 'androidboot.hardware=roamer2' -o newboot.img # create new boot image | |
adb push ./newboot.img /sdcard/newboot.img # copy new boot image to sdcard | |
adb reboot recovery # boot into clockwork mod recovery | |
#mount /sdcard from settings | |
adb shell # connect to phone | |
flash_image boot /sdcard/newboot.img # install new boot image | |
exit | |
# restart phone using clockwork mod settings | |
# now your phone should be ready to install dev builds of FxOS: | |
cd ~/git/b2g # change directory to where you have downloaded and built B2G | |
./flash.sh gaia # phone automatically restarts into unusable state | |
./flash.sh gecko # automatically restarts and works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment