yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Daneshm90:
Thanks for the awesome suggestion. Heres the changes im going to make

- remove the first method that always is giving u permission denied (hasnt worked for anyone so no point)

- Add in a recovery chooser where when u choose to flash a modded recovery, it'll download amonra/clockworkmod depending on ur choice and flash that.

- Improve the comment style a bit more, make it more newbie-friendly

*- need suggestion, do u guys like pressing enter till u see ur device or think its better to open a new window where it keeps looping and when u see ur device u close that window ?

Thanks
[Nexus One Android Development] arkavat:
I think that current method is good one. May be you can keep asking questions...

Do you see your device on this screen?

Yes/No

Yes

excellent... lets move on

No

Ok... let's try again

This just gives user a little more sense of "control" than automated loop.

Also i added "this screen" so user knows where the device will show up. The first time i read the instructions I thought it will show up in device manager of windows... I was just over analyzing the instructions :o
[Nexus One Android Development] allen099:
I have restored my old phone using the passimg.zip and then updated it to FRF85. It was being detected by adb, where as the new replacement phone is not still. I have tried that same procedure on the new phone (passimg, then update) and still no go. I'm looking at the back stickers and the only difference I notice besides serial and IMEI is the P/N number...

old: 99HKE002-00 F

new: 99HKE002-00

So I'm not sure what that 'F' stands for. I wonder if there is a new version of the bootloader that's being loaded onto refurb phones. For those that were able to use this method to root, can you tell me whether your P/N was similar to any of these?

Thanks!
[Nexus One Android Development] dihy:
Can I use ROM Manager with this method?
[Nexus One Android Development] Daneshm90:
K i took ur suggestions under consideration. I haven't changed the "keep pressing enter till device shows up", i changed the comments however. So now it says

Press enter every few seconds until you see your device listed

in the bottom list of devices

Once u see it type yes

Then it shows the adb devices part (not in a new window)

Please wait till ur device shows up below, type yes if u see it

Otherwise keep tapping enter every few seconds

I have also packaged in amonra/clockwork recovery, so when u say "y" to flashing custom recovery, it'll ask u which one u want, if u choose neither it'll skip flashing custom recovery. I removed the "did u get permission denied" and all its methods as they didnt seem to work, so now the 2 options are manually enter the commands or use the auto copy/paste system. I have also changed the setting where when u run the exe, it extracts the files but once ur done with the script, it deletes them. I think thats it so far, if anything else let me know. Heres v2.
[Nexus One Android Development] CentralMoNexusOne:
If i just want to use MetaMorph and apply this phone mod do I stop at step 15?
[Nexus One Android Development] arkavat:
fantastic! Thanks for all the work.
[Nexus One Android Development] uoY_redruM:
Fancy!

v2 is sweet. Great job.
[Nexus One Android Development] artcarney:
Wonder if something similar would work on other phones with locked bootloaders such as the Droid X?

Just food for thought ...
[Nexus One Android Development] KvChaos:
I hit the wall during the cat command.

"/sdcard/flash_image: No such file or directory"

There's a flash_image under the SDcard root directory though.
[Nexus One Android Development] Daneshm90:
adb push flash_image /sdcard/flash_image
adb shell
su
cat /sdcard/flash_image > /system/bin/flash_image
chmod 775 /system/bin/flash_image

which step u having problem on ?

Do those steps in order and then tell me where ur stuck.
[Nexus One Android Development] KvChaos:
The NexusRoot.exe didn't have the first two adb command.

So I started with

su

mount -o rw,remount /dev/block/mtdblock4 /system

cat /sdcard/flash_image > /system/bin/flash_image

and then the error message

/sdcard/flash_image: No such file or directory

EDIT

I did a exit back to the $ command

Did you adb push flash_image /sdcard/flash_image

It says permission denied.
[Nexus One Android Development] Daneshm90:
Oops my bad i forgot in my previous post about mounting system.

However, NexusRoot does indeed do that. NexusRoot, calls adb shell su and then u have to paste in those commands which are automatically copied by the script.

Is ur sdcard being mounted ? if u do

ls /sdcard

do u see any files ?
[Nexus One Android Development] KvChaos:
I did a exit back to the $ command

Did your "adb push flash_image /sdcard/flash_image"

It says permission denied.

Also, i went to the sdcard directory and nothing is inside.
[Nexus One Android Development] Daneshm90:
K do u have usb-debugging on ? Also you do have root correct ?

like if u do

su

u get # <--- ???
[Nexus One Android Development] KvChaos:
Yes. Debugging is on.

And with su I do get the # mode.
[Nexus One Android Development] Daneshm90:
K sounds as if ur sdcard is corrupted :confused:

Try formatting ur sdcard, so ur main goal is to see ur sdcard files when ur booted into a rom and type

ls /sdcard

Cuz w/o it, u can't get flash_image, and w/o that u cant do much.
[Nexus One Android Development] KvChaos:
Alright... will try to format SDcard using my laptop instead.

So after which I put back the flash_image?

Also, I am using the NexusRoot "wizard". How do I get into ROM normally? :p
[Nexus One Android Development] Daneshm90:
"get into ROM" <-- im just referring that u should be on ur home-screen of ur phone.
[Nexus One Android Development] KvChaos:
Well, I can actually access the SDcard using the normal "Turn on USB storage" option. But from the command prompt nothing is in there with the ls command.
[Nexus One Android Development] Daneshm90:
K can u come on here, ill help u a lot faster that way ;)

Link
[Nexus One Android Development] KvChaos:
As a conclusion: I forgot to unmount the SDcard. :eek:

Thumbs up for this tutorial and Daneshm90. :p
[Nexus One Android Development] player911:
Awesome!

Just flashed my stock FRF91 to a custom rom using your methods and skillz. No more ugly unlucked bootloader icon at bootup!

The only confusing part was that you are supposed to do the SU commands stuff while the OS is running. I don't know if USB Dev mode is required but I turned it on anyway.
[Nexus One Android Development] discokid:
Would this method work in rooting the Korean FRF91 ROM? This would help users stuck on EPF30 as there are reports of people successfully rooting to KR from EPF30.

EDIT: more specifically, could you downgrade to EPE76 from the Korean firmware in order to flash back to FRF91 (US)?
[Nexus One Android Development] KvChaos:
EDIT: Just realise you're a lot more experienced than I do. =p

Yes. I believe you need the USB Dev mode on.

Aside from using the wizard from NexusRoot (which is after you seen the pop-up regarding "Allow/Deny" on your phone),

You can run from Windows's command prompt.

Browse to the tools directory and key...

Remember to "Turn off USB Storage". That's where I did wrongly. :)
[Nexus One Android Development] grandmasterethel:
Fantastic tutorial. Just what I needed. Thanks a lot.

I did run into a little trouble trying to get adb device to work in recovery, but it seemed to be a matter of turn the phone on, restart it using adb reboot recovery, and then trying from there.

All in all a massive thumbs up. I didn't want to take the plunge when I had to unlock my bootloader, but now there is no excuse!
[Nexus One Android Development] jmecca12:
Stuck at 20

Hey guys,

So I got through steps 1-18 w/o a problem and now I seem to be banging my head against a wall for the next part of the process. As soon as I type in "mount -o rw,remount /dev/block/mtdblock4 /system" it just repeats that back to me, which I assume is correct. But when I do step 19 and type in "cat /sdcard/flash_image > /system/bin/flash_image" all I get back is "No such file or directory"

I've made sure the SD card is unmounted and am relatively new to all of this so am not sure where to go from here. I'm trying to get cyanogen 6 running on my n1 and this step is proving to be a large roadblock. Please help!
[Nexus One Android Development] KvChaos:
Access the sdcard using your PC, did you see the flash_image there?

If yes, do the "Turn off usb storage" option from your phone, and from that command prompt you have on your pc, type the following.

#ls /sdcard

Did you see any files?
[Nexus One Android Development] jmecca12:
I checked the sdcard from my PC and there is no flash_image there. Also when I run #ls /sdcard, the card comes up as empty.

I formatted the card in case it was corrupt and ran thru the steps again and got the same result. I'm very confused as to what could be causing this.
[Nexus One Android Development] KvChaos:
Try running though the NexusRoot again after your N1 reaches the main screen.

For me, I just click y or yes all the way, depending on what they ask.

When you reached the screen with the Enabling Rooting portion, did you get the prompt on your N1 about that Allow/Deny option? You need to click Allow. You should spot a command that says something about "Pushing..." along the whole process. This is the command whereby the flash_image gets transferred to your sdcard. Proceed accordingly from here on based on the commands. Remember not to "Turn on usb storage" on your N1. If it's on, "ls /sdcard" will be empty, hence the file not found error.

*Hope this helps, since I only managed to complete the steps yesterday with a deal of help in this thread as well. :D
[Nexus One Android Development] pyrator:
install radio w/o unlock

followed this GREAT GUIDE! however, i wanna update to cyanogens latest mod and it says to update the radio to the latest file (radio-4.06.00.12_7.img). How do i do this without unlockuing the bootloader. I tried the method previously discussed here, but i think that guy already had a unlocked bootloader or something b/c mine says cannot find radio partition. THANK YOU!
[Nexus One Android Development] MishFdM:
You can also flash the latest radio avaible here http://xdaforums.com/showthread.php?t=723839

You can flash the radio from fastboot or apply file zip from recovery, that's all :)
[Nexus One Android Development] pyrator:
ty for the reply, i figured out that the radio gets updated in the process if u follow the guide, i just didnt know it lol. now im just working on small cyanogen beta problems like the market not show apps etc.. aka pandora and google earth etc..
[Nexus One Android Development] arkavat:
So you managed to get rid of the unlock icon? I mean did you relock the boot loader? That would be like holy grail for many users.
[Nexus One Android Development] Wylker:
He's just saying he didn't have to unlock to root.
[Nexus One Android Development] grandmasterethel:
Also, just in case it's useful to anyone, with the SD card, I found the best thing to do instead of cutting parts off the battery, or using a paper slip, was to just insert the sd card, but so that it doesn't click into place, then put the battery in, to hold it in place. When it comes to inserting it, just click it down into place.
[Nexus One Android Development] nik77356:
Managed to get further with various posts in this thread. Now when I am type in "rm /system/etc/install-recovery.sh" I get "No such file or directory". Anybody experienced it and fixed it?
[Nexus One Android Development] Daneshm90:
Did u mount system?
[Nexus One Android Development] nik77356:
I thought it was supposed to be plugged in, but unmounted? Also, I have USB debugging on. I put in all the previous commands without any errors.
[Nexus One Android Development] Daneshm90:
Oh the error is fine. he just does that incase u missed the whole "press enter when yellow bar shows up" so if u got it in first try u wont have the files to delete hence the error.
[Nexus One Android Development] tkawsar:
Quick Question

What the difference between rooting the nexus this way than the one posted on cyanogen wiki. is it just that the bootloader remain unlock and there no ugly lock sign on boot. like it was stated...

"You now have root access(aka Admin rights) in your stock ROM, but with limited capabilities."

what does it mean by limited capabilites. how someone has an answer?
[Nexus One Android Development] Daneshm90:
Difference is that by doing "oem unlock" ur agreeing to a contract that says if u screw up ur phone software wise htc wont do anything about it. Whereas, if u do it with this method, when the time comes, u can easily put it back to stock and pretend like u never rooted the device.

But oem unlock has the advantage that u can use fastboot with partitions whereas this method ur forced to only do stuff through recovery.
[Nexus One Android Development] mlevin:
Dang! I was gonna try that same thing later today but with a thin strip cut from tyvek (fedex envelope) or a piece of scotch tape folded over on itself (I was thinking paper would be too weak). Oh well. So much for trying to be clever.
[Nexus One Android Development] mlevin:
Two quick things:

1. Any harm in removing the entire tab so it at least looks even?

2. It still seems like a tight fit. I'm worried that I'm going to flex it too much and damage either the card or the slot. Did anyone actually file down the edge of the battery or do anything beyond cutting that little tab?
[Nexus One Android Development] sockan87:
Thank you it worked!! I got root with Froyo! :)
[Nexus One Android Development] madj42:
All I I did was lift the tab a little with my fingernail. You should be able to cut it off without any problems. I would highly recommend not touching the battery.
[Nexus One Android Development] GyTe:
Done also on my Nexus One!!!

A big thanks to Constrabus that organize all the informations and test everything.

Just for your information I've insert the microSD inside the slot without removing the plastic tab on the battery ;) It was a little bit tricky but if you press the battery on the contact you can tilt without loosing the "recovery" status on the ADB.

Hope this help :D
[Nexus One Android Development] :
lol i didnt want to risk snapping my card. i figured it would be more expensive than a new battery.
[Nexus One Android Development] kaiser_tytnii:
Any idea why adb won't detect my phone in recovery without memory card while it can detect it in usb debug mode... please help I am trying to make it happen for epe54b users thanks!
[Nexus One Android Development] phazey12:
Hey guys, just trying to understand all this.

I've had my Nexus One for a little over a week now and was hoping to root it but didn't want to void the warranty. Now I see this!

The question is with the unlocking. I bought the $530 t-mobile version of the phone that I have read is unlocked, yet I heard rooting with previous methods will still void the warranty. Does this method not void the warranty on the phone? Is it applicable to the phone I have where I have bought it unlocked? Or is mine not really unlocked.

Thanks for any help in advance
[Nexus One Android Development] McGilljam:
EPE72

Ain't that workin on EPE72 also? No one tried?
[Nexus One Android Development] :
your phone is unlocked meaning you can use any sim card. the unlock which voids the warranty is the unlocking of the bootloader. your phone is sim unlocked and bootloader is locked.

this method allows you to root without unlocking the bootloader (which voids your warranty)
[Nexus One Android Development] phazey12:
Thanks for the quick reply!

Now if I were to experience problems with the phone and needed warranty services, I could follow this guide? hxxp://xdaforums.com/showthread.php?t=614850

I was just wondering if anything needed to be done with kernels and the radio.

Also, if there is a guide that can explain all this, it would be great. I tried searching and found a few that were either links to radios and roms or weren't that descriptive.

Thanks again
[Nexus One Android Development] :
that guide should work but the easier way would be to flash PASSIMG.zip

search for that and there should be additional details
[Nexus One Android Development] rohandhruva:
Wow nice find! Wish it had been found sooner, and it worked for EPF21B also ;)
[Nexus One Android Development] phazey12:
I'm on the last part now where I went back into recovery and did a wipe data/factory reset. Now how do I apply the two zip files? So I reboot the phone and rename on to update.zip and apply? Or is there some other method.

Thanks
[Nexus One Android Development] ziekrage:
Bump on torchedlh's question. The main reason I haven't attempted root and unlocked the bootloader was that I'll lose all my installed app's data by the forced wipe. So how would we modify these steps in order to do a nand backup or grab /data and other folders before wiping?

Also, would something like this work to avoid having to mutilate the battery? SD to MicroSD Card Converter, sku.27001 on dealextreme (wanted to put the link but I'm stuck behind newbie post restrictions)
[Nexus One Android Development] phazey12:
Hmm, I'm starting to think I went wrong somewhere. I'm suppose to do step 27 on the main page yet only have four options on the recovery screen:

1. reboot system now

2 apply sdcard:update.zip

3. wipe date

4. wipd cache

I have already wiped data and cache. How should i go about flashing the cyan zip file?
[Nexus One Android Development] FishFan319:
HELP!

Total noob needing to do this today.

I read the post on skipping number 22 and stopping at 24 for a rooted 2.2 frf83, but HELP!

Do I still need ANY of the filed on my SD from step 16?

Thanks a mil guys.

TRYING TO GO AHEAD WITH IT:

I'm on a mac, when I type loop, it says Command not found. What am I doing wrong?
[Nexus One Android Development] FishFan319:
Please, anyone… If someone can jump on g-chat or something similar it would help as well
[Nexus One Android Development] :
i didnt have to wipe and it worked fine for me.

Just follow the instructions with no wipe. once you have the recovery flashed, you have a fully stock phone with root.

people have managed to get the sd in without cutting that small part of the battery (its just a very small piece of plastic that serves very little purpose)

im unsure if the MicroSD converter will work. will it make the sdadapter click when its entered? pretty sure its required for this to work

@fishfan319

22-24 need to be done if your on a stock rom

you only need the recovery till youve flashed it. you only need the other two if you want cyanogens rom and you only need them till after youve flashed them

you dont need the loop file. just type "adb devices" in terminal until your phone shows up in recovery. That file is completely pointless imho
[Nexus One Android Development] FishFan319:
Flybyme, it'd mean a lot if you could stick with me on this for a minute, PM me any contact info (ichat/aim/gchat, some internet live chat??)
[Nexus One Android Development] onesavior:
this only took me 10 tries to do...was about to say F it, and give up, but persistence prevails! Thank you XDA Members and forums, now just to figure out the rest :)
[Nexus One Android Development] Nastrodamous:
for step 14 where is it going to show the information about root access on the phone or on the command prompt
[Nexus One Android Development] Lamar720:
I'm using the NexusRootv2 script and I put the script in my sdk tools folder but I'm stuck at the part where I login into recovery .... it says

Please wait till ur device shows up, type yes if u see it.

List of devices attached

Enter:

But, my device never shows up??
[Nexus One Android Development] MishFdM:
Here you can find V2 of NexusRoot, maybe the porcess can be better with this http://www.mediafire.com/?mjmc0ndyi3bj24j

Did you see the loop running ? You will see the device there.
[Nexus One Android Development] Lamar720:
Thank you I'll try this now

ok, its been awhile it can't seem to find it.

My usb drivers are up to date. Debugging is on. I'm in recovery mode.
[Nexus One Android Development] Daneshm90:
Is ur sdcard out ? Ur sdcard must be out.

Check device manager to see if ur device is being recognized.
[Nexus One Android Development] Lamar720:
Thanks for the reply daneshm90 .... yes my sd card is out. In my windows device manager is says Google, Inc. Nexus One USB Device under my computer there is no sd card.

I think windows see's the phone but, the script didnt.

I'm pretty new at this.
[Nexus One Android Development] Daneshm90:
K the script just does

adb devices.

Can u manually run that command and see if u see ur device ?
[Nexus One Android Development] MishFdM:
Which build do you have ?
[Nexus One Android Development] Lamar720:
Never have I just downloaded it .... lol pretty new lol

ummm Build I'm on is FRF85B
[Nexus One Android Development] Daneshm90:
K go

start -> run -> cmd

then type adb devices.

Do u see ur device ?
[Nexus One Android Development] Lamar720:
It just says list of devices attached but, it doesnt show anything .... just like the script I most need to study up on adb setup
[Nexus One Android Development] Daneshm90:
Ok can u boot into ur rom uptil the point u see ur homescreen, then do adb devices do u see it then ?
[Nexus One Android Development] Latentk:
Hey all,

following the first bit of instructions I took my N1 down, then back up to FRF85B. Double checked to make sure phone read said firmware. Next followed the script to the T, but when I got to the step with the adb shell/root 1 bit the very first of the three command returns: mount: Operation not permitted

I can confirm my SD card is NOT mounted via the OS, debugging IS active, and I have tried several times to no avail. Anyone care to help?

PS: Thank you for the AWESOME script!
[Nexus One Android Development] nik77356:
Well then what does that command do?
[Nexus One Android Development] Daneshm90:
K lets see if i can explain this right.

When they ask u to press enter right when u see the yellow bar, what they're really doing is tricking recovery into thinking the package is still the same, so u press enter right after its verified the signature of the zip but when its about to flash the contents, u switch the zips. Now if u miss it and press enter too late, the files are copied over. That command makes sure that if u miss it a couple of times, u erase the files that got copied over.
[Nexus One Android Development] Latentk:
I guess I should also say that I have confirmed root access by typing su and getting #. Or at least I think that confirms it, hah.
[Nexus One Android Development] Daneshm90:
Right so u have root access. Once ur in the "#" mode, can u then try the mount command ? That should work.
[Nexus One Android Development] Lamar720:
Ok, Daneshm90 I'm at the part where you paste the 3 codes to the new window and hit enter after each one.

1. Operation not permitted

2. cannot create /system/bin/flash_image: read-only file system

3. unable to chmod /system/bin/flash_image: No such file or directory
[Nexus One Android Development] Latentk:
I did attempt, once in root to enter each command. It entered and only returned the command that I had just submitted, is that sufficient? The script is asking if I want to flash a custom recovery, which of course I'd like to do. Would continuing to attempt the custom recovery install hurt the device were it to fail?
[Nexus One Android Development] Daneshm90:
Nope it should work fine. Yea the commands do echo back to u if u enter em right (some of them not all ;) )
[Nexus One Android Development] Daneshm90:
Ok so when u do "su" it says operation not permitted ? That means u dont have root or havent accepted the popup that came up on ur phone. Did a popup come on ur phone ? Did u see the "unrevoked root" thing in recovery when u flashed ?
[Nexus One Android Development] Lamar720:
su moves for a $ to a # I have accepted the popup on my phone. Was I suppose to type su enter and then paste each command?

I got the first one to work without error the second one says no such file or directory