[Q] Trying Nexus S in dual boot mode ---- big mess up - Nexus S General

Hi Folks,
M relatively very new to android usage. I recently brought Samsung Nexus S which I loaded with MIUI to experiment and experience a richer UI feel. However, it didn't work too well for me due to stability issues like message keeps crashing even after applying mms.apk patch.
Well after been thru with the experiment, I want to get back to stock ROM which came with Nexus S. I referred to the forum link but I keep getting an error as installation failed in recovery mode. Is there something wrong that I am doing. Some One please help!!!!!
It would be great if I can have my nexus S on dual boot with both MIUI and Stock ROM installed and I having option to chose one while booting the phone.. However, that is not a must have....
Must have is only a way to get back to Stock ROM for Nexus... All help very much appreciated.
<Many Thanks to all...

You know that the Nexus S rewrites the stock recovery over every boot (unless you rename it) Can you boot into fastboot? And reflash CWM?
Sent from my NS (no it's NOT SNS or GNS)

Moved to Nexus S forums for better exposure.

To get back to stock:
a) boot into fastboot mode (vol up + power on)
b) flash cwm recovery via adb console (fastboot flash recovery recoveryname.img) (recovery file has to be inside the /tools folder in adb)
c) go into cwm recovery
d) mount usb storage
e) after pop up on pc: copy the the correct zip for your NxS type on your sdcard/usb storage. Download it from here: http://forum.xda-developers.com/showthread.php?t=1056062
f) unmount usb storage
g) stay inside the recovery menu, but go to install from zip menu
h) navigate to the zip file you downloaded and placed on your usb storage at e)
i) confirm the installation and wait for it to finish
j) move to top recovery menu, choose reboot and you're done, stock Android 2.3.4
If you get any unknown device errors you're missing usb drivers for your phone mostlikely, get them from the guides on this forum.
If everything else fails you. Go to www.samfirmware.com > Toolbox > firmware > etc > choose correct firmware for your NxS model. After downloading Odin itself from samfirmware.com (Toolbox > programs) as well.
Start Odin, there should be a yellow field with a port number (if not you're missing drivers). Make sure only "Auto reboot" and "F. Reset time" are checked. Add the correct files from the zip you got off samfirmware.com. Bootloader belongs to Bootloader, PDA to PDA and Phone to Modem. CSC can be left empty, it'll just change the carrier info inside the bootloader. Press "Start", wait for Odin to finish, it'll say when it's done (takes ~2-3mins, yellow field is now blue and says "Pass").

rentaric said:
To get back to stock:
a) boot into fastboot mode (vol up + power on)
b) flash cwm recovery via adb console (fastboot flash recovery recoveryname.img) (recovery file has to be inside the /tools folder in adb)
c) go into cwm recovery
d) mount usb storage
e) after pop up on pc: copy the the correct zip for your NxS type on your sdcard/usb storage. Download it from here: http://forum.xda-developers.com/showthread.php?t=1056062
f) unmount usb storage
g) stay inside the recovery menu, but go to install from zip menu
h) navigate to the zip file you downloaded and placed on your usb storage at e)
i) confirm the installation and wait for it to finish
j) move to top recovery menu, choose reboot and you're done, stock Android 2.3.4
If you get any unknown device errors you're missing usb drivers for your phone mostlikely, get them from the guides on this forum.
If everything else fails you. Go to www.samfirmware.com > Toolbox > firmware > etc > choose correct firmware for your NxS model. After downloading Odin itself from samfirmware.com (Toolbox > programs) as well.
Start Odin, there should be a yellow field with a port number (if not you're missing drivers). Make sure only "Auto reboot" and "F. Reset time" are checked. Add the correct files from the zip you got off samfirmware.com. Bootloader belongs to Bootloader, PDA to PDA and Phone to Modem. CSC can be left empty, it'll just change the carrier info inside the bootloader. Press "Start", wait for Odin to finish, it'll say when it's done (takes ~2-3mins, yellow field is now blue and says "Pass").
Click to expand...
Click to collapse
I am able to get in cwm and perform a fastboot. unfortunately, I keep getting error when i select the zip file to install the stock rom.

a) you downloaded a corrupted file (compare mp5 tags if possible)
b) you downloaded the wrong rom for your device
c) the rom has to be in the top folder of the sdcard/usb storage
d) did you unmount the usb storage after copying the file onto your phone?
I am able to get in cwm and perform a fastboot.
Click to expand...
Click to collapse
This makes me wonder though, you mixed up the order? Booting into fastboot is performed before flashing/entering cwm recovery.

Related

Nexus S Forgot Security PIN

Hey all,
Hopefuly someone can help me otherwise i'm going to have to take this phone back to the o2 shop where I got it from.
I have a Nexus S, was looking at custom roms the other night and decieded to unlock and root it and flash the CyW7 rom onto it.....after a couple hours of playing with the new software I decieded it wasn't for me so flashed the device back to stock 2.3.1 software.
2.3.1 loaded fine and I installed the 2.3.2 update before rooting it so I could install adblock.
Got it all working fine, setup a security PIN (8 digits) and went to bed.
Woke up this morning and found the phone was not accepting the PIN, ive tried rebooting, trying the PIN in different varations incase I setup a wrong PIN in the first place......still no luck
So, i've looked into reflashing the device with stock 2.3.1 software again but USB debug mode isn't on and I can't install the USB drivers in Fastboot mode (says no compatible driver found for my hardware error)
How do I move forward here? Is there anything I can do to fix it?
Thanks a billion for anyone who gives me advice....
Boot into recovery and factory reset.
Boot recovery took me to a error screen where I had to take battery out to reset it.
I've managed to get the USB drivers to work now, and flashed the clockwordmod recovery image, then reset the phone.
Can I just confirm;
Is this the correct proceedure for the Nexus S to stop the Clockwordmod recovery from been removed.
1. Download the custom recovery image and save it to your computer
2. Copy the recovery.img file inside the tools folder of the sdk (so it is in the same folder as fastboot.exe)
3. Then in the command prompt that should still be open, type the following with hitting enter at the end of each line:</p><p>fastboot flash recovery recovery.img
4. Once it is flashed, leave the phone in plugged in and in fastboot mode.
6. Root the Phone
7. In fastboot mode, select Recovery using the volume buttons and power button and wait for it to boot into recovery mode.
8. Download the Superuser flashable zip file and save it to your computer.
9. Once in recovery mode, select Mounts and Storage then select Mount USB Storage so we can transfer files to the sd while it is in recovery mode.
10. Copy the Superuser.zip file to the root of your internal storage (do NOT extract it, do NOT put it in any folders, just on the phones storage itself).
11. Select Unmount on the phone.
12. Select Mount System, then select Go Back to get back to the main menu.
13. Then scroll to flash zip from sdcard and then choose zip from sd card and select the superuser.zip file and wait for it to finish flashing.
14. Once it is done, select Go Back then Reboot System and wait for the phone to reboot.
15. Stop the Phone from Uninstalling the Custom Recovery Image
16. Once the phone is booted up, plug it in via USB cable and do NOT mount the storage.
17. Open a command prompt on the computer and type the following with hitting enter at the end of each line:
adb shell
cd etc
mount -o rw,remount /dev/block/mtdblock3 /system
mv install-recovery.sh install-recovery-no.sh.
18. Turn off the phone and turn it back on by holding down Volume Up and Power to get into fastboot mode.
19. Plug the phone in via USB cable while in fastboot mode and open the command prompt again and type the following with hitting enter at the end of each line:
cd c:\androidsdk\tools\
adb reboot bootloader
fastboot flash recovery recovery.img

Tethering on 2.1

I have a rooted GT540 on stock 2.1.
When I try to use tethering programs I get errors relating to Kernels and such.
Is there a method to tether without using a different rom?
You can't tether when you're on 2.1 ROM.... at least Froyo is required...
matcho13579 said:
You can't tether when you're on 2.1 ROM.... at least Froyo is required...
Click to expand...
Click to collapse
You're wrong. Use Barnacle WiFi Tether from market instead. Or use Quarx's Custom Kernel that enables the WiFi tether app from google code to work, but you need to have installed Fastboot rom to install it.
Cheers.
Unfortunately Barnacle hasn't done the job either
KenifJambo said:
Cheers.
Unfortunately Barnacle hasn't done the job either
Click to expand...
Click to collapse
All I can suggest then is installing a custom kernel or ROM I'm afraid.
Here is how you can.
Download this:
http://www.mediafire.com/?imautlh0m29cl2t
This has a fastboot ROM that enables fastboot + recovery so we can flash custom roms.
How to install (Guide from MrMentality @ MoDaCo):
1. Go to the Market and install 'MyBackup Root', open it and do a backup of your apps and personal data (contacts, sms, call log etc.) Once this is done, go to Settings>SD Card and Phone Storage>Unmount SD Card, a notification in the notification bar should appear saying 'SD Card safe to remove'. Remove the battery cover and remove the SD card and store it in a safe place. Then continue to step 2.
2. Extract the .zip file you downloaded to your computer (e.g. your desktop). Open the folder and install MSXML 4.0 SP3 Parser (msxml.msi).
3. If you have your Drivers installed, then skip this: Once that has finished, install LGAndroidDriver_WHQL_ML_Ver1.0_All_Win7.exe which are the drivers so your computer will recognize your phone.
4. Next, open KDZ_FW_UPD.exe
(i) Change 'Type' to '3GQCT' *THIS IS A MUST, THE UPDATE WILL NOT WORK OTHERWISE AND YOU MAY BRICK YOUR PHONE*
(ii) Make sure 'PhoneMode' is set to 'DIAG'
(iii) Browse for the 'V20B_00+Fastboot.kdz' file.
5. Prepare the phone by enabling USB Debugging by going to Settings>Applications>Development>Enable USB Debugging and connect the phone to the computer via USB cable and wait for the drivers to install for the phone.
6. Click 'Launch software update' and do not use your computer until the update is complete. The update will take roughly 10-20 mins to complete. When phone has rebooted, re-root your phone.
Installing recovery:
You have multiple choices to choose from.
ClockworkMod Recovery 2.5.1.8 (Recommended)
ClockworkMod Recovery 4.x (Recommended but you may run into incompatible .zip files, download the recovery_clockwork_x.x.x.x_swift.zip file)
Amon RA 2.2.1 (Recommended but has issues with recovery backups and usb toggle)
Amon RA 1.7.0.1 (Not recommended due to incompatibility with zip files and recovery backups. Also .zips must be signed)
Download the recovery image of your choice (I recommend 2.5.1.8)
Next put your phone in Fastboot mode by rebooting then holding Camera+Power, make sure USB Cable is plugged in. Also let Windows search Windows Update for drivers.
Download fastboot.exe from here: http://adf.ly/2M8Hi and extract it to the desktop. Also put the recovery image you downloaded onto the desktop too.
Open a command prompt and type the following:
Code:
cd Desktop
fastboot devices (if you see ? fastboot then your device is recognized)
fastboot flash recovery name_of_recovery.img
fastboot reboot
When fastboot says rebooting, hold down HOME and wait. You should see clockwork pop up. And there you are, recovery on your phone!
Now to install a custom kernel/rom. If you are happy with Android 2.1 and want tethering, go to step 1 and skip step 2. If you want the bleeding edge and want the latest and greatest Android version, skip step 1 and go to step 2.
Step 1:
Download the boot_666_MMXTREM_init.d.zip from here. Also grab addons.zip from here.
By using the volume keys, go down to Mounts and Storage, press call button, then go to Mount USB Storage, press call button again. On your computer, put both .zip files on the SD Card. Then press call button on phone. Press back until you are at the main screen. Now go to 'install .zip from sdcard' press call to select and press choose .zip, then go down to 'boot_666_mmxtrem.init.d.zip' and select that, then go down to yes and then select, wait until install finishes. Now go back into install.zip and do the same for the addons.zip. When that is finished, go back to main screen and go to 'advanced' and select Wipe Dalvik cache, select yes, wait and then reboot phone. Now try to tether and it should work no problems.
Step 2.
Download any ROM you want from the GT540 section here on XDA.
It will come in either three formats.
Fastboot- boot.img and system.img
Recovery .zip- a .zip file that contains boot.img, and two folders, META-INF and system. DO NOT EXTRACT THIS.
Recovery Backup- boot.img, system.img, data.img, and nandroid.md5
For Fastboot, put phone in fastboot mode, put system.img and boot.img on the desktop, open a command prompt and type:
Code:
fastboot -w
fastboot erase system
fastboot erase boot
fastboot flash boot boot.img
fastboot flash system system.img
fastboot reboot
For recovery.zip, put the .zip file on SD Card (if you are downloading SwiftDroid Recovery version, extract the SwiftDroid_x.x.x.x_recovery.zip put the update-cm-xxxxxx.zip file on your SDCard, not the SwiftDroid.zip one. Then flash in recovery like described in step 1. Remember to factory reset to avoid bootloops.
For recovery backup, put the folder in the ClockworkMod\backup\ folder on the sdcard. Then go to Backup and Restore, choose restore and then choose the backup folder.
Hope it resolves your issues!
Thanks for all that information.
Turns out I was wrong!
My devices don't support ad-hoc so barnacle wasn't the problem.
Found the solution for one of them and Barnacle works.
Still not confident of installing fastboot/roms etc on my gt540 but I managed to find some sort of alternative
Barnacle works for one device (Creative Ziio with ad-hoc enabled)
PDAnet for tablets beta works with browser for my Asus Transformer.
KenifJambo said:
Still not confident of installing fastboot/roms etc on my gt540 but I managed to find some sort of alternative.
Click to expand...
Click to collapse
I can understand your trepidation, but the above instructions are solid and straightforward. I was a bit hesitant at first, but realize that the first steps really involve setting up USB drivers to allow your desktop PC to communicate with the phone, and a program called Fastboot. After that, the installation of the ROM is very simple, and is just a RAR file that you decompress into c:\Android (for example) and run a .Bat file that contains the commands he pasted.
It is well worth it.

[HOWTO] All-in-One Guide to Flashing your first ROM

This is an effort to write a comprehensive all-in-one guide (for newbies too) to flash ROMS on Huawei S7 Slim 201.
First and foremost you have to root your device (so that you can use certain applications e.g. ROM Manager, Titanium Backup). Do the following:
1. Download SuperOneClick (google it) and extract the files
2. Install Huawei Ideos S7 Slim drivers to your computer (if you have not done it already).
3. Connect your device to your computer via USB. Make sure you have activated USB Debugging on your device. Go to settings > applications > development > tick on USB Debugging.
4. Run SuperOneClick.exe. Disable your Antivirus program before running SuperOneClick (optional but helpful). If the drivers for your device are not installed, SuperOneClick will prompt you to let it find the drivers itself. Press yes and let it continue.
5. Click the root tab. (For my device I had to click root several times because the process got stuck, but eventually it succeeded)
6. After the rooting process ends, reboot your device.
Important notice: Although SuperOneClick confirmed twice that the device was rooted, Titanium Backup could not confirm root. If anyone knows of another way please advise.
Now, in order to flash ROMs do the following:
First of all, you have to install ClockworkMod Recovery on your device. (This will help you to perform many other tasks)
There are two versions of ClockWork Recovery (that I know of).
First one is v2.1.5.8
1. Download the recovery zip (201u.7z) from the attachments .
2. Extract the file.
3. Make sure you have activated USB Debugging on your device. Go to settings > applications > development > tick on USB Debugging
4. Turn off your device and connect it to your computer via USB.
5. Press the volume up key and the power key at the same time until the device enters fastboot mode.
6. Run install.bat (from the unzipped files)
7. When the process ends, reboot your device.
8. With the USB cable connected run reboot into recovery.cmd (from the unzipped files). In the window that will open on the PC, type “adb reboot recovery” without the quotation marks and your device (after a few seconds) will enter recovery mode. (This is something you will have to do every time you enter recovery mode, unfortunately, unless you upgraded to CM9 or CM10 where you can boot to recovery by long pressing the power button anchoosing Reboot> Recovery)
9. When you see the ClockworkMod recovery menu, use the volume up and down keys so many times until the message “back menu button enabled” appears at the end of the screen. Now you can use the power button as ENTER. (This is something you will have to do every time you enter recovery mode, unfortunately too)
Second one is CWM-based Recovery v6.0.1.2. (credit to WRCODE over at the androidtablets.net that mentioned it)
1. Download the recovery rar (install.rar) from the attachments.
2. Extract the file. (you will find no reboot into recovery.cmd in those files so, either use the one mentioned above, or use ROM Manager or GooManager (from Play Store) to reboot into recovery. Note: Those managers require rooting your device)
3. Make sure you have activated USB Debugging on your device. Go to settings > applications > development > tick on USB Debugging
4. Turn off your device and connect it to your computer via USB.
5. Press the volume up key and the power key at the same time until the device enters fastboot mode.
6. Run install.bat (from the unzipped files)
7. When the process ends, reboot your device.
8a.With the USB cable connected run reboot into recovery.cmd . In the window that will open on the PC, type “adb reboot recovery” without the quotation marks and your device (after a few seconds) will enter recovery mode. (This is something you will have to do every time you enter recovery mode, unfortunately, unless you upgraded to CM9 or CM10 where you can boot to recovery by long pressing the power button and choosing Reboot> Recovery).
8b. Use ROM Manager or GooManager and select reboot recovery.
(this recovery version does not require anything in order for the power button to act as ENTER)
Having successfully flashed ClockworkMod Recovery, you are now ready to flash your custom rom.
1. Find the ROM that best suits you, download it and place the .zip file at the root of your internal SD Card.
2. Enter recovery mode (as explained above) and select wipe data/ factory reset. Once this is done, select wipe cache partition. Once this is done select advanced and then select wipe Dalvik cache. (very important to do all of these steps)
3. Go back at the original menu and select install zip from sdcard. Select choose .zip from sdcard. Select the .zip file that you placed at the internal SD card (make sure that it is the correct one) and press the power button for ENTER.
4. Once the ROM has been successfully flashed select reboot system now and press the power button.
If everything went ok, after a few minutes you will have your first glimpse of your new custom ROM.
Enjoy it and remember “Use the above instructions at your own risk.”
Moving to General.
usb driver for win7
hello. i've been using this tab for a while and would like to root it. sadly when i connected the usb cable to the tab the driver is not installed automatically. so i think maybe i have to install it on my own. but i can't find the driver anywhere, even the official website of huawei. (the page is available but when trying to download, it show "Service Temporarily Unavailable - The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.")
therefore i would like to request if anyone would be kind enough to upload the driver for me to proceed rooting this device.
thanks in advance.
shawn1968 said:
This is an effort to write a comprehensive all-in-one guide (for newbies too) to flash ROMS on Huawei S7 Slim 201.
First and foremost you have to root your device (so that you can use certain applications e.g. ROM Manager, Titanium Backup). Do the following:
1. Download SuperOneClick (google it) and extract the files
2. Install Huawei Ideos S7 Slim drivers to your computer (if you have not done it already).
3. Connect your device to your computer via USB. Make sure you have activated USB Debugging on your device. Go to settings > applications > development > tick on USB Debugging.
4. Run SuperOneClick.exe. Disable your Antivirus program before running SuperOneClick (optional but helpful). If the drivers for your device are not installed, SuperOneClick will prompt you to let it find the drivers itself. Press yes and let it continue.
5. Click the root tab. (For my device I had to click root several times because the process got stuck, but eventually it succeeded)
6. After the rooting process ends, reboot your device.
Important notice: Although SuperOneClick confirmed twice that the device was rooted, Titanium Backup could not confirm root. If anyone knows of another way please advise.
Now, in order to flash ROMs do the following:
First of all, you have to install ClockworkMod Recovery on your device. (This will help you to perform many other tasks)
There are two versions of ClockWork Recovery (that I know of).
First one is v2.1.5.8
1. Download the recovery zip (201u.7z) from the attachments .
2. Extract the file.
3. Make sure you have activated USB Debugging on your device. Go to settings > applications > development > tick on USB Debugging
4. Turn off your device and connect it to your computer via USB.
5. Press the volume up key and the power key at the same time until the device enters fastboot mode.
6. Run install.bat (from the unzipped files)
7. When the process ends, reboot your device.
8. With the USB cable connected run reboot into recovery.cmd (from the unzipped files). In the window that will open on the PC, type “adb reboot recovery” without the quotation marks and your device (after a few seconds) will enter recovery mode. (This is something you will have to do every time you enter recovery mode, unfortunately, unless you upgraded to CM9 or CM10 where you can boot to recovery by long pressing the power button anchoosing Reboot> Recovery)
9. When you see the ClockworkMod recovery menu, use the volume up and down keys so many times until the message “back menu button enabled” appears at the end of the screen. Now you can use the power button as ENTER. (This is something you will have to do every time you enter recovery mode, unfortunately too)
Second one is CWM-based Recovery v6.0.1.2. (credit to WRCODE over at the androidtablets.net that mentioned it)
1. Download the recovery rar (install.rar) from the attachments.
2. Extract the file. (you will find no reboot into recovery.cmd in those files so, either use the one mentioned above, or use ROM Manager or GooManager (from Play Store) to reboot into recovery. Note: Those managers require rooting your device)
3. Make sure you have activated USB Debugging on your device. Go to settings > applications > development > tick on USB Debugging
4. Turn off your device and connect it to your computer via USB.
5. Press the volume up key and the power key at the same time until the device enters fastboot mode.
6. Run install.bat (from the unzipped files)
7. When the process ends, reboot your device.
8a.With the USB cable connected run reboot into recovery.cmd . In the window that will open on the PC, type “adb reboot recovery” without the quotation marks and your device (after a few seconds) will enter recovery mode. (This is something you will have to do every time you enter recovery mode, unfortunately, unless you upgraded to CM9 or CM10 where you can boot to recovery by long pressing the power button and choosing Reboot> Recovery).
8b. Use ROM Manager or GooManager and select reboot recovery.
(this recovery version does not require anything in order for the power button to act as ENTER)
Having successfully flashed ClockworkMod Recovery, you are now ready to flash your custom rom.
1. Find the ROM that best suits you, download it and place the .zip file at the root of your internal SD Card.
2. Enter recovery mode (as explained above) and select wipe data/ factory reset. Once this is done, select wipe cache partition. Once this is done select advanced and then select wipe Dalvik cache. (very important to do all of these steps)
3. Go back at the original menu and select install zip from sdcard. Select choose .zip from sdcard. Select the .zip file that you placed at the internal SD card (make sure that it is the correct one) and press the power button for ENTER.
4. Once the ROM has been successfully flashed select reboot system now and press the power button.
If everything went ok, after a few minutes you will have your first glimpse of your new custom ROM.
Enjoy it and remember “Use the above instructions at your own risk.”
Click to expand...
Click to collapse
it can work with Ideos S7-201U ???
im newbie here
thx u
hey can you please make a video on this i got stcuk on the part where you run reboot into recovery.cmd
EDIT: nevermind i figured it out now but a video might be nice for some people
Need driver for win7 x64,worked on vista without any drivers being installed for it :/
Huawei Ideos s7 slim
ok,i manage to do only first part(instal bat) and after its stuck
on my screen says when i start cmd recovery "adb server out of date killing....
daemon stars sucssesfuly
and thats about it,no going to recovery no nothing ..... so any help will be nice..
with regards Nenad
MY HUAWEI IDEOS 201uV100R001C239B010 IS NOT OPENING GOOGLE PLAY STORE ,GAMES AND INSTALLING APPLICATIONS BUT IS PERFORMING GOOGLE AND DOWNLOADING VIDEOS AND GAMES
Device isn't being recognized on fastboot. The drivers I use has worked for all of my devices, except for this one...
:/

[Q] [Help!] Forgot to activate USB debug mode before wiping, but CWM works

I decided to go to Android 5.0.1 from CM10.2 on my Nexus 4. I guess I did not think it though that well and relied on some crappy guides too much.
I have CWM Recovery 6.4.3 installed, so I thought I just place the factory image on the phone and install it via CWM. So:
1) Copied occam-....tgz on the phone;
2) Rebooted into CWM recovery;
3) Did wipe cache/format system/wipe dalvik;
4) Went to install .zip menu... and figured out that the file is no longer on my phone.
I thought OK, I do it via ADB and cable, so installed ADB, drivers etc. and connected my phone to my computer. However, adb does not see it most of the time (when at logo, bootloader, recovery) and only once adb managed to see it (*some number* device unauthorized) while the phone was at Google logo. And I realized I forgot to set up the USB debug option. What are my options now? I can go into CWM recovery, but ADB does not see the device, as I forgot to set up recovery before flashing. Help, please?
The computer sees the phone as MLP, but I still cannot see its storage in Explorer, so I cannot copy the .zip file.
Update
I managed to make adb recognize the phone, but consistently says that it is not authorized, which makes sense. And there is not way I can mount it as an external storage .
first of all, you have a serious lack of knowledge. not activating USB debugging in android settings has no effect whatsoever on ADB usage ability when you are in recovery mode. Secondly, installing factory images is not done through recovery (the downloaded factory image zip is not even flashable so it would work not in recovery), as factory images also contain RADIO and BOOTLOADER images that are flashable through fastboot (not the recovery). The only thing from factory image that you could flash via recovery is a zip file named - in case of 5.0.1 factory image - image-occam-lrx22c.zip (you can find it if you unpack the downloaded factory image on your PC). And this zip file is a classic ROM (system,userdata,boot,cache,recovery partitions). However, even if you were to flash the correct zip (rather than the zip containing entire factory image complete with ROM, RADIO and BOOTLOADER) Android 5.0 (or 5.0.1) comes with updated RADIO (maybe bootloader aswell, i did not check), so you are supposed to update that aswell prior to switching to 5.0/5.0.1
now here is what you should do:
1. download 5.0.1 factory image from gooogle
2. make sure you have ADB and drivers for Nexus4 correctly set up (in order to check wheter it works go see point 3 of this instruction set)
3. boot to fastboot mode (vol down+power) and check if 'fastboot devices' gives you back device id (you should open command prompt in platform-tools folder, where both adb.exe and fastboot.exe are present)
4. proceed with this instruction, start at step 8 http://androidforums.com/threads/guide-how-to-flash-a-nexus-factory-image-manually.706533/ (in step 11, name of zip file is the one that is INSIDE downloaded factiory image file (image-occam-lrx22c.zip) and you either do the single zip flash or flashing each of .img files separately (system,boot,userdata,cache,recovery)
ps. 1st android 5.0.1 boot after flashing will take up to 15 minutes. (it took 10 in my case)
Update 2
Thanks dzumagos! Sure, I do not claim to be a specialist by any means. I managed to successfully install Cyanogenmod many times, so thought I would give this one a go as well.
I read your post after I fixed the issue. Basically I did exactly what you suggested, but following another guide and it worked fine, also took it around 15 minutes to load the first time. I noticed I do miss a few tricks from Cyanogenmod

[Install CM 12.1 Nightlies for Noobs] Updated 8/22/15

I'm creating this guide because other guides seemed quite out of date and a little complicated to unlock/root the phone, involving downgrading. However, this has been tested on firmware 2.20.40.59, but it should work on several older and newer versions.
I plan to make this guide as simple as possible.
1. Install USB Drivers + ADB/Fastboot:
Install this Intel Driver:
http://forum.xda-developers.com/zenfone2/general/intel-usb-driver-android-devices-1-9-0-t3105522
Install this ADB/Fastboot package:
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Now REBOOT the PC! Don't skip this!
2. Unlock the bootloader:
Download the attached file in this thread.
http://forum.xda-developers.com/zenfone2/general/tool-one-click-bootloader-unlock-root-t3155884
Unzip the folder.
Connect phone to computer, and on the phone, enable developer settings ( Go to the "Settings">"About">"Software information">Tap "Build number" seven (7) times).
Go to "Settings">"Developer Settings">Check the box stating "USB Debugging".
On the computer, launch "unlock_one_click_v2.bat"
You should know you're unlocked if your spash/boot screen has inverted colors.
3. Flash TWRP:
Download the Un-tethered TWRP file
http://forum.xda-developers.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532
Open the folder the .img file is in, and rename the file to "twrp.img".
Hold the Shift button on your keyboard, and right click in the empty space of the folder you are in containing the twrp.img. You should be able to now click "Open Command Window Here".
On the phone (powered on), type "adb reboot bootloader".
After the phone reboots to fastboot, type "fastboot flash recovery twrp.img".
Reboot the phone to the normal OS.
4. Install the ROM & Gapps:
Download Gapps + ROM:
http://forum.xda-developers.com/zen...-unofficial-cyanogenmod-12-1-nightly-t3164144
http://forum.xda-developers.com/zenfone2/development/gapps-t3161271
Place them on your phone while its powered on normally.
On the computer, type "adb reboot recovery".
Create a nandroid backup at this point (https://www.youtube.com/watch?v=c7y0NpJ90JQ).
Now go to Wipe, and wipe everything except SD Card and Internal Storage.
Go back and click Install, and flash the ROM and Gapps file.
Reboot, and you are done!

Categories

Resources