[TOOL] Image Extractor and/or Backup to PC Alpha v1.1 - Nexus 4 Android Development

This is my first tool for contribution to this community. PLEASE HIT MY THANKS BUTTON.
I do not take any responsibility if you break your phone with this tool.
You will also VOID your warranty by following this guide.
This is not for beginners.
This is version 1.1 of this tool. Please feel free to update it, just post the changes here so that I can add them to the tool so that everyone can benefit from them.
CURRENTLY, THIS TOOL ONLY WORKS WITH WINDOWS. Version 2.0 might support linux, if I get around to it.
The purpose of this tool is for power users that want to back up their current rom directly to their computer OR for existing devs OR newer developers to try and cook their own roms or work directly with the images of their phone. This will pull the rom images from your current phone and put them to your desktop. Currently, it will not pull data, I have disabled it, until I can work out a bug.
Are there apps that do this? Maybe… but this is free.
I have include a restore option after you run the tool, but that is still in “alpha” status and may not work correctly.
Hook up the phone to your computer with the USB cable.
1. You must have a rooted phone. If your phone is not rooted, follow this guide. http://forum.xda-developers.com/showthread.php?t=1993331&highlight=recovery You must also have the windows drivers installed from that guide. When finished with that guide, go to step 2.
2. Enable android debugging. Go to settings, then about phone, then keep pressing the “build number” until a little message appears saying that you are in developer mode.
3. Go into settings again, this time you will have a developer menu. Go to the developer menu, and check the “Android Debugging Box” or "USB Debugging".
4. You need to have the actual super user app installed on your phone. http://download.clockworkmod.com/superuser/superuser.zip
Open super user app on your phone, go to settings and make sure “superuser access” is set to “Apps and ADB”. Also make sure that automatic response is set to “prompt”. You can change that to “allow” if you want to make this process easier for yourself, just remember to change it back when you are done.
5. Download the tool below, and unzip it to your desktop or somewhere you can easily find it.
http://www.mediafire.com/file/2z0y6sdbwe6bwuz/Tool_v1.1.zip
6. Double click the file named “TOOL”. Watch your phone, you may or may not get a pop up asking to allow a computer or device to connect. Click ok or allow, that is just your computer trying to talk to the phone. It’s ok.
7. Close the black command line screen that just popped up on your computer. - You may not need to do this. IF you keep getting permission denied, you have to go into your superuser app, and keep enabling and disabling "Apps and Adb" under superuser access. For some reason, it's glitchy. Then reboot the phone with them both enabled.
8. Double click the “TOOL” file again. (Due to the new security in android, is why we have to do this again to make sure everything was allowed security clearance).
9. Sit back and relax. This will pull the system, recovery, kernel and modem, and put them into a folder on your desktop.
THIS WILL TAKE AWHILE. COULD TAKE UP TO 1hr, but usually around 10-20mins depending on how big your current rom is.
10. Now, you can use the images as a PC backup. OR you can go straight to the android kitchen and start hacking those images apart and make your own android rom. http://forum.xda-developers.com/showthread.php?t=1272270
11. RESTORE IS IN ALPHA and may not work for you. It has a possibility to erase all your data and may not restore your back up, use caution and test it first. To restore your backup OR after you are finished messing with them (make sure you know what you are doing if you take them apart) open the backup folder on your desktop.
12. Make sure your phone is on, then click the restore file.
If you have completely screwed up your phone, follow this thread to restore the phone to full stock. http://forum.xda-developers.com/showthread.php?t=2010312 You will lose all your data.
Download v1.1 : http://www.mediafire.com/file/2z0y6sdbwe6bwuz/Tool_v1.1.zip
File size: 1135742 bytes
Filetype: Zip archive
MD5: a818a6e985d77403303e2324832e565c
SHA1: 5dfe9d3daa87074b0d3fcb4b46690d861e66d9e0

Reserved 4 me
Change Log
1.1 - Clean up code
- Enable Restore
- Enable adb shell
1.0 Initial tool

Related

Help with rooting and flashing

First of all I would like to say hi to everybody, this is my first post on this awesome forum I found just today. I would also like to say that I bought my first smartphone a few days ago(HTC Wildfire of course) and when browsing on the internet trying to find out stuff I could do with the new found device I found a lot of people reffering to something called 'rooting' and 'flashing' and 'ROMs' and that doing this enables your phone to have a lot more new functions and stuff like that.
Therefore I have some questions to ask you nice people, so here they are:
- What is 'rooting', 'flashing' and what are 'ROMs' in the first place?
- I found a lot of abbrevations when people described 'rooting' their phones which I did not understand so I'm kindly asking if anyone could please explain the process clearly? (is this the correct process? -> forum.xda-developers.com/showpost.php?p=7895908&postcount=127 , if it is what is the OTA update?)
- If someone could please explain the process of 'flashing' to me?
- Are there any recommendable 'ROMs' I could try?
I truly thank anyone who would be able to explain this to me and take their precious time to do so. I'm sorry if my questions seem silly but I'm extremely new to the smartphone android thing and therefore I don't understand everything.
Thank you again for your replies, ciroman
- What is 'rooting', 'flashing' and what are 'ROMs' in the first place?
Rooting = gives you/apps on the phone acess to root acount in android wich gives you acess to do things wich you can not do normally. read more about root and superuser(su) here: http://en.wikipedia.org/wiki/Superuser
ROM = is sort of the operating system wich most often comes in zip files and is possible to flash to the phone with a custom recovery. this often include apps and modifications wich is made of the person who makes the ROM. also includes superuser acess (root) not allways but often.
custom recovery = a recovery mode wich allows you to do backup of your current settings and evrything else you have on the phone. also makes it possible to flash ROMs wich you have saved on the SD-card
Flashing = this is when the recovery takes your zip file and exctract it to your phone. when this is done you have a new "operating system" on the phone
- I found a lot of abbrevations when people described 'rooting' their phones which I did not understand so I'm kindly asking if anyone could please explain the process clearly? (is this the correct process? -> forum.xda-developers.com/showpost.php?p=7895908&postcount=127 , if it is what is the OTA update?)
Yes this looks like the process of rooting/installing a recovery.
OTA = Over The Air
- If someone could please explain the process of 'flashing' to me?
wont explain this.. it should be explained somewhere else..
- Are there any recommendable 'ROMs' I could try?
There are only a few ROMs out at the moment..
The only one I can recomend for you rigth now is wildpuzzle ROM by danne_jo there is more ROMs out but I dont know how stable theese are.
Click to expand...
Click to collapse
I dont garantue that this info is 100% correct and anyone who feels like please correct me if im wrong.
I also take no responsibility for any damage made to your phone by following any of the above information.
Thank you so much for your quick explanation. I must say though that searching for how to flash and root this phone was quite painful for a newcomer like me-took me hours to find the first part and then some to find the second.
I hope following these two guides will get me there
shinelt said:
Prep
Before beginning the process, I would recommend doing the following to your phone:
(1) If you have the original unrevoked root installed, uninstall it by using "Menu", "Settings", "Applications", "Manage Applications" and scrolling to "Unrevoked" at the bottom. Tap it, click "Force Stop" at the bottom and then "Uninstall", "OK" to uninstall it. Then power off/on your phone just to be sure.
(2) If you haven't already installed the OTA 1.47 update, do it now: "Menu", "Settings", "System Updates", and "HTC software update" at the bottom, then click "Check Now" to get the 1.47 update. If you do this update, it takes up to 10 minutes so be patient and let the phone reboot (a few times) until it is done. Then once the update is done, power off/on one last time to get a clean start.
(3) Set your phone to "Charge Only": "Menu", "Settings", "Connect to PC", tap "Default connection type" and select "Charge Only".
(4) Enable USB debugging: "Menu", "Settings", "Applications", "Development", and put a check in "USB debugging".
The root process
(1) Go to Control Panel on your system and uninstall any "HTC" software such as "HTC Sync".
(2) Download the unrevoked3 install package: Go to
unrevoked3 recovery reflash tool, v3.0 and click "Download for Windows". Save the "Reflash-bundle.exe" file somewhere that you can find it on your system.
(3) Using Explorer, run the "Reflash-bundle.exe" file you just downloaded. It'll ask where to install it. Don't just accept the default: change the install location to a folder you can remember: it's just going to unzip some files there: it isn't really a software installer.
(4) Once the files have unzipped, go to the folder you chose in the above step. You should find an "hboot driver.htm" file in that folder: double click on that to open the html instructions on how to install the drivers. Follow the instructions in the html file starting with downloading the actual driver files at the very top. When you download those driver files and unzip those, those are the files (the folder) you'll point to in subsequent steps in those instructions. When done with the html instructions, you should have drivers installed and shouldn't have to come back to this step.
(5) At this point, if you needed to install the drivers, you are probably still sitting at a boot menu on your phone. UNPLUG the phone from USB and select "Fastboot" and then "Reboot" to reboot the phone to restart it. Before the next step, your phone should be on and booted up in its normal operating state (not some boot menu).
(6) If you are running anti-virus software, turn it OFF or disable it now.
(7) Now go to the folder where you unzipped the reflash bundle (step 3 above). In XP or older systems, just double click the "Reflash.exe" file. On Vista and Win7 systems, I'd recommend right clicking on "Reflash.exe" and selecting "Run as Administrator". While this may not be necessary, I know that some USB drivers get really mad if you try to access the USB port without admin privileges (sorry, I'm a coder so I run into that stuff and warn you so you don't have to) so I did it as a precaution.
(8) You should get a window with "Unrevoked 3" on it (on the computer of course). Just follow the instructions in smaller font below "Unrevoked 3" to finish rooting. Note that when it says "Waiting for device", it wants you to plug your phone into the computer via the USB cable. Note that it wants the wildfire to be fully booted normally (not in the Hboot or recovery menus). The prompts at this point are very specific so no need to repeat them. If all works as it is supposed to, the only thing you really have to do is scroll to an item on the phone and select it when instructed. The rest is automated and should result in a "Done" message. The whole thing at this point took maybe one minute so it isn't something you have to wait for or stare at for a long time so if something gets "stuck" for a while... there's likely a problem.
(9) Don't forget to turn your anti-virus software back ON.
Now, when I followed these steps on my Win7 x64 system, reflash.exe detected the phone and started working (we're in step 8 here) but about 4 messages into the process I got the "communications lost... try again" message that unrevoked refers to on today's Twitter. Some say that (contrary to step 1) installing HTC sync actually solves the problem. I didn't try that. After about 6 tries on my Win7 system and even pulling some "tricks" to try to pause reflash.exe at certain points, I gave up and simply booted my old XP laptop and repeated the above steps and it worked perfectly the first time. At the point of the failure, you hear the two tone usb-device-disconnected sound followed by a use-device-connected sound about 20 seconds later. Somewhere in between is where the "communications lost" message appears so it looks like some sort of USB ack/nack issue. Hopefully it'll be resolved soon. My best advice if you get that error: try a new machine. The XP machine that worked perfectly for me had never seen any HTC software. Maybe that helped. And maybe after I uninstalled the HTC software on my Win7 x64 system (the one that didn't work) I should have rebooted before continuing: I didn't because it didn't prompt for a restart and I couldn't find anything "HTC" running in task manager.
do wipe data/factory reset
put all files to sd from puzzle rom. ( go to partitions menu > mount usb storage)
(put those 01 , 10 , 52 ,300 , 400)
go to nandroid> backup
go to install zip from sdcard
and install files from 01 to 400.
go back and press reboot system now.
Click to expand...
Click to collapse
fireplayer said:
I'm just as n00b as you on this. But I'll help you out...
1. After using unrevoked once - reboot your Wildfire.
2. Go to first page on this thread that you read right now.
3. Download the things you want to flash - all links are in the 1st post. - put them on your SD-Card - start with flashing 0001_WildPuzzleROM_v2.zip first - to do this - download that file and save it - anywhere on your SD-card (somewhere you'll remember where you put it). Download and save all you want from 1st post on this thread - to your SD-card...do NOT open the zip files - just copy them to the SD-card.
4. Turn off your Wildfire
5. Turn on your Wildfire while holding Volume Down button - you have to have your SD-card with all the files you want - inside your phone now.
6. This get's you to the boot screen. Wait for HBOOT to say no image...blabla..
7. Push Volume Down to get to option "Recovery" - press Power button.
8. Phone will Reboot to a white HTC screen - and from there go to ClockworkMod Recovery screen - if you did everything correct.
9. Press Volume Down several times - until you get to option "nandroid"
10. Press the round button at the bottom of your Wildfire - the one you use to take pictures when using Camera functions, let's call it the Camera button.
11. You see "Backup". Press Camera button, and wait until it's done backing up your system. Do NOT turn off your phone! Wait until it's done. It will say Backup complete!
12. Next if you want. But only if you want - you don't have to - you can Wipe / Factory Reset your phone, saves a lot of ROM space and Memory. Phone WILL be slightly faster if you choose to do this - but all your programs and settings will be gone - Your choice.
IF you do NOT want to Factory Reset your phone, skip steps 12 & 13.
IF you want to do this then push Volume Down until you get to option "wipe data/factory re" (probably reset, but only show until re on my phone) and then press the Camera button.
13. As to make sure you really want to do this, you need to confirm... push Volume Down until you reach option "Yes -- delete all u" - then press Camera button and wait.
14. Now you can start flashing. Push Volume Down until you reach option "install zip from sdcard" Press Camera button.
15. Push Volume Down until you reach option "choose zip from sdcard". Press Camera button.
16. Find where you put the files you downloaded from post 1 on this thread. Choose 0001_WildPuzzleROM_v2.zip. Press Camera Button.
17. Push Volume Down until you reach option "Yes - Install 0001_W". Press Camera button. Wait for it to be done.
18. Repeat steps 14-17 with the other files you want to flash. IF you want to Flash files that are 0900 or higher. Reboot and change Wallpapers before you do.
To reboot Press Power button to go back and Press Camera button on option "reboot system now". Then repeat steps 5-7. If you need help changing wallpapers too let me know and I'll try to explain that too.
When done flashing the files you want. Reboot. And you're done.
First reboot after flashing Wild Puzzle Rom takes a very long time. Be patient.
I hope this guide made sense. If there's anything unclear let me know and I'll be happy to clarify. Thanks and Good Luck!
*EDIT* Just saw that someone else made a guide too, well at least there are people wanting to help us n00bs. Thanks. and I think both guides should work. Hopefully you'll make some sense of them *ENDS EDIT*
Click to expand...
Click to collapse
Thanks again!

[GUIDE] Turkeys' Ultimate Guide to Root Wildfire v42.1.2 (Easy & Safe!)

Turkeys' ULTIMATE Guide to Rooting v42.1.2
Note: It does not work on 2.2.1 Wildfire's (i.e. - Any bought after Feb - March 2011)
Like this guide? Hit the thanks button at the bottom left of this post
Before You Start
This is a new type of guide, an experiment if you like. The whole point is to get you with a fully functioning, rooted phone. But also to teach you something. Each step first tells you what you're going to do before you do it. By the end not only should you have a rooted phone but you will hopefully have priceless knowlege of how Android works.
Enjoy.
Need Help?
If at any point during this guide you need help, something's gone wrong or you need some extra clarification. Hit the help button.
The help button will link you to the #rootmydroid IRC help chat channel, where you can ask questions or get walked through the whole thing if you really need to. We have experts on hand to help you out.
PLEASE NOTE: At peak times our experts may be busy so please be patient.
So, Mr. Turkeys, what have you got for us today?
Root Guide
Post 1 - Intro
Post 2 - UnrEVOked (Rooting)
Post 3 - Flashing a ROM
Post 4 - Flashing a new Radio
Other Guides
Unroot
A2SD
More Coming Soon... Stay tuned!
So, click a link to the guide you want and get cracking, enjoy!
Donate
Should you feel the crazy need to donate to me, you can do so below.
GBP
EUR
USD
So, you wanna root?
Rooting is not easy like some people make it out to be. All these 1 click Noob-Proof tools can actually go wrong. And they do.
But lets get this clear, IT'S ALMOST impossible to brick. I'd put the odds on about a 99.9% chance you will not brick beyond repair. However, things probably will go wrong, which is why you will need to follow the instructions very carefully.
Pre-Root Info
I want to make sure the rooting process goes well for as many as you as possible, so get ready to read lots of information that will turn you from a Noob into a lean, mean rooting machine.
And for those of you who like to slack off and think "I cba to read all that crap", I've made it so you have to answer a question to get the download links. Aren't I nice. Seriously though, it really will be a lot easier for you if you read all of this, you will thank me for it one day.
Pro users who know what HBOOT is, how to flash a ROM and can use ADB can safely skip this step
Android Glossary
This page is probably the most valuble bit of information you will ever need during your rooted life. Behold, the VillainROM Android Glossary. (Cheers Pulser )
http://bit.ly/9HtICk
Read it. Read it ALL. No questions asking for these terms will be tolerated in this thread and you will be teased so much you will want to die. So please, read it carefully.
Downloads
Now, for the bit you've been dreading. 2 downloads. 2 questions. One answer will link you to the download. The other two will link you to a humorous fail picture. (And for all you sneaky cheaters out there, I've bit.ly'd the links. Take that.)
Question 1 - UnrEVOked download
What do you use to flash a ROM?
A) UnrEVOked
B) ADB
C) Recovery
Question 2 - Other Stuff Download (We may ask you to use this on the help channel)
What is a RUU?
A) A tool to root your phone
B) A tool to return your phone to 'stock' (unroot)
C) A tool to flash a ROM
You can also get countless lulz from adding a + to the end of those links and comparing the wrong answers to the correct ones. Yes people really don't read the information.
OK, I've talked enough now, let's get down to business...
So, hopefully you now know all the terms, which makes my life a lot easier as I don't have to explain everything. Let's begin.
Root Guide - Pt. 2 - UnrEVOked
1) Ensure you have downloaded and extracted the first download in the above post to somewhere you can remember and access easily. For the purpose of this guide, I will refer to that folder as the 'Root Pack'.
Next, we are going to prepare the UnrEVOked program to run. If you are a Windows user, this means installing the drivers, if you use Linux or Mac you just have to run the app as mentioned later. We have to install HTC Sync to get adb drivers and we have to uninstall it again as it interferes with UnrEVOked. The drivers however remain which is why you need to install it.
2) (Windows Only) If you have not already, download HTC Sync and install it. Then uninstall HTC Sync as well as any other software that may interfere such as doubletwist. Next, follow this guide to set up the hacked HBOOT drivers. Make sure you reboot your PC after doing this.
Next, we need to prepare your phone. We will make sure USB Debugging is on as UnrEVOked needs this to send adb commands to the phone. We also need to enable Unknown Sources so that UnrEVOked can push busybox and SuperUser Permissions apps to the phone.
3) With your phone go to Settings > Connect to PC > Default connection type > Charge Only and untick Ask Me. Then go to Settings > Applications > Development > Make sure USB Debugging is ticked. Then go back to Applications and make sure Unknown Sources is ticked.
Next, we're going to run UnrEVOked. What it does is reboot into HBOOT mode, and use an exploit to gain a temporary NAND unlock. Then it uses fastboot to flash a recovery image, and then pushes the su files required for root.
4) WINDOWS USERS: Right click on the 'unrevoked.exe' file (Or something similar) in the Root Pack and click 'Run as Admin' (Not required for XP)
LINUX USERS: Right click the 'ClickHereToRoot.sh' file and UnrEVOked will start. (Make sure you chmod 755'd it first)
MAC USERS:
mattbeef said:
Unrevoked, if your a mac user like myself then drag the app inside the dmg to the desktop and run it from there. Most mac users are lazy and will try to run it from the dmg.
Click to expand...
Click to collapse
GETTING A MISC RELATED ERROR? See post eight.
Your phone should now reboot and then congratulations! Your phone is rooted. However, the root that UnrEVOked gives you is basic. No ROMs or good stuff. So you must read on to the next post to flash a custom ROM...
Now you've rooted, let's flash a ROM. We will backup all your apps then flash a ROM then restore your apps. Ready?
Pt. 3 - Flashing Your First ROM
**NOTE: You can repeat Pt. 3 every time you want to flash a new ROM or update
Next we're going to download and use Titanium Backup to backup all your apps as we will have to wipe your phone to install the ROM. You can use the same method if you ever want to backup/restore in the future too.
1) Download & Install Titanium Backup from the market. Open it and hit the 'Problems' button to download busybox, a suite of commands for rooted phones.
Then hit menu then batch, and tap the button next to Backup All User Apps + System Data. Let it complete before moving on to the next step.
Next we're going to reboot into recovery mode to flash the ROM. You can use this if you ever need to get into recovery in the future.
2) Turn your phone off and turn it on again holding POWER + VOL DOWN to enter HBOOT mode. Wait a few seconds while it checks for images before using the VOLUME KEYS to scroll and POWER to select Recovery. Your phone will now vibrate and reboot into recovery mode!
Next we're going to do a full backup of your phone using Nandroid. This will backup the entire state of your phone in case you ever
want to go back. You should really do this every time you flash a new ROM.
3) Use the TRACKBALL to scroll down to where it says Backup or Nandroid or Backup / Restore. Then select Backup and wait for it to finish.
Now we need to wipe your phone. Whenever you flash a different ROM you should Always do this, when you are updating the ROM you should check on the release thread for information.
4) If you are not on the Main Menu in recovery, hit back a couple of times to get there. Then, use the TRACKBALL to navigate down to 'Wipe Data / Factory Reset' and accept the scary warning to wipe your phone.
Now we can flash the ROM! Ensure you have downloaded a ROM and it is on the root (Not in any folders) of your SD card. The flashing process may take a few minutes.
5) From the Main Menu, scroll down to and select Install zip from SD Card and then select Choose zip from SD Card then select where you put your ROM and wait for it to complete. Then, select Reboot System Now to reboot into your shiny new ROM!
Your phone will now reboot, it may take a while to reboot as it's rebuilding the Dalvik Cache. If it still doesn't boot up after 10mins, pull the battery and consult the ROM thread for troubleshooting.
Now we're going to restore that Titanium Backup you made before starting Pt. 3. It will restore all your apps back but not system data. (ie Settings) You can use Titanium Backup any time you want to backup/restore your phone.
6) Download & Install Titanium Backup again and tap Menu Button > Batch > Restore Missing apps + data. It should prompt you to reinstall every app again.
--------
Congratulations, you have qualified with a rooted phone from the Turkeh Root School!
(Unless you're reading this without having actually done any of this guide)
So, go off and ask questions, answer questions, and contribute to the community! We'd also really appreciate it if you could hang out in the help channel to help other people trying to root too.
Thanks for rooting! You can also follow some of the other guides to install all apps on the SD card, Unroot & S-OFF
Pt. 4 - Flashing a New Radio
Flashing a Radio
The radio is the lowest part of your phone. (ie It's the very first thing that loads when you turn your phone on.
Most ROMs will have a required radio version, but most will agree that it's best to be on the latest as they often improve battery life etc.
You can downgrade your radio and you can find your radio version by going to Settings > About Phone > Software Information > Baseband Version.
Your ROM should tell you on it's thread what the recommended radio version is, so download it, transfer it to the root of your SD card as you did in Pt. 3 then follow this.
Now we're going to reboot into recovery mode as we did in Pt. 3 to flash the new radio. There is also an app on the market called 'Quick Boot' which you can use to quickly get into recovery. The next step will assume you have this.
1) Open Quick Bootand tap Recovery then tap Allow on the SuperUser permissions prompt.
Note: The SuperUser Permissions app will prompt you whenever an app is requesting to use root. You should look over which app is requesting this before you allow it.
Next, we need to flash the radio. You do this exactly the same way as you flash a ROM, which you did in Pt. 3.
2) Use the same method you flashed the new ROM in Pt. 3 to flash the radio. You do not need to Nandroid backup or wipe to do this, just flash the zip.
Note: Your phone may reboot a couple of times and will show a picture of the Android Robot while it is flashing the radio. It has NOT crashed, it is flashing it. DO NOT pull the battery, it will reboot when it is done.
Your new radio has now flashed!
A2SD
Note: It has come to my attention that doing this with ROM Manager doesn't work most of the time. If you have problems please partition your card another way. (I recommend GParted - There is a Live CD if you don't have Linux)
First, we need to partition your SD card with ROM Manager. This will wipe all the data on your SD card so please backup before continuing.
1) Open ROM Manager (Download it from the Market if you don't have it - Although you will need the Market Mod to show all apps) and press Menu > Manually Override Recovery **Not sure exactly what it says, pls could someone help me out here** Then scroll down to Partition SD Card. Choose the ext size you want for your apps to be installed on, then tap 0 for swap size, then tap OK to reboot into recovery and start partitioning!
Note: While it's partitioning it will show a picture of an Android. You can press (Power?) to see what it's actually doing and if there's any errors.
Now, you need to check the ROM thread for info. Most ROMs activate it automatically when it detects an ext partition on your phone. On some others you need to flash a special update.zip. If you are unsure hit the help button on post 1 and we'll help you out.
Congratulations, you now have Apps2SD! Exactly what you will have (dalvik2sd etc) will vary between ROMs.
Unroot
These RUU programs that you use to unroot are Windows only, but fortunatley I wrote a tool for Linux called OpenRUU so you can flash them on there. If you are a Mac user, take a moment to ask yourself 'Why am I using a Steve Jobs product?' as there is no way for you to run the RUUs.
First, we are going to identify what RUU you need to download and flash then download it. (Bravo is the codename for Desire, all RUUs use this name)
1) Go to shipped-roms.com, click on the Android Robot then click on Buzz. Now, you need to recall what version of Android you were on before you rooted. If you had a carrier supplied device you should also get the one that is applicable, but if you are unsure or your carrier is not listed go for one that says WWE. (World Wide English - All Languages) Or come on our IRC channel for advice.
Note: HTC Sync must be installed before continuing. The next step will also wipe all your apps + settings!
Next we're going to run the RUU, this should take around 5-10mins. DO NOT touch your phone during the flashing process!
2) Double click on the RUU file you downloaded in step 1, read the readme, and click to start the flashing process.
After it's done! Your phone now should be completley back to stock status!
If you get an error during the flashing process, try again and then come on our IRC help channel for assistance if it persists.
Fixing the Annoying unrEVOked Backup CID Missing errors
NEW, EASY METHOD
I managed to find unrEVOked 3.2. If you want to use that as a fast-track then that's fine, but please read the following carefully:
Code:
[B]DISCLAIMER:[/B]
Please be aware that this build was pulled from unrevoked.com because it was not safe.
USE AT YOUR OWN RISK!
If it ****s up and you point the finger at me, I will laugh at you.
This is only for 'Backup CID Missing' errors. if you use this on any other type of misc error it might brick.
Download. Run in replace of unrEVOked 3.21 in the standard guide.
You can still use the old, misc editing guide below:
(Guide edited from http://home.kennynet.co.uk/~kenny/bcid-fix.txt to be more noob-friendly)
This fixes:
Backup CID Missing
Unfortunately, because a couple of people corrupted their misc partitions during the testing of unrEVOked 3.2, they brought in a load of stupid, annoying safety features that included checking the misc partition on your phone.
/rant
What is misc?
Misc is a partition on your phone. It holds various switches and stuff, such as your:
Official HTC ROM Version
Your CID (Which tells the phone what carrier/region your phone is)
However, sometimes, the CID is not in misc or your misc is corrupted. This process will add in the CID to misc and reflash misc. (which may fix other misc related errors but probably wont)
Warning! Misc is quite an important part of your phone. If it gets severely corrupted you may loose USB access. Me or anyone on our IRC help channel take no responsibility if you **** up somehow.
This guide is designed for Windoze, Linux users use common sense adapting the instructions and can use a Linux hex editor like ghex. (Works just the same)
Please ensure you have downloaded the other stuff file on the second post before continuing and have extracted it to C:\root.
First, we need to use adb to grab misc off your phone. We will get temporary root then grab misc.
1) Open a command prompt on your computer by going to Start > Run and typing cmd then pressing enter. Now type the following pressing enter on each line. (Make sure your phone is connected and you have the drivers installed.)
Code:
cd \
cd root\adb
adb-windows devices <---- Make sure it finds your phone before continuing
adb-windows shell <----- You should see a $
$ /system/__unrevoked_su <---- Getting temp root
# cat /dev/mtd/mtd0 > /sdcard/misc.img <---- Copying misc to your SD Card
# getprop ro.cid <----- This is your CID. Remember what this says, it should say something like HTC_000 or 1111111 if you have a goldcard
# exit
adb-windows pull /sdcard/misc.img misc.img <---- Getting the misc we copied before
You should now have a file called misc.img in the C:\root\adb folder.
Now come on to the IRC help channel here. We will stick the CID into the misc.img so you can carry on as it really is complicated. You can also post here if nobody is avalible and I will sort it ASAP.
(If you've done hex editing before, all you do is put the CID you got above in at position 0 then add a 00 at the end so the hex string looks something like "48 54 43 5F 5F 30 30 31 00")
Make sure you save the file that we give you back to C:\root\adb overwriting the original misc.img file.
Next we're going to push misc back on to the phone using a similar method to step 1. Have open a command prompt and cd to the correct directory as in step 1 before proceeding.
2) Type the following in the command prompt:
Code:
adb push misc.img /sdcard/new-misc.img <---- Pushing misc back to your SD card
adb-windows shell
$ /system/__unrevoked_su <---- getting temp root again
# /data/local/flash_image misc /sdcard/new-misc.img <---- Using flash_image to flash the new misc
# exit
Now rerun unrEVOked and everything should be as shiny as the plastic Samsung use to make their phones.
Click to expand...
Click to collapse
Reserved for good measure.
I'm sure this will help many people. Should be sticky'd
HCDR.Jacob said:
I'm sure this will help many people. Should be sticky'd
Click to expand...
Click to collapse
Good Idea!!!
For the rru you need to click on the windows mobile section and select buzz NOT bravo
Added A2SD guides, misc fix & unroot guide. Bump to v42.1.2
Many Thanks,
Helps loads confirm my thinking after a couple of days reading, I just have to grow some balls n take the plunge
My main concern is my WF is a UK Voda PAYG which I believe is locked n I'm unsure whether I should get n unlock code before doing anything.
I did read in a Desire thread that updating a stock rom without a sim could unlock, but haven't seen any other refs to unlocking WF other than code.
Note: Unroot section still refers to Desire Bravo not WF Buzz
Thanks agin
PanGalactic said:
Many Thanks,
Helps loads confirm my thinking after a couple of days reading, I just have to grow some balls n take the plunge
My main concern is my WF is a UK Voda PAYG which I believe is locked n I'm unsure whether I should get n unlock code before doing anything.
I did read in a Desire thread that updating a stock rom without a sim could unlock, but haven't seen any other refs to unlocking WF other than code.
Note: Unroot section still refers to Desire Bravo not WF Buzz
Thanks agin
Click to expand...
Click to collapse
You shouldn't need to unlock or anything.
Thanks, I'll change that bit now
42turkeys said:
You shouldn't need to unlock or anything.
Thanks, I'll change that bit now
Click to expand...
Click to collapse
And buzz is under windows mobile for some reason
The guide really great....but the shipped rom website don't have RUU for Buzz
coltrain said:
The guide really great....but the shipped rom website don't have RUU for Buzz
Click to expand...
Click to collapse
Look under windows mobile - who put it there? Those files do work.
This thread still not stickied?
Piece of art already. Should be stickied for sure.
I thought a bit about 'reporting' the thread to make a mod notice it but it said specifically what report was to be used for , so i didn't do it , i guess we'll have to bump it up so it gets stickied. Great post !!

[GUIDE] Complete and Thorough Guide to Rooting the Nexus S [+ No wipe] [GRH78C]

May NOT work for 2.3.3, if attempting on 2.3.3 use old part 1! - Will wipe all data though
Windows ONLY!
Hey guys, rooted my Nexus S today, and decided to write a thorough, detailed guide on how I did it, as none of the guides I had found had everything detailed. I came across a few problems, and all of this is in the guide. I successfully completed it on my Nexus S running 2.3.2, so any version below that will also work.
The original guide was made by AllGamer, and can be found here. I followed this guide, and added things when I found it was needed
The full guide with everything (including links, pictures) can be found on my site, Complete Android.
New info: Upon finding another thread over at XDA (http://forum.xda-developers.com/showthread.php?t=931865) it has been realized that you can root your Nexus S without unlocking the bootloader, and therefore not loosing your data on the SD card. Part 1 for the new method is still the same, but choose the new Part 2!
WARNING: Rooting your device will wipe all data off it, so you will loose EVERYTHING! Make sure you backup all important data first. Only applies to old Part 2 (fastboot oem unlock method), but it is still a good idea to backup important information!
Click to expand...
Click to collapse
What you will need:
Nexus S (obviously)
Android 2.3 SDK
USB Cable
PDAnet (for drivers)
Clockwork Recovery Image
Superuser
Part 1
Download the Android 2.3 SDK (or direct from Google here, 32MB).
Once it has finished downloading, unzip it, and run the SDK manager.
Select whatever components you wish to install, but you MUST make sure you install Google USB Driver (Available packages > Third party Add-ons > Google Inc. Add-ons > Google Usb Driver package, revision 4) otherwise this guide will not work!
We must now install the Google USB Driver, or the phone will not be recognised as a device other than a mass storage device.
Connect your Nexus S to your computer, and put it in USB storage mode.
Put it in USB Debugging Mode (Settings > Applications > Development > USB Debugging)
Windows should now recognise your Nexus S when you plug it in, and ask to install drivers. It probably won’t find anything, so we need to help it manually.
(Installing drivers manually varies between Windows versions, so please refer to http://developer.android.com/sdk/win-usb.html if you are having trouble). Launch Device Manager (you can find it in Control Panel), find Other Devices, and listed under that heading, you should find Nexus S. Right click, and select Update Driver Software. Click Browse my computer for driver software, find your SDK folder, then the google-usb_driver folder inside it, click OK, then Next. This should install the USB driver successfully. Reboot your computer.
Power off your Nexus S, connect it to your computer via USB cable, and boot it into the Bootloader Interface (you can do so by holding down the Power and Volume Up buttons at the same time).
It should say LOCK STATE – LOCKED, in white just above the green Android. You are now ready to move on!
Part 2 - Fastboot oem unlock method - WIPES ALL DATA!
We now need to install PDAnet on our PC so that Windows can see our Nexus S when we are using the Command Prompt. Install PDAnet from here, select Samsung when asked about the Manufacturer, allow the driver to be installed (because the driver is unverified, don’t worry about this!). Follow along with any other instructions. You should be set now.
With the latest SDK version, some tools have been relocated to another directory, so we need to make a copy and move them back. Navigate to the directory where you unzipped the Android SDK file in part 1. Inside it, go to the platform-tools folder, and copy both AdbWinApi.dll and AdbWinUsbApi.dll. Go back to the main Android SDK directory and find the tools folder. Paste these two files in there, and we are all ready to use ‘fastboot oem unlock’ (the rooting command) now.
Open a command prompt window (Start > Run > cmd.exe).
Change to the tools directory within your Android SDK folder by using the following command (without the quotes and replacing *YOUR SDK* with the path to your Android SDK folder) ‘cd c:\*YOUR SDK*\tools’.
Make sure your Nexus S is still in the Bootloader Interface (refer to step 9, part 1 of it isn’t).
Now in the command prompt, type in (without the quotes) ‘fastboot oem unlock’.
Now turn your attention to the phone, and read through the new information displayed on the screen. Using the Volume keys select Yes, then press the Power button. This will WIPE EVERYTHING! I bear no responsibility for any lost data on your phone!
If everything is successful, on your phone, the LOCK STATE should now read UNLOCKED, and on your computer, the command prompt window should say something like this:
Download the Clockwork Recovery image (here if you don’t already have it) to your Android SDK tools folder (*Android SDK*\tools).
Rename the newly downloaded Clockwork Recovery image to ‘recovery.img’ (no quotes).
Now we need to flash it to our Nexus S, so enter this command into the Command Prompt (make sure it is in the Androis SDK tools folder!) ‘fastboot flash recovery recovery.img’ (without the quotes).
If all is successful, the Command Prompt window should look something like this now:
Download the superuser app to the Android SDK tools folder.
Power on your Nexus S, leaving it connected to USB.
Mount the USB storage, and drag and drop the superuser .zip file you just downloaded into the root of the internal SD card (so Computer > *Device Name*, not in any other folders!). It should look something like this:
Power off the Nexus S, and return to the Bootloader Interface (step 9, part 1).
Select Recovery using the Volume buttons, then the Power button.
The phone should reboot into Clockwork Recovery, but if not don’t panic, just repeat steps 9-12, including downloading a new copy of the file (mine only worked the second time around, don’t worry!)
Using the Volume buttons and Power button, select install zip from sdcard.
Select choose zip from sdcard.
Select the su-version#-signed.zip file you downloaded earlier and apply it.
Select yes (there are lots of nos).
Confirm it says something like this: install from sdcard complete
Select Go Back.
Select Reboot. (You will now also have an unlocked padlock when you boot up)
Done! You now have to set up your phone again like when you first got it, but it will be rooted now.
New Part 2 - Does NOT wipe everything - Keeps a locked bootloader
Make sure Part 1 is completed.
Make sure you have downloaded the Clockwork Recovery file and the Superuser file.
Move the Clockwork Recovery file to your tools folder within the Android SDK folder, and rename it to recovery.img (for simplicity).
Connect your Nexus S via USB to your computer and mount it as USB storage. Copy across the Superuser file to the top level of your sdcard. (So the first window you see, not in any other folders. The sdcard is just where all the files are stored, don't worry about it too much for now).
We now need to install PDAnet on our PC so that Windows can see our Nexus S when we are using the Command Prompt. Install PDAnet from here, select Samsung when asked about the Manufacturer, allow the driver to be installed (because the driver is unverified, don't worry about this!). Follow along with any other instructions. You should be set now.
With the latest SDK version, some tools have been relocated to another directory, so we need to make a copy and move them back. Navigate to the directory where you unzipped the Android SDK file in part 1. Inside it, go to the platform-tools folder, and copy both AdbWinApi.dll and AdbWinUsbApi.dll. Go back to the main Android SDK directory and find the tools folder. Paste these two files in there, and we are all ready to use 'fastboot boot' (the boot image command) now.
Open a command prompt window (Start > Run > cmd.exe).
Change to the tools directory within your Android SDK folder by using the following command (without the quotes and replacing *YOUR SDK* with the path to your Android SDK folder) 'cd c:\*YOUR SDK*\tools'.
Make sure your Nexus S is still in the Bootloader Interface (refer to step 9, part 1 of it isn't).
We now need to use the 'fastboot boot' command to load Clockwork Recovery onto our Nexus S. In the command prompt, type in the following (but without the quotes, as always) 'fastboot boot recovery.img'
Once you are in Clockwork Recovery (it may take a couple of tries, don't panic, just redownload Clockwork Recovery, and complete steps 3 and 10, part 2) it should look something like this:
Using the Volume buttons and Power button, select install zip from sdcard.
Select choose zip from sdcard.
Select the su-version#-signed.zip file you downloaded earlier and apply it.
Select yes (there are lots of nos).
Confirm it says something like this: install from sdcard complete
Select Go Back.
Select Reboot.
Done! You should still have all your data present on your phone, and have root access!
Notes
As AllGamer said in his tutorial:
It’s normal to lose the recovery after the reboot, the steps to flash the CW recovery needs to be repeated every time you want to access the CW recovery.
This is due the build in protection in 2.3
As some one pointed it out on another topic, the good thing about this is that you’ll never lose the stock recovery of 2.3, thus minimizing the chance of a bricked phone.
If you want to the CW recovery to remain permanently, you’ll need to rename /etc/install-recovery.sh to something thing else
Click to expand...
Click to collapse
Keep this in mind! It's not because you did something wrong
Also, some root apps require BusyBox to be installed, as I found out with Titanium Backup, so once you set up your Nexus S again, head on into the Market, and download BusyBox. It installed fine on my Nexus S this way, and now TB works fine.
I hope this is the best, most thorough guide you will find on rooting the Nexus S. Enjoy! Feedback is appreciated, and I will help out if you need any extra help.
Your guide has been wonderful however I'm stuck on part 2, step 4. I tried writing in the path to my directory and they keep giving me whatever I wrote in the command prompt "is not recognized as an internal or external command, operable program or batch file"
"Change to the tools directory within your Android SDK folder by using the following command (without the quotes and replacing *YOUR SDK* with the path to your Android SDK folder) ‘cd c:\*YOUR SDK*\tools’."
This is how my command prompt looks like when I first open it. "C:\Users\Du>"
and this is what I typed in the command prompt: "Downloads\android-sdk_r09-windows\android-sdk-windows"
^^^I did exactly what you said above and nothing is happening. I don't know whether I'm writing in the directory wrong or what. Please help me out thanks
Your guide is nice, however as shown in distortedloop's stickied Root & Recovery thread, fastboot oem unlock is not required for rooting & flashing. We no longer have to lose all our sdcard data when first rooting and/or flashing a ROM.
Other than that, this seems to be a nice amendment of Allgamer's sticked root & recovery thread. I'm sure it will be useful to many.
STARSCR33M said:
This is how my command prompt looks like when I first open it. "C:\Users\Du>"
and this is what I typed in the command prompt: "Downloads\android-sdk_r09-windows\android-sdk-windows"
^^^I did exactly what you said above and nothing is happening. I don't know whether I'm writing in the directory wrong or what. Please help me out thanks
Click to expand...
Click to collapse
Ok so if you want to change directories in the command prompt, you need to use the command
Code:
cd
So in your case I would type in
Code:
cd c:\Users\Du\Downloads\android-sdk_r09-windows\android-sdk-windows\tools
That way is fool proof, however you could take a shortcut, because you are already in the Users/Du folder (because of how it looks when you first open it), you could just type in
Code:
cd Downloads\android-sdk_r09-windows\android-sdk-windows\tools
Hope that helps
ravidavi said:
Your guide is nice, however as shown in distortedloop's stickied Root & Recovery thread, fastboot oem unlock is not required for rooting & flashing. We no longer have to lose all our sdcard data when first rooting and/or flashing a ROM.
Click to expand...
Click to collapse
I think this way is a cleaner approach personally, but hey choice is good That's what Android is all about
EDIT: New approach added, now there is choice and easyness for all
Other than that, this seems to be a nice amendment of Allgamer's sticked root & recovery thread. I'm sure it will be useful to many.
Click to expand...
Click to collapse
Thanks
Jonathon Grigg said:
I think this way is a cleaner approach personally, but hey choice is good That's what Android is all about
Thanks
Click to expand...
Click to collapse
I'm not sure that wiping all your data pointlessly is "cleaner."
It's not even clear what exactly the oem unlock of the bootloader really does for us, since you can get into clockwork recovery without that step. Once you're in clockwork you pretty much own the phone. I'll be interested to see if someone can use clockwork to flash a new boot image once rooted without the unlock; if so I can't see any reason to unlock the bootloader. That said, mine is unlocked, and I like it that way, but many won't root for fear of losing data on the phone.
Even if you end up having to do the oem unlock in the long run for some activities you want to do, it seems that rooting, then installing Titanium and backing up your apps and app data fully is a better way to go than just losing all your data (any app that doesn't store its data on the sdcard) that can't be backed up without root would be a lot less painful than WIPING everything on the phone, including the sdcard.
It's not worth arguing about, but I think any method that is including the oem unlock step should at least mention that that step can be skipped. How many people will go through the pain of a wipe that they didn't need to because they didn't see that there was an option without it. I guess that's there own fault for not doing enough searching on their own...
Anyways, nice and thorough effort. I'm sure many will benefit from your additions to AllGamer's tutorial.
distortedloop said:
I'm not sure that wiping all your data pointlessly is "cleaner."
It's not even clear what exactly the oem unlock of the bootloader really does for us, since you can get into clockwork recovery without that step.
Click to expand...
Click to collapse
I have been wondering that myself. My guess is that for the average user you don't need to, but maybe it's for real power users who build their own ROM which has been fully modded or something, I'm not sure.
but many won't root for fear of losing data on the phone.
Click to expand...
Click to collapse
I definitely agree with that, and your guide is probably the best way for those people!
Even if you end up having to do the oem unlock in the long run for some activities you want to do, it seems that rooting, then installing Titanium and backing up your apps and app data fully is a better way to go than just losing all your data (any app that doesn't store its data on the sdcard) that can't be backed up without root would be a lot less painful than WIPING everything on the phone, including the sdcard.
Click to expand...
Click to collapse
Exactly, this is one of the better uses for both methods. I already had to wipe my phone twice due to Samsung CS so I'm used to it Although it does give you a chance to clear out the apps you don't need. Doing that I noticed better battery life on my phone.
It's not worth arguing about, but I think any method that is including the oem unlock step should at least mention that that step can be skipped. How many people will go through the pain of a wipe that they didn't need to because they didn't see that there was an option without it.
Click to expand...
Click to collapse
I wasn't going to argue I'm happy to adjust my tut to include something about this, after all it was aimed at more beginners.
EDIT: Added a new part to my tutorial based on your guide, just includes some more detail. Thanks again.
Thanks distortedloop
This is awesome cause i relocked my bootloader i really just needed root. Thanks!
Edit oops lost track of tabs open.
I think we can use this method to unlock oem without wiping data.
boot cw -> full backup -> unlock and flash cw (wipes data) -> restore backup (got ur data back and oem unlocked)
the only problem i can think of is that restoring backup would re-lock oem again but i am not sure of that.
i can't try this right now but if someone could, please give feedback.
Jonathon Grigg said:
I wasn't going to argue I'm happy to adjust my tut to include something about this, after all it was aimed at more beginners.
EDIT: Added a new part to my tutorial based on your guide, just includes some more detail. Thanks again.
Click to expand...
Click to collapse
Nicely done. Thanks.
sam4free said:
I think we can use this method to unlock oem without wiping data.
boot cw -> full backup -> unlock and flash cw (wipes data) -> restore backup (got ur data back and oem unlocked)
the only problem i can think of is that restoring backup would re-lock oem again but i am not sure of that.
i can't try this right now but if someone could, please give feedback.
Click to expand...
Click to collapse
That's what I suggesting a couple of posts above (root without unlock to at least make a backup of user data).
Restoring a titanium backup would not re-lock the phone. A nandroid restore might, depends on what all it imaged and restores, but it's so easy to re-root, that doesn't seem like a big deal.
Jonathon Grigg said:
Download the Android 2.3 SDK (or direct from Google here, 32MB).
Click to expand...
Click to collapse
Looks like you forgot to add the link in your copy pasta.
AtomicPC said:
Looks like you forgot to add the link in your copy pasta.
Click to expand...
Click to collapse
I've been working on it I just wanted to get it up here as soon as I could That's why I mentioned that the full guide is available on my website. I'm going back to school today, so I don't really have too much time for changing links now. Besides, most people on XDA should know how to look at the 'What's needed' part
Sent from my Nexus S using XDA App
Jonathon,
Thank you for posting this detailed guide to rooting without losing your data! I do have a question. As you've probably heard, there are a few updates coming soon and if they are like they were on the N1, they always broke root. So getting root back was tricky unless I "unrooted" before applying the update. Using your method, is it easy to "unroot"? Thanks!
No problems
As for your problem, I never actually had a N1 so I don't exactly know why that would happen. So far from the 2 updates available to NS owners it seems like the OTA update does break root but it appears to be the same to get it back again. Can someone confirm this? I haven't been through an update with my root yet.
As for unrooting, if you haven't unlocked the bootloader (so you have followed the new part 2) I think it is just a case of finding a stock image (I think there's a GRH78 one around here somewhere) and booting into Clockwork Recovery and flashing it. That should remove root and then also give you a notice to install the GRH78C OTA update so you get the latest version.
I think that is what you meant? If you did unlock the bootloader (using the original part 2) then I think you just have to follow the same steps as I mentioned just then but afterwards go back into the bootloader interface and run 'fastboot oem lock' and it should be right.
Sent from my Nexus S using XDA App
Question on Part 2- step 1.
Code:
# We now need to install PDAnet on our PC so that Windows can see our Nexus S when we are using the Command Prompt. Install PDAnet from here, select Samsung when asked about the Manufacturer, allow the driver to be installed (because the driver is unverified, don’t worry about this!). Follow along with any other instructions. You should be set now.
Why above step is required if one already installed USB Driver for Nexus S and "ADB devices" command can find the device ?
On Allgamer thread didnt ask to repeat installing USB driver ?
What purpose for the pdanet driver ?
I dont want to put redundant drivers into my system which may interfere each other during flashing process.
hmanxx said:
Why above step is required if one already installed USB Driver for Nexus S and "ADB devices" command can find the device ?
On Allgamer thread didnt ask to repeat installing USB driver ?
What purpose for the pdanet driver ?
I dont want to put redundant drivers into my system which may interfere each other during flashing process.
Click to expand...
Click to collapse
When I tried to use the fastboot command with my Nexus S connected, it would hang and not do anything, despite leaving it for about 5 minutes. I searched online, and found the PDAnet solution, so I don't know what the difference is exactly. All I found the Google SDK USB drivers to do is enable you to see your device in Device Manager, however you could try it without the PDAnet drivers, and let me know what happens!
Thanks
Thanks for the prompt reply.. I tried out the google driver..it doesnt work under fastboot. I eventually get the fastboot enabled driver..that could explain why the pdanet driver required.
After i installed the fastboot enabled driver, i could test the connectivity under fastboot with "fastboot devices"
thanks going to try out rooting..i just want simple root access..without wiping data is a ++ ..
I managed to run fastboot boot recovery.img...going into clockwork menu..apply the superuser.zip.(for froyo version)..till completion..no word of failure..
However after rebooting, su and SuperUser.apk are not installed.( I used adb to check the system/app and system/bin folder.
Edit- manage to root properly after system mounting .
Just a note..to properly complete the rooting, one need to apply mounting then mount system before applying the Superuser.zip install from sdcard.
Prior to step 11, you may want to add the following steps for folks having problem to get the superuser.zip to install properly.
Originally Posted by droidmage
So all you guys who are having trouble getting root inside the rom, When your in recovery before you flash the superuser.zip file select -- mounts and storage -- then --mount /system -- then flash the .zip file and reboot
Click to expand...
Click to collapse
Thanks for the extra bit of info, I will attempt to add that in when I get a bit more time on my hands. when I did it it seemed to work fine so thanks for discovering that!
Enjoy your rooted phone
Sent from my Nexus S using XDA App

[SCRIPT] Root v2 for Mac (Keep root only)

Currently Beta:
THIS IS UNTESTED. I don't have my Atrix anymore, so I need volunteers to test this for me. Ideally, whoever can test this will have access to a PC to reflash the SBF. If you are willing to do so, please run the beforedebug and afterdebug versions and PM me the output
Some Notes:
- As this is Ririal's script translated to bash (see here: http://forum.xda-developers.com/showthread.php?t=1016060), this shouldn't work on Bell Atricies
- Since RSDLite is a windows only program, it is not possible to flash the SBF back to 1.2.6 on a Mac as far as I know. In other words if you've upgraded already, you're out of luck until you can find a PC to flash back to 1.2.6
PS: Since the method I used to turn the scripts to executables last time caused some PATH issues, I've decided to leave this as .sh files
Instructions:
1) Download the zip and decompress it to the Desktop
2) Make sure you're Atrix is hooked up w/ ADB debugging enabled
3) open up a terminal (What follows will be instructions to run)
cd ~/Desktop/aRootMacV2
./beforedebug.sh
4) Run the update on your phone( Settings -> About phone -> System updates)
5) Back to the terminal
./afterdebug.sh
6) Make sure to allow the SU request on your phone when prompted
Once this has been tested to make sure it's working correctly I will update this thread with more thorough instructions. In the mean time if you don't have a PC, make sure not to update.
Download: http://www.mediafire.com/?djxt3d8j519yk9m
Thanks for this. Ill try to get a pc so I can downgrade and test this.
Sent from my MB860 using XDA Premium App
I get this when trying to run beforedebug.sh
new-host-5:aRootMacV2 AJ$ /Users/AJ/Desktop/aRootMacV2/beforedebug.sh
-bash: /Users/AJ/Desktop/aRootMacV2/beforedebug.sh: /bin/bash^M: bad interpreter
EvilEvo said:
I get this when trying to run beforedebug.sh
new-host-5:aRootMacV2 AJ$ /Users/AJ/Desktop/aRootMacV2/beforedebug.sh
-bash: /Users/AJ/Desktop/aRootMacV2/beforedebug.sh: /bin/bash^M: bad interpreter
Click to expand...
Click to collapse
the "bad interpreter" message is caused by ^M (Windoze carriage returns) being embedded in the script file. If you do this
Code:
cat beforedebug.sh | tr -d '\r' > beforedebug.sh.new
cp beforedebug.sh.new beforedebug.sh
that should do the trick.
At the risk of jacking phoneixx's thread, I had done something similar for Mac based on Ririal's GladRoot and DesignGears aRoot.
There actually is an SBF flasher for Linux and Mac found on OPTICALDELUSION's blog.
I had originally posted this on AndroidCentral but since XDA is the site of record then I guess it should go here too
(I tried to link to the OPTICALDELUSION blog and AndroidCentral article but the XDA spam filter won't let me post a link to an outside site until I have 8 more posts, lol. I may make some more posts elsewhere and edit this post to include the proper links )
_____________
Hello, all of you frustrated Mac users out there!
This method is tested on my MacBook Pro (10.6.6)
Linux users should be able to use this if they replace the copy of adb that is in the zip file with the appropriate executable from Linux version of the SDK. If you know enough to run Linux then you can do that on your own
Warning -- AT&T Atrix only! No Bell!
So you're on 1.5.7 -- let's root it!
Part A -- Revert software back to 1.26
1. Download this file and unzip it (Deposit Files)
2. Make sure your phone is FULLY CHARGED
3. Turn off your phone
4. Remove your SIM card and SD card if you have one
5. Turn your phone ON and hold the Volume UP button
6. It will say “Starting RSD protocol support” at the top of the boot screen
7. Connect your phone to the computer via USB
8. Run the downgrade.sh script. This will reflash your phone to 1.26 so that we can gain root access.
9. it can take up to 5 minutes to flash depending on your computer speed. My MacBook Pro takes just under 4 minutes. If you get any errors that look something like
>> uploading RDL03: 0.0%usb_bulk_write -5
>> uploading RDL03: failed at 00000000/00300000
!! failed
>> rebooting
usb_bulk_write -104
Don't get nervous! That happens occasionally. Just run the script again.
10. Phone will reboot and it takes longer than usual to come up
11. disconnect USB and power down.
12. Put your SIM and SD cards back in
13. Power up and verify that you are running 1.2.6 in Settings -> About Phone. You'll have to reenter your Motoblur account info.
Part B -- Root it!
14. Enable USB debugging (Settings -> Applications -> Development).
15. Connect your phone and set USB Connection to 'None'.
16. cd to the aRoot directory and run aRoot.sh and follow the on-screen directions
If you see this:
…
Getting temporary root access...
mmap() failed. Operation not permitted
…
then the rooting operation failed. Try running the aRoot.sh script again. If it fails manually run this:
./adb kill-server
If it keeps failing you may not have flashed back to 1.26 successfully. Start again.
17. Verify that there are no errors before updating.
18. Go to Settings -> About phone -> System updates
19. Follow the on-screen instructions. First download the update (you will need a Wi-Fi connection for this), then it will prompt you to install.
20. The update will reboot the device and install itself. If this part fails it's because you are not on stock 1.2.6 firmware. Start over and read the directions.
21. When it boots back up, verify USB debugging is still on. Some users report that disabling and re-enabling USB debugging solves a few issues with the script detecting your device (Settings -> Applications -> Development).
22. Run afterupdate.sh
23. Make sure you allow the superuser request on your phone or it WILL fail.
24. All done! Enjoy your rooted Atrix on 4.1.57!
thanks to
OpticalDelusion (OPTICALDELUSION)
DesignGears([SCRIPT] aRoot for Atrix 4G [ root - init.d - sideloading - tethering ] - xda-developers)
Ririal ([SCRIPT] GladRoot v4 (Bell 0.37.4, AT&T 1.26/1.52/1.57 Supported) - xda-developers)
Kennethpenn ([GUIDE] Flash SBF to Motorola Atrix 4G - xda-developers)

[Q] Any easy way to completely copy the state of one Moto X to another?

I got a new phone with a wood back and will be selling my old one soon. Is there an easy way to completely clone my old phone's contents onto my new one?
Could try doing an NAND backup on the old one. Then putting it in the same directory of the new one. The directory would be /twrp/backups/(some numbers assigned to be your phones ID)/backup name.
Your ID will change, but you should be able to use that backup to restore on the new phone.
Sent from my XT1060 using xda app-developers app
---------- Post added at 01:20 PM ---------- Previous post was at 01:17 PM ----------
You might have to make an NAND on the new phone to have the recovery make the new filepath
Sent from my XT1060 using xda app-developers app
kkeller87 said:
Could try doing an NAND backup on the old one. Then putting it in the same directory of the new one. The directory would be /twrp/backups/(some numbers assigned to be your phones ID)/backup name.
Your ID will change, but you should be able to use that backup to restore on the new phone.
Sent from my XT1060 using xda app-developers app
---------- Post added at 01:20 PM ---------- Previous post was at 01:17 PM ----------
You might have to make an NAND on the new phone to have the recovery make the new filepath
Sent from my XT1060 using xda app-developers app
Click to expand...
Click to collapse
Thanks. This requires root, right? I haven't rooted either of the phones, although I would if it sped this process up. It's something that I eventually want to do anyway.
beelbeel said:
Thanks. This requires root, right? I haven't rooted either of the phones, although I would if it sped this process up. It's something that I eventually want to do anyway.
Click to expand...
Click to collapse
Yea. Sorry. A custom recovery/safestrap is required. I kinda assume anyone who's on XDA has it. Without root I'm not entirely sure how to do it any other way than manually.
Sent from my XT1060 using xda app-developers app
Without root the best you can do is mybackup pro or titanium backup. They will back up app data but not the apps themselves. Get your new phone, download your apps, restore app data from mybackup.
I wrote this before, but this is how you can backup your apps and their data with a computer and without root. Moto X's have Motorola Migrate that can move over some settings.
This process can take a bit to explain, so sorry for the long post.
First, you'll need to install Oracle’s Java Development Kit, which the Android SDK requires. Download and install the 32-bit version. The Android SDK wants the 32-bit version, even if you're using a 64-bit version of Windows.
Next, download the Android SDK from Google. Extract the .zip folder to a location of your choosing, but remember where you put it. If you have the option to open extracted contents in a new window, do so.
Okay, now open the Android SDK Manager (you may have to open a subfolder or two) with administrative rights. You do this by right clicking on the .exe and choosing the option "Run as administrator". A window will pop up, click yes, and after a small wait, the SDK Manager will open.
Now within the SDK Manager, under the tools section, check the box for Android SDK Platform-tools and click Install. This can take some time depending on your Internet connection. Once installed, go back to the open window where you clicked the SDK Manager .exe and navigate to the folder named "Platform Tools". If you're unsure where this is, the SDK Manager has the path of install located near the top.
Now let's get the phone ready. If you can, charge your device to its fullest. Now go into the settings, scroll down to 'development options'. Near the top of this menu, make sure the toggle switch is in the 'on' position. Now scroll down to USB debugging, and tick the box. Tap "OK" when the message shows up. Now plug the smaller end of the USB cable (preferably the one that came with your phone) into the bottom of the phone and the other into an open USB port of your computer. It's best to use a 2.0 USB port (no blue end) and if on a desktop, a port located in the rear.
If your computer starts installing any drivers, let it do this. Once that's finished, go to the window with the Platform Tools folder open. You should see a few files, two named "ADB" and another "Fastboot". Now hold your Shift key, right click in an open area, and choose the option "Open command window here". You may release the shift key at this time.
We're almost done. To make sure your tablet is seen by the computer type:
Code:
adb devices
One device should be listed. If you see no devices, adb can’t communicate with your device because its driver isn't installed properly. In this case, go back to the SDK Manager and download the USB drivers. You may also need to restart your computer.
Assuming you're up and working, type:
Code:
adb backup -apk -shared -all -f C:\backup.ab
This backs up all the installed apps (APK files) and shared storage (SD card) data to the C:\backup.ab file on your computer.
After running this command, you'll have to agree to the backup on the device. You can also encrypt the backup with a password here, if you like (leave it blank if you don't want encryption). Depending on how much data there is to back up, this can take some time. The device will let you know when it's done.
Now for the restoration process:
On the new device, make sure USB debugging is enabled. On the computer, follow the same steps for opening the adb command window. Ensure adb can see the device, then type:
Code:
adb restore C:\backup.ab
On the device, you will need to confirm you want to do a full restore. If you encrypted the backup, enter in the password, then hit "Restore my data". If you didn't add encryption, then leave that area blank. Once the restoration is done, you're good to go.
Thanks for the replies.
Hikikomori-Otaku said:
I wrote this before, but this is how you can backup your apps and their data with a computer and without root. Moto X's have Motorola Migrate that can move over some settings.
This process can take a bit to explain, so sorry for the long post.
First, you'll need to install Oracle’s Java Development Kit, which the Android SDK requires. Download and install the 32-bit version. The Android SDK wants the 32-bit version, even if you're using a 64-bit version of Windows.
Next, download the Android SDK from Google. Extract the .zip folder to a location of your choosing, but remember where you put it. If you have the option to open extracted contents in a new window, do so.
Okay, now open the Android SDK Manager (you may have to open a subfolder or two) with administrative rights. You do this by right clicking on the .exe and choosing the option "Run as administrator". A window will pop up, click yes, and after a small wait, the SDK Manager will open.
Now within the SDK Manager, under the tools section, check the box for Android SDK Platform-tools and click Install. This can take some time depending on your Internet connection. Once installed, go back to the open window where you clicked the SDK Manager .exe and navigate to the folder named "Platform Tools". If you're unsure where this is, the SDK Manager has the path of install located near the top.
Now let's get the phone ready. If you can, charge your device to its fullest. Now go into the settings, scroll down to 'development options'. Near the top of this menu, make sure the toggle switch is in the 'on' position. Now scroll down to USB debugging, and tick the box. Tap "OK" when the message shows up. Now plug the smaller end of the USB cable (preferably the one that came with your phone) into the bottom of the phone and the other into an open USB port of your computer. It's best to use a 2.0 USB port (no blue end) and if on a desktop, a port located in the rear.
If your computer starts installing any drivers, let it do this. Once that's finished, go to the window with the Platform Tools folder open. You should see a few files, two named "ADB" and another "Fastboot". Now hold your Shift key, right click in an open area, and choose the option "Open command window here". You may release the shift key at this time.
We're almost done. To make sure your tablet is seen by the computer type:
Code:
adb devices
One device should be listed. If you see no devices, adb can’t communicate with your device because its driver isn't installed properly. In this case, go back to the SDK Manager and download the USB drivers. You may also need to restart your computer.
Assuming you're up and working, type:
Code:
adb backup -apk -shared -all -f C:\backup.ab
This backs up all the installed apps (APK files) and shared storage (SD card) data to the C:\backup.ab file on your computer.
After running this command, you'll have to agree to the backup on the device. You can also encrypt the backup with a password here, if you like (leave it blank if you don't want encryption). Depending on how much data there is to back up, this can take some time. The device will let you know when it's done.
Now for the restoration process:
On the new device, make sure USB debugging is enabled. On the computer, follow the same steps for opening the adb command window. Ensure adb can see the device, then type:
Code:
adb restore C:\backup.ab
On the device, you will need to confirm you want to do a full restore. If you encrypted the backup, enter in the password, then hit "Restore my data". If you didn't add encryption, then leave that area blank. Once the restoration is done, you're good to go.
Click to expand...
Click to collapse
Thanks for the detailed response. I actually use a mac, and I might have to do some research to see what parts of this process still apply. I may also just investigate other methods of transferring most (perhaps not all) of the data.
beelbeel said:
Thanks for the detailed response. I actually use a mac, and I might have to do some research to see what parts of this process still apply. I may also just investigate other methods of transferring most (perhaps not all) of the data.
Click to expand...
Click to collapse
This may help with getting adb to work on your Mac http://forum.xda-developers.com/showthread.php?t=1917237 Otherwise you could use an application like VMware Fusion to virtually run a Windows OS on your Mac. I know you can get evaluation copies of Windows to use that don't require a product key (they only work for 90 days though).

Categories

Resources