Sunteți pe pagina 1din 8

3.

How to unroot & restore stock


3.1 Relocking the bootloader

You will need sdk & and drivers, please take a look here. If you already have it, continue.

 Reboot to bootloader by Holding Vol down + Power button


 Connect your phone to the PC while in the bootloader. The phone should say fastboot
USB, if not, select fastboot on the phone & check if it says fastboot USB, if not, change
the USB port you are using.
 Navigate to the platform tools folder located inside android-sdk folder
 Hold down shift and right-click anywhere in the empty space inside the window.
 Select the option: Open command window here.
 Next type:

Code:

fastboot oem lock

 Finally, type

Code:

fastboot reboot-bootloader

 Bootloader should now say *Relocked* & may or may not display a Security Warning

3.2 Using RUU to restore partitions

 Find your right RUU using 2 in this guide.


 Flash your RUU as you normally would by double clicking the executable & following
the instructions, you phone must be connected to PC via fastboot USB (in the
bootloader).
 If you get a Hboot Pre-update message, re-run the RUU once again with your phone
connected in fastboot USB.
 If the previous step fails, follow points listed under 4. Flashing RUU manually.
 Reboot your device to bootloader, your bootloader should now say *Locked* or
*Relocked*

3.3 Turning S On after RUU flash


You will need sdk & and drivers, please take a look here. If you already have it, continue.

This is optional, but if you want to do it, it must be done only after flashing the
RUU! If your device has a hboot that isn't LOCKED, RELOCKED or
UNLOCKED, do not do this!!
 Reboot to bootloader powering down the phone & then Holding Vol down + Power
button
 Connect your phone to the PC while in the bootloader. The phone should say fastboot
USB, if not, select fastboot on the phone & check if it says fastboot USB, if not, change
the USB port you are using.
 Navigate to the platform tools folder located inside android-sdk folder
 Hold down shift and right-click anywhere in the empty space inside the window.
 Next type:

Code:

fastboot oem writesecureflag 3

 Finally, type

Code:

fastboot reboot-bootloader

 Bootloader should now say S ON.

 If the bootloader says *Security Warning*


 Remove the battery and then re-insert it
 Reboot to bootloader by holding down the volume key and pressing the
power button.
 Connect your phone to the computer via USB.
 Re-run the RUU executable again.
 The bootloader should now say S On.
4. Flashing RUU manually
4.1 Getting PG58IMG.zip from RUU
Run the RUU executable as you normally would, but don't proceed to the second step i.e. when a
second window appears, do nothing. Do not proceed, just ignore it for now, but don't close the
window.

 Right-click the Windows Start button and select "Open Window Explorer" option.

o If you use Windows XP
Copy-paste this in the navigation bar:

Code:

C:\Documents and Settings\%USERNAME%\Local Settings\Temp\

o If you use Windows Vista/7


Press & hold Windows key on the keyboard and then press R (Win key +
R). Once the box pops up, copy paste this:

Code:

%temp%

 Right click anywhere inside explorer window (not on any folder) and select Sort by then
select Date.
 Locate the latest one created (first in the list & it will most likely have random numbers
in the name) & open it.
 You will find a second folder with a set of random numbers. Open it, inside you will find
a number of files and the rom.zip
 Copy the rom.zip file to another location.
 Now, close the RUU executable folder & rename the rom.zip file as PG58IMG.zip

4.2 Adding your CID to the PGIMG.zip


This is only required if the RUU you have is not for your CID and you don't have SuperCID.

 Check your cid by referring to 2.1 in this guide.


 Double click the PG58IMG.zip file to open it.
 Double click android-info.txt to open in notepad.
 Add your CID to the end of the file uising the ones already in there as an example.
 Make sure there are no spaces in or after your CID
 Press Ctrl +S and then close the window.
 You will now see a pop up window. Click yes to modify the archive.

4.3 How to Super CID


This is only required if the RUU you want to flash is not for your CID and you did not follow
4.2.
This requires that your bootloader should not say S-On.

 Follow all steps in 2.1 and then continue.


 Now type the following code:

Code:

fastboot oem writecid 11111111

 Now type :

Code:

fastboot reboot-bootloader

 Wait for the phone to reboot into bootloader.


 Type this:

Code:

fastboot getvar cid

 Your CID should now be 11111111


 If this method failed, try 4.2

4.4 How to flash PG58IMG

4.4.1 Without a PC, via bootloader

 Put the PG58IMG.zip onto the root of your SD Card


 Reboot to bootloader by Holding Vol down + Power button
 You will then be asked if you want to install the file, select yes by pressing Vol up.
 Don't touch anything till the install completes
 After the install is complete, when prompted to reboot, open the back casing of the phone
and take out the SD Card.
 Then press the power button once to reboot.
 If you experience a boot loop, reboot to bootloader and re-flash the PG58IMG.zip
 If booted into bootloader, select fastboot > reboot.
 If booted into fastboot, select reboot.
 Connect the SD Card to a computer and delete the PG58IMG.zip file

If this method fails, try 4.4.2


4.4.2 With a PC, via fastboot USB
You will need sdk & and drivers, please take a look here. If you already have it, continue.

 Reboot to bootloader by Holding Vol down + Power button


 Connect your phone to the PC while in the bootloader. The phone should say fastboot
USB, if not, select fastboot on the phone & check if it says fastboot USB, if not, change
the USB port you are using.
 Navigate to the platform tools folder located inside android-sdk folder
 Copy the PG58IMG.zip file from step 4.1 to this folder
 Hold down shift and right-click anywhere in the empty space inside the window.
 Enter the following command

Code:

fastboot erase cache

 You may not see any output, then enter the command

Code:

fastboot oem rebootRUU

 You phone will now go into the RUU mode.


 Wait for around 30 seconds, then enter the command

Code:

fastboot flash zip PG58IMG.zip

 The installation will begin and you will be able to see the progress at every step.
 Once done, enter the command

Code:

fastboot reboot

 If you experience a boot loop, repeat 4.4.2 again.


5. Common errors & Troubleshooting:
If you get any error while running the executable, it is recommended that you use the method to
extract the rom.zip & flash it.
This is because the error code returned by the executable is not very clear.
Stuck at <waiting for device>

a. Drivers not present or not installed correctly; Install the correct drivers.
b. Phone is not in fastboot USB mode. Remove USB Cable; remove & reinsert phone
battery; hold volume down + power; select FASTBOOT; connect USB.

error: cannot load 'xyz'


You typed the wrong filename or the file isn't present in the folder. Check that the file is present
& that the filename is correct, then repeat the command.
Error 150: ROM upgrade utility error
This is most likely an error when you use Windows Vista.
Error [170]: USB Connection error
The RUU cannot connect to your device.

a. Drivers not present or not installed correctly; Install the correct drivers.
b. Phone is not in fastboot USB mode. Remove USB Cable; remove & reinsert
phone battery; hold volume down + power; select FASTBOOT; connect USB.
c. Other unknown error. Extract rom.zip & flash manually via SD Card.

ERROR [155 to 159]: IMAGE ERROR


One of these error messages will appear when your device is S-ON & use the incorrect RUU
having lower software number/hboot version than what is currently on your phone.
FAILED (remote: not allowed)

a. You did not reboot to RUU mode before running the flash command.
b. You are trying to use a command that you cannot use on a Locked and/or S-ON
device.

(bootloader) [ERR] Command error !!! or INFO[ERR] Command error !!!

a. You are trying to issue an invalid command.


b. You are trying to use a command that you cannot use on a Locked and/or S-ON
device.

FAILED (remote: signature verify fail)The zip that you extracted is broken or the RUU you
downloaded is is corrupted. Get the zip again or use a different RUU.
FAILED (remote: 99 unknown fail)
Your bootloader is still unlocked. You didn't relock your bootloader. Relock your bootloader
using this command:
Code:
fastboot oem lock

FAILED (remote: low battery)


Battery is too low. Reboot to bootloader by typing
Code:
fastboot reboot-bootloader

& let the phone charge for a while.


FAILED (remote: 90 hboot pre-update! please flush image again immediately)
Normal after Hboot version changes. You need to run only the flash command again (not the
whole set of commands, just the fastboot flash command.)
FAILED (remote: 42 custom id check fail)
The RUU doesn't contain your CID. Either add your CID to the zip (needs S-OFF) or try
changing your CID (usually works only on an S-OFF device)
FAILED (remote: 92 supercid! please flush image again immediately)
Your device is S-ON & has Super CID. You need to run only the flash command again (not the
whole set of commands, just the fastboot flash command.)
FAILED (remote: 43 main version check fail)
Your device is S-ON & you are trying to use an RUU that has software number less than your
current software number.
FAILED (remote: 44 hboot version check fail)
Your device is S-ON & you are trying to use an RUU that has hboot version less than your
current hboot version.
FAILED (status read failed (Too many links))
Disregard & continue. It is not really an error as such.
FAILED (data transfer failed (Too many links))
Reboot the phone to fastboot USB. Remove USB Cable; remove & reinsert phone battery; hold
volume down + power; select FASTBOOT; connect USB.
Then, try the commands again.
Any other error that says '(Too many links)'
Reboot the phone to fastboot USB. Remove USB Cable; remove & reinsert phone battery; hold
volume down + power; select FASTBOOT; connect USB.
Then, try the commands again.
If you still get the error, please post the complete error code here & when the error occurred so
that it can be solved & added to this list.
Any other error that says 'please flush image again immediately'
You need to run only the flash command again (not the whole set of commands, just the fastboot
flash command.) Please post the complete error code here & when the error occurred so that it
can be added to this list
Any error that isn't present in this list
Please post the complete error code here & when the error occurred so that it can be solved &
added to this list.

S-ar putea să vă placă și