Change of custom kernel and installation of new recovery - Xperia Z5 Compact Q&A, Help & Troubleshooting

Hi xda!
I have a Z5C and i was tired of sonys laggy version of Android so I decided to install zombie kernel with twrp as backup.
The kernel works brilliant but I can only boot to recovery with help from fastboot. I would like to be able to boot to recovery directly from my phone without the use of fastboot/PC..
I also have a z4 tablet with Androplus kernel with twrp recovery.. And I am able to boot directly from the tablet to recovery.
So I decided to install Androplus and twrp for my z5c. I tried to install twrp through twrp and it looked like it was installed... However still not able to boot to recovery without fastboot. Then I tried to install with fastboot and I got an error - picture attached.
When I look under "about phone" the phone tells me that I'm still using the old zombiekernel??
How do I get Androplus kernel and working twrp installed on my z5c?
Thanks in advance

asl0501 said:
Hi xda!
I have a Z5C and i was tired of sonys laggy version of Android so I decided to install zombie kernel with twrp as backup.
The kernel works brilliant but I can only boot to recovery with help from fastboot. I would like to be able to boot to recovery directly from my phone without the use of fastboot/PC..
I also have a z4 tablet with Androplus kernel with twrp recovery.. And I am able to boot directly from the tablet to recovery.
So I decided to install Androplus and twrp for my z5c. I tried to install twrp through twrp and it looked like it was installed... However still not able to boot to recovery without fastboot. Then I tried to install with fastboot and I got an error - picture attached.
When I look under "about phone" the phone tells me that I'm still using the old zombiekernel??
How do I get Androplus kernel and working twrp installed on my z5c?
Thanks in advance
Click to expand...
Click to collapse
To boot to recovery in the z5c you gotta pudg the volume up while booting over and over until you see the notification LED go red-yellow-orange
Once you're in recovery you could restore your old kernal if you made s bsckup

I know... But that is not working. The only way i can get it to boot is with fastboot. What to do?

asl0501 said:
I know... But that is not working. The only way i can get it to boot is with fastboot. What to do?
Click to expand...
Click to collapse
Try flash tool to push anew kernel maybe.I've never done it but from what j have read, download your firmware from xperia firmware and use flash tool to only flash kernel.

You need to use fastboot to flash the boot.img to the phone and then do the same for recovery.img. It will then work with androplus kernel and twrp.
Thats my setup currently.

spikeyhair said:
You need to use fastboot to flash the boot.img to the phone and then do the same for recovery.img. It will then work with androplus kernel and twrp.
Thats my setup currently.
Click to expand...
Click to collapse
Sorry to resurect this old thread. Can you or anyone provide a boot.img or how to go about creating one? I am in same situation (stuck at boot screen) and only have access to fastboot. Thanks.

For which version of rom? I can give you 32.0.A.200 boot.img and twrp recovery.

Are you sure you're clicking volume up when booting? It doesn't work when you hold the volume up button down.

If y'all go to the twrp thread there is a modified boot.IMG that allows booting to recovery now.

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

Can somebody help me please!

So hey! I successfully booted into the TWRP and used it to flash the DISABLEFORCEENCRYPTION file, right after. I decided to reboot to recovery (Cause I think that would be great just after you flash something in TWRP) but then after it finishes showing the pocophone booting screen rather than showing TWRP recovery. It showed the stock MIUI recovery! someone please help! I just finished flashing magisk and a custom rom by using the method of: Everytime I need to flash something using TWRP I would just open adb and fastboot boot recovery it again so that I could use the TWRP!
Thank you in advance!
GGerniWhite said:
So hey! I successfully booted into the TWRP and used it to flash the DISABLEFORCEENCRYPTION file, right after. I decided to reboot to recovery (Cause I think that would be great just after you flash something in TWRP) but then after it finishes showing the pocophone booting screen rather than showing TWRP recovery. It showed the stock MIUI recovery! someone please help! I just finished flashing magisk and a custom rom by using the method of: Everytime I need to flash something using TWRP I would just open adb and fastboot boot recovery it again so that I could use the TWRP!
Thank you in advance!
Click to expand...
Click to collapse
I decided to fix this problem after I flashed a rom cause I think I would run into future problems involving magisk and it's use of the TWRP recovery.
GGerniWhite said:
I decided to fix this problem after I flashed a rom cause I think I would run into future problems involving magisk and it's use of the TWRP recovery.
Click to expand...
Click to collapse
If you already have the ROM installed, use adb to flash TWRP and without booting flash Magisk and then boot to system. If you are on stock ROM, follow THIS.
For entering into TWRP, use the key combination of volume up + power buttons.
You can use the encryption compatible TWRP (search for it) instead of the official one.

Unofficial TWRP now available

Was searching in preparation of my K30 arriving, and found an unofficial version of TWRP is now available.
https://www.google.com/amp/s/unofficialtwrp.com/unofficial-twrp-3-3-1-xiaomi-redmi-k30/amp/
Note: I've not tried it myself, as I don't have the phone yet.
It's a none working TWRP ripped from a dev who was working on it. don't even test it guys. Devs at .eu made one that actually works.
https://xiaomi.eu/community/threads/twrp.53906/page-8
ddaggebi said:
It's a none working TWRP ripped from a dev who was working on it. don't even test it guys. Devs at .eu made one that actually works.
https://xiaomi.eu/community/threads/twrp.53906/page-8
Click to expand...
Click to collapse
please give instalation guide also
ddaggebi said:
It's a none working TWRP ripped from a dev who was working on it. don't even test it guys. Devs at .eu made one that actually works.
https://xiaomi.eu/community/threads/twrp.53906/page-8
Click to expand...
Click to collapse
Thanks for the info @ddaggebi
I used the K30 TWRP from https://xiaomi.eu/community/threads/twrp.53906/page-8#post-528914 to fastboot boot to TWRP and dump stock boot, recovery and misc (using e.g. `dd=/dev/block/bootdevice/by-name/boot of=/tmp/boot.img`). Then I patched the boot.img with Magisk Manager Canary. :good:
Any idea why that TWRP recovery installer .bat overwrites the misc partition? Temp booting the .img directly with fastboot boot seemed to work fine without their patched misc, so I'm sticking with that for now.
Again, be sure to fastboot boot recovery and then dump your ROM's misc first if you plan on flashing the recovery using that batch script, since you might need to flash it back along with the ROM's recovery for OTAs to succeed.
I can understand rooting here but is twrp installed permanently here? I mean to flash any rom do we always need fastboot command to boot twrp or its staying always and working normally??
Hard_Rock83 said:
I can understand rooting here but is twrp installed permanently here? I mean to flash any rom do we always need fastboot command to boot twrp or its staying always and working normally??
Click to expand...
Click to collapse
Yes. But some features are limited for now.
btw I installed eu rom in case stock rom replaces TWRP to stock recovery.
osm0sis said:
I used the K30 TWRP from https://xiaomi.eu/community/threads/twrp.53906/page-8#post-528914 to fastboot boot to TWRP and dump stock boot, recovery and misc. Then I patched the boot.img with Magisk Manager Canary. :good:
Any idea why that TWRP recovery installer .bat overwrites the misc partition? Temp booting the .img directly with fastboot boot seemed to work fine without their patched misc, so I'm sticking with that for now.
Also here is the latest Magisk Canary (20308) patched stock boot.img to simplify rooting for those just getting started on this device. Simply fastboot flash boot it..
Click to expand...
Click to collapse
Ok so the question is can we reboot to recovery normally or we need to manually type fastboot command to boot to recovery..
I am still searching for twrp , which can normally appears while rebooting to recovery
LR.Team twrp-3.4.0-0209 will be installed by default when you install Eu rom.
I can reboot into recovery as normal (by pressing "vol up" & "power" button). To install root, I can simply go to "Advanced" -> "Install Root" or by using boot.img method. One thing which I can't do is deleting (or changing file name) to system file to remove some of the unwanted app.
It works very well
https://xiaomi.eu/community/threads/twrp.53906/page-8#post-528914

Is there any latest stock boot img for Mi A3?

I accidently upgraded my phone to Android 10 11.0.14 ( prehaps ). I want to install TWRP on this phone, and I attempted to install it without flashing the boot img, and it caused to entirely be bricked and stuck on fastboot, and I did also attempt to change the slot, but ****** off. I tried using MiFlash, ****** off, reinstall, ****** off. I still kept my OnePlus rom and I succeed to install and normally use it, and it still remained TWRP. I installed the stock rom for it cuz Oxygen is so unstable, and I did, but the TWRP is lost. I reinstalled it, but it bricked, again. I entered TWRP, wipe all data, and enter again, but lost TWRP. I figured that I did miss flashing boot img, thanks to a thread I accidently read. And I also figured how stupid I was when I just did upgraded my phone to the latest version, and there is no boot img compatible to that version, and I did searched entire internet for it. I didnt try to flash the boot img of the early version cuz I am afraid it bricked again cuz of the compatibility. So when will I expect for a boot img file to flash TWRP and when can I download and use it? Or technically I dont need that boot img file and just simply change the slot and flash it? Ty.
try this boot img, its compatible with android 10 also twrp is already installed in the boot img.
https://sourceforge.net/projects/mi...HR_Q-v2.2-laurel_sprout-official.img/download (its for official android 10 rom)
then flash whatever rom you like then flash this zip, it will install shrp recover
https://sourceforge.net/projects/mi...ller-v2.2-laurel_sprout-official.zip/download
gamernayeem said:
try this boot img, its compatible with android 10 also twrp is already installed in the boot img.
https://sourceforge.net/projects/mi...HR_Q-v2.2-laurel_sprout-official.img/download (its for official android 10 rom)
then flash whatever rom you like then flash this zip, it will install shrp recover
https://sourceforge.net/projects/mi...ller-v2.2-laurel_sprout-official.zip/download
Click to expand...
Click to collapse
Hang on. What do you mean by TWRP is already installed ? Does it mean that boot img file already contained TWRP or I do need to install it as a boot img to get the phone boot and work normally?
And btw, is installing SHRP Recovery an opinion or a must?
PNT5V said:
Hang on. What do you mean by TWRP is already installed ? Does it mean that boot img file already contained TWRP or I do need to install it as a boot img to get the phone boot and work normally?
And btw, is installing SHRP Recovery an opinion or a must?
Click to expand...
Click to collapse
the boot img already contain twrp, and the boot img should be able to boot your rom (stock android 10) and no shrp is not a must you can use any recovery you like, but if you want to keep your recovery after installing a rom you have to install the recovery installer zip
gamernayeem said:
the boot img already contain twrp, and the boot img should be able to boot your rom (stock android 10) and no shrp is not a must you can use any recovery you like, but if you want to keep your recovery after installing a rom you have to install the recovery installer zip
Click to expand...
Click to collapse
Boot img not working
oseraphaels said:
Boot img not working
Click to expand...
Click to collapse
Then you have to flash fastboot rom then flash this boot img
gamernayeem said:
Then you have to flash fastboot rom then flash this boot img
Click to expand...
Click to collapse
Thank you very much
It works
oseraphaels said:
Thank you very much
It works
Click to expand...
Click to collapse
No problemo
Big Thanks
gamernayeem said:
try this boot img, its compatible with android 10 also twrp is already installed in the boot img.
https://sourceforge.net/projects/mi...HR_Q-v2.2-laurel_sprout-official.img/download (its for official android 10 rom)
then flash whatever rom you like then flash this zip, it will install shrp recover
https://sourceforge.net/projects/mi...ller-v2.2-laurel_sprout-official.zip/download
Click to expand...
Click to collapse
I was also stuck like this so i flashed that boot img rebooted and everything came back.

Categories

Resources