Wednesday, January 8, 2020

rooting - How to root a Xperia SP (C530x)?


Simply, how to root a Sony Xperia SP device?



Answer



There are two ways, depending on your firmware version. They work on both locked & unlocked bootloader.


Requirements



  • Having adb drivers installed (usually installed with Sony PC Companion)


  • Having enabled Unknown Sources

  • Having enabled USB Debugging

  • PC Companion must not be running



(credits for DooMLoRD, guide from this thread)



  1. Download this archive and extract it.

  2. Connect your phone to your computer.

  3. In the extracted folder, double click on the RUNME.bat file.


  4. Follow the instructions (usually one key to tap).

  5. Reboot your device if it doesn't do it itself.



(credits for DooMLoRD, guide from this thread)


In these versions, Sony has patched the exploit, so we need to flash an older kernel that has the exploit and then reflash the kernel of our actual firmware version. This requires flashtool.



  1. Download this archive and extract it.

  2. Download the kernel file from 1.257 firmware.

  3. If your actual firmware version is 2.245, download this kernel file. If it is 2.254, download this one.


  4. Open flashtool, click on flash icon (see image), select flashmode, browse to 1.257 kernel ftf, validate. Flashtool window.

  5. Disconnect your device, shut it down, then while pushing on the volume down button plug your device to your computer. The illumination bar should go green.

  6. Wait for flashtool to finish, then reboot.

  7. CLOSE FLASHTOOL

  8. In the extracted folder, run the runme_ file (exact name depends on your OS).

  9. Once it is finished, shutdown your device.

  10. Open Flashtool again, repeat the same steps as before, but select the kernel FTF for your actual version (2.245 or 2.254).

  11. Plug your device in Flashmode.

  12. When flashtool has finished, you can reboot and finally enjoy your root!




As for 12.0.A.2.245 and 12.0.A.2.254, the exploit is fixed, so we need to root while being on an older firmware (2.254 preferably), flash the new stock rom zip via recovery and flash the new kernel via Flashtool. (thanks to niaboc79 for this method).



  1. Downloads:


  2. Update to 12.0.A.2.254.

  3. Root using the 2nd method.

  4. CLOSE FLASHTOOL

  5. Unzip the recovery archive and run the .bat file.


  6. Put the ROM and fix zip on your phone.

  7. Reboot in recovery (Power Off your phone, then power on and press (not maintain) volume up on multiple times until it vibrates).

  8. Flash the ROM.

  9. Flash the fix.

  10. Advanced -> Power Off

  11. IF IT ASK YOU ABOUT A SU OVERWRITE, SELECT NO

  12. Open flashtool and flash only the kernel from the .266 ftf. (see screenshot from niaboc79)

  13. Unplug, power on and enjoy Android 4.3 with root!


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...