yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] Skyty:
Maybe I'm just terrible at searching, but I've looked on this site, Google, and some other Android site, but haven't found an answer that works. Basically I regret rooting my phone... but that isn't the whole issue...

So I rooted yesterday. I have an HTC Evo 3d GSM HBOOT 1.49.0008 (berfore my root). I got ROM Manager and made a backup of my rom giving it a custom name. From here I went and downloaded High ROM 3D v1.1.

I decided I didn't like that rom so I tryed to restore my backup rom... md5 mismatch... or some crap like that. I tried this:

http://xdaforums.com/showthread.php?t=976453

I kept getting "invalid command" or some crap like that...

All I want right now is to somehow go back to my factory settings un-rooted... Is this possible, or am I screwed?

Hopefully I'm not making a duplicate thread... If I am I'm sorry, I honestly did search for a good couple hours.

Thanks for any help!
[HTC EVO 3D] jwolf1:
if yu are trying to get back to stock download an ruu file if its the "exe file then make sure to relock phone first or it wont work"; and if its the flashable zip just super wipe and install via recoveryhttp://xdaforums.com/showthread.php?t=1334473
[HTC EVO 3D] Will32:
Search isn't everyone's friend, its not mine. You need to run an ruu.exe, I don't know where to find a gsm one, I'm cdma. But I've gone back to stock a few times, just relock the device and run the ruu from unlit and you should be good.
[HTC EVO 3D] Skyty:
@jwolf1: That says CDMA. MY Evo 3d is GSM.

@xcpefrmreality: I'm still really new to all this. What is an ruu.exe? What is unlit? I'll see if I can find out anything in the mean time!

Thanks for the help you guys!
[HTC EVO 3D] jwolf1:
Sorry About that here's the right linkhttp://xdaforums.com/showthread.php?t=1208485
[HTC EVO 3D] Skyty:
I am assuming this would be the one I'm looking for?

RUU_Shooter_U_Rogers_WWE_1.20.631.2_Radio_10.53.9020.00_10.13.9020.0

It was the only one listed with Rogers (my provider). How exactly do I use this file? Do I put it onto my SD card and install it with ROM manager?

(I'm still waiting to download it. All the free download slots are full.)
[HTC EVO 3D] jwolf1:
Just download an then go to recovery once phone is powered down: volume down+powerbutton then navagite an find the file & install
[HTC EVO 3D] Will32:
Unlit=hboot, stupid spellchecker
[HTC EVO 3D] Will32:
If that ruu is a .exe file then you need to go to hboot, relock, run ruu.exe from the computer while still in hboot. If its a .zip then you'll have to extract the images and flash them one at a time from fastboot.
[HTC EVO 3D] Skyty:
Okay! Sweet! Once I can actually download the file I'll do that!

Once I finish installing the file will I still be rooted?

Will it be safe to do a factory reset at that time?

I just wanna start from a clean slate.

Somewhat of an off topic question... but... Is it safe to delete EVERYTHING off my SD card? Because I know that there is alot of junk that has been left over from random apps :P haha!
[HTC EVO 3D] Will32:
No you won't be rooted after an ruu.

Yes, its safe to factory reset, but the ruu will do that for you.

Yes, its safe to wipe the sd, just do it before you run the ruu.
[HTC EVO 3D] jwolf1:
are you downloading the file phone or a desktop
[HTC EVO 3D] Skyty:
Alright! Why do I need to wipe the SD before I run the RUU?
[HTC EVO 3D] Will32:
You could do it after the ruu but it'll erase android secure folder and a couple of others that the ruu puts on there. It'll just have to rebuild those folders when you reboot.
[HTC EVO 3D] jwolf1:
It really just depend which is mos convient
[HTC EVO 3D] Skyty:
Okay, that makes sense!

Man, I wish a free slot on FileFactory would become available :P I have class at 3:00 haha!
[HTC EVO 3D] Will32:
It was doing that to me the other night, I tried the download from my phone and it worked.
[HTC EVO 3D] Skyty:
I managed to get a slot!

The file I'm downloading is an .exe.

Will I need to have USB debugging enabled, and fastboot disabled to do this? I'll also need to have disk mode enabled correct?
[HTC EVO 3D] Skyty:
I read something about a PG86IMG.zip file. Will I need that too?
[HTC EVO 3D] Will32:
I believe you need USB debugging to do adb commands. Turn it on just in case. You're getting the .exe so just hold volume down and power with the phone off, select fastboot, plug in USB to phone and comp, type fastboot OEM lock, it should reboot you back to hboot and it'll say relocked with a security warning under the word relocked, don't reboot. Now just start the ruu.exe in windows and follow the prompts. That's it.

Edit.... Just re read the op and noticed your hboot version. I guess you used revolutionary and not htcdev. I'm not sure about how to s-on, so the fastboot OEM lock probably won't work. Maybe someone that knows about that will chime in.
[HTC EVO 3D] Skyty:
Hmmm... well I'm at school right now, so when I get home I'll have to do some more research ... does anyone else have any ideas?
[HTC EVO 3D] Skyty:
Do you think this would work?

http://xdaforums.com/showthread.php?t=1388501
[HTC EVO 3D] tiboric:
if you want to restore that backup you did, mount the sdcard on pc (ubuntu) and run

# cd /"sdcard"/clockworkmod/backup/"the backup you want to fix"

# rm nandroid.md5

# md5sum *img > nandroid.md5

That will fix the missmatch and you can restore you faithfull old rom and data

well it worked for me a few times any way
[HTC EVO 3D] Skyty:
I plugged my phone in and typed that bus it says "can't find directory"... does cd stand for something?
[HTC EVO 3D] Skyty:
Okay, so I guess I'm completely stupid. I renamed my backup with a custom name with a / in it. So it added a second folder with all the contents in there.

I just moved all the content up a folder, now it's restoring.

At this point do you think it would be safe to perform a factory reset? Since I am now on my original rom?
[AT&T Samsung Galaxy Note I717] modmyphone:
To try and test out a DAGr8 thought, can someone please post up the settings.apk from an stock AT$T device? I know I have it at home, but was hoping to test it out during lunch.
[AT&T Samsung Galaxy Note I717] Cozzeck:
post this in DaGr8 Rom thread because this is the wrong section to be posting this.
[AT&T Samsung Galaxy Note I717] modmyphone:
Inside of the ROM thread I'm more than likely to get an audience who already has the Rogers version supplied with the ROM. I'm not looking for the ROM version but rather the original version. Yes this is in support if the ROM but as a request to a broader audience who may be able to help out, therefore development related.
[AT&T Samsung Galaxy Note I717] jpeg42:
Read the sticky at the top:

This forum is for posting Development projects only - ROMs, Kernels, Mods (but not Themes, there's a separate forum for them), not stock ROMs (they belong in General). Anything else will be moved or locked. Do not ask questions here, do not post requests here, they belong in General.
[AT&T Samsung Galaxy Note I717] jdphilly:
Development is for devs that are developing a rom...post in general and I will post the settings apk
[AT&T Samsung Galaxy Note I717] Phoneguy589:
I would definitely post in the general or q&a sections. I'm copying my internal mem to my pc, then I'll try to find the stock At&t settings.apk. The master grand rule of this section is:

If you did not build it......
[AT&T Samsung Galaxy Note I717] modmyphone:
Now it's getting off topic.

If you've read the thread at all you would see that my request is in direct support of SAUROM and the possibility of APN/network issues being resolved by usage of the original Settings.apk. Therefore it is considered development, not just some whacked off request for some easily obtained apk.

And I quote..Inside of the ROM thread I'm more than likely to get an audience who already has the Rogers version supplied with the ROM. I'm not looking for the ROM version but rather the original version.

Therefore it is posted outside of the thread (in direct correlation of the thread) to achieve the largest possible audience of people who care about the progress of the Note.

Moderator, please lock to stop the bickering, I'll just get a copy of it tonight when I finally get home from work.
[AT&T Samsung Galaxy Note I717] Phoneguy589:
Hope this is what you are looking for. I copied from my stock nandroid.
[AT&T Samsung Galaxy Note I717] modmyphone:
Awesome. Thank much.
[AT&T Samsung Galaxy Note I717] DAGr8:
Actually we need the one fomr TPC 's verison , the one in stock att note will be odexed and that will not work
[AT&T Samsung Galaxy Note I717] Johnsondr80:
http://db.tt/UgOYw47e

This is my Deodexed att stock settings apk.

Hope it helps.

B)

TheCollectives' SolarisPrime on my i717 via Tapatalk
[AT&T Samsung Galaxy Note I717] O_G:
Thread Closed​

This is a development section, not Q&A. Please post in the correct section​
[Samsung Galaxy Nexus] efrant:
[HOW-TO] [GSM & CDMA] Root without Unlocking Bootloader via exploit (for 4.0.1/4.0.2)

Edit: This does not works on anything newer than ICL53F (i.e., 4.0.2). It works fine on ITL41D (4.0.1), ITL41F (4.0.1) and ICL53F (4.0.2)

Once you have got root, you can now use segv11's BootUnlocker app to unlock your bootloader without wiping anything. Easy as pie!

Disclaimer: I take no credit for this exploit or the implementation of it (but I will take credit for the step-by step :) ). Thanks to kendong2 for pointing it out to me here.

So, it looks like zx2c4 has found a local privilege escalation exploit. See source here, and saurik has managed to package it together for Android. See here. Although this may be old news to some, I hadn't seen it before.

So what does this all mean:

If you are running a 2.6.39 kernel (or above), which all Galaxy Nexus' are, you can now root your device without having to unlock your bootloader (and without losing your data).

Moreover, you should now be able to root your device even if your hardware buttons are not working.

Additionally, this allows those who have not received an OTA update and want to apply it without having an unlocked bootloader or root to do so by copying the OTA update to /cache from /sdcard.

Notes:

1) This assumes that you have USB Debugging enable on your device (Settings > Developer Options > Enable USB Debugging) and the drivers for your device installed on your computer. For the drivers, I would recommend you remove all old drivers and install these. If you don't know how to install them, or are having issues, look here.

2) This needs to be done over ADB, as a terminal emulator on-device does not have the appropriate access. If you do not have ADB, I've attached it in the zip. Unzip all files.

3) Some users indicate that, once finished the procedure, they needed to open the Superuser app.

Step-by-step:

1) Download the attached files to your computer and unzip them in the same directory as your adb.exe file;

2) Open a command prompt in the same directory;

3) Copy the files to your device:

adb push mempodroid /data/local/tmp/mempodroid

adb push su /data/local/tmp/su

adb push Superuser.apk /data/local/tmp/Superuser.apk

4) Open a shell: adb shell

5) Change permission on mempodroid to allow it to run: chmod 777 /data/local/tmp/mempodroid

6) Run the exploit: ./data/local/tmp/mempodroid 0xd7f4 0xad4b sh

Note: Once you do step 6, your prompt should change from $ to #. If not, it did not work.

7) Mount the system partition as rw: mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system

8) Copy su to /system: cat /data/local/tmp/su > /system/bin/su

9) Change permissions on su: chmod 06755 /system/bin/su

10) Copy Superuser.apk: cat /data/local/tmp/Superuser.apk > /system/app/Superuser.apk

11) Change permissions on Superuser.apk: chmod 0644 /system/app/Superuser.apk

12) Mount the system partition as r/o: mount -o remount,ro -t ext4 /dev/block/mmcblk0p1 /system

13) Rescind root: exit

14) Exit the ADB shell: exit

15) Done. You now should have root without having to unlock your bootloader.
[Samsung Galaxy Nexus] efrant:
Reserved
[Samsung Galaxy Nexus] times_infinity:
This is the same as https://github.com/saurik/mempodroid

saurik ftw.
[Samsung Galaxy Nexus] efrant:
Not sure what you are getting at? I mentioned saurik in the first post, and the link you posted is in the first post. And I mentioned that this may be old news, but I haven't seen it anywhere before today in the GN forums.
[Samsung Galaxy Nexus] Sleuth255:
Yikes! This exploit works on any kernel from 2.6.39 and >. This could become a common root method for many devices. Linus Torvalds himself posted the fix commit! Nice work by zx2c4!
[Samsung Galaxy Nexus] renaud:
You need ics to have a vulnerable kernel version, so given the number of devices which currently have ics officially, I doubt it will be common. I'd also expect Google and vendors to correct this in next release.

Also many custom kernels don't have this flaw as they are at or over 3.0.18 or have patched it. This prevents gaining unnoticed root.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Sleuth255:
Hmmm I thought 2.6.39 was found in GB builds. This exploit is almost a root fix for the Moto DX 4.5.621 fiasco. Unfortunately the kernel for that build is 2.6.32.9.
[Samsung Galaxy Nexus] jaykruer:
This was huge in the headlines a few weeks back. It's nice to see someone putting it to a good use! :)
[Samsung Galaxy Nexus] Huxleysäl:
Hi, been lurking awhile, registered to clear up somethings.

I did some research while attempting to access the /data/local/ -folder with terminal emulator and I found that it would be impossible to write or to find it while being unrooted. Rooting a phone through using an unrooted access root seems impossible.

Did I miss something or is there any other way to copy mempodroid to the data- folder? I sure would like to keep all my files.
[Samsung Galaxy Nexus] efrant:
I think you are mistaken. In a terminal emulator type: cd /data/local/tmp

Edit: Fixed a mistake made by auto correct...
[Samsung Galaxy Nexus] Huxleysäl:
Just did. It says "No such file or directory."

Not the best source, but if you google it, people state what I state. Sorry, can't post links
[Samsung Galaxy Nexus] Sleuth255:
try /data/local/tmp
[Samsung Galaxy Nexus] efrant:
Sorry, damn auto correct. It should be: cd /data/local/tmp

Not "temp".

It works fine.

Edit: Sleuth255 beat me to it!
[Samsung Galaxy Nexus] Huxleysäl:
Sure, OK, it worked. But as I'm trying to replicate his instructions, copying mempodroid to data/local/tmp doesn't compute. I tried extracting the files, puting mempodroid in a new folder in ./sdcard/ (which I named Nex), and it still couldn't find it.

Wait, just had an idea. Brb
[Samsung Galaxy Nexus] efrant:
Hmm. Looks like you may be correct. In GB, we had write access to that directory, but it looks like we don't in ICS. I'll have another look tomorrow and try to figure something out.
[Samsung Galaxy Nexus] Huxleysäl:
OK, this is exactly what I did:

I downloaded the files, extracted them into the ./sdcard folder of my android. I opened the console, wrote exactly as stated. Reaction? Cannot create /data/local/tmp/mempodroid: Permission denied

So, what I'm thinking is this: I tried the cd ./sdcard/mempodroid, found it. So, logically, that should mean that since the permission is dennied, the problem lies not in where I put the mempodroid, but with my authority over my phone. So, here we are again. Could anybody smarter then me clarify?

****, I was hoping I was wrong. I originally thought that the exploit was this. But alas.

Try finding an alternative write route to the /data/local/- folder. That should solve all problems, I guess. Big words, ey? This is for the simpletons like me, who stupidly forgot to bootload.
[Samsung Galaxy Nexus] convolution:
Might want to expand on the steps.

Like what program to use to copy the file.

How do you change permission.

How do you run the exploit.

How to mount rw.

How to copy su.
[Samsung Galaxy Nexus] Huxleysäl:
I hade my initial problems with that too. But as if this moment it doesn't really matter. Read above posts. Anyhow, to answer your question: you need to download a console emulator

Just search for it in the market. Also the commands go in this console

For example: cat /directory/filename > /newdirectory/samefilename means to copy or move from one place. To change permission you just write that line of code ending with 777 instead of cat and then the filename etc and etc.

I didn't know any of this 'till yesterday, so it is quite understandable.

:) cheers
[Samsung Galaxy Nexus] efrant:
I've updated the first post. Give that a go and let me know how it turns out. (The guide may need some minor tweaking, but I am here to help you through it.)

It seems that ADB has rw access to /data/local/tmp but a terminal emulator on-device does not. So for now, you need to be plugged into your computer.

It may be possible to do this with ADB-over-Wi-Fi, but I haven't gotten there yet.
[Samsung Galaxy Nexus] efrant:
First of all, forget about doing anything until you set up your drivers. You are just going to frustrate yourself.

Second: the driver needs to install twice: once when your device is booted into fastboot, and once when booted normally. So you have to look at device manager twice and install it twice.

Third: this method is for people who are running 4.0.1 and 4.0.2 with a locked bootloader, and want to do a backup of their ROM so that they can unlock. If you don't need a backup, just unlock and root. It is much easier.
[Samsung Galaxy Nexus] Paresh Kalinani:
Then how to UnRoot again?

Can I root HTC One V without unlocking the bootloader?

If yes, can I flash custom ROMs, Kernels, etc.?

If yes, how to unroot my phone again?
[Samsung Galaxy Nexus] efrant:
Maybe you should ask in the HTC One V forum, no? This is the Samsung Galaxy Nexus forum...
[Samsung Galaxy Nexus] Paresh Kalinani:
Ohh yeah.... sorry!! :)
[Samsung Galaxy Nexus] Sh0k:
efrant do you know if we can root manually our Gnex with Jelly Bean ? :fingers-crossed:
[Samsung Galaxy Nexus] efrant:
Manually, yes. With a locked bootloader, no.
[Samsung Galaxy Nexus] salem_christ:
So I used this exploit to get root on 4.0.2. Worked a charm, as previously mentioned, so cheers!

Used Voodoo OTA rootkeeper to keep root when I got the OTA to 4.0.4. Restored root fine.

I backed up root again, and then I manually updated Android using the OTA file and recovery mode to get to 4.1.1.

But now Voodoo OTA rootkeeper says I have a missing superuser, and read only file system, and doesn't restore root.

At some point in the android update I renamed recovery-from-boot-p to recovery-from-boot-p1 as I thought I was getting a red exclamation error, and read in some random thread that might help. turns out I just missed a step.

NOW I have both recovery-from-boot-p and recovery-from-boot-p1 files in my /system folder.

Any ideas what I might do to re-get root, without unlocking the bootloader? Or, at the least, if it would be possible?
[Samsung Galaxy Nexus] Dambuzbee:
Ok so I'm running the stock IMM76K rooted with cwm recovery and I just want to know that if I do this update if I don't like it will I be able to revert back 4.0.4 IMM76K?
[Samsung Galaxy Nexus] efrant:
If you have lost root, and CWM is no longer installed, and you have a locked bootloader, you have no choice but to unlock the bootloader.

Why did you keep your bootloader locked anyway? The purpose of this guide was to give those with locked bootloaders a way to root and backup, so they can unlock their bootloaders without losing their data.

What update? I'm not sure what you are talking about.
[Samsung Galaxy Nexus] salem_christ:
I didn't bother unlocking the boot loader, as I thought the only use I would have for it would be to get root...which I already had by then. Curses.

I did a full adb backup before updating to jellybean. Not sure if that is any use to me now though?
[Samsung Galaxy Nexus] efrant:
Not sure if it will work restoring to JB. It may.

P.S. When you have a Nexus device, you should unlock the bootloader as soon as you take the phone out of the box. Even if you are not going to root or anything else. It saves you a lot of potential hassles later on.
[Samsung Galaxy Nexus] efrant:
Added note about segv11's BootUnlocker app to the first post!
[Samsung Galaxy Nexus] salem_christ:
OK, so I did a new full backup using adb while on jellybean, which apparently with the new adb doesn't require root for full adb backup anymore. Then I unlocked and rooted. Now restoring backup....

Not sure if I should have restored first, then rooted?

Oh well, phone hasn't bricked yet, so that's a plus.

Will report back once backup is restored (I backed up and restored my SD card data too, so it might take a while even though it was only half full)

Edit: it worked! I have restored everything (mostly), and now have unlocked bootloader and root. win!

A few widgets/icons didn't restore, and my gmail and facebook accounts needed to be re-added. but other than that, it all seems to be there.
[Samsung Galaxy Nexus] efrant:
Given now that we have figured out a way to unlock the bootloader without wiping, you did not have to go through that entire backup/restore process. You could have rooted your device with this method, then used segv11's BootUnlock app to unlock your bootloader. Done. :)
[Samsung Galaxy Nexus] zeromention:
Hey, I have GSM GNex with 4.1.1 JellyBean.

Obviously this exploit won't work for 4.1.1, but I was wondering is there a way to backup/restore my whole device so I don't need to tediously reinstall all of my apps once I unlock via fastboot?

Cheers,

Zero
[Samsung Galaxy Nexus] efrant:
Look at the "basics" link in my signature. Near the end of the first post is a link to a thread by copkay that describes how to backup using adb.
[Samsung Galaxy Nexus] zeromention:
Cheers, exactly what I needed.

Zero
[Samsung Galaxy Nexus] Guto ViP:
Efrant, i dunno why, but i lose the root on my GNexus, now i cant use OTA Rootkeeper, Superuser and nothing... My phone have JB 4.1.1 with locked bootloader...

Have a chance of i restore thr root without wipe all my data?
[Samsung Galaxy Nexus] efrant:
That is why I always recommend to keep your bootloader unlocked...

You can try this.
[Samsung Galaxy Nexus] Guto ViP:
So, the only way is:

1) Backup

2) unlock bootloader

3) Root

4 Restore

Right?
[Samsung Galaxy Nexus] efrant:
Correct!

And this time, leave your bootloader unlocked! ;)
[Samsung Galaxy Nexus] Guto ViP:
Tnx my friend!

One more question, if i will do a full wipe for unlock the bootloader, do you think is a good change to chance my Yakju for Takju JB?
[Samsung Galaxy Nexus] Zepius:
if you're unlocking the bootloader, a full wipe will happen.

if you want to change to yakju or takju, its a good time to do it.
[Samsung Galaxy Nexus] efrant:
Not sure it really makes a difference. The last update was pushed to takju before yakju, but we are only talking a matter of hours. I don't think it matters if you are on yakju or takju.
[Samsung Galaxy Nexus] Guto ViP:
Done! :)
[Samsung Galaxy Nexus] efrant:
Don't mean to sound rude, but if you are asking these questions, you really should do a bit more reading before attempting this. As Huxleysäl said, all the instructions are in the first post.
[Samsung Galaxy Nexus] Huxleysäl:
I'll try it in about an hour. BRB
[Samsung Galaxy Nexus] Huxleysäl:
Having major problems installing the android SDK and thus the ADB.

I'll wait until I can do it properly in the phone with the emulator.
[Samsung Galaxy Nexus] efrant:
Woah. Slow down there! :) There is no need to install the SDK. As long as you have the driver installed properly, just download the attachment and unzip it to a directory. Open a command prompt in that directory and execute the commands from there.

P.S.: It you do not have the driver set up yet, get it from here.
[Samsung Galaxy Nexus] skyleth:
I think you have missed one path (red one) and I'm having problems with step 10. command line gets crazy and i have to shut it down
[Samsung Galaxy Nexus] efrant:
You are correct. Original post fixed. Thanks!

Note: there was a ">" missing in step 10, which is why it wasn't working for you. It is now also fixed in the OP.
[Samsung Galaxy Nexus] :
Thanks for this, works great.

I believe the last forward slash in step 5 is wrong.
[Samsung Galaxy Nexus] efrant:
Yup. I'll fix the first post. Thx.