[Q] Xperia P; Help needed - Sony Xperia P, U, Sola, Go

First of all I want to congratulate this awesome community. This is my second post in these forums and once again I would like a piece of your advice.
I have a Xperia P model 6.2.A.1.100 and I am having some problems. I always soft bricking my phone and can't flash any custom ROM. So I want to take it step by step.
First of all what should I have to my pc? ADB drivers, Flashtool and etc. From where should I download them?
Next I should use this guide right?
http://forum.xda-developers.com/xperia-u/p-development/p-doomlord-easy-rooting-toolkit-v17-t2335992
Afte executing the runme.bat everything seems to be right and SuperSU is installed to my device and Root Checker shows that my device is indeed rooted. So far we are good.
Then I try to follow this guide.
http://forum.xda-developers.com/xperia-u/p-development/rom-cyanogenmod-11-0-t2626639
Then using Flashtool I am flashing through fastboot mode the boot.img. Then I try to follow step 2 which is Press power button when Device vibrates at boot splash/logo to enter TWRP recovery but nothing happens. My device is soft bricked.
I tried the follow these steps around 10-15 times and the result is same. I have to flash the stock ROM over and over again.
Did I miss any major step? Why I can't enter CWM Recovery? (Tried with many ways including guides from this site and others I found at the Internet but still can't enter).
Is there any way for my to have my custom ROM in my device? Right now I am so desperate I think I would stay in Stock if nothing will help solving my problem.
Is there any better guide with more steps?
That's all for now. If anyone can help me I ll be happy to hear his solution or advice

You have unlocked your bootloader before you wanted to flash your kernel right?

The Easy Rooting Toolkit by DooMLoRD is needed to flash custom ROMs, and you may need CWM Recovery if you are going to flash stock based ROMs, for CyanogenMod it's not needed but your bootloader must be unlocked http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/

Related

[Q] Bootloader, dont understand

Hi,
I unlock bootloader in sony xperia u in official way throught sony. I have sony xperia U naturally, everything went good, i have unlocked bootloader but phone looks like without root rom manager, superuser and other apps say i havent got root, where can be mistake?
I unlocked bootlader from official B.3.184
Boot loader unlock doesn't give root?
Must be done yourself
Get a recovery
And flash kernel with auto root
Sent from a Galaxy far far away.
and this is other problem, i use recoverx to flash clockword mod recovery, it flash cwm and reboot phone, but i cannot go into recovery, i try push volume + button when phone is starting but nothing, i try reboot in recovery too in rom manager app but it writes "an error occurred while attempting to run privilileged commands....
I think it would be better if you flashed an auto rooting kernel, check the dev section for the U I think there may be one or two. If you would consider yourself a bit of a beginner check the Xperia S dev section and there's a great Info thread by DooMLoRD. I advise you read that as it'll answer all of your questions
yes i know that flash kernel with root should be best decision, but i cannot reboot into recovery, i think it can be problem with this new firmware which i describe below, no other solution i dont find. When i try unlock bootloader again it says that i have unlocked bootloader yet, but i cant flash older firmware, because phone still goes from flashmode after some seconds, i try it with sony pc companion, and with flashtool too, both cannot flash older firmware. So i have unlock bootloader but without root i cant flash older firmware and have no solution great one
flash a kerbel trough fastboot with fastboot flash boot kerbel.elf
Sent from my Xperia S using xda app-developers app
so finally have root acces, but can not go into recovery, try reboot from rom manager to recovery, unsuccesful, try press volume up button when phone is starting unsuccesful, i dont know when is problem still....

[Q] A small question about flashing cm 12

Hi, everyone, I just got my z3 tablet and I am in love with it except i don't like the interface. So i decide to root my tablet without unlocking the bolted and I did made it and i did install TWRP. I have a question, since I have TWRP is it possible for me to install cm 12 rom or I need to have a unlock boot loader in order to install it?
Sorry for my bad english and thank you for answering my questions.
kokorolove said:
Hi, everyone, I just got my z3 tablet and I am in love with it except i don't like the interface. So i decide to root my tablet without unlocking the bolted and I did made it and i did install TWRP. I have a question, since I have TWRP is it possible for me to install cm 12 rom or I need to have a unlock boot loader in order to install it?
Sorry for my bad english and thank you for answering my questions.
Click to expand...
Click to collapse
You need to unlock to flash a custom kernel which would be needed by the cm12 to run. So first.
1.Backup drm keys
2.Unlock BL
3. Flash CM kernel via fastboot
4. Flash CM Rom via recovery.
Sent from my SGP621 using XDA Free mobile app
I just bought a Z3 tablet compact, which should be here at the end of next week. I haven’t found a tutorial which includes all steps to get from the standard rom to CM12. Did I miss any steps or does the following steps include everything?
Root tablet on the original Sony rom
Backup TA partition (I guess that's where the DRM keys are?)
Unlock bootloader
Flash a recovery (any recommendations?) I found this tutorial, but I only need one recovery and I don’t want to flash that zip every time I install a new rom.
Flash CM12. Are there any kernels beside that one included in the CM12 zips?
Cyberratchet said:
I just bought a Z3 tablet compact, which should be here at the end of next week. I haven’t found a tutorial which includes all steps to get from the standard rom to CM12. Did I miss any steps or does the following steps include everything?
Root tablet on the original Sony rom
Backup TA partition (I guess that's where the DRM keys are?)
Unlock bootloader
Flash a recovery (any recommendations?) I found this tutorial, but I only need one recovery and I don’t want to flash that zip every time I install a new rom.
Flash CM12. Are there any kernels beside that one included in the CM12 zips?
Click to expand...
Click to collapse
I guess you should just flash the kernel via fastboot after unlocking the bootloader, that would eliminate the need to flash a recovery. It's hitting 2 birds and one stone and besides CM uses a different kernel than stock so later you would really need to flash kernel.
Sent from my SGP621 using XDA Free mobile app
Thanks for your reply. The whole flashing procedure is a lot more complicated than on my S3, so I have a follow-up question.
Should I just backup the TA partition, unlock the tablet, flash this kernel which should give me root and TWRP and then flash another recovery and CM12?
I found this recovery which is only semi-permanent, because you have to flash it before you upgrade/install a new CM12 version. It’s not big deal tbh, but is there a permanent recovery, which I only have to install once.
I'm also curious about this.
Right now, I'm trying to download the Flashtool program from Sony, but apparently, you need to "register" for it. Where did you guys download your Flashtool from?
Cyberratchet said:
Thanks for your reply. The whole flashing procedure is a lot more complicated than on my S3, so I have a follow-up question.
Should I just backup the TA partition, unlock the tablet, flash this kernel which should give me root and TWRP and then flash another recovery and CM12?
I found this recovery which is only semi-permanent, because you have to flash it before you upgrade/install a new CM12 version. It’s not big deal tbh, but is there a permanent recovery, which I only have to install once.
Click to expand...
Click to collapse
Correct, make sure the kernel is compatible with CM
Sent from my SGP621 using XDA Free mobile app
The whole procedure is really frustrating, maybe someone can help me here.
I did a backup of the TA partition and unlocked the bootloader. I tried flashing the boot.img from the cm.zip, but I have no idea how to flash the rom via the cm-recovery.
Flashing the advanced kernel to get TWRP wasn’t successful as well. I tried the fastboot mode of the Flashtool and flashed the kernel, but nothing changed.
Can someone post a brief guide with the next steps to get CM12 running (with cmd commands pls)?
EDIT: I just tried to use “adb sideload” in the CM recover, but “adb devices” doesn’t show the tablet .
EDIT2: EDIT: Seems like I got it to work after all. The DualRecover Installer worked, even without SuperSU installed.
Cyberratchet said:
The whole procedure is really frustrating, maybe someone can help me here.
I did a backup of the TA partition and unlocked the bootloader. I tried flashing the boot.img from the cm.zip, but I have no idea how to flash the rom via the cm-recovery.
Flashing the advanced kernel to get TWRP wasn’t successful as well. I tried the fastboot mode of the Flashtool and flashed the kernel, but nothing changed.
Can someone post a brief guide with the next steps to get CM12 running (with cmd commands pls)?
EDIT: I just tried to use “adb sideload” in the CM recover, but “adb devices” doesn’t show the tablet .
EDIT2: EDIT: Seems like I got it to work after all. The DualRecover Installer worked, even without SuperSU installed.
Click to expand...
Click to collapse
I ran into the same problem usin the cm12 nightlies from 27th march 2015:
Sideloading would not work because the tablet is not recognized by the computer. I tried with Windows 7 and gentoo Linux.
Installing from the sd-card in recovery mode was also not possible due to a error of missing "/misc".
I solved the problem by manually choosing the driver in Windows 7. I booted the tablet into recovery. Choose update using adb as detailed in this post:
http://forum.xda-developers.com/z3-...t/root-root-locked-bootloader-sgp621-t3013534
Then I found the device in the windows device manager. Here I manually choose the adb driver that I installed earlier from the flashtool package. After that the device was correctly recognized by Windows and I could Sideloade the cm12 image.

[Z2,Z3] Root and recovery stock 5.1.1 264 ROM no data loss - proper easy way

Rooting and romming Sony devices is a little harder than most android devices, some things work a little different. The scattered info doesn't make this any easier either. I had to find this out the hard way, softbricked my Xperia in the process, but I finally did it. I see that there still are people that wish to root stock 5.1.1 and that there are no unified proper instructions to do this so here is my process and guide. Good luck.
There are many ways to do this, but it includes flashing your Xperia to earlier firmware then rooting and installing the recovery and then flashing back the newest firmware, so I made this little guide to make things easier for Sony newcomers. This process should be compatible with Z1, Z2 and Z3(c) - but ofcourse its made for Z2, for Z1 and Z3 download recovery files for your model respectively.
You won't loose any of your data on your stock ROM if you do this correctly.
You'll need a Windows PC, 7, 8.1, 10. (Mac and Linux are also supported)
1. Root your Z with Kingroot.apk v4.6 and v4.8 work flawlessly. Just download and install as normal apk and hit the big blue button. You have to have internet connection for this to work. It will root your Z automatically after cca. 2m.
Kingroot app is basically a super su app from a different developer. Congrats, you now have root.
2. To install a recovery do not use any flashing apps by TWRP or similar, it wont work. We will use XDZR.
XZDR is Xperia Z Dual Recovery, its basically Philz recovery and TWRP recovery flashed together. You enter Philz holding vol up and TWRP holding vol down when powering up your xperia. * Search for NUT's dual recovery for more info.
Download the recovery from here:
http://nut.xperia-files.com/path/XZDualRecovery
(Download the correct .zip for your Xperia model).
3. Download the. zip to your PC.
4. Connect your phone via USB after you have enabled USB debugging on your xperia. If you have correct Sony drivers installed your PC will recognize your device and a dialog will pop up on your phone (about allowing USB debugging from this PC). Allow the access.
5. Unpack the zip you downloaded to a random folder on your PC. Here run the install.bat if you're on a Win PC. Bat will run and here you just choose the first option, type 1 and follow the on screen instructions, keep an eye on your phone, it will pop up a couple of yes - no dialogs. Allow the access and ADB access and wait, it will be fast.
When you reboot you will see a green LED light up while SONY splash is shown, this is when you hold up or down for one of the two recoveries.
Down is for TWRP and up is for Philz.
6. Download superSU from here:
https://download.chainfire.eu/696/SuperSU/
Boot to system again and now you can unroot your phone trough Kingroot app (general settings) and then reboot to recovery again and flash the file from this link, you will get the super su app and super su binaries and this way you're fully rooted and will have dual recovery for your full flashing pleasure.
* Remember that you first need to unroot and uninstall Kingroot app and then flash Super su, otherwise you risk a bootloop or just not functional root access.
* Do not flash newer TWRP or any recovery or youll loose your recovery.
* I am not responsible if something goes wrong with your device.
And thats it, you have your data intact, stock 5.1.1 ROM, fully functional root access with super su and two recoveries, intact BL and DRM keys and you can flash almost anything that supports LB (locked bootloader).
Hey.
I have a few questions.
Does installing recovery void the warranty? Can the XZDualRecovery be uninstalled easily? Can I still update to Marshmallow via official update when it comes out when I have recovery installed on my phone?
Thanks!
cha0zine said:
Hey.
I have a few questions.
Does installing recovery void the warranty? Can the XZDualRecovery be uninstalled easily? Can I still update to Marshmallow via official update when it comes out when I have recovery installed on my phone?
Thanks!
Click to expand...
Click to collapse
I think that Sony does void warranty if you do an "unauthorized software changes" and changing software in any other way than trough OTA is unauthorized by Sony, so yes. But you can completely restore your device to factory state by flashing an official FTF image trough flashtool and restore Sonys recovery and basically get your warranty back.
If you follow the above steps installation of XZDR is quite easy and fast.
You will be able to update to official MM by flashing MM FTF image trough flashtool and restore your phone to "official" software state. But with XZD recovery you will be able to flash leaked MM from beta program even sooner and easier.
This guide does not unlock your BL and does nothing irreversible to your phone * providing you do everything correctly.
Thanks for answering! Much appreciated!
can you back up the drm keys through this method?
jeebarbas said:
can you back up the drm keys through this method?
Click to expand...
Click to collapse
Rooting with this method wont unlock your boot loader so there is no need for that, your DRM keys wont be touched.
5ageman said:
Rooting with this method wont unlock your boot loader so there is no need for that, your DRM keys wont be touched.
Click to expand...
Click to collapse
Thank you for replying. sorry, im such a noob but after flashing su and subinaries do i need to update the su binaries or i could jsut leave it as it is?
jeebarbas said:
Thank you for replying. sorry, im such a noob but after flashing su and subinaries do i need to update the su binaries or i could jsut leave it as it is?
Click to expand...
Click to collapse
You can leave it as is, you will have full root functionality. Of course you can also update binaries to have up to date bug fixes and security patches, update trough normal method works fine.
@5ageman Hi. Thanks for the tutorial. I m a noob in this rooting stuff. Last night i rooted my phone Xperia Z2 5.1.1 using kingroot bcos i was scared of rooting with some other steps and bricking my phone. But then i realized that xposed wont install unless i have custom recovery. But i m quiet confused with few things related to root even after reading so many posts. So just need to know what exactly recovery is. Like when i restart my phone and then press vol up or down key what will exactly happen? Is this something like safe mode and some other mode in laptops??
talkativetaurus said:
@5ageman Hi. Thanks for the tutorial. I m a noob in this rooting stuff. Last night i rooted my phone Xperia Z2 5.1.1 using kingroot bcos i was scared of rooting with some other steps and bricking my phone. But then i realized that xposed wont install unless i have custom recovery. But i m quiet confused with few things related to root even after reading so many posts. So just need to know what exactly recovery is. Like when i restart my phone and then press vol up or down key what will exactly happen? Is this something like safe mode and some other mode in laptops??
Click to expand...
Click to collapse
Recovery is actually closest to BIOS in PC terms although its much more. Xperia Z2 has no recovery by default, you'll need to flash it manually. See step 2. And only then you can eter recovery. By pressing vol down when the green LED lights up you will enter TWRP a custom recovery made by Team Win Recovery Project. Nothing will happen if you do nothig, you wont accidentaly wipe or brick your Z2. If unsure what to do next just tap the reboot button and then system to reboot to system as nothing happened. Go step by step, no hurry.
@5ageman thanks alot for ur answer. Now my doubt is clear.
But i have few more questions related to ur tut.
1- i have already rebooted my phone a number of times after rooting it. Like for some other purpose and not for recovery or super su. So will the tut work for me as i read somewhere that one need not restart the phone after rooting using kingroot and install recovery directly. Or if it was for some other device i dont remember.
2 - According to the end of step 5 and step 6, does that mean that i have to download super su from chainfire while i m still in recovery mode? And once agn in the system after uninstalling kingroot and rebooting in recovery do i have to install SuperSU in the recovery mode? If yes then how?
3- last question. Entering recovery is just vol down button or power + vol down both.
Once again sorry for such basic questions but i m completely new in the world of rooting plus i want to make sure i know what i m doing.
Thanks for ur patience. Appreciate.
talkativetaurus said:
@5ageman thanks alot for ur answer. Now my doubt is clear.
But i have few more questions related to ur tut.
1- i have already rebooted my phone a number of times after rooting it. Like for some other purpose and not for recovery or super su. So will the tut work for me as i read somewhere that one need not restart the phone after rooting using kingroot and install recovery directly. Or if it was for some other device i dont remember.
2 - According to the end of step 5 and step 6, does that mean that i have to download super su from chainfire while i m still in recovery mode? And once agn in the system after uninstalling kingroot and rebooting in recovery do i have to install SuperSU in the recovery mode? If yes then how?
3- last question. Entering recovery is just vol down button or power + vol down both.
Once again sorry for such basic questions but i m completely new in the world of rooting plus i want to make sure i know what i m doing.
Thanks for ur patience. Appreciate.
Click to expand...
Click to collapse
1. You cannot install recovery directly from the system on Z2 like on other phones, Z2 has no recovery partition. This can only be done with unlocked bootloader. Just make sure you have a working root access with Kingroot and USB debugging enabled when you connect your Z2 to a PC.
2. Download superSU from chainfire while still in system, then reboot to recovery and flash it trough recovery. It's a flashable zip. Before booting to recovery unroot your phone trough Kingroot app. SuperSU zip will flash su binaries and the app to system partition automatically and will root your phone again. Rooting trough Kingroot is done only to flash the recovery, then its deleted.
3. After you successfully install tge recovery when you power on your Z2 it will vibrate and flash green LED on sony bios logo. Then you hold down vol down key until led flashes purple. Afterward it will boot to recovery.
5ageman said:
1. You cannot install recovery directly from the system on Z2 like on other phones, Z2 has no recovery partition. This can only be done with unlocked bootloader. Just make sure you have a working root access with Kingroot and USB debugging enabled when you connect your Z2 to a PC.
2. Download superSU from chainfire while still in system, then reboot to recovery and flash it trough recovery. It's a flashable zip. Before booting to recovery unroot your phone trough Kingroot app. SuperSU zip will flash su binaries and the app to system partition automatically and will root your phone again. Rooting trough Kingroot is done only to flash the recovery, then its deleted.
3. After you successfully install tge recovery when you power on your Z2 it will vibrate and flash green LED on sony bios logo. Then you hold down vol down key until led flashes purple. Afterward it will boot to recovery.
Click to expand...
Click to collapse
@5ageman Thanks for ur reply. but i have few more things to say..
1- no i didnt mean in the system. What i read was that when u root with kingroot u r nt suppose to reboot until u install recovery. Otherwise it might cos prbs and nt install SuperSU.
2- What does flashable exactly mean. Is it nt just installing? I dload the superSU from chainfire while in the system and install in the recovery, right? Where will i find the zip to install it? (sorry... Had to ask)
3- i think i got that...i ll knw that exactly when i try it...lol
talkativetaurus said:
@5ageman Thanks for ur reply. but i have few more things to say..
1- no i didnt mean in the system. What i read was that when u root with kingroot u r nt suppose to reboot until u install recovery. Otherwise it might cos prbs and nt install SuperSU.
2- What does flashable exactly mean. Is it nt just installing? I dload the superSU from chainfire while in the system and install in the recovery, right? Where will i find the zip to install it? (sorry... Had to ask)
3- i think i got that...i ll knw that exactly when i try it...lol
Click to expand...
Click to collapse
1. You wont face any issues if you reboot, but you dont have to. Just plug your phone to PC while your phone is in android. Yes you download in system and then install - flash in recovery by tapping "install" and then you navigate to supersu.zip and select it and then swipe to flash it. The supersu.zip will be there where you download it, most likely on internal storage in download folder.
2. Flashable means its installed trough recovery - its flashed as opposed to being installed normally in android system.
So is it safe to root my Z2 with this? I have 15.1.1 264 stock rom, is this safe?
nemanja899 said:
So is it safe to root my Z2 with this? I have 15.1.1 264 stock rom, is this safe?
Click to expand...
Click to collapse
If you follow the guide correctly and know basic android rooting and romming then yes its safe, I rooted my Z2 the same exact way. 5.1.1 264

Bootloop after flashing new rom with S-On

Hello everybody,
Im totally new and have a big problem.
I rooted and unlocked my phone (HTC one m9), to install a costum Recovery (Team win)
I followed all instructions and copied viper rom on the phone.
After installation, I got into the bootloop.
I can see white HTC Bootscreen with the red instruction ..."This build is for..."
I know, that my phone is not able to boot new image because S-Off is not enabled.
Now my question.
Whats the best way to get a solution for this problem.?
I can boot into download mode or get into my costum recovery.
ADB and platform tools are installed on computer.
Need help. please!!!
Factory reset seems to be it. Thankfully something pops up, instead of dead. There should be a option( you may have to look for it on xda) to get into the stock recovery, through a combination of button presses. On my phone, volume up, and power button gets me into twrp, volume down and power button takes me to the stock recovery. You may have different cadence for your particular phone, so finding that out is a must to return to stock, which you can start over again. I couldn't even root my phone, with out installing twrp first, so I had to get the unlock code, to unlock it first. Some phones may have a different way to root, without unlocking the bootloader first, but start over, it still turns on. Whatever you have had will be lost, if you didn't backup somewhere before you started to install twrp, because it won't boot into the os, that info's gone, and you have to go back to stock, to get rid of the garbage that would still be there from the failed attempt. Trying to install twrp, without doing that may corrupt your partitions, then it may get bricked beyond repair.
What are the necessary steps i have to follow?
Relock Bootloader?
Flash firmware.zip?
how do i flash stock rom?
Im not able to star my phone.
only workspace is recovery and ADB via PC...
Help please!

Flash Custom Rom on SGP512 unlocked Bootloader Marshmallow 6.0.1

Hey Guys,
as far as i could find out so far, you use TWRP to flash a Custom Rom from the Tablets Recovery Mode, this requires a rooted device, and to do this you flash a prerooted rom somehow, which includes TWRP already, which you then use to flash the rom you actually want on your device.
Another possibility was to flash a Kernel (with TWRP?) to get the same results...
Now I absolutely can´t find a tutorial for dummies, to do that, or find the required files.
After i found it kinda complicated to unlock the bootloader, since most of the tutorials didn´t even mention you need advanced mode and a special Google USB Driver from Sony´s Developer Page, to even get that working, i would really appreciate if someone could give me a step by step with links.
If a tutorial exists, pls give me a link as well, cause i looked the whole day yesterday, and found jack.
cheers
yes, you need to do all that. i just went through this yesterday and used this tutorial:
https://forum.xda-developers.com/showthread.php?t=2747676
once you are unlocked, follow the instructions for your rom, usually to flash the boot and recovery images with fastboot. two things to watch out for though, if you are using an oreo rom make sure your twrp version is 3.2 or better, secondly, if twrp give an error where it cant mount the partitions to wipe them use the change format option under wipe/advance to change to ext4 (which essentially re-formats the partition) and you should be good to flash the rom after that.
here is another tutorial to help get adb, fastboot, and the drivers up and going:
https://forum.xda-developers.com/showthread.php?t=2588979
answer yes to everything, i can't remember if i loaded in sony specific driver on top of that or not.
goodluck!

Categories

Resources