5,814,720 Members 52,287 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Jordydaman
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Jan 2013
Default [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.
 
jailbreakkid23
Old
#2  
Junior Member
Thanks Meter 3
Posts: 29
Join Date: Jul 2014
Flash a stock r for your phone

swagg blasted from TMO LG G3
 
Jordydaman
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Jan 2013
Quote:
Originally Posted by jailbreakkid23 View Post
Flash a stock r for your phone

swagg blasted from TMO LG G3
If I download a stock image from google and flash it from my nexus 7 using twrp will everything be restored to factory settings?
 
Jordydaman
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Jan 2013
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?
 
@SidDev
Old
#5  
@SidDev's Avatar
Senior Member
Thanks Meter 199
Posts: 381
Join Date: Aug 2013
Location: Kolkata
Default fastboot

Quote:
Originally Posted by Jordydaman View Post
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?
you have to install stock ROM by adb mode using fastboot command
you can't flash stock ROM via custom recovery.
happy to help you .
The Following User Says Thank You to @SidDev For This Useful Post: [ Click to Expand ]
 
Jordydaman
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Jan 2013
Quote:
Originally Posted by @SidDev View Post
you have to install stock ROM by adb mode using fastboot command
you can't flash stock ROM via custom recovery.
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.
 
Jordydaman
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Jan 2013
Doesn't the boot loader have to be unlocked to flash a ROM via adb?
 
@SidDev
Old
#8  
@SidDev's Avatar
Senior Member
Thanks Meter 199
Posts: 381
Join Date: Aug 2013
Location: Kolkata
Default try this and press thanks :)

Quote:
Originally Posted by Jordydaman View Post
Doesn't the boot loader have to be unlocked to flash a ROM via adb?
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
happy to help you .
The Following User Says Thank You to @SidDev For This Useful Post: [ Click to Expand ]
 
Jordydaman
Old
#9  
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Jan 2013
Thank you very much I will try this today.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Google Play Store to Show Price Ranges for In-App Purchases

Google recently announced a change to Google Play Store policy that requires … more

XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more

Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more

Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more