Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
Forked from vuldin/default.prop
Created November 16, 2013 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muffinresearch/7502700 to your computer and use it in GitHub Desktop.
Save muffinresearch/7502700 to your computer and use it in GitHub Desktop.
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.usb.serialno=full_inari
persist.sys.usb.config=adb
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 ..
# mkbootfs and mkbootimg tools are found in your B2G directory
export B2G_HOME=/path/to/b2g
export PATH=$PATH:$B2G_HOME/out/host/linux-x86/bin
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