Sony Z2 Help - Xperia Z2 Q&A, Help & Troubleshooting

Im new into rooting so i succesfully unlocked my bootloader and installed the twrp recovery via flash now i have the problem that my phone always boots into the recovery mode no matter what, i have a sonyz2 D6503 andriod 6.0.1 i follow a tutorial on youtube . now i have read a few threads that it is wrong to install twrp with fastboot flash boot C/:whaterver.img i should have done it with fastboot flash recovery C/:whatever.img . Im kinda stuck now and i have no idea what to do moreover im kinda scared to do something, because it can cause more damage that i already have.
im kinda sorry for my horrible english i hope you can understanf this trouble

If you want to proceed back to stock ROM, flash stock FTF using flashtool (download link and instructions can be found inside my signature), with KERNEL and SYSTEM checked, other leave other options intact.
If you want to flash another non-stock ROM, flash an advanced kernel via fastboot toolbox inside the flashtool I mentioned above, then you can flash the ROM using the TWRP inscribed with the advanced kernel.
If you want to proceed to stock ROM but rooted and with other MODs installed, there are two ways to do so:
Easier method:
Flash an advanced kernel then use the pre-installed TWRP to flash the SuperSU.zip or whatever MOD zips.
Complex method:
Restore stock kernel using flashtool mentioned above, then flash the TWRP (recovery) image (you can get one HERE) using a cmd on PC or Laptop with ADB and flastboot drivers installed, typein:
Code:
fastboot flash recovery <recovery>.IMG
then you can boot into the TWRP to flash whatever MODs you want.
--------------------
As always, do more research before entering into tweaking things, noobness can be fatal!

Related

Reverting to Stock from Custom ROM

Guys , some people are reporting that they are unable to revert to stock rom after flashing custom rom.
If you want to save your phone , then i highly recommend you to make a complete backup before flshing stock rom
go to cwm recovery and select backup/restore then backup (it will make your stock rom backup)
whenever you want to revert , go again to clockworkmod recovery and select restore under, backup/restore option
now last and most important thing to run stock rom ---> flash stock kernel using fastboot method
first grab stock kernel to do that , download your phones stock firmware from here = http://forum.xda-developers.com/showthread.php?p=10885406#post10885406
using 7zip extract kernel.sin file from .ftf firmware file
connect your phone in fastboot mode and run this command
fastboot flash boot kernel.sin
I'm doing it again and again without any problem.. just be sure to flash stock kernel before flashing stock rom.
thanks, i will try this method too
first flash stock kernel , then using flashtool flash firmware , am i right ?
Stock kernel (kernel.sin) is included in the package (of official stock firmware). So everytime you flash an official stock firmware, kernel.sin is also flashed. No need to flash kernel.sin before flashing stock firmware. Correct me if im wrong.
I also think same , i tried that method by noooooob and it worked too
hello, can someone give me a link to a tutorial on how to install CWM Recovery on our x-ray? do i have to unlock bootloader first before installing CWM? thanks
lets try the Cynaogen
kizsleg said:
hello, can someone give me a link to a tutorial on how to install CWM Recovery on our x-ray? do i have to unlock bootloader first before installing CWM? thanks
Click to expand...
Click to collapse
yes you have to unlock boot-loaders first
i recommend to unlock by this method = http://androidflip.com/unlock-xperia-phones-bootloader-without-losing-drm-data-track-id-working/
if you want to install clockwork mod recovery then follow this = http://forum.xda-developers.com/showthread.php?t=1384200
Install CWM without unlocking bootloader
You don't need to unlock the boot loader to install CWM.
Follow instructions here to root First
http://forum.xda-developers.com/showthread.php?t=1320350
Install CWM using this tool
http://forum.xda-developers.com/showthread.php?t=1346190
This is how I did it on my Ray
I always considered flashing with Wotanserver to be the best way to go back to stock. It basically takes care of everything. Sure, you'll have to root again afterwards, but that's not exactly very hard.
wotan server is also a good choice
How can i revert back to stock rom from custom rom if i havent made any backups of stock rom??
elf.rb said:
How can i revert back to stock rom from custom rom if i havent made any backups of stock rom??
Click to expand...
Click to collapse
download firmware which you have before installing custom rom, then flash it using flashtool.

Noob wants cyanogenmod on z2 :)

Hey guys,
I recently rooted my z2 the easiest way using a thread I found and TWRP 2. I have some basic experience flashing roms but it has always involved carefully following instructions.
I recently downloaded Cyanogenmod for Sirius but when I try and use TRWP to flash the zip it tells me I have the wrong rom, presumably because TWRP is designed for the Z3 and it thinks I'm trying to do something silly.
I have Rom Manager and have tried to install Clockworkmod bit it has trouble recognising my device and always boots into TWRP instead. I've had problems using ADB software in the past so would like to find a "phone-based" fix if possible.
Any help would be much appreciated xox
1. Root and backup TA (optional)
2. Unlock your bootloader
3. Flash kernel and recovery
4. Through recovery flash CM12.1 (or any older versions of choice)
Need i explain in more detail.
Read the part about flashing boot.img using fastboot: http://forum.xda-developers.com/xperia-z2/help/twrp-phone-t3178773/post62332549#post62332549
Then you should be able to flash your CM.

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

Clockwork Mod or TWRP which one EASY ?

I dont want MIUI and useless extra app so i have to install custom rom.
First step is unlock bootlader with mi unlock app okay. But my question is how can i install custom rom ?
TWRP or Clockwork Mod ???
Using TWRP i have to install it first after that i have to install recovery.img and lazyflasher unless my phone gonna brick and its too complicated.
What about Clockwork Mod ?? is it different method ?
I guess i found my path.
1)Installing ROM MANAGER from Play Store of course with rooted device.
2)Install inside of app Clockwork Mod
3)Select custom rom from SD Card and select Gapps,backup,wipe data...
and device gonna reboot do everything automatic is that true and simple ?
My question is using rom manager and install custom rom like that or i have to something extra.
Sorry about my english...
I don't have the phone yet, but i had redmi note 3 before and installing twrp was simply putting it in fastboot mode and using adb command "Flash recovery xxxxx.img" and you are set, considering you have an unlocked bootloader that is. then you follow the installing instructions given by the developer, usually (flash rom.zip followed by gapps.zip). But ofcourse i don't have the phone so take what i said as a refernce only and wait for someone else' reply. as of clockwork recovery, i think twrp is easier to use but there is generally no major diffrence.
Forgot Clockworkmod even existed. Have been using TWRP for ages.
cwm has reached end of support.
https://forum.xda-developers.com/showthread.php?t=2201860
use twrp
CWM is dead, twrp is one and only option otherwise there is also Red wolf recovery available.
Steps to install a custom Rom.
Unlock bootloader
Flash TWRP
Flash lazyflasher.zip, reboot
Now DL any Rom.zip and desired Gapps package
Boot into TWRP again
Backup (just incase)
wipe > advanced wipe > wipe everything except internal / SD card
Flash firmware.zip, if you're coming from marshmallow based Miui
Flash Rom.zip followed by Gapps
?? ¿
Profit

I really need help

Hi, today I was more than seven hours on PCr and tried this....unsuccessfully... I'm really desperate
I have:
-Xperia Z2 (D6503)
-Android 6.0.1
-newest firmware 23.5.A.1.291
-UNlocked bootloader
I am trying to install root, twrp recovery and custom ROM ( specifically this ROM ). But i cannot enter to the recovery mode...
Official twrp-3.0.2-0 succesfully flashed in fastboot but when i try command "fastboot reboot recovery" the mobile only load android and turns on normally... the combination hardware buttons also do not work.
The next question is, What is a kernel ? I have successfully installed this kernel .... Could this be the reason why I can't load the recover mode?
Please help me, I don't know what to do anymore :crying: all I want is root and custom rom
EDIT: okay, i successfully root phone and finally i have access to recovery mode (TWRP 3.0.2-0) by THIS TUTORIAL now i need help with installing the custom ROM step-by-step because if I turn something wrong and phone will be bricked again, I guess I'll kill myself xD so What is next step for install custom ROM please ? Can I just download THIS, install the zip in TWRP and that´s all ???
Yup you can install it by recovery steps:
kubesak97 said:
Hi, today I was more than seven hours on PCr and tried this....unsuccessfully... I'm really desperate
I have:
-Xperia Z2 (D6503)
-Android 6.0.1
-newest firmware 23.5.A.1.291
-UNlocked bootloader
I am trying to install root, twrp recovery and custom ROM ( specifically this ROM ). But i cannot enter to the recovery mode...
Official twrp-3.0.2-0 succesfully flashed in fastboot but when i try command "fastboot reboot recovery" the mobile only load android and turns on normally... the combination hardware buttons also do not work.
The next question is, What is a kernel ? I have successfully installed this kernel .... Could this be the reason why I can't load the recover mode?
Please help me, I don't know what to do anymore :crying: all I want is root and custom rom
EDIT: okay, i successfully root phone and finally i have access to recovery mode (TWRP 3.0.2-0) by THIS TUTORIAL now i need help with installing the custom ROM step-by-step because if I turn something wrong and phone will be bricked again, I guess I'll kill myself xD so What is next step for install custom ROM please ? Can I just download THIS, install the zip in TWRP and that´s all ???
Click to expand...
Click to collapse
before you do this you should backup all your important data
1-wipe data factory reset
2- wipe cache
3- install zip rom
4- download google apps and install it by recovery it should be a zip file
5-repot system and enjoy
the recovery is like twrp or cwm it's not a kernel
there is 2 type of kernel :
1-kernel itself
2-kernel with merged recovery
about the kernel and recovery, there is deference the kernel is very important for system to work it connects between the hardware and the software and every operating system has its own kernel but here in android they sometimes merge kernel with recovery but when you flash-kernel or recovery every one replace each other be careful and know that, don't worry you won't brick something in the near future when you will install custom ROMs you will notice that.
if you need any help you can ask me

Categories

Resources