Unbrick ouya even if erased everything as long as you have clockworkmod on it - Ouya Q&A, Help & Troubleshooting

How to unbrick your ouya as long as adb is on and you have a clockwork mod recovery installed
I bricked my ouya recently so i just thought i would share this,it's going to work even if you completely erased all data and all caches in your clockworkmod recovery,this includes erasing sd card and even if you have boot menu and it won't show your nand as green lit but red lit,the nand is the chip that has the firmware on it if your not sure what it is.
This is for xp but i think it will work in other windows versions but don't quote me?It took 48hrs of perseverance for me to figure this out, And then to write this, i had to flit from page to page online copying links and reading it all over again,some comes from memory,other bits of the tutorial i made up my self and sussed it out on my own with no help,i had to click rename and copy file names in places in this tutorial.But it works and it rebuilds the ouya no mater what you did.
You could have erase the memory in clockworkmod completely,even if you wiped the dalvick cache and/or thesd card patition at the same time and/or clicked full factory reset after, no matter what you erased or how you did it even if you used the whole lot of every erase option applied from clockworkmod recovery on your ouya,
This restores it to factory,it even removes the boot menu software that i added and found [email protected] up my ouya completely after trying to add a boot img for the cynagenmod i put on over the top of my system by accident, then killed all data caches erasing them all i even erased my sd card data leaving my ouya completely bare of anything.
This is for others like me that only have the OUYA? next to device in the device manager in windows xp,i had so much trouble getting it going and i found a very quick easy couple of click fix for it,i could then adb command the ouya over a micro usb cable and rebuild it,You need to have the adk bundle for windows installed and the sets of tools needed for the current platforms this maybe api's not sure? just have the ones i use which are 14,16,17,18,19 and the google usb driver you may not need them all i may have more than needed but i don't know so best use what i have as it works for me,i am not going in depth on adding this but you can look here https://devs.ouya.tv/developers/docs/setup for info on the sdk install procedure just get the platforms i have as well as the guides listed platforms to install you'll see a picture of the sdk on this page so just use that as a guide.
So on with the guide then:
STEPS
STEP 1.Turn on ouya and go into clocklworkmod recovery menu and select install from zip then select sideload adb option and leave the console running in this mode please.Go here http://visualgdb.com/UsbDriverTool/ copy and paste that link in a new tab into the address bar and head down the page a little to the bit that says Downloading click the link that says UsbDriverTool-sfx.exe,you then get a page asking to save the file so save it where you can remember.Leave the page open and move onto step 2.
STEP 2. Open a new tab in the browser and paste this link: http://visualgdb.com/tutorials/android/ouya/ into the address bar and hit enter (return key).Now connect the ouya to the pc via micro usb cable and follow step 2. and step 3. from the current webpage you are on.You should now have Ouya ADB device or similar in the device manager meaning it works now.
STEP 4.install powertoy for windows xp don't ask me for a link this is going to be something you have to do as can't remember,it allows command on right clicking a folder this is a much needed thing for this job.
STEP 3. open a new tab in the browser and go here http://forum.xda-developers.com/showthread.php?t=2266629 and download the file named 1.0.68-r1 Download Changelog click the orange changelog writing to download and copy the downloaded file called RC-OUYA-1.2.995-r1_ota.zip by opening c:/ adt-bundle-windows-x86-20140321 or simlarily named folder residing in c: drive and then go into sdk folder then go into platform tools folder and paste the RC-OUYA-1.2.995-r1_ota.zip file in there, return to the c: drive ,then go to the folder called adt-bundle-windows-x86-20140321 or similarily named folder againand then into sdk folder again then highlight the platform tools folder with right click and click on open command window here leave this window open now.
STEP 4. Provided the command window is now open and the ouya was correctly set and enabled from STEP 1 and STEP 2. earlier,and STEP 3.. is completed you should now have the ouya on micro usb with the adb mode enabled and showing up as such in device manager, and you should now be sitting in the clockworkmod recovery in adb sideload mode on your ouya console ,go to the command window you left open in STEP 3. and simply type adb sideload RC-OUYA-1.2.995-r1_ota.zip ,this should now install the zip and after it is done you reboot the console from restart option in clockworkmod recovery and you should boot up fine and will have successfully repaired (unbricked) the ouya.
JOB DONE PHEW!

PHYSC-1 said:
How to unbrick your ouya as long as adb is on and you have a clockwork mod recovery installed
I bricked my ouya recently so i just thought i would share this,it's going to work even if you completely erased all data and all caches in your clockworkmod recovery,this includes erasing sd card and even if you have boot menu and it won't show your nand as green lit but red lit,the nand is the chip that has the firmware on it if your not sure what it is.
This is for xp but i think it will work in other windows versions but don't quote me?It took 48hrs of perseverance for me to figure this out, And then to write this, i had to flit from page to page online copying links and reading it all over again,some comes from memory,other bits of the tutorial i made up my self and sussed it out on my own with no help,i had to click rename and copy file names in places in this tutorial.But it works and it rebuilds the ouya no mater what you did.
You could have erase the memory in clockworkmod completely,even if you wiped the dalvick cache and/or thesd card patition at the same time and/or clicked full factory reset after, no matter what you erased or how you did it even if you used the whole lot of every erase option applied from clockworkmod recovery on your ouya,
This restores it to factory,it even removes the boot menu software that i added and found [email protected] up my ouya completely after trying to add a boot img for the cynagenmod i put on over the top of my system by accident, then killed all data caches erasing them all i even erased my sd card data leaving my ouya completely bare of anything.
This is for others like me that only have the OUYA? next to device in the device manager in windows xp,i had so much trouble getting it going and i found a very quick easy couple of click fix for it,i could then adb command the ouya over a micro usb cable and rebuild it,You need to have the adk bundle for windows installed and the sets of tools needed for the current platforms this maybe api's not sure? just have the ones i use which are 14,16,17,18,19 and the google usb driver you may not need them all i may have more than needed but i don't know so best use what i have as it works for me,i am not going in depth on adding this but you can look here https://devs.ouya.tv/developers/docs/setup for info on the sdk install procedure just get the platforms i have as well as the guides listed platforms to install you'll see a picture of the sdk on this page so just use that as a guide.
So on with the guide then:
STEPS
STEP 1.Turn on ouya and go into clocklworkmod recovery menu and select install from zip then select sideload adb option and leave the console running in this mode please.Go here http://visualgdb.com/UsbDriverTool/ copy and paste that link in a new tab into the address bar and head down the page a little to the bit that says Downloading click the link that says UsbDriverTool-sfx.exe,you then get a page asking to save the file so save it where you can remember.Leave the page open and move onto step 2.
STEP 2. Open a new tab in the browser and paste this link: http://visualgdb.com/tutorials/android/ouya/ into the address bar and hit enter (return key).Now connect the ouya to the pc via micro usb cable and follow step 2. and step 3. from the current webpage you are on.You should now have Ouya ADB device or similar in the device manager meaning it works now.
STEP 4.install powertoy for windows xp don't ask me for a link this is going to be something you have to do as can't remember,it allows command on right clicking a folder this is a much needed thing for this job.
STEP 3. open a new tab in the browser and go here http://forum.xda-developers.com/showthread.php?t=2266629 and download the file named 1.0.68-r1 Download Changelog click the orange changelog writing to download and copy the downloaded file called RC-OUYA-1.2.995-r1_ota.zip by opening c:/ adt-bundle-windows-x86-20140321 or simlarily named folder residing in c: drive and then go into sdk folder then go into platform tools folder and paste the RC-OUYA-1.2.995-r1_ota.zip file in there, return to the c: drive ,then go to the folder called adt-bundle-windows-x86-20140321 or similarily named folder againand then into sdk folder again then highlight the platform tools folder with right click and click on open command window here leave this window open now.
STEP 4. Provided the command window is now open and the ouya was correctly set and enabled from STEP 1 and STEP 2. earlier,and STEP 3.. is completed you should now have the ouya on micro usb with the adb mode enabled and showing up as such in device manager, and you should now be sitting in the clockworkmod recovery in adb sideload mode on your ouya console ,go to the command window you left open in STEP 3. and simply type adb sideload RC-OUYA-1.2.995-r1_ota.zip ,this should now install the zip and after it is done you reboot the console from restart option in clockworkmod recovery and you should boot up fine and will have successfully repaired (unbricked) the ouya.
JOB DONE PHEW!
Click to expand...
Click to collapse
Quick follow up,you can sideload over adb if it's turned on,this applies to standard recovery as wel.So you can unbrick using the adb sideload method above even with a stock ouya to unbrick it guys/gals.

Related

Rooting indian htc magic airtel with spl 1.33.0010

Here's a friendly guide for all the people with 1.33.0010 SPL INDIAN VERSION AIRTEL and who would like to switch over to the 1.33.2010 Engineering SPL with Amon_RA's ROM. This has been tested on my Indian HTC Magic, but I do think it will work for other Magics with the same SPL. Remember, this is for 32A only.I tried different options given in xda forum but this method is full proof and now I have a working hero rom on my HTC MAGIC AIRTEL ASIA.
1. Download the latest Android SDK from http://developer.android.com/. Create a folder called "AndroidSDK" on your C drive and extract the contents of the zip file to the folder such that the folders called "tools", "usb_driver" and all are within the "AndroidSDK" folder.
2. On Windows XP : Go to Control Panel->System, Choose the 'Advanced' tab and then click 'Environment Variables' To do this on Vista/Windows7: Simply go to Control Panel->System and choose 'Advanced System Settings' and then 'Environment Variables'
Now that you've got here locate Path under System Variables and click Edit, then add the following to the end of the string displayed:
;C:\AndroidSDK\tools\
Then click OK until you get out of the menus.
3. Enable Debugging mode on the phone by going to
Menu > Settings > Applications > Developement > USB Debugging
4. Go to http://dl.google.com/android/android_usb_windows.zip and download the ADB drivers for windows.Not needed in HTC Sync 2.04 version as drivers are embedded in it.
5. Connect your Android device via USB. When the Found New Hardware Wizard appears, you'll be asked if you'd like Windows Update to search for software, select No, not this time and click Next.
Select Install from a list or specified location and click Next.
Select Search for the best driver in these locations. Browse and select the unzipped folder. Click Finish.
6. Go to "Run" in Start and type in "cmd". This is the standard procedure for invoking the Command Prompt. Remember this. Type "cd\" hit enter and then enter "cd AndroidSDK", hit enter. Then cd\tools ,hit enter The command prompt should look like :
C:\AndroidSDK\tools>
Now type in "adb devices" and hit enter. You should see something like this :
C:\AndroidSDK>adb devices
List of devices attached
XXXXXXXXXXXX device
If you do, everything is great. Disconnect your device.
7. Now go to HTC's global site and download the latest version of HTC Sync(2.04 Version), unzip and install. When you connect your device now, HTC Sync should recognize your phone.
8. Now comes the Gold Card part. Go to http://forum.xda-developers.com/show...99&postcount=1 and follow the guide to create your Gold Card. The 2GB Sandisk one which comes in the box works just fine. If you don't have Android Market, don't fret. Forget about the Steps 3 & 4. Instead, connect your device with the card in it. Invoke command prompt and cd to "AndroidSDK" as told before. Type in "adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid". You will get the CID. Follow the rest of the steps from the guide to create a Gold Card.
9. Time for action. Now you gotta get Engineering SPL 1.33.2010(find it on xda forum)- MD5 : 865020FBDFBD9C08950076A701A8A003 Flash this Rom in Hboot mode.
# Copy the required file zip file and rename it sappimg.zip (Do not add zip only rename as sappimg as it is already a zip file.) and copy it to the Goldcard.
# Boot your phone while holding the VOLUME-DOWN key.
# Press the ACTION KEY (=trackball) to start the update.
# Wait until the update completes and press the ACTION KEY (=trackball) to reboot your phone.
10. Now time to create a Nandroid Backup. Download • RAv1.2.1H – (Find it on xda forums) MD5Sum: E08D0A38BCCADAE416F644EE9D370D8B Put it in the "AndroidSDK\tools" folder. Switch off your phone. Hold the Back button and Switch it on. This takes you to the Fastboot mode. Standard procedure. Remember this. Connect the phone to the PC. Invoke the command prompt, cd to "AndroidSDK\tools" and type :
fastboot boot recovery-RAv1.2.1H.img
The recovery image will boot and you'll see the recovery screen in green colour. Wait for 2 minutes. Select the Nandroid Backup option and follow the on-screen instructions to create a backup. Reboot device. And copy over the "nandroid" folder on you sd card to a safe place.
11. Time to flash the HERO ROM Go to myhero-1.12 (find it on XDA forum) I tried flashing other roms but the screen jams at start so this particular rom is working well on my HTC AIRTEL ASIA Rename the file to "update.zip" and copy over to the sd card. Switch off your phone. Hold the Back button and Switch it on. This takes you to the Fastboot mode. Connect the phone to the PC. Invoke the command prompt, cd to "AndroidSDK\tools" and type :
fastboot boot recovery-RAv1.2.1H.img
The recovery image will boot and you'll see the recovery screen. Wait for 2 minutes. Select the Wipe Data option, and follow instructions to Wipe your present ROM. If you don't do this, your phone might not boot after flashing the ROM. Select the Apply sdcard:update.zip option. Follow onscreen instructions to flash the ROM. Reboot. All done. Welcome to Android.....
All credits go to XDA FORUM , and everybody else for their respective contributions.....
PS. Please do chip in with a Thanks if you found this guide helpful and any corrections are welcome.....
PPS. After you flash the ROM, if HTC Sync isn't working, use Google Sync, since the ROM is a Google ION based one.

[Guide] Complete Newbie Guide to Root & Install a Custom Rom [Updated 26/08]

This is aimed at new "rooters". The process is incredibly easy.
I also take no responsibility if you mess up somehow, and this is for GSM Hero's NOT Sprint Hero CDMA users.
In order to create this guide I downgraded my phone to RUU Orange UK 2.73.61.66 (i.e. unrooted) then updated to the pre-2.1 release from Orange and then updated to the final 2.1 release from Orange. I then used Universal Androot to gain root access and from there install a custom recovery.
I have now also included a link to z4root as an alternative.
Here is a link to my backup guide but please be aware that most of it requires root access.
Prelude:
Install HTC Sync from here
Download Universal Androot
Download z4root
Download Root Checker - only if you need to
Download AmonRA Recovery v1.7.0.1.img - easier if you rename this "recovery.img" when it is on your sdcard
Place both downloaded files on your SD Card
Root & Recovery
1. Download and install Astro File Manager from the Market (or use any other file management program of your choice)
2. Open Astro and find and install Universal Androot (or if that doesn't work try z4root) from your sdcard:
Select UniversalAndroot.apk > Open App Manager > Install > Settings> [tick] Unknown Sources > OK > Back > Select UniversalAndroot.apk > Open App Manager > Install > Install > Open
3. In the app and choose the correct version from the dropdown box:
Superuser for Android 2.0~2.2 - if you have updated your phone recently
Superuser for Android 1.5~1.6 - if you have refused updates recently or your country/provider hasn't released one yet
Then choose: "Root "
Wait until it says "Woot ! Your device is rooted !" and exit the program.
4. Download and install Android Terminal Emulator from the Market (use Better Terminal instead if this one doesn't work)
5. Run "Terminal Emulator". Type (press and hold menu to get the keyboard up) in the following:
su (press enter and wait for the "Super User Request Prompt". Choose "Allow" and make sure its ticked to Allow every time.)
flash_image recovery /sdcard/recovery.img (press enter - make sure this is typed exactly as seen)
N.B. If you have issues here, see * notes below for more assistance
6. Turn off your phone and press Home + Power to start it up again. This should boot into recovery mode.
Install Your Custom Rom
Note: This part of the guide can be repeated with as many different rom's as you like. You do not have to repeat the previous section once you have a recovery image installed.
1. Download a Custom ROM from here to your computer.
2. Make sure your phone is in recovery mode (Home + Power)
Plug your phone into your computer and select "USB-MS toggle" in recovery
Place the Custom ROM on your SD card in the main directory and press Home when it has finished copying over
3. Select Backup/Restore > Nand backup > confirm with Home > Wait
(or Nand + Ext if you have A2SD setup)
4. Press back then select Wipe from the main menu, then select:
Wipe data/factory reset > Home
Wipe cache > Home
Wipe Dalvik-cache > Home
Wipe SD:ext partition > Home
Press back button
Select Flash Zip from SD Card
Select the file
Press Home to confirm
Note: Ignore any "errors", they are normal and usually mean you're not using that feature.
5. Once it is done, select Reboot and you will boot into the new Custom ROM.
Updating your Radio
Note: The radio deals with your signal levels and connectivity.
1. Download the latest radio from the following page
N.B. Radio's are not region specific! Just get the latest
2. Mount your SD Card so your computer can read it and place the downloaded file in the main directory
3. Turn off your phone and boot into the recovery screen (holding Home + Power)
4. Choose:
Flash Zip from SD Card
Pick the radio.zip file and press Home to confirm
Wait
Your phone will reboot a couple of times but when you're back on the Recovery Screen just press reboot system now and it will complete the install and put you back into your custom rom.
DO NOT PULL THE BATTERY OUT, THIS WILL BRICK YOUR HANDSET.
5. When this process has completed reboot the phone and you should have the new radio. This can be checked in Settings > About Phone
*Useful Information!!
42turkeys said:
Tested this on 1.5 the other day, nice one BtDaG
For those of you having problems flashing the recovery, try entering this before the flash_image command:
Code:
rm /data/local/rights/mid.txt
ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
(btw, ROM Manager has an option to flash Amon_RA at the bottom )
Click to expand...
Click to collapse
** Missing flash_image - confirmed to work by another user, please inform if different
Download the flash_image.zip and unzip to your PC folder. Setup ADB. Place the recovery_image .zip in a folder called recovery on your computers C: drive. Then you will be able to run the following adb commands below from a cmd prompt on your computer:
cd c:\recovery
this will ensure you are in the correct folder
adb root
This will start ADB as root, or notify if it is already running as root.
adb remount
This will mount the system partition (/system) as writable, allowing the following
adb push flash_image /system/bin
This will send the flash_image script into the /system/bin, so we can use it from within the shell
adb shell chmod 0755 /system/bin/flash_image
Finally, change the permissions of the script to allow it to perform the desired action. Now that the script is installed, we are ready to proceed with flashing the custom recovery, saved on the root of the SD card earlier:
adb shell flash_image recovery /sdcard/recovery.img
this will install the the recovery - now continue the process where you left off
Click to expand...
Click to collapse
*** solution 3
brisuth said:
A big thankyou to duck0 for identifying the problem and botoo for getting me to a happy conclusion with the correct commands
SOLUTION IS HERE USING Console mode from windows using ADB USB DEBUGGING HAS TO BE ENABLED WITH HERO CONNECTED TO PC THEN TYPE THE FOLLOWING
THEN ENTER AFTER EACH COMMAND
anyone needing help setting up adb see this link http://forum.xda-developers.com/showthread.php?t=757233
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm /system/etc/install-recovery.sh
Thats it all done next step
INSTALL ROM MANAGER FROM MARKET IT IS FREE
open it and sellect flash alternate recovery image from the bottom, you can use the clockwork recovery but it is not compattable with all roms.
once done turn phone off, boot into recovery home + power choose to exit recovery with reboot shut down once again and if you can enter recovery then everything is sweet.
Click to expand...
Click to collapse
Setup Apps2SD
ONLY RECOMMENDED ON CLASS 4+ SD CARDS. Don't bother if you don't know what this is . GIYF.
Do this process after doing everything else! So make sure you have a working custom rom installed which supports Apps2SD. This is designed for VillainROM which doesn't use a swap, if your ROM does support swap ask for a recommended amount. Also note that the ext2 partition will be unreadable from windows or through android os.
1. Backup your SD card to your computer (very important as this process will wipe all the data on it)
2. Restart your phone into recovery mode (Home + Power)
3. Select:
Partition sdcard
Partition SD
Press Home
Swap-size = 0 MB
Ext2-size = 512 MB (recommended)
FAT32-size = Remainder
Press Home
4. Once complete Reboot system now and wait! This can take 20 minutes or so to complete, so just keep waiting!
DO NOT USE EXT3 or EXT4 partitions. They will just wear out your sd card quicker. They are designed for large files systems (i.e. 50GB+) with full operating systems running on them! The only benefit they bring is indexing (which on a 512MB partition is worthless). (Optional - before reboot) - Under partition sdcard you can convert the ext2 partition to ext3 - "SD:ext2 to ext3" - however this isn't recommended as it will wear out your sd card quicker. There is also often support for ext4 so you can do "SD:ext3 to ext4" after the first one too. Though again this will typically just wear out your SD faster without providing any speed benefits. See note above.
Code:
[B]OLD PROCESS BACKED UP JUST IN CASE. PLEASE DO NOT FOLLOW THIS SECTION OF THE GUIDE![/B]
Largely based upon the Unlockr guides, so thank you Unlockr!
Please do NOT be mislead. This is NOT a quick process, though the time has been reduced significantly if you don't need the goldcard method.
There is no "one-click" version or "quick-install".
You should set aside at least an hour for this process and preferably read through the process once before actually attempting it.
[B]Please make a quick post with your experiences, including your brand of phone and location.
Please check the FaQ first before asking questions :)[/B]
[COLOR=DarkGreen][SIZE=3][U]Contents[/U][/SIZE][/COLOR]
[COLOR=DarkRed]Pre: Backup[/COLOR]
[COLOR=Navy]1. Installing a Recovery Image
a. Installing the Correct HTC ROM
2. Loading the Custom ROM
3. Updating your Radio[/COLOR]
[COLOR=DarkOliveGreen]Setup Apps2SD
Check A2SD[/COLOR]
[COLOR=DarkSlateBlue]"GoldCard" Test Procedure
I. Setting up the drivers
II. Create a “GoldCard” from a MicroSD Card
III. Downgrade the Hero using the Goldcard[/COLOR]
[COLOR=DarkGreen]FaQ[/COLOR]
[COLOR=DarkRed][SIZE=3][U]Pre: Backup[/U][/SIZE]
1. Backup contacts etc with HTC Sync.
2. Backup your SD Card or use a spare
3. Backup SMS Messages with SMS Backup & Recovery[/COLOR]
[COLOR=Navy][SIZE=3][U]1. Installing a Recovery Image[/U][/SIZE]
1. On your phone, go to Settings > Applications - and make sure "Unknown Source" is ticked.
2. On your phone, go to Settings > SD card and phone storage - click Unmount SD card.
3. Then click Format SD card.
4. Plug the phone into the computer via USB, then pull down the notification bar and click on the SD card notification. Then click mount.
5. Download this APK and recovery image and save it to your computer:
[URL]http://zenthought.org/content/project/flashrec[/URL] - FlashRec.apk
[URL]http://forum.xda-developers.com/showthread.php?t=561124[/URL] - Amon_Ra’s Hero Recovery Image
6. Copy them both to your SD card (do NOT put them inside any folders on the SD card, just put them on the SD card itself).
7. Unplug the phone from the computer once they are downloaded to the SD card.
8. Go to the Market and download ASTRO File Manager or any file manager program if you do not already have one.
9. Open the file manager and find the FlashRec apk file and click it and choose open app manager and then install it.
10. When it is installed click Open. Click on Backup Recovery Image and wait for it to finish. If you get "backup failed" response see the text on the right for more details, if the backup is a success carry on to step 11.
[RIGHT][SIZE=1][U]a. Installing the correct HTC ROM[/U]
Orange UK Users - Please downgrade your ROM version to [URL="http://www.htc.com/uk/SupportViewNews.aspx?dl_id=675&news_id=261"]2.73.61.5[/URL]
Generic Hero Users - Please downgrade to [URL="http://x7.to/6jexri"]2.73.405.5[/URL], or follow the goldcard method if this doesn't work
T-Mobile UK Users – Please follow the "Goldcard" method below
All Other Users - Please follow the "Goldcard" method below[/SIZE][/RIGHT]
11. Once done, click on the empty text box in the FlashRec program and type:
/sdcard/recovery-RA-hero-v1.6.2.img
(replace exact name as new versions come out)
Then click on the Flash Recovery Image button and wait for it to finish.
[SIZE=3][U]2. Loading the Custom ROM[/U][/SIZE]
N.B. This part of the guide can be repeated with as many different rom's as you like. You do not have to repeat the previous sections once you have a recovery image installed.
1. Download a Custom ROM from [URL]http://forum.xda-developers.com/forumdisplay.php?f=512[/URL] to your computer.
2. Plug in your phone and pull down the Notification bar when the SD notification pops up.
3. Click on the notification and select Mount.
4. Open the SD Card fonder on your computer.
5. Copy the Custom ROM from your computer to your SD Card, do NOT change it, extract the files or put it in any folders
6. Unplug your phone and turn it off.
7. Turn the phone on by holding down Home and Power till you get to the custom recovery screen.
8. Select Wipe from the menu, then select:
Wipe data/factory Reset
Wipe Dalvik-cache
Wipe SD:ext partition
Press back button
Select Flash Zip from SD Card
Select the file
Click Confirm
N.B. Ignore any "errors", they are normal and usually mean you're not using that feature.
9. Once it is done, select Reboot and you will boot into the OS. Once you are loaded in make sure you format your SD card once more through the settings menu and then reboot the phone one last time. This will ensure you get the correct apps.[/COLOR]
[COLOR=Navy][SIZE=3][U]III. Updating your Radio[/U][/SIZE]
[B]N.B. People have been reporting problems with this part of the guide, try it at your own risk. It is not required to be on the latest radio when using a Custom ROM, however it is usually recommended! The radio deals with your signal levels, I found it to increase my signal from a maximum of 2 bars to full. It is likely to help if you travel, but if you are happy with your signal and tend to stay in the same place it may not be worth it.
Be aware that if this doesn't work it can potentially brick you phone... though I've had no reports of that so far. Just people finding it doing different things after it flashes.[/B]
1. Download the latest radio from the following site:
At time of writing that is: [URL="http://www.villainrom.co.uk/radio/Radio_Signed_HERO_63.18.55.06PU_6.35.15.14.zip"]63.18.55.06PU_6.35.15.14[/URL]
[B]N.B. Radio's are not region specific![/B]
2. Mount your SD Card so your computer can read it and place the downloaded file in the main directory
3. Turn off your phone and boot into the recovery screen (holding Home + Power)
4. Choose:
Flash Zip from SD Card
Click Confirm
Reboot system now when prompted
N.B. This can take anywhere between 1 - 10 minutes or maybe even longer in some cases. Do not touch your phone until you either: get back to the recovery screen or your custom rom loads and you see the unlock screen.
DO NOT PULL THE BATTERY OUT, THIS WILL BRICK YOUR HANDSET.
5. When this process has completed reboot the phone and you should have the new radio. This can be checked in Settings > About Phone > Software Information > Baseband Version[/COLOR]
[COLOR=DarkOliveGreen][U][SIZE=3]Check A2SD[/SIZE][/U]
Please assume it is automatically working unless you can load applications without your SD card inserted. However, here is the process for those who are pedantic about these things. Many thanks to VillainROM Wiki for this process.
1. Download check.zip from the bottom of this guide.
2. Extract check.sh
3. Download GScript Lite from the market
4. Place check.sh on your SD card in a folder named gscript
5. Open GScript and press:
Menu
Add Script
Uncheck "needs su"
Load File
Select check.su
Save
6. Then click check from the main screen and you will get a readout of whether it is enabled or not.[/COLOR]
[COLOR=DarkSlateBlue][SIZE=3][U][B]"GoldCard" Test Procedure[/B][/U][/SIZE]
Please comment on whether this procedure works, it is untested. Thanks to [URL="http://www.villainrom.co.uk/viewtopic.php?f=46&t=1735"]ante0's guide[/URL] for some details used.
[SIZE=3][U]I. Setting up drivers etc[/U][/SIZE]
1. Download the latest HTC Sync from [URL="http://www.htc.com/www/SupportViewNews.aspx?dl_id=933&news_id=631"]here[/URL] and the latest SDK from [URL="http://developer.android.com/sdk/index.html"]here[/URL]
2. Install HTC Sync & extract the Android SDK .zip file to C:\ (may help to re-name the folder to a shorter name, in this tutorial it will be C:\android\ )
3. Click on your Windows Start menu and right click on "Computer" > Properties > Advanced System Settings > Environment Variables
Find "Path" under "System Variables" and edit it. Add the following to the end of the text:
;C:\android\tools
4. Restart your computer.
On your phone, click Settings > Applications > Development and make sure USB Debugging is on.
When back at your desktop plug then phone in and wait for it to install the correct drivers, this should be done automatically on the latest version of HTC Sync and adb should be enabled.
5. Type the following into the command prompt window (Start > Search > "cmd") and enter the following and press enter:
adb devices
You should see a serial number pop up and look like:
000000000000 device
It’s the serial number of your phone. This means the drivers are working in normal boot mode. Next we need to check them in fastboot mode (thanks to janhol for helping with this next part)
6. Turn off your phone and load into fastboot by holding the Back button and pressing Power with the hero plugged into the computer
7. "Start" > Right Click "Computer" > "Manage" > "Device Manager"
8. Check that the "ADB Interface" reads "My Hero", not "Android bootloader drivers" or anything else.
If it does then:
Right click "Android bootloader drivers" > "Update Driver Software" > "Browse my computer..." > "Let me pick from..." > "Have Disk..." > "Browse" > "C:\Program Files (x86)\HTC\HTC Driver\Driver Files\Win7_x64" > "androidusb.inf"
Once selected click "OK".
"My HTC" should show in the list of "compatible hardware" now, so select that and click "Next" to install the driver. Switch off the phone (may have to pull the battery).
[SIZE=3][U]II. Create a “GoldCard” from a MicroSD Card[/U][/SIZE]
(Please keep in mind that some memory cards don’t work for this process)
1. Put the memory card you want to use for the GoldCard into your phone, make sure all the data is backed up before proceeding as it will be formatted.
2. With the memory card in your phone, and not connected to the PC, click on:
Settings > SD and Phone storage > Unmount SD Card
Once it unmounts, click Format SD Card.
3. On your phone, click:
Settings > Applications > Development and make sure USB Debugging is on.
4. Return to the Command Prompt from earlier after re-plugging in your Hero. Then type the following with hitting enter at the end of each line:
adb shell
cat /sys/class/mmc_host/mmc1/mmc1:*/cid
5. A code will display, write the code down into a notepad document or similar (MAKE SURE TO WRITE IT DOWN EXACTLY!)
6. Go to this site: [URL]http://hexrev.soaa.me/[/URL] then put in your code you just wrote down into the text box and click submit. It will generate the code reversed and replace the first two digits with zeros automatically. Copy this.
7. Then go to [URL]http://psas.revskills.de/?q=goldcard[/URL] and Paste your CID into the box and fill in the other details. You'll be e-mailed the goldcard. Save the goldcard image to disk.
8. Now go to [URL]http://download.cnet.com/HxD-Hex-Editor/3000-2352-10891068.html?part=dl-HxDHexEdi&subj=uo&tag=button[/URL] to download the HxD Hex Editor. Install it to your computer.
9. Mount your SD card on your phone so that it shows up on your computer as "Removable Disk" - Pull down the notification bar on the phone and select Mount CD Card.
10. Open the Hex Editor (Run as Administrator if you're in Vista or Windows 7) and click on the Extra menu > Open Disk. Under "Physical Disk" select "Removable Disk". Make sure to UNcheck “Open as ReadOnly”. Click OK.
11. Go to the Extra menu again and click Open Disk Image. Open up the goldcard.img that you saved from your email. Press OK when prompted for Sector Size 512 (Hard Disks/Floppy Disks). You should now have two tabs, one is the SD card (Removable Disk) and the other is the goldcard.img.
12. Click on the Goldcard.img tab and press Ctrl + A (select all) Then Ctrl + C (copy).
13. Click on the Removable Disk tab (Your SD Card) and select the complete lines from 00000000 to 00000170 then press Ctrl + V (paste).
14. Click on File then click Save.
15. Close the Hex Editor.
16. Reboot the phone.
Try to open the memory card on the computer (i.e. mount the drive), if it lets you, you are all set. If it asks/tells you to reformat the card, then try steps 13 – 19 again. If it gives you the same error again, then try a different memory card. You can confirm that it has worked by opening the Removable Disk in the hex editor again and making sure the code you pasted in has stayed but this shouldn't be necessary.
[SIZE=3][U]III. Downgrade the Hero using the Goldcard[/U][/SIZE]
1. With your phone plugged in, pull down the notification bar on the phone and select HTC Sync. Make sure it connects to HTC Sync on the computer (not sure if this is necessary anymore).
2. Download this generic HTC Hero RUU
Hero RUU -
[URL="http://x7.to/6jexri"]2.73.405.5[/URL]
[URL="ftp://xda:[email protected]/Hero/Official-ROMs/RUU_Hero_HTC_WWE_2.73.405.5_WWE_release_signed_NoDriver.exe"]2.73.405.5[/URL] (alternative)
3. Double click the RUU exe you downloaded while the phone is plugged in with the GoldCard in it and follow the on screen procedure. This will install the old generic Hero rom on your phone, this is to allow you to install a recovery image. Reboot and fill in as few details as possible as these will be overwritten soon.
4. Now you have finished this procedure start from the beginning again.[/COLOR]
Website: [URL]http://rootmydroid.co.uk/[/URL]
Other Guides:
[URL="http://forum.xda-developers.com/showthread.php?t=669754"]How to Backup your Phone Between Wipes[/URL]
Even older process - ignore
[COLOR=DarkOrange][SIZE=3][U][B]Old "GoldCard" Procedure[/B][/U][/SIZE]
[SIZE=3][U]I. Setting up the SDK[/U][/SIZE]
1. Download the Latest Android SDK from Google
Android SDK - [URL]http://developer.android.com/sdk/index.html[/URL]
(currently - android-sdk_r06-windows.zip) but get the latest
2. Extract the Android SDK .Zip file to C:\ (may help to re-name the folder to a shorter name, in this tutorial it will be C:\android\ )
3. Run SDK Setup.exe
4. Click "Settings" and check the "Force [URL]https://.[/URL].. sources ..." option
5. Click "Available Packages" and download the "USB Driver Package"
6. On your phone, click Settings > Applications > Development and make sure USB Debugging is on.
7. Plug your phone into your computer via USB cable.
8. Go into device manager: Start --> Search for "device manager"
9. Here we are checking the driver which is installed for your Hero, you may see either of the following scenarios:
Other Devices > ADB
or
Android Phone > My HTC
Either way you should do the following:
Right Click > Update Driver > Browse > C:\android\usb_driver > Next and it should install "Android Composite ADB Interface"
10. Type the following into the command prompt window (Start > Search > "cmd") and enter the following hitting enter at the end of every line:
cd c:\android\tools\
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set.
If you do NOT see a serial number, then we need to reinstall the drivers.....
end cut off due to size limits
nice
i`m sure it will help alot of people out, it took me a whole day to sort mine out.
cheers
nice one. you've just summarised my last sunday afternoon. great to have this all in one place. needs to be a sticky imho.
Nice Tutorial... Please give me the SPL version and Radio Version of the Hero that this worked on.
brettf said:
Nice Tutorial... Please give me the SPL version and Radio Version of the Hero that this worked on.
Click to expand...
Click to collapse
The radio was different on both the devices tested and I am fairly certain it has no effect on whether you can do this procedure or not. They are now both flashed with the latest radio.
I have no record of the "SPL versions". Again I'm not really sure how this is relevant?
This guide assumes the user has no knowledge of these things and have made no previous modifications to their phone (besides standard updates)
You'll have to bear with me as I'm pretty new to all this as well. The guide was made because I found the others extremely difficult to follow. I'm glad to see by the other posts that I am not the only one
Im doing this now, my Hero was delivered this morning and i was looking for in depth instructions so I cant go wrong. This looks bang on,... Just about to start section II (creating Goldcard) but thought i'd better put up some thanx 1st.
Wish me luck, i'm assuming it'l all go ok, i'l post again once its done.
Thanks again BTDAG.
Peace
Guys I'm stuck,... Section II, part 10, Mount your SD card on your phone so that it shows up on your computer as "Removable Disk".
Through the setting on my phone I can only select "UNMOUNT SD CARD"!!! Arggghhhh!!!
Can anyone help please?
AHA,... That'l teach me to not read the whole thing 1st!!!!!!
In section III, part 3,... You have put "pull down the notification bar and click on the SD card notification. Then click mount." .... Maybe edit the 1st post and put it in (for the idiots like me).
Thanks though.
ddotpatel said:
AHA,... That'l teach me to not read the whole thing 1st!!!!!!
In section III, part 3,... You have put "pull down the notification bar and click on the SD card notification. Then click mount." .... Maybe edit the 1st post and put it in (for the idiots like me).
Thanks though.
Click to expand...
Click to collapse
I had no idea that was in the wrong order, thanks for pointing it out. I'll edit that now!
I had to figure most of this out as I was going so i quickly forgot what I did differently. The more people point out the better the guide will get! XD
Great guide.
Add it as a Wiki... it will not get a sticky!
nprussell said:
Great guide.
Add it as a Wiki... it will not get a sticky!
Click to expand...
Click to collapse
Thanks. I love your ROM's and can't wait for the next Villain release.
Already done as I figured as much.
Oh my god!! Im was having an absolute mare!!!!!
Was trying to downgrade the rom,... but HTC Sync would not connect (Part III, no 3), everything else was ok... 1st i ignored it and just carried on, started flashing, phone went into that 'Fastboot' bit where there are the Android thingies on skateboards, but then failed, came up with an error message, then froze. I had to take the battery out!!!
Started up fine though.
So i gave up for a while to stop me from throwing my laptop against the wall!!!
But the missus has just got home so im booting up her XP lappy, thought it might be cos im using Win7 64bit. So here goes again!!!!
question:
i Would like to install a custom Rom on Hero
i have two micro SD cards ( 2GB i 8GB )
1. I would like to use 8GB card for apps and music...
Do I have to create a "Gold Card" on the 8GB card, or can I use the 2GB card to creat "Gold Card"?
2. Durin the installation of a Custom Rom, do I have to put in the phone the "Gold Card" (2GB), or can I put the 8GB card?
And
3. if I want to "roll back" the original ROM, can I do that just simpley by puting in the "Gold Card" and rolling back te rom saved on Gold Card?
THX
(sorry for my English)
ddotpatel said:
Oh my god!! Im was having an absolute mare!!!!!
Was trying to downgrade the rom,... but HTC Sync would not connect (Part III, no 3), everything else was ok... 1st i ignored it and just carried on, started flashing, phone went into that 'Fastboot' bit where there are the Android thingies on skateboards, but then failed, came up with an error message, then froze. I had to take the battery out!!!
Started up fine though.
So i gave up for a while to stop me from throwing my laptop against the wall!!!
But the missus has just got home so im booting up her XP lappy, thought it might be cos im using Win7 64bit. So here goes again!!!!
Click to expand...
Click to collapse
O Windows 7 64-bit needs different drivers. I have attached them here to the original post. I am also on 64-bit but completely forgot about those hassles. Thanks for the reminder.
ico86 said:
question:
i Would like to install a custom Rom on Hero
i have two micro SD cards ( 2GB i 8GB )
1. I would like to use 8GB card for apps and music...
Do I have to create a "Gold Card" on the 8GB card, or can I use the 2GB card to creat "Gold Card"?
2. Durin the installation of a Custom Rom, do I have to put in the phone the "Gold Card" (2GB), or can I put the 8GB card?
And
3. if I want to "roll back" the original ROM, can I do that just simpley by puting in the "Gold Card" and rolling back te rom saved on Gold Card?
THX
(sorry for my English)
Click to expand...
Click to collapse
1. The gold card is only used to allow you to downgrade (as far as i'm aware) so you can use the 2GB as gold card and 8 GB for music but... (see next)
2. I have no idea, probably best to leave the gold card in and replace it when the ROM is flashed but I don't think it is mandatory. I do however, have no idea how long it is needed for. Just make sure you format the card you're going to use through the phone when you insert it for the first time.
3. If you want to go back to your Orange or T-Mobile ROM from HTC all you have to do is use the latest .exe you get from HTC's support website. Once again it is probably best to format your SD card after first boot.
The only thing that's stopping me from trying this out is the goldcard thing - I really don't want to format my 8Gb card. I could use the 2Gb one from my old G1, but it's going on eBay in the next week so if I needed the exact same goldcard at some point in the future then I'd be stuffed.
I suppose that I'll just have to live without the glory of being rooted for now!
thedoccwc said:
The only thing that's stopping me from trying this out is the goldcard thing - I really don't want to format my 8Gb card. I could use the 2Gb one from my old G1, but it's going on eBay in the next week so if I needed the exact same goldcard at some point in the future then I'd be stuffed.
I suppose that I'll just have to live without the glory of being rooted for now!
Click to expand...
Click to collapse
You could backup the data on the 8Gb card (i.e. copy and paste it to a folder on your pc) then format it and restore any music / pictures etc back to it. Just avoid replacing any old settings files specifically related to the HTC widgets, that is where problems occur.
O i'm also fairly certain you won't need the gold card again unless you go back to the official HTC releases and need to downgrade again and there is no harm to making your 8GB a gold card in the future as you can still back-up and restore the data you wish to keep on it.
wow nice guide, bookmarked! i spent ages looking for all the info about a month ago.
ive decided that i only really need to install a custom ROM when htc decide not to offer official updates anymore.
btdag said:
You could backup the data on the 8Gb card (i.e. copy and paste it to a folder on your pc) then format it and restore any music / pictures etc back to it. Just avoid replacing any old settings files specifically related to the HTC widgets, that is where problems occur.
O i'm also fairly certain you won't need the gold card again unless you go back to the official HTC releases and need to downgrade again and there is no harm to making your 8GB a gold card in the future as you can still back-up and restore the data you wish to keep on it.
Click to expand...
Click to collapse
No, no, no, you're meant to say something like 'ahh, probably for the best that you don't bother for now then'. The slightest pro-rooting comment is going to have me going for it! Still, it is character building, I suppose. And I did feel much better for having done it to my G1...but can I be bothered to do it at this time of night?!?!
mobydeek said:
wow nice guide, bookmarked! i spent ages looking for all the info about a month ago.
ive decided that i only really need to install a custom ROM when htc decide not to offer official updates anymore.
Click to expand...
Click to collapse
but your missing out on so much now

creating an custom rom for android 2

I. Before You Begin
1. We are assuming you have already setup the Android kitchen. If not, use our How To Setup The Kitchen procedure and then come back to this one when done.(first see the post creating an custom rom for android a)
2. We are also assuming you have already done our How To Root and How To Load a Custom ROM for your phone and have a custom recovery image.
2. This ONLY works for HTC Android devices at the moment, later versions might support others (check here for an update when it does).
3. Open the Kitchen in your Ubuntu Virtual Machine we created in the Kitchen Setup procedure by typing ./menu in the Terminal window in Ubuntu. Leave it open.
4. All of this is done INSIDE THE UBUNTU VIRTUAL MACHINE (that includes when I say “save to your computer” anywhere in here, means save to you Ubuntu Virtual Machine)!
II. Find a ROM to Dissect
There are two kinds of ROMs you can dissect to create your own custom ROM; Stock ROMs and Custom/Cooked ROMs. DsiXDA, creator of the ROM kitchen we are using, has put together a list of places to get stock ROMs for different devices and a quick how to load them into the kitchen:
From a Cooked ROM (Easiest Method):
1. Copy the update.zip (or equivalent ZIP file) to the original_update folder in the kitchen
2. Type the number for the option “Setup Working Folder from ROM” and hit enter in the Kitchen to create your working folder. (So if its number is 1, type 1 then hit enter).
From a Shipped ROM:
1. Find the shipped ROM for your device, usually from htc.com or from searching xda-developers (check the Wiki or sticky posts under your device’s sub-forum).
The links below may help:
HTC Hero
Google Nexus One (android.modaco.com/topic/300414-21oct-stock-roms-erd79- frg83-images-zip-online-kitchen-optional-root-insecure/)
" copy paste on browser than download it "
HTC Magic
HTC Tattoo
2a. If the shipped ROM is in a .ZIP format, then simply extract the system.img and boot.img.
2b. If the shipped ROM is in .EXE format, then do the following:
A. In Windows, run the shipped ROM’s .EXE file till it gets to the first dialog. Stop there but don’t close the window yet.
B. Go to Start->Run and type: %TEMP%
C. When the folder opens, search for Rom.zip. Then, open it with an unzip tool. If you get errors trying to open the ZIP file with WinZip or the default Windows unzip program, then use 7Zip (download from "w_w_w_.7-zip.org/ "_" from link) to extract it.
D. Extract only two files from Rom.zip: system.img and boot.img
3. Copy the two .IMG files to your kitchen’s img_files folder in your Ubuntu Virtual Machine.
4. In the Terminal window that you opened in Section I, type 1 and hit enter to create a working folder from the two .img files.
Now, that you have either the update.zip in the original_update folder of the kitchen OR the system.img and boot.img of a shipped ROM in the img_files folder of the kitchen, you are ready to play with the ROM to make it your own.
III. Tweaking the Imported ROM Using the Automated Options in the Kitchen
So this is a basic kitchen, but you can do things like, add Root support, add/remove apps from the ROM, enable saving apps to the sd card, enabling Wifi tethering, do some automatic optimizations, and a few other things automatically just by selecting the option and hitting enter. It even allows you to put in your own scripts for the ROM to run (but that’s for more advanced users who know how to create scripts of course).
1. After importing a ROM using section II, select the options you want to do to the ROM (by typing the number of the option you want into the terminal/kitchen window and hitting enter. They are all pretty self explanatory.)
2. Continue this until you have all the automated options you want in the new ROM.
IV. Adding/Removing Applications from the ROM
1. In your Ubuntu Virtual Machine, goto Places at the top. Then click on Home Folder, then the WORKING folder that was created in section II when you dissected the original ROM or img files. Then goto system > app. (Also check Data > App as .apks can be put in there as well).
2. In the app folder you will see all the .apk files for all the applications you have currently in the ROM. Simply delete the ones you do not want to remove them from the ROM.
3. To add applications, simply copy any .apk file for the applications you want to add into the app folder.
V. Repackage the ROM so it can be Flashed onto a Phone
1. Once you have done whatever changes you want, you just need to type 99 and hit enter in the kitchen/terminal for the kitchen to take the working folder you have been messing with and compile it into a flashable update.zip ROM.
2. Once it is done compiling the ROM, we can transfer it to our phone.
VIa. Setup Ubuntu to See Your Phone via USB
1. In the Virtual Box windows with Ubuntu in it, click on Devices at the top then click Install Guest Additions. (It should autostart, if it doesn’t, click on the CD that appeared on the desktop in Ubuntu and then click on Autostart.sh. It will ask you for your password you created when setting up Ubuntu, put that in and let it install).
2. Once the Guest Additions are installed, close the Virtual Box Ubuntu Window (choose to Power Down the Machine).
3. Now, open Virtual Box itself (not Ubuntu) and highlight the Ubuntu machine, then click on Settings at the top.
4. Click on USB and make sure Enable USB Controller and Enable USB 2.0 are both enabled.
5. Now plug in your Android phone (do NOT mount the SD card, just plug it in).
6. Now in the USB menu of Virtual Box, click the + symbol on the right and then select your Android Device (name may be different).
7. Once that is installed, unplug your phone.
8. Now, Start your Ubuntu Virtual Box.
9. Once Ubuntu boots up, plug in your Android phone (do not mount the memory card yet) and look for the USB symbol at the bottom (fourth icon from the left) and hover over it and wait for it to say USB Device detected and display your phone. Once that happens, mount the sd card by pulling down the notification bar on your phone and clicking mount.
10. Ubuntu should pop up your SD card on the desktop (if any prompts come up just select do nothing and click ok). We can now transfer files to the memory card of our phone.
VIb. Use RapidShare to Transfer the File from Ubuntu to Windows (if Section VIa was giving you trouble)
1. If you can’t get the USB to work in Ubuntu, then simply open a Firefox browser window, goto Rapidshare.com and upload the ROM to there.
2.Once it is done uploading, ON YOUR WINDOWS COMPUTER NOT UBUNTU, put in the link it gave you when you finished uploading it, to download it to your Windows computer so we can transfer it to your phone.
VII. Flash the ROM
5. Copy the .zip file to the root of your SD card (NOT in any folders, just on the SD card itself).
6. Unplug the phone and turn it off.
7. Turn it back on by holding down home and power (do not let go until the recovery screen comes up) to get to recovery mode (you must have a custom recovery screen to do this, if you don’t find out How To Root and Load a ROM procedure for your phone and do those first).
8. Now select Nandroid Backup to create a backup before we flash the new ROM.
9. Once the backup is done, select Wipe Data / Factory Reset in recovery mode.
10. Select flash zip from sd card and select the ROM you just put on the sd card.
11. Once it is done flashing, click reboot. Enjoy!
Enjoy! Will update this as we add more things for you to tweak FeWant to Flash a New Splash Screen on Your 320×480 Resolution Android Device? Here’s how.
el free to suggest some in the meantime.
Thanks to DsiXDA for his awesome kitchen!
ohh... thanks
Very nice information.................
zero+ said:
I. Before You Begin
1. We are assuming you have already setup the Android kitchen. If not, use our How To Setup The Kitchen procedure and then come back to this one when done.(first see the post creating an custom rom for android a)
2. We are also assuming you have already done our How To Root and How To Load a Custom ROM for your phone and have a custom recovery image.
2. This ONLY works for HTC Android devices at the moment, later versions might support others (check here for an update when it does).
3. Open the Kitchen in your Ubuntu Virtual Machine we created in the Kitchen Setup procedure by typing ./menu in the Terminal window in Ubuntu. Leave it open.
4. All of this is done INSIDE THE UBUNTU VIRTUAL MACHINE (that includes when I say “save to your computer” anywhere in here, means save to you Ubuntu Virtual Machine)!
II. Find a ROM to Dissect
There are two kinds of ROMs you can dissect to create your own custom ROM; Stock ROMs and Custom/Cooked ROMs. DsiXDA, creator of the ROM kitchen we are using, has put together a list of places to get stock ROMs for different devices and a quick how to load them into the kitchen:
From a Cooked ROM (Easiest Method):
1. Copy the update.zip (or equivalent ZIP file) to the original_update folder in the kitchen
2. Type the number for the option “Setup Working Folder from ROM” and hit enter in the Kitchen to create your working folder. (So if its number is 1, type 1 then hit enter).
From a Shipped ROM:
1. Find the shipped ROM for your device, usually from htc.com or from searching xda-developers (check the Wiki or sticky posts under your device’s sub-forum).
The links below may help:
HTC Hero
Google Nexus One (android.modaco.com/topic/300414-21oct-stock-roms-erd79- frg83-images-zip-online-kitchen-optional-root-insecure/)
" copy paste on browser than download it "
HTC Magic
HTC Tattoo
2a. If the shipped ROM is in a .ZIP format, then simply extract the system.img and boot.img.
2b. If the shipped ROM is in .EXE format, then do the following:
A. In Windows, run the shipped ROM’s .EXE file till it gets to the first dialog. Stop there but don’t close the window yet.
B. Go to Start->Run and type: %TEMP%
C. When the folder opens, search for Rom.zip. Then, open it with an unzip tool. If you get errors trying to open the ZIP file with WinZip or the default Windows unzip program, then use 7Zip (download from "w_w_w_.7-zip.org/ "_" from link) to extract it.
D. Extract only two files from Rom.zip: system.img and boot.img
3. Copy the two .IMG files to your kitchen’s img_files folder in your Ubuntu Virtual Machine.
4. In the Terminal window that you opened in Section I, type 1 and hit enter to create a working folder from the two .img files.
Now, that you have either the update.zip in the original_update folder of the kitchen OR the system.img and boot.img of a shipped ROM in the img_files folder of the kitchen, you are ready to play with the ROM to make it your own.
III. Tweaking the Imported ROM Using the Automated Options in the Kitchen
So this is a basic kitchen, but you can do things like, add Root support, add/remove apps from the ROM, enable saving apps to the sd card, enabling Wifi tethering, do some automatic optimizations, and a few other things automatically just by selecting the option and hitting enter. It even allows you to put in your own scripts for the ROM to run (but that’s for more advanced users who know how to create scripts of course).
1. After importing a ROM using section II, select the options you want to do to the ROM (by typing the number of the option you want into the terminal/kitchen window and hitting enter. They are all pretty self explanatory.)
2. Continue this until you have all the automated options you want in the new ROM.
IV. Adding/Removing Applications from the ROM
1. In your Ubuntu Virtual Machine, goto Places at the top. Then click on Home Folder, then the WORKING folder that was created in section II when you dissected the original ROM or img files. Then goto system > app. (Also check Data > App as .apks can be put in there as well).
2. In the app folder you will see all the .apk files for all the applications you have currently in the ROM. Simply delete the ones you do not want to remove them from the ROM.
3. To add applications, simply copy any .apk file for the applications you want to add into the app folder.
V. Repackage the ROM so it can be Flashed onto a Phone
1. Once you have done whatever changes you want, you just need to type 99 and hit enter in the kitchen/terminal for the kitchen to take the working folder you have been messing with and compile it into a flashable update.zip ROM.
2. Once it is done compiling the ROM, we can transfer it to our phone.
VIa. Setup Ubuntu to See Your Phone via USB
1. In the Virtual Box windows with Ubuntu in it, click on Devices at the top then click Install Guest Additions. (It should autostart, if it doesn’t, click on the CD that appeared on the desktop in Ubuntu and then click on Autostart.sh. It will ask you for your password you created when setting up Ubuntu, put that in and let it install).
2. Once the Guest Additions are installed, close the Virtual Box Ubuntu Window (choose to Power Down the Machine).
3. Now, open Virtual Box itself (not Ubuntu) and highlight the Ubuntu machine, then click on Settings at the top.
4. Click on USB and make sure Enable USB Controller and Enable USB 2.0 are both enabled.
5. Now plug in your Android phone (do NOT mount the SD card, just plug it in).
6. Now in the USB menu of Virtual Box, click the + symbol on the right and then select your Android Device (name may be different).
7. Once that is installed, unplug your phone.
8. Now, Start your Ubuntu Virtual Box.
9. Once Ubuntu boots up, plug in your Android phone (do not mount the memory card yet) and look for the USB symbol at the bottom (fourth icon from the left) and hover over it and wait for it to say USB Device detected and display your phone. Once that happens, mount the sd card by pulling down the notification bar on your phone and clicking mount.
10. Ubuntu should pop up your SD card on the desktop (if any prompts come up just select do nothing and click ok). We can now transfer files to the memory card of our phone.
VIb. Use RapidShare to Transfer the File from Ubuntu to Windows (if Section VIa was giving you trouble)
1. If you can’t get the USB to work in Ubuntu, then simply open a Firefox browser window, goto Rapidshare.com and upload the ROM to there.
2.Once it is done uploading, ON YOUR WINDOWS COMPUTER NOT UBUNTU, put in the link it gave you when you finished uploading it, to download it to your Windows computer so we can transfer it to your phone.
VII. Flash the ROM
5. Copy the .zip file to the root of your SD card (NOT in any folders, just on the SD card itself).
6. Unplug the phone and turn it off.
7. Turn it back on by holding down home and power (do not let go until the recovery screen comes up) to get to recovery mode (you must have a custom recovery screen to do this, if you don’t find out How To Root and Load a ROM procedure for your phone and do those first).
8. Now select Nandroid Backup to create a backup before we flash the new ROM.
9. Once the backup is done, select Wipe Data / Factory Reset in recovery mode.
10. Select flash zip from sd card and select the ROM you just put on the sd card.
11. Once it is done flashing, click reboot. Enjoy!
Enjoy! Will update this as we add more things for you to tweak FeWant to Flash a New Splash Screen on Your 320×480 Resolution Android Device? Here’s how.
el free to suggest some in the meantime.
Thanks to DsiXDA for his awesome kitchen!
Click to expand...
Click to collapse
thanks for the info..hope for othr mobs also it will com soon
Tell me when it works for SGY
Inform me when it starts working for SGY... PLz I want to make one..
Looking good if work on sgy hehe looking forward for info

[Tutorial] install kitchen in linux en use it! tutorial thanks to theunlockr

Heey everyone here the quide for how to set up kitchen in linux virtualbox
Not made by me but made by the amazing guys from the unlockr Thanks!!!
Part 1
[I Before you begin]
1. This ONLY works for HTC Android devices at the moment, Also other devices!
[II. Download a Virtual Machine and Set It Up.]
1. Download VirtualBox for free from here (the one for Windows Hosts at the top). Then click next on the setup process until it installs.
2. Open VirtualBox and click on New.
3. Name the New Virtual Machine whatever you want (we named it Linux for simplicity’s sake).
4. For Operating System choose Linux, then choose Ubuntu for Version and click next.
5. Click Next again leaving the Memory Setting at what it is preselected at (should be 384mbs).
6. Click Next on the Boot Disk screen as well leaving boot hard disk and create new hard disk both selected.
7. Keep clicking Next until you get to the slider that asks how much space to set for the Linux. Move the slider to 8Gbs and click next.
8. Click next until it is done and shows you the original screen you started on but now with the Linux Machine Powered Off on the left.
[III. Install Linux Ubuntu on the Virtual Machine]
1. Download Ubuntu from here.
2. Once it is downloaded, in the VirtualBox program, click the Start button at the top.
3. Close out all the warnings that come up.
4. Then click on Devices > CD/DVD Devices > More CD/DVD Images… then select the .iso image for Ubuntu you downloaded.
6. Follow the prompts on the screen to install Ubuntu on your Virtual Machine.
7. Once it is installed and reboots, goto Applications > Accessories > Terminal and type this line with hitting enter at the end:
sudo apt-get install sun-java6-bin sun-java6-jre
It will ask you for a password, type in the password you created when you went through the Ubuntu installation process (it asked you for it before finishing the install).
Then it will ask you y/n. Hit y then enter. Then when it shows you the terms and conditions, hit right arrow on your keyboard and click enter to select ok. Then hit left arrow on your keyboard and enter to select Yes.
*NOTE – Your keyboard and mouse will not function on your regular computer once you use them in the Ubuntu virtual machine. To re-enable them, click the Ctrl button on the right side of your keyboard.
**IF YOU GET AN ERROR INSTALLING THE JAVA FILES,
Download the java files manually FROM INSIDE THE EMULATOR/LINUX using Firefox here:
Java6 Bin
Java6 Jre
Then open the Terminal App in Ubuntu and type this with hitting enter at the end of the line:
sudo dpkg -i sun-java6-jre_6.18-4_all.deb sun-java6-bin_6.18-4_i386.deb
And that should fix it.
[IV. Download and Setup The Android ROM Kitchen]
!THIS NEXT SECTION NEEDS TO BE DONE WITHIN THE UBUNTU VIRTUAL MACHINE!
1. Click on the Firefox logo at the top of your Ubuntu installation (in the Virtual Machine).
2. Type this into the url box:
theunlockr.com/2010/03/26/how-to-create-your-own-custom-rom-for-android-part-1-setting-up-the-kitchen (to navigate to this page from within the virtual machine).
3. Now download the latest version of the kitchen file  in the first post from the link below(again from inside the Ubuntu installation on the virtual machine. We are doing this because we want to save this file in our Ubuntu Virtual machine, NOT our regular computer).
Kitchen
4. Again on the Ubuntu machine, Find the .zip file you just downloaded, right click it and click open with Archive Manager and then click Extract at the top.
5. Once you click Extract, it will ask you where. Double click the folder that has the name you created when you installed Ubuntu (my username was theunlockr so my folder is called theunlockr. It is the first folder under recently used in the list on the left). Then click Extract at the bottom right.
[V. Run the Android ROM Kitchen]
1. To run the Android ROM kitchen, click on Applications at the top of Ubuntu > Accessories > Terminal then type the following and hit enter:
./menu
2. You will now be greeted by the simple text menu of the application. Enjoy!
VI. Create Your First Custom ROM
=================================================
Part 2
Before You Begin
1. We are assuming you have already setup the Android kitchen. If not, use our How To Setup The Kitchen procedure and then come back to this one when done.
2. We are also assuming you have already done our How To Root and How To Load a Custom ROM for your phone and have a custom recovery image.
2. This ONLY works for HTC Android devices at the moment, Also other devices
3. Open the Kitchen in your Ubuntu Virtual Machine we created in the Kitchen Setup procedure by typing ./menu in the Terminal window in Ubuntu. Leave it open.
4. All of this is done INSIDE THE UBUNTU VIRTUAL MACHINE (that includes when I say “save to your computer” anywhere in here, means save to you Ubuntu Virtual Machine)!
II. Find a ROM to Dissect
There are two kinds of ROMs you can dissect to create your own custom ROM; Stock ROMs and Custom/Cooked ROMs. DsiXDA, creator of the ROM kitchen we are using, has put together a list of places to get stock ROMs for different devices and a quick how to load them into the kitchen:
From a Cooked ROM (Easiest Method):
1. Copy the update.zip (or equivalent ZIP file) to the original_update folder in the kitchen
2. Type the number for the option “Setup Working Folder from ROM” and hit enter in the Kitchen to create your working folder. (So if its number is 1, type 1 then hit enter).
From a Shipped ROM:
1. Find the shipped ROM for your device, usually from htc.com or from searching xda-developers (check the Wiki or sticky posts under your device’s sub-forum).
The links below may help:
2a. If the shipped ROM is in a .ZIP format, then simply extract the system.img and boot.img.
2b. If the shipped ROM is in .EXE format, then do the following:
A. In Windows, run the shipped ROM’s .EXE file till it gets to the first dialog. Stop there but don’t close the window yet.
B. Go to Start->Run and type: %TEMP%
C. When the folder opens, search for Rom.zip. Then, open it with an unzip tool. If you get errors trying to open the ZIP file with WinZip or the default Windows unzip program, then use 7Zip (download from here) to extract it.
D. Extract only two files from Rom.zip: system.img and boot.img
3. Copy the two .IMG files to your kitchen’s img_files folder in your Ubuntu Virtual Machine.
4. In the Terminal window that you opened in Section I, type 1 and hit enter to create a working folder from the two .img files.
Now, that you have either the update.zip in the original_update folder of the kitchen OR the system.img and boot.img of a shipped ROM in the img_files folder of the kitchen, you are ready to play with the ROM to make it your own.
III. Tweaking the Imported ROM Using the Automated Options in the Kitchen
So this is a basic kitchen, but you can do things like, add Root support, add/remove apps from the ROM, enable saving apps to the sd card, enabling Wifi tethering, do some automatic optimizations, and a few other things automatically just by selecting the option and hitting enter. It even allows you to put in your own scripts for the ROM to run (but that’s for more advanced users who know how to create scripts of course).
1. After importing a ROM using section II, select the options you want to do to the ROM (by typing the number of the option you want into the terminal/kitchen window and hitting enter. They are all pretty self explanatory.)
2. Continue this until you have all the automated options you want in the new ROM.
IV. Adding/Removing Applications from the ROM
1. In your Ubuntu Virtual Machine, goto Places at the top. Then click on Home Folder, then the WORKING folder that was created in section II when you dissected the original ROM or img files. Then goto system > app. (Also check Data > App as .apks can be put in there as well).
2. In the app folder you will see all the .apk files for all the applications you have currently in the ROM. Simply delete the ones you do not want to remove them from the ROM.
3. To add applications, simply copy any .apk file for the applications you want to add into the app folder.
V. Repackage the ROM so it can be Flashed onto a Phone
1. Once you have done whatever changes you want, you just need to type 99 and hit enter in the kitchen/terminal for the kitchen to take the working folder you have been messing with and compile it into a flashable update.zip ROM.
2. Once it is done compiling the ROM, we can transfer it to our phone.
VIa. Setup Ubuntu to See Your Phone via USB
1. In the Virtual Box windows with Ubuntu in it, click on Devices at the top then click Install Guest Additions. (It should autostart, if it doesn’t, click on the CD that appeared on the desktop in Ubuntu and then click on Autostart.sh. It will ask you for your password you created when setting up Ubuntu, put that in and let it install).
2. Once the Guest Additions are installed, close the Virtual Box Ubuntu Window (choose to Power Down the Machine).
3. Now, open Virtual Box itself (not Ubuntu) and highlight the Ubuntu machine, then click on Settings at the top.
4. Click on USB and make sure Enable USB Controller and Enable USB 2.0 are both enabled.
5. Now plug in your Android phone (do NOT mount the SD card, just plug it in).
6. Now in the USB menu of Virtual Box, click the + symbol on the right and then select your Android Device (name may be different).
7. Once that is installed, unplug your phone.
8. Now, Start your Ubuntu Virtual Box.
9. Once Ubuntu boots up, plug in your Android phone (do not mount the memory card yet) and look for the USB symbol at the bottom (fourth icon from the left) and hover over it and wait for it to say USB Device detected and display your phone. Once that happens, mount the sd card by pulling down the notification bar on your phone and clicking mount.
10. Ubuntu should pop up your SD card on the desktop (if any prompts come up just select do nothing and click ok). We can now transfer files to the memory card of our phone.
VIb. Use RapidShare to Transfer the File from Ubuntu to Windows (if Section VIa was giving you trouble)
1. If you can’t get the USB to work in Ubuntu, then simply open a Firefox browser window, goto Rapidshare.com and upload the ROM to there.
2.Once it is done uploading, ON YOUR WINDOWS COMPUTER NOT UBUNTU, put in the link it gave you when you finished uploading it, to download it to your Windows computer so we can transfer it to your phone.
VII. Flash the ROM
5. Copy the .zip file to the root of your SD card (NOT in any folders, just on the SD card itself).
6. Unplug the phone and turn it off.
7. Turn it back on by holding down home and power (do not let go until the recovery screen comes up) to get to recovery mode (you must have a custom recovery screen to do this, if you don’t find out How To Root and Load a ROM procedure for your phone and do those first).
8. Now select Nandroid Backup to create a backup before we flash the new ROM.
9. Once the backup is done, select Wipe Data / Factory Reset in recovery mode.
10. Select flash zip from sd card and select the ROM you just put on the sd card.
11. Once it is done flashing, click reboot. Enjoy!
Enjoy! Will update this as we add more things for you to tweak Feel free to suggest some in the meantime.
Thanks to DsiXDA for his awesome kitchen!
Thanks to Theunlockr For the amazing Guide !!!
greetings safariking
Video tutorials:
Part 2:http://www.youtube.com/watch?feature=player_embedded&v=q-1ErGSW0ik
Part 1: http://www.youtube.com/watch?feature=player_embedded&v=94Az1kcQvc4
Thanks safariking!
Thanks
very good tutorial thanks
Hi there
Does Android Kitchen Only work in virtual Machine for Ubunty? I have a full installtion of Ubunty and when I type ./menu at the terminal "no such file or directory" followed the installation video but I ain't getting nowhere
Cheers
atomicsoul said:
Hi there
Does Android Kitchen Only work in virtual Machine for Ubunty? I have a full installtion of Ubunty and when I type ./menu at the terminal "no such file or directory" followed the installation video but I ain't getting nowhere
Cheers
Click to expand...
Click to collapse
no.
kitchen can be used on all Linux/Unix OS.
中国人正在尝试提高!
(translation:Chinese people are trying to improve themselves!)
Very nice job. We thank you for your time and effort for writing all of that
Thanks
Sent from my GT-S5660 using xda premium
Just a note: linux isnt required
You can use windows, but does require to install cygwin (linux like terminal)
Sent from my GT-S5660 using xda premium

First timer here, need a little more than the vague install directions.

Hey guys, so I have been trying to root and install a custom ROM on my MetrobyTmobile Moto G7 power (XT1955-2 Ocean) Pie 9.0 and the latest updates have been installed.
So i finally figured out how to unlock the bootloader with help from Motorola's unlocking website and unusually long string of numbers and letters to enter into their website. Pho ne is unlocked. I had downloaded the latest versions off all these including:
-TWRP 3.3.1-ocean.img
-Copy AB partiotion file zip
-Open_gapps-x86_64-9.0-stock-20200612
-RR-P-v7.0.2-20191103-ocean-Unofficial-signed
-XT1955-5_OCEAN_TMO_9.0_PCOS29.114-134-14_cid21_subsidy-MPCS_RSU_QCOM_regulatory-DEFAULT_CFC.xml
-ADB minimal 1.4.3
(I also made a backup with the Lenovo rescue and smart assistant
I've tried following directions on several write ups of certain custom ROM installs but when i get to CMD line (DOS) I can kind of get ADB to pull up menus, but I can't get any further. I cant find any detailed step by step with info like where do the downloaded folders of the above programs and Rom's go while still in Windows 10. Nor I can find exact write up of what to type in the CMD line (i am not a coder or went to school for any computer programing.
So I have all the unzipped folders above moved into my C:\ drive with the other main o.s. system folders such as Windows, Program files(x86), Programdata, Users, Perflogs.
Please, anyone who can get me pointed in the right direction, especially with the A+B Partitions and how to type this all into the Command Line, I will be very appreciative. Using cracked apks and MicroG and such just isn't how I want to be using my phones potential with.
This is my first time posting here, I usually am on auto mechanic forums so let me know I i missed something or said to much bla bla. LOL
Thanks!
DerekLindvall said:
Hey guys, so I have been trying to root and install a custom ROM on my MetrobyTmobile Moto G7 power (XT1955-2 Ocean) Pie 9.0 and the latest updates have been installed.
So i finally figured out how to unlock the bootloader with help from Motorola's unlocking website and unusually long string of numbers and letters to enter into their website. Pho ne is unlocked. I had downloaded the latest versions off all these including:
-TWRP 3.3.1-ocean.img
-Copy AB partiotion file zip
-Open_gapps-x86_64-9.0-stock-20200612
-RR-P-v7.0.2-20191103-ocean-Unofficial-signed
-XT1955-5_OCEAN_TMO_9.0_PCOS29.114-134-14_cid21_subsidy-MPCS_RSU_QCOM_regulatory-DEFAULT_CFC.xml
-ADB minimal 1.4.3
(I also made a backup with the Lenovo rescue and smart assistant
I've tried following directions on several write ups of certain custom ROM installs but when i get to CMD line (DOS) I can kind of get ADB to pull up menus, but I can't get any further. I cant find any detailed step by step with info like where do the downloaded folders of the above programs and Rom's go while still in Windows 10. Nor I can find exact write up of what to type in the CMD line (i am not a coder or went to school for any computer programing.
So I have all the unzipped folders above moved into my C:\ drive with the other main o.s. system folders such as Windows, Program files(x86), Programdata, Users, Perflogs.
Please, anyone who can get me pointed in the right direction, especially with the A+B Partitions and how to type this all into the Command Line, I will be very appreciative. Using cracked apks and MicroG and such just isn't how I want to be using my phones potential with.
This is my first time posting here, I usually am on auto mechanic forums so let me know I i missed something or said to much bla bla. LOL
Thanks!
Click to expand...
Click to collapse
To make things easy in windows 10 make sure the driver thing is off first.Then make sure you install adb program to the root of your c drive.Then make sure your a b partion zip is in the adb folder.Then go to computer on ur menue to c drive open up adb folder inside the folder u should see a comand prompt icon or go to search typ cmd and it will bring up windo with c:/adb prompt somi liky that then typ fastboot device it should bring up some numbers.And make sure I have USB debug turned on in phone and have phone in bootloader mode by holding power and volume buttons till a screen comes up use volume bootons to scroll throy to u see restart bootloader .then typ fastboot devices again should get some numbers.now if u got the a b partion zip in your adb folder typ fastboot flash a b partion zip .I renamed mine to shorter name like adpart.zip.on Soo machines u need to just typ abpart then it goes sometimes u have to put the .zip after the abpart then should go.google on how to flash the A B partion zip and also get ur twrp IMG in ur adb folder if things go right the partion zip should flashed with no eorrs then typ fastboot boot recovy or what u saved name is then phone boot up to twrp.to make it easier before u get this far u can put in ext sdcard and u can put ur rom of choice on it .u can I stall twrp but sometimes they touch won't work but I can always boot into twrp from the adb comands.i tryed to make it simple but Google all this before doing anything more and get the comands saved in note pad then u can copy and paste.i try to find the link that details all of of this .there is an tellagram group that might b helpful I use them and here to get mine done
roadkill42 said:
To make things easy in windows 10 make sure the driver thing is off first.Then make sure you install adb program to the root of your c drive.Then make sure your a b partion zip is in the adb folder.Then go to computer on ur menue to c drive open up adb folder inside the folder u should see a comand prompt icon or go to search typ cmd and it will bring up windo with c:/adb prompt somi liky that then typ fastboot device it should bring up some numbers.And make sure I have USB debug turned on in phone and have phone in bootloader mode by holding power and volume buttons till a screen comes up use volume bootons to scroll throy to u see restart bootloader .then typ fastboot devices again should get some numbers.now if u got the a b partion zip in your adb folder typ fastboot flash a b partion zip .I renamed mine to shorter name like adpart.zip.on Soo machines u need to just typ abpart then it goes sometimes u have to put the .zip after the abpart then should go.google on how to flash the A B partion zip and also get ur twrp IMG in ur adb folder if things go right the partion zip should flashed with no eorrs then typ fastboot boot recovy or what u saved name is then phone boot up to twrp.to make it easier before u get this far u can put in ext sdcard and u can put ur rom of choice on it .u can I stall twrp but sometimes they touch won't work but I can always boot into twrp from the adb comands.i tryed to make it simple but Google all this before doing anything more and get the comands saved in note pad then u can copy and paste.i try to find the link that details all of of this .there is an tellagram group that might b helpful I use them and here to get mine done
Click to expand...
Click to collapse
You should use paragraphs or anything like that!
WoKoschekk said:
You should use paragraphs or anything like that!
Click to expand...
Click to collapse
Sorry I'm looking for the format that I did
Adb fastboot was a big problem. Use newest platform tools instead. World of difference with them commands...

Categories

Resources