Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old April 2nd, 2009, 08:01 PM   #1 (permalink)
Member
 
devolio's Avatar
 
Join Date: Oct 2008
Location: Michigan
Posts: 339
 
Device(s):
Thanks: 0
Thanked 33 Times in 11 Posts
Send a message via AIM to devolio
Default Flashing your own Android builds (and cupcake): A quick guide

If you've paid any attention to the Android scene at all lately, you know there's open source repos you can pull and compile the source code from, with a few little changes.

I'm not going to cover any of the source pull/compile/assembly instructions here, that will be in another thread coming soon enough.

This is pretty much a guide to fastbooting - the process of flashing the specific parts of the system you want to flash, quickly.


Prerequisites
Your phone must be rooted (or a developer phone,) and you should know how to get back from a custom flashed build, though I'll be covering it briefly.

Having a JesusFreke build recovery mode and the engineering bootloader is highly recommended.

You'll also need fastboot, which can be obtained in a multitude of places. The easiest way is to get them straight from HTC. They're also a by-product of a compile.

It's also important to note, as in the rooting guide, that if you're not comfortable flashing or poking around with your device, do not try this, as you can do nasty things to your phone.


Safety net
Now, because we're going to be using fastboot to do the flashing, it would be a good idea to make a backup of your current system.

You can do this with...
- a nandroid backup (flashable via fastboot,)
- mybackuppro (to reload your stuff after reflashing a build you want,)
- or with good ol' CLI tools.


The idea here is to set up an SD card that you can quickly and easily fall back to in the event that you want to switch back to a 'normal' build (most likely,) or really screw something up.

Because I'm running JF RC33 1.42, my 'safety net' is as easy as booting into recovery mode (home+power) and wiping/updating via the update script, and everything is sane again.

Obviously, depending on your set up, your methods may vary.


Download fastboot (Linux, Mac, Win32)

My Cupcake Images


Installing
1) Download a set of images, or compile some yourself.

2) Boot into the bootloader and get it into fastboot mode. With the phone off (and connected to your computer,) hold down the camera button and press power. Once the screen is up, press back a few times until it says FASTBOOT

3) Make sure fastboot sees your device with fastboot devices

4)
Below are the commands to flash the various partitions with the image files:

Code:
chmod a+x fastboot (if needed)
./fastboot flash system system.img
./fastboot flash boot boot.img
./fastboot flash userdata userdata.img
./fastboot reboot

After running ./fastboot reboot, your phone will restart itself, and within a few minutes (be patient on first boot, it can take time) - you'll be running a brand new build.

To revert
As mentioned in the safety net section, you can pretty much revert to where you were before assuming you actually backed your stuff up.

To restore a nandroid image
Code:
Turn the phone off
Hold down camera+power to get into the bootloader
Hit back a few times until it says FASTBOOT
./fastboot flash system /path/to/nandroid/system.img
./fastboot flash boot /path/to/nandroid/boot.img
./fastboot flash userdata /path/to/nandroid/userdata.img
./fastboot reboot
To revert with JF 1.42 RC33
Code:
Turn the phone off
Hold down home+power to get into recovery mode
Alt+W to wipe the data
Alt+S to load up the update


__________________
Guides
FAQ | Rooting | Installing SDK/Eclipse

My Stuff
Twitter | Apper | Yz | Yz Donation
devolio is offline  
Last edited by devolio; April 2nd, 2009 at 08:16 PM.
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Guide to flashing customs roms Droidizzle Incredible - ROMs 59 December 23rd, 2011 08:50 PM
Tips Samsung I5700 (Galaxy SPICA) Android 2.1 Flashing Guide - ENGLISH greaky Samsung Galaxy Lite 59 January 16th, 2011 10:06 AM
Noob guide for Rooting and Flashing using a Mac armstrj2 Desire - All Things Root 2 September 16th, 2010 06:29 PM
ROM Manager - following lekkys flashing guide smokinmonkey Desire - All Things Root 7 August 29th, 2010 06:42 PM
Custom Android Builds Dan_Brutal G1 - All Things Root 0 April 22nd, 2010 04:23 PM



All times are GMT -5. The time now is 12:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.