Root without custom recovery on Marshmallow? - Xperia Z2 Q&A, Help & Troubleshooting

I just installed Sony stock .575. The phone has unlocked bootloader but no recovery. How do I get root?
I found these instructions but they're long and complicated http://techbeasts.com/root-xperia-z2-on-android-6-0-1-marshmallow-23-5-a-0-570-and-install-twrp/

first of all run this tool http://forum.xda-developers.com/attachment.php?attachmentid=3839417&d=1470917543 by extracting it and running install.bat for recovery and when the device boots into recovery flash this http://forum.xda-developers.com/attachment.php?attachmentid=3839418&d=1470917649 your device will now have root and recovery both. dont forget to enable usb debugging on phone

Hariskh said:
first of all run this tool http://forum.xda-developers.com/attachment.php?attachmentid=3839417&d=1470917543 by extracting it and running install.bat for recovery and when the device boots into recovery flash this http://forum.xda-developers.com/attachment.php?attachmentid=3839418&d=1470917649 your device will now have root and recovery both. dont forget to enable usb debugging on phone
Click to expand...
Click to collapse
Thanks. I got impatient though and followed the long way which involved flashing kitkat, rooting, installing recovery, flashing lollipop then flashing marshmallow this way seems much simpler.

Related

Can't install TWRP

Hi,
there is something wrong with my Xperia Tablet Z. After upgrading from CyanogenMod 11 to CyanogenMod 12 a few Mouth ago the Custom Recovery i've installed before was replaced with CyanogenMod-Recovery. Because CM doesn't work very well i downgraded to Stock-ROM using Flashtool. Because i couldn't find a Way to root Firmware 4.2.x and higher i downgraded to 4.1.2 and rooted with towelroot. The Bootloader is unlocked (checked with *#*#7378423#*#*).
But when i try to install TWRP it failed. This is the error with Fastboot
Code:
fastboot flash recovery twrp.img
fastboot flash recovery twrp.img
sending 'recovery' (10688 KB)...
OKAY [ 0.359s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 0.359s
All drivers are installed. I've tried this on Ubuntu 16.04 and Windows 7 with installed Flashtool and also with installed ADB Installer (https://forum.xda-developers.com/showthread.php?p=48915118#post48915118). I tried it with three usb cables and different usb ports.
It also doesn't work with TWRP Manager (https://play.google.com/store/apps/details?id=com.jmz.soft.twrpmanager&hl=de) and the Official TWRP App (https://play.google.com/store/apps/details?id=me.twrp.twrpapp&hl=de). TWRP Manager show me this error
Code:
Flashing recovery was unsuccessful. Either you already have thos recovery installed or another error has occuured. Would you like to attempt to recovery now?
When i try to reboot the App freeze.
The Official TWRP App seems to install the recovery ("was successfully installed"), but i can't reboot into recovery with VOL+ (also tried VOL-). The Table starts normally.
Maybe there is something wrong with my Tablet now? Is there any other Way to flash a Recovery or to flash a Custom-Rom or a pre-rooted Stock-Rom? As i said before i can't root it with a Firmware higher 4.1.x. Update with the internal Update fuction also failed. So at the moment i can use [email protected] or a higher Version without root.
@PiereMallao
Sony devices, in particular, tabz don't have separate recovery partition. So you need to flash kernel with built-in recovery (see crDroid, RR, LA firmware threads), or you have to flash TWRP to FOTA partition.
Hi,
after some years with my pollux_windy left untouched, I decided I'd install my first custom ROM. But I'm having serious trouble to do so, and it seems unsolvable to me after hours of despair (I've been trying for almost 10 hours now).
I was on Lollipop (firmware .222), first unlocked my bootloader, then rooted my tablet (using kingroot). Then I tried to install twrp, and the only way I managed to do this was through this "TabZ-lockeddualrecovery2.8.26" thing. Only, I couldn't manage to flash anything, ended up bricking my tablet.
I then flashed a stock 5.0.2 ROM (.454), retried installing twrp via the same method, and although I manage to access twrp, I get the same error each time I want to flash a new ROM (tried CM/LineageOS 14.1 and ResurrectionRemix v5.7.0), which is : "E: error executing updater binary in zip [insert name of the .zip]".
If I hear Rootk1t correctly, I should flash a kernel with a built-in recovery first... But, doing some research, it looks like you need a working recovery in the first place to flash a custom kernel.
I'm completely lost in this... How can I get that damn recovery to work, and/or get a custom ROM ?
Edit : Alright, with a good 3 hours-long night and a lucky shot, I managed to install LineageOS ! I used twrp recovery (from the dualrecovery thingy-thing) to wipe clean the device, then tried to install the ROM. It gave me the same error message about updating binary. So I rebooted the device into fastboot (couldn't access the recovery anyway... not sure if it's normal), flashed the "boot.img" from the ROM using Flashtool, then rebooted again the device. On the bootlogo, I tried to enter recovery with Vol-, and it worked. i then flashed with ease the ROM. Maybe it will help somebody !
Hapaxx said:
If I hear Rootk1t correctly, I should flash a kernel with a built-in recovery first... But, doing some research, it looks like you need a working recovery in the first place to flash a custom kernel.
Click to expand...
Click to collapse
yep, one just need to
fastboot flash boot boot.img
Click to expand...
Click to collapse
enter recovery and flash firmware zip, gapps, etc from it.
Root works now, but i can't install TWRP 3.0.2.0 (but XZDualRecovery works).
Sony devices, in particular, tabz don't have separate recovery partition. So you need to flash kernel with built-in recovery (see crDroid, RR, LA firmware threads), or you have to flash TWRP to FOTA partition.
Click to expand...
Click to collapse
Hapaxx said:
So I rebooted the device into fastboot (...), flashed the "boot.img" from the ROM using Flashtool, then rebooted again the device.
Click to expand...
Click to collapse
If i understand correct Hapaxx flashed the boot.img form the LineageOS 14.1 Image? I don't want to install a Custom-ROM. crDroid is for Nexus. Where can i download a Kernel with build-in Recovery for tabz? or can i use the same crDroid also for tabz?
how can i flash the recovery to fota? can i do this with the same *.img or do i need an other image?
i just unlocked my bootloader and i dont know what else to do, i would like to install lineage 14.1 but i dont know what path to follow, i also hit the whole command not allowed thing, and what Hapaxx said, i'm unable to understand, could someone give a clear set of commands to follow? please? what to do in order so i dont brick my tablet.
Hi PiereMallao,
i have the same Odyssey behind me! Sony Xperia Tablet Z SGP321 LTE (16GB)
1. First check Bootloader unlocked with Flashtools 0.9.18.6. Check!
2. Install SGP321_10.1.1.A.1.307_Unbranded.ftf with Flashtools 0.9.18.6. Check!
3. Developertools on. USB-Debugging on. unknown sources on. Check!
4. Root with Doomlord_Rootkit_v18.rar. Check!
5. Check with App "Root-Checker" in Google PlayStore. Check!
6. And now I try to install TWRP for 3 days !
First try with TabZ-lockeddualrecovery2.8.26-RELEASE.combined.zip its ok, but i come only once after the installation in the recovery mode. Afterwards I have it with Vol+ or Vol- tried. It always starts the normal system.
7. With Fastboot -
Code:
fastboot flash recovery twrp.img
fastboot flash recovery twrp.img
target didn't report max-download-size
OKAY [ 0.359s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 0.359s
How can i check Bootloader unlock ? In Android Tablet Z i didnt have a keyboard to put in the hex-code *#*#7378423#*#* ?
In Flashtools i checked Bootloader unlock so i have no idea at this Point.
What can I do ?
sorry, i have so solution for this problem. i have given up. theonly way i know to ceck the bl is unlocked or not is flashtool.
I'm having issues with this as well. Trying to install LineageOS 14.1, I can initially get twrp onto the tablet, flash LineageOS 14.1.. boot into it, set up (it is recommended to reboot the tablet once before flashing gapps) ...however, rebooting wipes twrp out. I'm not used to this FOTA thing (first i've ever heard of it) so not sure how to get twrp to 'stick' and not get wiped out
I got it installed this weekend. First secret was fastboot TWRP to boot, not recovery:
Fastboot flash boot twrp-------.img
Make sure you have the right TWRP image.
Then boot into recovery and TWRP comes up.
Flash lineage and gapps.
See:
https://forum.xda-developers.com/xp...de-tutorial-sony-xperia-tablet-z-lte-t3392831
bowguy said:
I got it installed this weekend.
Click to expand...
Click to collapse
I'm a little confused about part 14.
Download app from Play Store : Recovery Manager for Xperia. (done)
Chose FOTAkernel -> Backup. (this makes the app unresponsive for me so i skipped it for now)
Then TWRP -> Download. (done)
then the rest of the steps are confusing. b/c following that guide twrp is already on there (flashed via fastboot), and so why am i replacing the fastboot flashed twrp with the twrp just downloaded in the above step?
and what does the fotakernel have to do with all this? am i suppose to replace the fotakernel with the twrp image downloaded above?
the steps in that guide need more detailed elaboration
x000x said:
I'm a little confused about part 14.
Download app from Play Store : Recovery Manager for Xperia. (done)
Chose FOTAkernel -> Backup. (this makes the app unresponsive for me so i skipped it for now)
Then TWRP -> Download. (done)
then the rest of the steps are confusing. b/c following that guide twrp is already on there (flashed via fastboot), and so why am i replacing the fastboot flashed twrp with the twrp just downloaded in the above step?
and what does the fotakernel have to do with all this? am i suppose to replace the fotakernel with the twrp image downloaded above?
the steps in that guide need more detailed elaboration
Click to expand...
Click to collapse
I never did step 14. Looks straight forward. You should ask this question on that thread
bowguy said:
I never did step 14. Looks straight forward. You should ask this question on that thread
Click to expand...
Click to collapse
Have you rebooted and tried to get back into twrp after you installed the rom? I did the first few steps of the guide a few days back, but every time after flashing the rom it would wipe twrp. I think the only way to get twrp to 'stick' permanently is to complete all the steps
x000x said:
Have you rebooted and tried to get back into twrp after you installed the rom? I did the first few steps of the guide a few days back, but every time after flashing the rom it would wipe twrp. I think the only way to get twrp to 'stick' permanently is to complete all the steps
Click to expand...
Click to collapse
After installing twrp via fastboot per the directions, then reboot into recovery I had few problems. The only issues I had are solved by installing the ROM first - not gapps. Boot and run setup. Then boot recovery and install gapps.
I never had issues with twrp after installing. Power off, power on and rock volume up/volume down until you are in recovery
bowguy said:
After installing twrp via fastboot per the directions, then reboot into recovery I had few problems. The only issues I had are solved by installing the ROM first - not gapps. Boot and run setup. Then boot recovery and install gapps.
I never had issues with twrp after installing. Power off, power on and rock volume up/volume down until you are in recovery
Click to expand...
Click to collapse
Are you using twrp-3.0.2-0-pollux_windy?
x000x said:
Are you using twrp-3.0.2-0-pollux_windy?
Click to expand...
Click to collapse
Yes.
I never bothered with step 14 in the guide. It works fine as is.
P.S.
As per my post on the guide referenced, I installed Rashr and flashed TWRP that way. Seemed to work perfectly. TWRP now shows 3.0.2 which is correct version. No change to system boot. Nice app
Rootk1t said:
@PiereMallao
Sony devices, in particular, tabz don't have separate recovery partition. So you need to flash kernel with built-in recovery (see crDroid, RR, LA firmware threads), or you have to flash TWRP to FOTA partition.
Click to expand...
Click to collapse
Bro please give me link to twrp latest for sgp321 m going to unlock bootloader using" flash tool" is it ok
Please tell me how to flash recovary too
Is it ok if i root my tab after unlocking bootloader using king root ajnd flash using flashify
Is ressuraction remex stableto use tell me bugs
?
i had equal problem
FAILED (remote: Command not allowed)
i also have the same problem with my huawei chc u23 gplay mini bricked no recovery please help

Xperia Z5C won't root

I really don't know what is left to do, I always end up with a bootloop and have to repair my phone with flashtool. I have tried flashing twrp by adb/fastboot, temporarily booting to twrp, flashing different twrp files after repair.... I always get boot loop. Help please :/
Once I had my phone rooted by oneclickroot support, then I started to get play store crashed constantly. Once I booted to recovery and when try to reboot, got a bootloop. I tried to flash a new rom, so found a stock rom for Z5C and flashed it by twrp. But after a reboot I lost the twrp recovery this time. Then I tried to flash the recovery myself using abd, following the basics; fastboot flash boot boot.img/recovery recovery.img But I again stuck into a bootloop. Repaired again... I thought flashing a custom recovery breaks the phone, so I decided to just boot the recovery and install supersu. but again a bootloop in the end.
Is your bootloader already unlocked?
Gewiz said:
Is your bootloader already unlocked?
Click to expand...
Click to collapse
yes sir, already.
flash complete stock, no modifications.
confirm if it loads to usermode
NeoBeum said:
flash complete stock, no modifications.
confirm if it loads to usermode
Click to expand...
Click to collapse
I have flashed the lastest stock ftf by flashtool, that is what I do after everytime I brick it while trying to obtain root. And if you mean switching to another user, yes it does.
that's good. it means hardware is fine.
it's your root method.
try this
https://forum.xda-developers.com/showthread.php?t=3609358

Please help me fix completely bricked Micromax Canvas A311

So, I kind of rooted my device using Kingo Root and it wasn't successful (I guess). So, in fastboot mode, I tried OEM unlock and it didn't work too; but anyway, I flashed TWRP recovery into my phone and through that I tried to install CM 13,14 custom ROMs which was completely unsuccessful. It doesn't allow me to install any ROM. And says that root privilege is lost. And now, all that I have access to is a phone stuck in bootloop and TWRP which doesn't allow me anything to do because apparently root access is lost. :crying:
I tried every method of flashing via YGDP tool and it is stuck at 'entering download mode'. I have installed different drivers over and again to fix as suggested by different threads but still, it's the same. [Windows 8.1] . And is there any other tool to flash this same stock ROM or better, can I get root access again in a bricked device and install a custom ROM any way?:fingers-crossed:
I also have access to ADB sideload via TWRP, so can I get stock ROM in .zip format. So far, I can only find it in .CPB format; maybe I can use .zip stock ROM via ADB sideload to flash it. Please help if any of this is possible.
*Apology for such a long question but I think you guys must know everything in order to provide me with a fix*
It's fixed.
dhananjaydhiman said:
So, I kind of rooted my device using Kingo Root and it wasn't successful (I guess). So, in fastboot mode, I tried OEM unlock and it didn't work too; but anyway, I flashed TWRP recovery into my phone and through that I tried to install CM 13,14 custom ROMs which was completely unsuccessful. It doesn't allow me to install any ROM. And says that root privilege is lost. And now, all that I have access to is a phone stuck in bootloop and TWRP which doesn't allow me anything to do because apparently root access is lost. :crying:
I tried every method of flashing via YGDP tool and it is stuck at 'entering download mode'. I have installed different drivers over and again to fix as suggested by different threads but still, it's the same. [Windows 8.1] . And is there any other tool to flash this same stock ROM or better, can I get root access again in a bricked device and install a custom ROM any way?:fingers-crossed:
I also have access to ADB sideload via TWRP, so can I get stock ROM in .zip format. So far, I can only find it in .CPB format; maybe I can use .zip stock ROM via ADB sideload to flash it. Please help if any of this is possible.
*Apology for such a long question but I think you guys must know everything in order to provide me with a fix*
Click to expand...
Click to collapse
Its fixed now, I assume it was because of the ROM file being downloaded through chrome in phone, I downloaded ROM and GApps in PC and flashed through TWRP and bam! Its back on:laugh:
TWRP - 2.4.4
ROM - Resurrection Remix 5.7.2
Thanks anyways!

Need help with installing CWM

Hi, my device running on 5.1.1 stock rom and i need to install CWM, not rooted, locked boot loader also I can't turn on USB Debugging. Can i install CWM using FlashTools or Odin via PC ? i need to find a way .. Thank you for your attention, Sincerely

Root lolipop stock ROM

How i can root lolipop stock ROM of lenovo tab 2 a7-10f ?
I have tried kingroot and much more methods, but doesnt support.
I heard people say that lolipop version cant be rooted, just kitkat version which is first ROM. Lolipop is OTA upgrade from Lenovo.
I dont want to flash ROM, i want to use some tools which are available throught root.
I have tried flashing TWRP throught unlocked bootloader (fastboot), when i run command:
fastboot flash recovery c:\twrp.img
It says, done.
But i cant eneter recovery, and i flashed it multiple times, and it says it flashed fine.
But when i use key combination i enter in stock recovery.
And i tried diffrent command (i didnt know that command is bad idea)
fastboot flash boot c:\twrp.img
And i stucked in twrp recovery, it coudnt boot in normal system, because i changed what android should boot.
I extracted from stock ROM, boot.img and flashed it only in fastboot.
And booted normaly, but when i run on recovery, i saw i deleted it's stock recovery.
I was freaked, and i didnt touched anything anymore, i lost stock recovery but i dont care, i care that tab is still alive.
I'm not able to flash anything in any other way that fastboot which is quite scary to use if tab is working good (i dont want to break if something works)
How i can root it.
I have knowledge of adb commands but with all that knowledge i didnt managed to get root to this device, it looks like it's locked in that way.
Lolipop is best, it is very good and accesibile, and i just want to tweak it more with some xposed modules and apps that support root.

Categories

Resources