Installing BusyBox + Root only (no CWM)? - Samsung Galaxy Nexus

Hi guys,
I need your advice related to rooting my Nexus phone I got from Google Play.
I will not install any custom ROM's, I simply need to spoof the carrier to T-Mobile, when I'm in Canada.
That said, I looked at few tutorials and from all of them, this one is mostly recommended:
http://forum.xda-developers.com/showthread.php?t=1529058
Before I proceed, I need your opinion about the tutorial and also if is possible to run on my phone just BusyBox, while rooted.
Thank you for your help.

To run root without CWM...
Simply uze the command "fastboot boot RECOVERYNAME.img" rather than the one in the guide.
This won't write a custom recovery to your phone...but boot into it one time only.

Jubakuba said:
To run rooted...
Simply uze the command "fastboot boot RECOVERYNAME.img" rather than the one in the guide.
Click to expand...
Click to collapse
Thank you. I'll work on it and let you know guys how it went.

Everything went very smooth, no issues. Well the hardest part was to get the right ADB drivers, as I did not wanted to install unsigned drivers. I'm going to work now, will post the drivers info when I come back. For reference, I have now root without CWM.
If I decide to revert back to stock, what is procedure?
I have the bootloader locked now, so I guess opening it again will erase everything including the root files. Let me know please.
Edit: To get the drivers rolling in Windows 7 64bits Ultimate, I used this tutorial.

TECK said:
Everything went very smooth, no issues. Well the hardest part was to get the right ADB drivers, as I did not wanted to install unsigned drivers. I'm going to work now, will post the drivers info when I come back. For reference, I have now root without CWM.
If I decide to revert back to stock, what is procedure?
I have the bootloader locked now, so I guess opening it again will erase everything including the root files. Let me know please.
Click to expand...
Click to collapse
As long as you have root...
http://forum.xda-developers.com/showthread.php?p=27878074
Will unlock/lock without wiping.
And as far as returning to stock...you haven't modified much thus far.
So deleting busybox and then superuser will work...if you haven't modified any system files.
Or you could always flash the stock images (this does erase your "SDcard" and everything will be back to an-out-of-the-box state).
https://developers.google.com/android/nexus/images

Jubakuba said:
Or you could always flash the stock images (this does erase your "SDcard" and everything will be back to an-out-of-the-box state).
https://developers.google.com/android/nexus/images
Click to expand...
Click to collapse
Thank you sir. Can you please let me know what is the list of commands?
Edit: I got them from the flash-all.sh shell script.
Nexus Images: https://developers.google.com/android/nexus/images
CWM: http://www.clockworkmod.com/rommanager/
Superuser: http://hosted.androidsu.com/superuser/
Root Device
1) Unlock the bootloader (if locked):
---
adb reboot bootloader
fastboot oem unlock
2) Install Supersuer + Root (match the file names with the ones downloaded):
---
adb push Superuser-3.1.3-arm-signed.zip /sdcard/
adb reboot bootloader
fastboot boot recovery-clockwork-6.0.1.0-maguro.img
Flash Superuser: On device, select "install zip from sdcard", then "choose zip from sdcard" and select "Superuser-3.1.3-arm-signed.zip". Confirm install then "+++++Go Back+++++" and "reboot system now".
3) Lock the bootloader (optional):
---
adb reboot bootloader
fastboot oem lock
Stock Device
1) Unlock the bootloader (if locked):
---
adb reboot bootloader
fastboot oem unlock
2) Install the image files (match the file names with the ones downloaded):
---
fastboot reboot-bootloader
fastboot flash bootloader bootloader-maguro-primelc03.img
fastboot reboot-bootloader
fastboot flash radio radio-maguro-i9250xxlf1.img
fastboot reboot-bootloader
fastboot -w update image-takju-jro03c.zip
3) Lock the bootloader:
---
adb reboot bootloader
fastboot oem lock

http://forum.xda-developers.com/showthread.php?t=1626895
Efrant's guide is perfect here.

I got them from the shell script (see above), thanks.

TECK said:
Edit: I got them from the flash-all.sh shell script.
Click to expand...
Click to collapse
Exactly, its that easy.

Related

[HOW TO] Unlock Bootloader & Root GSM Nexus (4.0.x devices only)

I know there a few tutorials already on here, however it seems quite a lot of people are eitiher asking questions about the ADB method, or cannot understand other methods. So i'll try and put it all in one easy to follow tutorial. This is for the latest version on Android 4.0.x.
For this method we are going to use Paul O'Briens Superboot.
Superboot is a boot.img that when booted, will root your device the first time you boot (installing su and the superuser APK). No need to flash any partitions, no need to mess around with ADB, no messing with the contents of your data partition, no overwriting the shipped ROM on your device, just boot the boot image using the instructions below and you're done!
Click to expand...
Click to collapse
APPLY THIS AT YOUR OWN RISK!
Download the latest version of Superboot: DOWNLOAD
You might need the drivers, however its worth getting them anyway as you'll probably need them in the future: DOWNLOAD DRIVERS
If you get you might need the USB drivers: DOWNLOAD
Windows
1) Extract the contents of the above file into C:\root
2) Power your device off
3) Connect your phone to your computer
4) Put device into the bootloader by holding down Vol Up + Vol Down + Power
5) Open up cmd and navigate to by typing to following (Hit enter after each line):
cd C:/
cd root
6) Unlock your bootloader by typing - this will wipe your device!:
fastboot-windows oem unlock
7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it
8) Your bootloader should now say that it is unlocked at the bottom
9) To root your device, double click:
install-superboot-windows.bat
10) You should now be able to reboot your phone and it will have root
11) Optional: Install CWM from here: http://forum.xda-developers.com/showthread.php?t=1357642
Make a Nandroid Backup!
Click to expand...
Click to collapse
Linux
1) Extract the contents of the above file into a folder
2) Power your device off
3) Connect your phone to your computer
4) Put device into the bootloader by holding down Vol Up + Vol Down + Power
5) Open up terminal and navigate to the folder used in step 1
6) Unlock your bootloader by typing - this will wipe your device!:
./fastboot-linux oem unlock
7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it
8) Your bootloader should now say that it is unlocked at the bottom
9) To root your device, type the following (Hit enter after each line):
chmod +x install-superboot-linux.sh
./install-superboot-linux.sh
10) You should now be able to reboot your phone and it will have root
11) Optional: Install CWM from here: http://forum.xda-developers.com/showthread.php?t=1357642
Make a Nandroid Backup!
Click to expand...
Click to collapse
OS X
1) Extract the contents of the above file into a folder
2) Power your device off
3) Connect your phone to your computer
4) Put device into the bootloader by holding down Vol Up + Vol Down + Power
5) Open up terminal and navigate to the folder used in step 1
6) Unlock your bootloader by typing - this will wipe your device!:
./fastboot-mac oem unlock
7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it
8) Your bootloader should now say that it is unlocked at the bottom
9) To root your device, type the following (Hit enter after each line):
chmod +x install-superboot-mac.sh
./install-superboot-mac.sh
10) You should now be able to reboot your phone and it will have root
11) Optional: Install CWM from here: http://forum.xda-developers.com/showthread.php?t=1357642
Make a Nandroid Backup!
Click to expand...
Click to collapse
If i've missed any steps out such as downloading drivers etc, let me know what to add in etc. I did mine on OS X and it didn't require me to install anything extra
Update: it would appear some people are having issues with 4.1 rooting. I'll see what I can find an then update it. For the time being, just reflash the vanilla install and you should be fine. I'd imagine there's an incompatibility between this root and 4.1
Very nice indeed, might be worth doing a tutorial on how to return to stock if there isn't already one out there somewhere. Not many people know that it's possible to Fastboot OEM lock, I've tried it
Yeah I'm going to wait until there's a proper system.img about.
I got mine back to stock, however it was a complete bodge and highly advised against.
Locking the boot loader is the easy bit. It's going back to the default rom
Sent from my iPad 2 using Tapatalk
...but this should be moved to general i think. This subforum will br crowded next months.
sent from a kanged gt-i9000 using Tapatalk
It's based on development so I don't see why. General is anything to do with the phone. Unlocking and rooting is the first step of development
Sent from my iPad 2 using Tapatalk
Thank you for your work.
Just a small correction for your original post.
Instead of
fastboot-windows oem unlock
it's actually:
.\fastboot-windows oem unlock
Cheers. I'll edit that. Didn't work for me like that when I did it on a windows PC, however I'll add it in
Sent from my iPad 2 using Tapatalk
Maybe it worth to mention in the first post that many ppl (including me) had issues with this process, because we had no proper drivers installed first, and for that the solution was installing the newest PDAnet software. After that everything went pretty well.
Aylarth said:
Maybe it worth to mention in the first post that many ppl (including me) had issues with this process, because we had no proper drivers installed first, and for that the solution was installing the newest PDAnet software. After that everything went pretty well.
Click to expand...
Click to collapse
Ah yes. Added
Sent from my Galaxy Nexus using Tapatalk
I'm very new to this so prepare for a stupid question!
I'm trying to run this on a Mac, and when I'm trying to run fastboot oem unlock I get the following:
/Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac: No such file or directory
What could cause this?
helen_xxxx said:
I'm very new to this so prepare for a stupid question!
I'm trying to run this on a Mac, and when I'm trying to run fastboot oem unlock I get the following:
/Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac: No such file or directory
What could cause this?
Click to expand...
Click to collapse
Have you navigated to the folder where the files are located? Stupid question but not sure what you've done
Sent from my Galaxy Nexus using Tapatalk
Evostance said:
Yeah I'm going to wait until there's a proper system.img about.
Click to expand...
Click to collapse
Are the files from Peter Alfonso not suitable? They include boot.img, recovery.img, system.img and userdata.img
I want to uninstall clockwork mod and get back to stock recovery. I used Peter Alfonso's recovery.img file and did a "fastboot boot recovery.img" but I just got a picture of a droid with a red triangle. I was hoping that would work before I issued the "fastboot flash recovery recovery.img" command. As it didnt, I guess I'll have to wait to find out what the proper method is.
Evostance said:
Have you navigated to the folder where the files are located? Stupid question but not sure what you've done
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
I extracted the .zip to /Users/extra_ham.
Then put the following in terminal: /Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac oem unlock
I wasn't sure whether I had to run 'cd' before doing that but terminal already appeared to be looking at extra_ham$.
I'm pretty sure it's something simple I'm missing.
Oppressa said:
Thank you for your work.
Just a small correction for your original post.
Instead of
fastboot-windows oem unlock
it's actually:
.\fastboot-windows oem unlock
Click to expand...
Click to collapse
I am pretty sure you don't need the .\ on Windows? Only Mac & Linux.
StuMcBill said:
I am pretty sure you don't need the .\ on Windows? Only Mac & Linux.
Click to expand...
Click to collapse
Thats what I thought. Worked without the .\ for me at work as its just an exe
helen_xxxx said:
I extracted the .zip to /Users/extra_ham.
Then put the following in terminal: /Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac oem unlock
I wasn't sure whether I had to run 'cd' before doing that but terminal already appeared to be looking at extra_ham$.
I'm pretty sure it's something simple I'm missing.
Click to expand...
Click to collapse
OK, If you files are in the folder r2-galaxynexus-superboot, open terminal and just type (after each line hit enter):
cd /Users/
cd extra_ham/
cd r2-galaxynexus-superboot
./fastboot-mac oem unlock
chandlerweb said:
Are the files from Peter Alfonso not suitable? They include boot.img, recovery.img, system.img and userdata.img
I want to uninstall clockwork mod and get back to stock recovery. I used Peter Alfonso's recovery.img file and did a "fastboot boot recovery.img" but I just got a picture of a droid with a red triangle. I was hoping that would work before I issued the "fastboot flash recovery recovery.img" command. As it didnt, I guess I'll have to wait to find out what the proper method is.
Click to expand...
Click to collapse
I tried that system.img and it bricked my phone. Couldn't get it to launch, it just hung on the animation. I did a boot to CWM, messed with some stuff and then the phone randomly launched. Its not a stock image, missing all the Google apps etc and the Gallery doesn't work. I think for now though, its the closest thing to a stock image we have
Brilliant thank you, will give it a try.
Think I need to tune up on Unix....
helen_xxxx said:
I extracted the .zip to /Users/extra_ham.
Then put the following in terminal: /Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac oem unlock
I wasn't sure whether I had to run 'cd' before doing that but terminal already appeared to be looking at extra_ham$.
I'm pretty sure it's something simple I'm missing.
Click to expand...
Click to collapse
On OSX you can just drag the fastboot-mac file from finder into the terminal window and it will automatically fill in the path for you, then type the rest of the unlock command and hit enter
chandlerweb said:
Are the files from Peter Alfonso not suitable? They include boot.img, recovery.img, system.img and userdata.img
I want to uninstall clockwork mod and get back to stock recovery. I used Peter Alfonso's recovery.img file and did a "fastboot boot recovery.img" but I just got a picture of a droid with a red triangle. I was hoping that would work before I issued the "fastboot flash recovery recovery.img" command. As it didnt, I guess I'll have to wait to find out what the proper method is.
Click to expand...
Click to collapse
The Droid with triangle actually is stock recovery. When you see it just press power + volume down.
Sent from my Galaxy Nexus using XDA App
I hope the LTE version is as easy to root/unlock as this.
Knowing Verizon though...probably not.

Upgrade Stock 4.2.2 to Stock 4.3 from Android Factory Images

1. Download the 4.3 factory images for Takju from http://goo.gl/ABbAmc
2. Extract files using 7-zip on Windows (you need to extract twice and will get the files as: bootloader-xxx.img; radio-xxx.img and image-xxx.zip)
3. Copy these files to the location android-sdk/platform-tools/ (if you have the android-sdk installed or to the location where adb & fastboot is)
4. Plug in your Galaxy Nexus (ensure Debug option is enabled under Developer Settings
5. Follow these commands:
a. adb reboot bootloader
b. fastboot flash bootloader bootloader-xxx.img
c. fastboot reboot-bootloader
d. fastboot flash radio radio-xxx.img
e. fastboot reboot-bootloader
f. fastboot update image-xxx.zip
This would update your Galaxy Nexus from Stock 4.2.2 to Stock 4.3 without losing any data/apps
Note:
1. If you using Windows follow the video tutorial to setup adb and fastboot http://goo.gl/jGcic
2. If you are on Mac, use ./ before the commands for execution
Note 2: With this method you don't need to remove the userdata.img as the command "fastboot update image-xxx.zip" does not touch the userdata on your device.
*Disclaimer: I have followed the above to the T and moved from Stock 4.2.2 to Stock 4.3 with Unlocked Bootloader, but you follow these at your own risk.
I have lost my data.
freezer2000 said:
1. Download the 4.3 factory images for Takju from
2. Extract files using 7-zip on Windows (you need to extract twice and will get the files as: bootloader-xxx.img; radio-xxx.img and image-xxx.zip)
3. Copy these files to the location android-sdk/platform-tools/ (if you have the android-sdk installed or to the location where adb & fastboot is)
4. Plug in your Galaxy Nexus (ensure Debug option is enabled under Developer Settings
5. Follow these commands:
a. adb reboot bootloader
b. fastboot flash bootloader bootloader-xxx.img
c. fastboot reboot-bootloader
d. fastboot flash radio radio-xxx.img
e. fastboot reboot-bootloader
f. fastboot update image-xxx.zip
This would update your Galaxy Nexus from Stock 4.2.2 to Stock 4.3 without losing any data/apps
Note:
1. If you using Windows follow the video tutorial to setup adb and fastboot
2. If you are on Mac, use ./ before the commands for execution
Note 2: With this method you don't need to remove the userdata.img as the command "fastboot update image-xxx.zip" does not touch the userdata on your device.
*Disclaimer: I have followed the above to the T and moved from Stock 4.2.2 to Stock 4.3 with Unlocked Bootloader, but you follow these at your own risk.
I have lost all my apps/data and I have followed this post.
Thanks.
Click to expand...
Click to collapse
You MUST remove userdata.img from image-XXXXX.zip
EvenStar.III said:
freezer2000 said:
1. Download the 4.3 factory images for Takju from
2. Extract files using 7-zip on Windows (you need to extract twice and will get the files as: bootloader-xxx.img; radio-xxx.img and image-xxx.zip)
3. Copy these files to the location android-sdk/platform-tools/ (if you have the android-sdk installed or to the location where adb & fastboot is)
4. Plug in your Galaxy Nexus (ensure Debug option is enabled under Developer Settings
5. Follow these commands:
a. adb reboot bootloader
b. fastboot flash bootloader bootloader-xxx.img
c. fastboot reboot-bootloader
d. fastboot flash radio radio-xxx.img
e. fastboot reboot-bootloader
f. fastboot update image-xxx.zip
This would update your Galaxy Nexus from Stock 4.2.2 to Stock 4.3 without losing any data/apps
Note:
1. If you using Windows follow the video tutorial to setup adb and fastboot
2. If you are on Mac, use ./ before the commands for execution
Note 2: With this method you don't need to remove the userdata.img as the command "fastboot update image-xxx.zip" does not touch the userdata on your device.
*Disclaimer: I have followed the above to the T and moved from Stock 4.2.2 to Stock 4.3 with Unlocked Bootloader, but you follow these at your own risk.
I have lost all my apps/data and I have followed this post.
Thanks.
Click to expand...
Click to collapse
If you follow the steps as they are apps/data stays intact.... Unless you had a locked Bootloader. Unlocking the bootloader formats the complete storage. Else the command to remove the complete userdata partition is : fastboot update -w image-xxx.zip
Click to expand...
Click to collapse
I cant boot into android. Can I just reboot to bootloader and enter the commands?
Or do i need to be on adb sideload mode?
Sent from my YP-GP1 using xda app-developers app
Worked !! Thx
Flashed it with Mobile ODIN
I flashed it with Chainfire's MobileODIN. No problems with updating to 4.3 but lost root (everoot in Odin would not stick). Wiped data is not an issue as I backed it up. Will same root method as before work? Or do I need to wait for new method?
freezer2000 said:
1. Download the 4.3 factory images for Takju from http://goo.gl/ABbAmc
2. Extract files using 7-zip on Windows (you need to extract twice and will get the files as: bootloader-xxx.img; radio-xxx.img and image-xxx.zip)
3. Copy these files to the location android-sdk/platform-tools/ (if you have the android-sdk installed or to the location where adb & fastboot is)
4. Plug in your Galaxy Nexus (ensure Debug option is enabled under Developer Settings
5. Follow these commands:
a. adb reboot bootloader
b. fastboot flash bootloader bootloader-xxx.img
c. fastboot reboot-bootloader
d. fastboot flash radio radio-xxx.img
e. fastboot reboot-bootloader
f. fastboot update image-xxx.zip
This would update your Galaxy Nexus from Stock 4.2.2 to Stock 4.3 without losing any data/apps
Note:
1. If you using Windows follow the video tutorial to setup adb and fastboot http://goo.gl/jGcic
2. If you are on Mac, use ./ before the commands for execution
Note 2: With this method you don't need to remove the userdata.img as the command "fastboot update image-xxx.zip" does not touch the userdata on your device.
*Disclaimer: I have followed the above to the T and moved from Stock 4.2.2 to Stock 4.3 with Unlocked Bootloader, but you follow these at your own risk.
Click to expand...
Click to collapse
ive already flash to 4.3 but how to root??
Root for 4.3 is currently Work In Progress... Chainfire is working hard to resolve the challenges...
Soon it'll be rooted
is this only work for takju ?
@artlogics Follow the same for Yakju too..just download the appropriate Factory Image from Android Developers...
Root is finally available for 4.3 by Chainfire...
Download from http://forum.xda-developers.com/showthread.php?t=1538053
Happy Rooting!!!
I think my nexus 4.3 already fully rooted rite?
Sent from my Galaxy Nexus using xda
Well, I´ve got problem, when I type " fastboot flash bootloader bootloader-xxx.img" with the corrent name of the file adb says "Unknown error" ... Does anyone know how to fix it?
alfel said:
Well, I´ve got problem, when I type " fastboot flash bootloader bootloader-xxx.img" with the corrent name of the file adb says "Unknown error" ... Does anyone know how to fix it?
Click to expand...
Click to collapse
Need to know the following things:
1. Which system are you on - Windows/Linux/Mac?
2. Current version of OS on GNex?
3. Exact error message
freezer2000 said:
Need to know the following things:
1. Which system are you on - Windows/Linux/Mac?
2. Current version of OS on GNex?
3. Exact error message
Click to expand...
Click to collapse
1. Windows 7 - 64 bit
2. Android 4.2.2 - Yakju
3. As I said it says Unknow error
alfel said:
1. Windows 7 - 64 bit
2. Android 4.2.2 - Yakju
3. As I said it says Unknow error
Click to expand...
Click to collapse
It could be due to corrupt adb/fastboot files. Try downloading a minimal packaged adb/fastboot from http://forum.xda-developers.com/showthread.php?p=42407269 and see if that helps. I don't have a windows machine to test it... but i have used something similar on mac too
freezer2000 said:
It could be due to corrupt adb/fastboot files. Try downloading a minimal packaged adb/fastboot from http://forum.xda-developers.com/showthread.php?p=42407269 and see if that helps. I don't have a windows machine to test it... but i have used something similar on mac too
Click to expand...
Click to collapse
Still the same error..
EDIT: oh crap small size.. in the other way it still says Unknow error..
alfel said:
Still the same error..
EDIT: oh crap small size.. in the other way it still says Unknow error..
Click to expand...
Click to collapse
Few more questions:
1. Is your bootloader Locked (do you see a lock under Google when you turn your phone On)
2. Under Settings>Developer options> USB Debugging (do you see a check mark)
3. Have use used adb/fastboot before
4. Share a large screen shot for proper view.
freezer2000 said:
Few more questions:
1. Is your bootloader Locked (do you see a lock under Google when you turn your phone On)
2. Under Settings>Developer options> USB Debugging (do you see a check mark)
3. Have use used adb/fastboot before
4. Share a large screen shot for proper view.
Click to expand...
Click to collapse
1. Yep, my bootloader is locked, to be honest I dont see a lock when my phone is On but in bootloader I can see its locked
2. Yes, USB Debug is on
3. Well thats my first time to work with ADB but before I used command prop. so about commands I know..
4. working on it. Ok.. here is it
http://img209.imageshack.us/img209/2367/by8.png

[Q] Flashing to pure stock 4.3 with the latest bootloader, recovery, etc.?

I know this may have been answered several times. I did a search too, but to be honest couldn't find something to the point.
Can someone post an easy guide of the files to download and the commands to type in the Command Prompt to install 4.3?
I'm currently on 4.2.2 (LiquidSmooth). Rooted obviously with TWRP recovery. I have the ADB and fastboot drivers installed in my PC.
This is what I want to know.
1. Flashing pure stock 4.3 and wipe everything (including SDcard - I will take a backup)
2. Updating the bootloader
3. Updating the radio
4. Updating the stock recovery
5. Installing TWRP recovery for 4.3
Will be glad if someone could help me.
Thank you.
you didnt search very well...
there's a return to stock thread in the general section.
Just use this: http://forum.xda-developers.com/showthread.php?t=1766475
Read last 3-4 pages.
AbhishekS said:
I know this may have been answered several times. I did a search too, but to be honest couldn't find something to the point.
Can someone post an easy guide of the files to download and the commands to type in the Command Prompt to install 4.3?
I'm currently on 4.2.2 (LiquidSmooth). Rooted obviously with TWRP recovery. I have the ADB and fastboot drivers installed in my PC.
This is what I want to know.
1. Flashing pure stock 4.3 and wipe everything (including SDcard - I will take a backup)
2. Updating the bootloader
3. Updating the radio
4. Updating the stock recovery
5. Installing TWRP recovery for 4.3
Will be glad if someone could help me.
Thank you.
Click to expand...
Click to collapse
search again... and in short if u are flashing your rom with stock image u dont have to install the bootloader and radio img again... search how to flash stock image using adb..
Sent from my Galaxy Nexus using xda premium
AbhishekS said:
I know this may have been answered several times. I did a search too, but to be honest couldn't find something to the point.
Can someone post an easy guide of the files to download and the commands to type in the Command Prompt to install 4.3?
I'm currently on 4.2.2 (LiquidSmooth). Rooted obviously with TWRP recovery. I have the ADB and fastboot drivers installed in my PC.
This is what I want to know.
1. Flashing pure stock 4.3 and wipe everything (including SDcard - I will take a backup)
2. Updating the bootloader
3. Updating the radio
4. Updating the stock recovery
5. Installing TWRP recovery for 4.3
Will be glad if someone could help me.
Thank you.
Click to expand...
Click to collapse
Hi, let me try to help you
Galaxy Nexus is my first smartphone. So i'm pretty new at flashing things. I did some research last year to learn how to flash stuff in it and that's how i learned to make a fresh install:
-Make sure you have the SDK platform-tools and the Galaxy Nexus driver properly installed on your PC. Also, make sure you have USB debuging enabled on your device.
-Download the factory image that fits your phone at https://developers.google.com/android/nexus/images
-Open up the tgz file you just downloaded and extract the files:
-boot.img
-bootloader-maguro-primemd04.img
-radio-maguro-i9250xxlj1.img
-recovery.img
-system.img
-userdata.img
Extract the files in the platform-tools folder to make things easier.
-Connect your Nexus to your PC, open the command prompt, go to the platform-tools folder and type
(Do not turn off, disconnect or close the cmd prompt windows until everything is done. Again, make sure you have the nexus driver properly installed on your Windows)
Code:
adb reboot-bootloader
(this command will reboot your device to recovery mode)
With your device on recovery mode, type the following commands to erase your device:
Code:
fastboot erase boot
Hit enter, then:
fastboot erase cache
Hit enter, then:
fastboot erase recovery
Hit enter, then:
fastboot erase system
Hit enter, then:
fastboot erase userdata
-Now you're going to flash the new files you have downloaded and extracted steps before:
Code:
fastboot flash bootloader bootloader-maguro-primemd04.img
(or whatever name your bootloader img file has. In this case the bootloader file is "bootloader-maguro-primemd04.img")
Code:
fastboot reboot-bootloader
(you'll need to reboot after flashing the bootloader)
Code:
fastboot flash radio radio-maguro-i9250xxlj1.img
Flash the radio
Code:
fastboot reboot-bootloader
Reboot again
Code:
fastboot flash system system.img
Flash system
Code:
fastboot flash userdata userdata.img
Code:
fastboot flash boot boot.img
Code:
fastboot flash recovery recovery.img
Code:
fastboot reboot-bootloader
We are almost done!
Code:
fastboot erase cache
Code:
fastboot reboot
Done! Reboot to Android. The first boot may take some more time than the usual. Don't worry!
-
If you want to flash a custom recovery, download it from their website, go into fastboot mode and flash it using the command to flash the recovery.
Code:
fastboot flash recovery [recovery filename].img
The same command used when flashing the recovery on the fresh install above
That's the way i learned how to do it from scratch. In case someone more experienced has any thoughts about it, i'd like to hear as i'm not an expert and learned by researching it on my own...
This is how it's done, PROPER. Well done, mnoguti.
a maguro wrote this.
@mnoguti: You have said that to flash a custom recovery, one needs to go to the recovery mode and flash the custom recovery, but you said that flashing the stock recovery should be done in bootloader.
Is it fine to flash custom recovery from bootloader instead of recovery?
AbhishekS said:
@mnoguti: You have said that to flash a custom recovery, one needs to go to the recovery mode and flash the custom recovery, but you said that flashing the stock recovery should be done in bootloader.
Is it fine to flash custom recovery from bootloader instead of recovery?
Click to expand...
Click to collapse
you don't have to go into the recovery mode to flash recovery, just boot into fastboot mode and flash recovery using command:
fastboot flash recovery recovery.img
Click to expand...
Click to collapse
obviously replace the recovery.img with the name of the custom recovery file you downloaded, make sure the custom recovery file is in the same folder as fastboot/adb otherwise you'll have to do it like:
fastboot flash recovery C:\Downloads\recovery.img
Click to expand...
Click to collapse
Yes, that's what I thought. Thank you.
I had initially felt that stock recovery can flashed only in bootloader and custom recoveries can be flashed only by booting into stock recovery. But somewhere in my mind had a doubt on it and so asked. Thanks for clearing the doubt.
And a big thanks to @mnoguti for posting those steps. Worked like a charm for me.
Obviously he meant fastboot mode..
a manta wrote this.
AbhishekS said:
Yes, that's what I thought. Thank you.
I had initially felt that stock recovery can flashed only in bootloader and custom recoveries can be flashed only by booting into stock recovery. But somewhere in my mind had a doubt on it and so asked. Thanks for clearing the doubt.
And a big thanks to @mnoguti for posting those steps. Worked like a charm for me.
Click to expand...
Click to collapse
It's "fastboot mode". Sorry for the mistake!
I've updated my post and now it's right

[Q] How to restore back to factory settings after using towel root

I have rooted my device using towel root which doesn't unlock the boot loader. I then used the twrp manager to install custom recovery. I am wondering how to restore everything back to factory as all the tutorials I have seen so far require an unlocked boot loader. Any help will be appreciated, thank you.
Flash a stock r for your phone
swagg blasted from TMO LG G3
jailbreakkid23 said:
Flash a stock r for your phone
swagg blasted from TMO LG G3
Click to expand...
Click to collapse
If I download a stock image from google and flash it from my nexus 7 using twrp will everything be restored to factory settings?
If the boot loader is locked does that mean I can just do a normal factory reset on the device and it will remove the recovery and root?
fastboot
Jordydaman said:
If the boot loader is locked does that mean I can just do a normal factory reset on the device and it will remove the recovery and root?
Click to expand...
Click to collapse
you have to install stock ROM by adb mode using fastboot command
you can't flash stock ROM via custom recovery.
@SidDev said:
you have to install stock ROM by adb mode using fastboot command
you can't flash stock ROM via custom recovery.
Click to expand...
Click to collapse
Would you mind finding a link for me ? I have never encountered this before as I have always unlocked the bootloader to root but this time I used towel root which was different as explained above.
Doesn't the boot loader have to be unlocked to flash a ROM via adb?
try this and press thanks
Jordydaman said:
Doesn't the boot loader have to be unlocked to flash a ROM via adb?
Click to expand...
Click to collapse
nope,
Step 1: Download the ADB/Fastboot files and the
USB drivers for Windows based PC first. The the
latest factory image for your Nexus device can be
downloaded directly from Google’s website .
ADB/Fastboot – Mac , Windows
USB drivers for Windows
Extract the contents of the ADB/Fastboot ZIP file
inside a new folder called ‘google’ on your desktop.
Extract and transfer the contents of the factory
image inside this folder as well. The list of files will
include a ZIP file containing the codename of your
Android device, two files with “flash-all” names, and
a bootloader image file. All the extracted contents of
the factory image should be inside the same folder
as the ADB and Fastboot file, otherwise you will get
a file not found error.
Make sure to install the ADB drivers as well if you
are running a Windows based PC.
Step 2: Now, reboot your Nexus device in bootloader
mode. This is usually done by switching off the
device, and pressing the Volume down + Volume Up
+ Power button simultaneously. If that does not
work, try the Volume down + Power button
combination.
After the device has booted into bootloader mode,
connect it to your PC.
Step 3: Open a new Terminal or Command Prompt
window, and navigate to the ‘google’ folder that you
created in Step 1. Before we start flashing the
factory image, we need to make sure that your
Nexus device is being detected by the PC.
fastboot devices
If you are using a Mac, then you need to prefix a “./”
before every Fastboot command. So, the above
command will look something like this on a Mac -:
./fastboot devices
The above command should confirm if your device is
indeed being detected by your PC or not. If it is,
then proceed to the steps below. If not, repeat the
steps above again. Make sure that you have properly
installed the drivers and are inside the correct
folder.
If you are running Windows, copy-paste the following
command in the command prompt window -:
flash-all.bat
On a Mac, copy-paste the following command -:
./flash-all.sh
The script will then automatically flash the full
factory image on your Nexus device. Once the
factory image has been flashed, your device will
automatically reboot. Keep in mind that the first boot
might take some time so please be patient.
If the flash-all.sh script gives you a fastboot not
found error on your Mac, open up the file in Text Edit
and add a “./” before every fastboot command.
The flash-all script included in the factory image
might not work for all. It has always been pretty
unreliable and has only worked once for me in the
last 2 years. If you are in the same boat as me, you
will have to flash each partition manually on your
device. This is slightly cumbersome though.
The command to manually flash a partition via
fastboot is “fastboot flash partition filename.img”. In
the factory image that you extracted in Step 1, you
will notice there is another ZIP file. Extract the
contents of that ZIP file inside the ‘google’ folder.
Now, its time to manually flash the partitions to your
Nexus device. We will first begin with the bootloader.
fastboot flash bootloader filename.img
Then, we will flash all other partitions. They don’t
necessarily need to be in the same order as I have
listed them below. The names of the image files in
the factory image will clearly indicate the partition
they are intended for as well.
fastboot flash boot filename.img
fastboot flash radio filename.img
fastboot flash recovery filename.img
fastboot flash userdata filename.img
fastboot flash system filename.img
Thank you very much I will try this today.
I couldn't flash all and when I flashed the bootloader it came up with failed bootloader is locked?
Enter this command to unlock the bootloader:
fastboot oem unlock
After unlocking, you can run flash-all.bat (or run manual fastboot commands to flash).

Help rooting Huawei Watch

Hi,
I'm a noob trying to root my Huawei Watch (to be able to read BTLE messages). I used egalite_kernel_HW_dffc4c0-2.0 which should be rooted (and indeed I see su.sh and busybox.sh script in the /setup folder)
I did the following:
sudo adb reboot bootloader
sudo fastboot reboot-bootloader
# Unzip TWRP_3.1.1.-0_Unofficial-Sturgeon.zip => recovery.img
sudo fastboot boot recovery.img
#In the phone, using TWRP, set to ADB sidleoad (wipe data and wipe cache)
sudo adb sideload negalite_kernel_HW_dffc4c0-2.0.zip
TWRP loaded fine and the rom installed fine to, but when opening the "Advanced Settings" it says that the phone is not rooted.
Any hint of what I did wrong?
Thanks
ruscull said:
Hi,
I'm a noob trying to root my Huawei Watch (to be able to read BTLE messages). I used egalite_kernel_HW_dffc4c0-2.0 which should be rooted (and indeed I see su.sh and busybox.sh script in the /setup folder)
I did the following:
sudo adb reboot bootloader
sudo fastboot reboot-bootloader
# Unzip TWRP_3.1.1.-0_Unofficial-Sturgeon.zip => recovery.img
sudo fastboot boot recovery.img
#In the phone, using TWRP, set to ADB sidleoad (wipe data and wipe cache)
sudo adb sideload negalite_kernel_HW_dffc4c0-2.0.zip
TWRP loaded fine and the rom installed fine to, but when opening the "Advanced Settings" it says that the phone is not rooted.
Any hint of what I did wrong?
Thanks
Click to expand...
Click to collapse
You keep saying your phone. Are you trying to root a phone or a watch? I'll assume you're talking about your watch.
adb sideload is for applying OTA updates. What you want to do is flash that zip.
While in TWRP, do the following:
sudo adb push [path to kernel zip] /sdcard
In the TWRP menu, select install. Navigate to /sdcard and select the zip. Install it.
If you can't get that working, just flash the supersuwear.zip I've attached to this post using TWRP: https://forum.xda-developers.com/hu...aw-1-5-build-m9e42c-to-downgrade-2-0-t3607859
Also, use the advanced wear settings from the play store. I've had issues with the one that negaman includes in his thread.
TheSt33v said:
You keep saying your phone. Are you trying to root a phone or a watch? I'll assume you're talking about your watch.
Click to expand...
Click to collapse
Yes! I just want to root the watch.
Thanks, for the reply. I'll try it and report back
I installed TWRP_3.1.1.-0_Unofficial-Sturgeon and then I tried to install negalite_kernel_HW_dffc4c0-2.0.zip
sudo adb push negalite_kernel_HW_dffc4c0-2.0.zip /sdcard
and Installed using TWRP.
Unfortunately I got the error below:
--
set_perm: some changes failed
Updaterrocess ended with ERROR:
Error installing zip failed
--
Trying to fix the problem I started wiping parts and I screw-up and delete the system. Wonderful.
I then tried to find ROMs and finally I found Huawei-Rom-NX-v2.7.zip and successfully installed (with Root)
https://forum.xda-developers.com/hu...-negalite-huawei-rom-nx-root-bb-v1-6-t3406813
Unfortunately I find out I need a specific build NWD1.171016.002 (Stock ROM from December 2017).
Any idea were to find it?
Or shall I open a new thread?
ruscull said:
I installed TWRP_3.1.1.-0_Unofficial-Sturgeon and then I tried to install negalite_kernel_HW_dffc4c0-2.0.zip...
Click to expand...
Click to collapse
Why do you need that? You're running a rooted rom, right? Wasn't that the goal?
If your goal is actually to be on a rooted rom AND be on the latest system software, I think it would probably be best to start from scratch since you've done so much flashing and I'm really not sure what state your watch is in at this point. This is how you do that:
1. Download this factory image: https://www.androidfilehost.com/?fid=745425885120748838
2. Extract output.tar from that package. If you need software to do this, I recommend 7zip.
3. Extract the contents of output.tar.
4. Copy flash-all.sh, image-sturgeon-m6e69f.zip, flash-all.bat and bootloader-sturgeon-m6e69f.img to the same folder where you have installed fastboot.exe.
5. Boot your watch in bootloader mode (aka fastboot mode), connect it to the computer and double click on flash-all.bat. This will bring your watch to a 100% stock state.
6. Setup the watch and keep taking OTAs until you are on NWD1.171016.002 (there should only be 1 or 2 that you have to take).
7. Boot into bootloader mode and do one of the following steps:
If you want to keep the stock recovery menu and only use TWRP temporarily, perform the command fastboot boot [path to TWRP image].
If you want to have TWRP permanently installed on your watch, replacing the stock recovery menu, perform the command fastboot flash recovery [path to TWRP image]. Then select reboot to recovery in the bootloader menu.
8. Download the supersuwear.zip package that I linked to in my previous post.
9. While in TWRP, adb push [path to supersuwear.zip] /sdcard
10. Install supersuwear.zip using TWRP menu.
And there you go. Latest firmware version, rooted. Download advanced wear settings from the play store if you want it.
Youre the man.
TheSt33v said:
Why do you need that? You're running a rooted rom, right? Wasn't that the goal?
If your goal is actually to be on a rooted rom AND be on the latest system software, I think it would probably be best to start from scratch since you've done so much flashing and I'm really not sure what state your watch is in at this point. This is how you do that:
1. Download this factory image: https://www.androidfilehost.com/?fid=745425885120748838
2. Extract output.tar from that package. If you need software to do this, I recommend 7zip.
3. Extract the contents of output.tar.
4. Copy flash-all.sh, image-sturgeon-m6e69f.zip, flash-all.bat and bootloader-sturgeon-m6e69f.img to the same folder where you have installed fastboot.exe.
5. Boot your watch in bootloader mode (aka fastboot mode), connect it to the computer and double click on flash-all.bat. This will bring your watch to a 100% stock state.
6. Setup the watch and keep taking OTAs until you are on NWD1.171016.002 (there should only be 1 or 2 that you have to take).
7. Boot into bootloader mode and do one of the following steps:
If you want to keep the stock recovery menu and only use TWRP temporarily, perform the command fastboot boot [path to TWRP image].
If you want to have TWRP permanently installed on your watch, replacing the stock recovery menu, perform the command fastboot flash recovery [path to TWRP image]. Then select reboot to recovery in the bootloader menu.
8. Download the supersuwear.zip package that I linked to in my previous post.
9. While in TWRP, adb push [path to supersuwear.zip] /sdcard
10. Install supersuwear.zip using TWRP menu.
And there you go. Latest firmware version, rooted. Download advanced wear settings from the play store if you want it.
Click to expand...
Click to collapse
Bro Thanks!!!!!

Categories

Resources