Problem with flashing twrp - Xperia Z1 Q&A, Help & Troubleshooting

Device:
c6903 (Android 4.4.4)
14.4.A.0.108 (Deutchland O2)
Central Europe 5
Customization version:
1276-4384-R1D
-ulocked bootloader, rooted with newroot (by munjeni)
-TA backup and restored
I tried official twrp app, it said it couldnt install twrp (tried all available versions).
I tried flashify and it said: recovery partition couldnt be found, tried downloading twrp from it, it couldnt finish it.
I downloaded official twrp 3.0.2 in img file.
I tried from terminal:
su
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel: cannot open for write: No such file or directory
How i can install twrp?

bojan.1995 said:
Device:
c6903 (Android 4.4.4)
14.4.A.0.108 (Deutchland O2)
Central Europe 5
Customization version:
1276-4384-R1D
-ulocked bootloader, rooted with newroot (by munjeni)
-TA backup and restored
I tried official twrp app, it said it couldnt install twrp (tried all available versions).
I tried flashify and it said: recovery partition couldnt be found, tried downloading twrp from it, it couldnt finish it.
I downloaded official twrp 3.0.2 in img file.
I tried from terminal:
su
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel: cannot open for write: No such file or directory
How i can install twrp?
Click to expand...
Click to collapse
I met a same problem

check your lock if it unlock

Related

razr i kitkat root method via twrp

hello xda people,i thought i might share this with you since i've tested and done it myself about rooting kitkat eu update.My bootloader was factory locked and proceeded unlocking it and i barely managed to install Hazou's unoficial twrp recovery(see this thread:http://forum.xda-developers.com/showthread.php?t=2278483) wich was done via fastboot,but mostly even after the custom recovery install i didn't managed to get root on kitkat,so i've tried ChainsDD superSU update pack witch seems to resolve the problem because the update package installs the propper package according to system specs,so if anyone there wishing to root or doesn't quite figure out,here's an simple how to:
1Make sure you have all the drivers installed.
2install or download android sdk
3 from the sdk,copy on your desktop platform-tools (for easier job)
4 download recovery image from Hazou thread,see: http://forum.xda-developers.com/showthread.php?t=2278483 extract and place it on platform-tools folder you copied on your desktop
5in platform-tools folder open cmd line and enter your phone in fastboot
6type "fastboot devices" without quotes
7 if your device is listed,type: fastboot flash recovery recovery.img
8now after cmd confirms if the flash was succesfull, either head to recovery from fastboot mode and see if twrp is installed,if it does keep your phone connected to pc
9 download chainsDD superSU update to external sd,link to download https://drive.google.com/file/d/0B8m4rdNFVU4_YjV4X2gtUjNhZVE/view?usp=sharing
10 install via twrp,wipe davik+cache, reboot and enjoy
You can get the latest CWM / TWRP / MobileODIN installable ZIP from here. It has x86 support and works on the Razr i.
drunk_ryder24 said:
hello xda people,i thought i might share this with you since i've tested and done it myself about rooting kitkat eu update.My bootloader was factory locked and proceeded unlocking it and i barely managed to install Hazou's unoficial twrp recovery(see this thread:http://forum.xda-developers.com/showthread.php?t=2278483) wich was done via fastboot,but mostly even after the custom recovery install i didn't managed to get root on kitkat,so i've tried ChainsDD superSU update pack witch seems to resolve the problem because the update package installs the propper package according to system specs,so if anyone there wishing to root or doesn't quite figure out,here's an simple how to:
1Make sure you have all the drivers installed.
2install or download android sdk
3 from the sdk,copy on your desktop platform-tools (for easier job)
4 download recovery image from Hazou thread,see: http://forum.xda-developers.com/showthread.php?t=2278483 extract and place it on platform-tools folder you copied on your desktop
5in platform-tools folder open cmd line and enter your phone in fastboot
6type "fastboot devices" without quotes
7 if your device is listed,type: fastboot flash recovery recovery.img
8now after cmd confirms if the flash was succesfull, either head to recovery from fastboot mode and see if twrp is installed,if it does keep your phone connected to pc
9 download chainsDD superSU update to external sd,link to download https://drive.google.com/file/d/0B8m4rdNFVU4_YjV4X2gtUjNhZVE/view?usp=sharing
10 install via twrp,wipe davik+cache, reboot and enjoy
Click to expand...
Click to collapse
I like this method, you're always left with a fallback or the option to the Rom flash again or use an alternate when using recovery, I've started to prefer TWRP over clockwork recently

HTC one m7 no su binary

Hey I'm a noob,
I have followed a video on how to root HTC one m7 , I unlocked boot loader an got teamwin recovery . I did everything what I seen in the video an I installed superuser from the recovery .. but when I open up the app it says install su binary an when I checked root checker its says it's not fully done ..
What am I doing wrong
Sent from my HTC One using XDA Free mobile app
cummo13 said:
Hey I'm a noob,
I have followed a video on how to root HTC one m7 , I unlocked boot loader an got teamwin recovery . I did everything what I seen in the video an I installed superuser from the recovery .. but when I open up the app it says install su binary an when I checked root checker its says it's not fully done ..
What am I doing wrong
Sent from my HTC One using XDA Free mobile app
Click to expand...
Click to collapse
If your phone is on lollipop, make sure to use the latest version of TWRP as older version includes outdated binary that doesn't work on lollipop. You can also flash the latest supers.zip manually from recovery.
I have gone in to team win recovery an installed it from there an this is what I keep getting Su if you have a custom recovery like twrp or cwm, that can be used to (try to) install the su binary . How would you like to install the su binary ?. I hit twrp
SuperSu will attempt to reboot your device into twrp or cwm ,
So I go back to the recovery team win . . I go to install an go down to superSU-v1.25zip swipe to confirm flash . Successful an know I hit reboot system. Android is updating app an know there is no SU binary installed an superSU cannot install it . This is a problem
alray said:
If your phone is on lollipop, make sure to use the latest version of TWRP as older version includes outdated binary that doesn't work on lollipop. You can also flash the latest supers.zip manually from recovery.
Click to expand...
Click to collapse
I'm also using TWRP v2.8.7 is that the newest one
Sent from my HTC One using XDA Free mobile app
I think I have a old superuser zip file an when I install it thats why it's theres no su binary ... Can you tell me the latest superuser zip file number thanks
Sent from my HTC One using XDA Free mobile app
cummo13 said:
I think I have a old superuser zip file an when I install it thats why it's theres no su binary ... Can you tell me the latest superuser zip file number thanks
Sent from my HTC One using XDA Free mobile app
Click to expand...
Click to collapse
Yes 1.25 its not the latest its pretty old.
uninstall your SU app from the phone and
1- boot in twrp
2- select reboot in system
3- you'll be prompted to install root
4- select "yes"
(you need a recent twrp version as explained in post 2)
or
1- download latest supersu.zip
2- boot in twro
3- select "install"
4- select your supersu.zip and flash it.
latest version is 2.46 and its the only one that will work with lollipop
https://download.chainfire.eu/696/SuperSU
alray said:
Yes 1.25 its not the latest its pretty old.
uninstall your SU app from the phone and
1- boot in twrp
2- select reboot in system
3- you'll be prompted to install root
4- select "yes"
(you need a recent twrp version as explained in post 2)
or
1- download latest supersu.zip
2- boot in twro
3- select "install"
4- select your supersu.zip and flash it.
latest version is 2.46 and its the only one that will work with lollipop
https://download.chainfire.eu/696/SuperSU
Click to expand...
Click to collapse
Thank you so much .. It worked .
Sent from my HTC One using XDA Free mobile app
alray said:
If your phone is on lollipop, make sure to use the latest version of TWRP as older version includes outdated binary that doesn't work on lollipop. You can also flash the latest supers.zip manually from recovery.
Click to expand...
Click to collapse
I've got 5.0.2 but I have the same problem and can't install UPDATE-SuperSU-v2.45 using recovery: when I enterin recovery mode it says:
Android system recovery<3e>
LRX22G release-Keys
Volume up/down to move highlight;
enter buttonto select.
reboot system now
apply update from ADB
wipe data/factory reset
wipe cache partition
reboot to bootloader
power down
view recovery logs
apply from phone storage
apply from SD card
E:missing bitmap oem_unlock_bg
(Code -1)
E:missing bitmap oem_unlock_bg_yes
(Code -1)
E:missing bitmap oem_unlock_bg_no
(Code -1)
handle_cota_install: install cwpkg to /data/data/cwtemp/cwpg.zip
handle_cota_install: install cwprop to /data/data/cwtemp/cwprop
Write host_mode success
handle_cota_install: No CW files. Skip cw installation.
E:failed to mount /cache (Invalid argument).. try emmc moun
E:Can't find device node for Mount point /cache
What can I do? Thank you.
Lux80 said:
I've got 5.0.2 but I have the same problem and can't install UPDATE-SuperSU-v2.45 using recovery
Click to expand...
Click to collapse
when I enterin recovery mode it says:
Android system recovery<3e>
LRX22G release-Keys
Volume up/down to move highlight;
enter buttonto select.
reboot system now
apply update from ADB
wipe data/factory reset
wipe cache partition
reboot to bootloader
power down
view recovery logs
apply from phone storage
apply from SD card
Click to expand...
Click to collapse
This is the stock recovery.... not twrp
All you need to know already explained 2 posts before yours, and btw you did quoted the answer you are looking for
If your phone is on lollipop, make sure to use the latest version of TWRP as older version includes outdated binary that doesn't work on lollipop. You can also flash the latest supers.zip manually from recovery.
Click to expand...
Click to collapse
So your are not using TWRP neither the latest supersu.zip file.

CyanogenMod installation 12.1

Hi all, im here because i have some problem about install CyanogenMod of this tread:
http://forum.xda-developers.com/xpe.../rom-cyanogenmod-12-neo-s-homebuilds-t2984988
i hade a Xperia T, with 4.3 stock, with root, followed thsi http://forum.xda-developers.com/showthread.php?t=2798411=2333577
then i unlocked my botloader, following a italian guide by "Unlock SE xperia bootloaders", ask to Sony the hey for unclock, and all work fine.
Downloaded cm-12-20151108-NIGHTLY-mint with Gapps open_gapps-arm-5.1-pico-20160226, and pun in my microsd.
i have:
(1) Boot into TWRP recovery
(2) Do a factory reset and wipe system partition
(3) Flash latest ROM zip, but no Gapps (I'd do it later, first I wanted to see if it was loaded right to the Rom)
Reboot, configured cell phone, everything ok.
Then i try to follow step about resize partition, so i reboot phone, press "vol down", and my xperia boot into a "Cyanogen recovery", and not in the PhilZ Touch Recovery.
So I made some tests, and i have install TWRP by APK file, install ok, so i can go inside TWRP at the boot.
krasimiretov tell me to do that:
1. Install build from 08-01-2016(final)
2. You need to fastboot boot.img . There is no cyanogen recovery its TWRP. You must have done something wrong.
3. No towelroot is needed. After installing the build and flashing supersu from recovery phone is rooted.
4. You can do that with TWRP recovery no Philz needed.
so i have downloaded 08-01-2016(final), try to zip with TWRP but not able https://www.dropbox.com/s/n6do3ucbx8oju5a/2016-02-27 12.08.52.jpg?dl=0
i try to fastboot boot.img, by flashtool, istall it following this http://forum.xda-developers.com/showthread.php?t=1963961 but at the reboot xperia still "tunr off" afeter logo SONY, i should reboot (vol up+on for 10 sec, go to TWRP and reflash cm-12-20151108-NIGHTLY-mint for work again.
I am tempted to start all over from the beginning...but i shoud unlock again bootloaders, use unlocked bootloader, than i can, maybe, reflas ftf, right?
sorry if it's a little confused, but I do not know how to install the latest ROM, to be able to resize the partition
ok ..ok... i try again and now have work fine...
i just arrived to the Reboot, afetr install rom, gapps and update superSU, but screen is "stuck" at the recovery...is freeze there...i can reboot manually?
done!
redone the procedure,
I was wrong to flash the boot.img :angel:
So its working fine now ?
yep! work!!
but i have a little problem for resize...
13. Reboot
14. Enter the following terminal commands to fix storage permissions:
su
chmod 777 /mnt/media_rw/sdcard0
chown 1023:1023 /mnt/media_rw/sdcard0
chown -R 1023:1023 /mnt/media_rw/sdcard0
say "su" not found:
/ # su
Sh: su: not found
Flash latest SuperSU from here: https://download.chainfire.eu/921/SuperSU/UPDATE-SuperSU-v2.65-20151226141550.zip
Did you flash that in TWRP ?
yea... anyway im trying again... (It has a bad sensitivity TWRP )
nothing... "SU" dont work, but T work without "problem" ... i just have some lag and some closing's applications...
and this error after rebooting:
https://www.dropbox.com/s/tb4p3oykwhwglof/unspecified.png?dl=0
i would like try the latest UNOFFICIAL by Neo ... where i can download it? its cm-12-20150405-UNOFFICIAL-mint ??
maybe better version 12
ok..i have try install cm-12-20150405-UNOFFICIAL-mint, replace boot.img with flashtool, twrp change version, like this https://upload.wikimedia.org/wikipedia/commons/f/fe/TWRP_2.7.0.0.png but when i try install the .zip, i received a error ... so i try to install the cm-12-20151108-NIGHTLY-mint, ok without error, but now ROM have loop on CM logo ...
nevermind... I was able to do everything alone ...
I do always panic
buti have always the messa
https://www.dropbox.com/s/tb4p3oykwhwglof/unspecified.png?dl=0ge
Its from the google apps. Why are you unstalling CM12 when there is more optimized and up to date CM12.1. And i write again. READ EVERYTHING IN OP CAREFULLY.
krasimiretov said:
Its from the google apps. Why are you unstalling CM12 when there is more optimized and up to date CM12.1. And i write again. READ EVERYTHING IN OP CAREFULLY.
Click to expand...
Click to collapse
i have unstalling the latest 12.1 (cm-12.1-20160108-UNOFFICIAL-mint.zip), and use Build CM12 UNOFFICIAL by Neo - 5/4/2015, because 12.1 was full of lag, and some app freeze and quite without message...
Now Xperia T is more fat without lag ...
Anyway i can install other 12.1 ... except the last one that is not working well ... what would you suggest me about, version 12.1?
Ok, i have try again with this version:
cm-12.1-20160108-UNOFFICIAL-mint
open_gapps-arm-5.1-pico-20160301
BETA-SuperSU-v2.68-20160228150503
Follow always the istruction:
Flash the boot.img from ROM zip via Flashtool (use Fastboot mode)
Boot into TWRP recovery
Do a factory reset and wipe system partition
Flash latest ROM zip (check "Downloads" section)
Flash suitable GApps for CM12.1 or CM12
Flash latest SuperSU from here: Link
Reboot
i have always the same message when boot the phone about SETTINGS
nosadello said:
i have always the same message when boot the phone about SETTINGS
Click to expand...
Click to collapse
We all have that message, that's bug about CM Theme, and It's nothing to worry about.
nosadello said:
yep! work!!
but i have a little problem for resize...
13. Reboot
14. Enter the following terminal commands to fix storage permissions:
su
chmod 777 /mnt/media_rw/sdcard0
chown 1023:1023 /mnt/media_rw/sdcard0
chown -R 1023:1023 /mnt/media_rw/sdcard0
say "su" not found:
/ # su
Sh: su: not found
Click to expand...
Click to collapse
i should give this command on recovery or enable terminal on androd??

TWRP and Root for Android 8.0 Oreo

I flashed the latest Open Beta 25 yesterday and it took me some time to figure out how to properly root that. I was searching for a compatible TWRP for Android Oreo and I stumbled upon one when I was reading through pages and pages of comments from our community.
So, I am writing the steps here with the necessary files so that everyone can find it in one place.
This is not my work. All credits go to the original developers. I am just consolidating the steps I followed here. If I am violating any rules, please feel free to close this thread.
Credits:
 @akhilnarang for Modified TWRP 
 @Chainfire For SuperSU
Necessary Downloads:
Oreo Compatible TWRP: https://drive.google.com/open?id=0B46mMEeAPSYGd3dBbzJhMWJUVE0
SuperSU Zip: https://drive.google.com/open?id=0B46mMEeAPSYGV1U3c3JSRmF2dWs
Steps to install TWRP and Root:
Note: My phone was encrypted when I tried this.
1. Copy the downloaded SuperSU Zip file to your phone.
2. Copy the TWRP file to the folder where ADB and Fastboot are installed.
3. Turn off your OnePlus 3/3T. Boot your OnePlus 3/3T into Fasboot mode > Press and hold the Volume Up Button + Power Button.
4. Connect your phone to your PC via USB Cable.
5. Open a command window on the folder where ADB and Fastboot are installed. Go to the folder where ADB and Fastboot are installed. Hold down Shift Key > Right Click on the empty space > Choose ‘Open CMD Here’.
6. Execute the below command in the command window to see if your device is properly connected:
Code:
fastboot devices
7. Make sure the TWRP file is in the ADB folder. Execute the below command to install TWRP on your OnePlus 3/3T running Android Oreo:
Code:
fastboot flash recovery TWRP-Oreo-OnePlus-3-3T.img
Do not restart your device upon installation. The procedure is not yet over.
8. Assuming you are now in Fastboot Mode, use the volume buttons and choose ‘Recovery Mode’ and then press the power button to enter TWRP Recovery.
9. Once you are in TWRP > Tap on ‘Install’ > Choose the SuperSU Zip file which you have downloaded from above > Swipe right to flash.
10. Reboot your device.
Let me know if you have any questions/doubts!
Source
If you have other TWRP already installed, any reason not just to install the compatible one by flashing image of compatible one using that?
gmlogan said:
If you have other TWRP already installed, any reason not just to install the compatible one by flashing image of compatible one using that?
Click to expand...
Click to collapse
We should be able to install twrp without connecting to pc if we already have twrp
gmlogan said:
If you have other TWRP already installed, any reason not just to install the compatible one by flashing image of compatible one using that?
Click to expand...
Click to collapse
You could do that. Shouldn't be an issue, I guess. The above steps are just what I followed.
Yes, but isn't Oreo package replacing TWRP with OnePlus recovery?
Sent from my OnePlus3 using XDA Labs
Unn113 said:
Yes, but isn't Oreo package replacing TWRP with OnePlus recovery?
Sent from my OnePlus3 using XDA Labs
Click to expand...
Click to collapse
Install the recovery img in TWRP again after the zip. Reboot to recovery to confirm it didn't overwrite TWRP
liam_davenport said:
Install the recovery img in TWRP again after the zip. Reboot to recovery to confirm it didn't overwrite TWRP
Click to expand...
Click to collapse
No, what he says is that, once you install the Oreo Update Zip from TWRP it will be replaced with TWRP. I guess we could avoid this by immediately flashing the TWRP Zip soon after flashing the Oreo Zip.
dreams.sri said:
No, what he says is that, once you install the Oreo Update Zip from TWRP it will be replaced with TWRP. I guess we could avoid this by immediately flashing the TWRP Zip soon after flashing the Oreo Zip.
Click to expand...
Click to collapse
He means stock Oreo zip. If you flash OnePlus stock rom in TWRP and don't reflash TWRP stock zip replaces it with OnePlus recovery
Got error 7 while trying to install official Oreo beta from TWRP. Maybe a recovery issue not sure. I needed to flash last N beta and update from settings to Oreo beta
Its only possible with oneplus recovery. Trust me.
articblaster7 said:
Its only possible with oneplus recovery. Trust me.
Click to expand...
Click to collapse
OK, but after you have flashed Orea Beat with their recovery will it run OK with Twrp for backups and rooting etc
I dont have time to test right now. But i'm sure to Will vê possible now or in a near future
mauk said:
Got error 7 while trying to install official Oreo beta from TWRP. Maybe a recovery issue not sure. I needed to flash last N beta and update from settings to Oreo beta
Click to expand...
Click to collapse
You could download the Stock Oxygen OS Recovery and fastboot flash the recovery > Go to Stock Recovery > Go to 'Install from ADB' > Connect phone to PC > Sideload the update Zip > Boot into OREO > Reboot to Fastboot > Flash TWRP > Flash SuperSU. Will hardly take 15 mins.
liam_davenport said:
He means stock Oreo zip. If you flash OnePlus stock rom in TWRP and don't reflash TWRP stock zip replaces it with OnePlus recovery
Click to expand...
Click to collapse
True that, agreed!:good:
dreams.sri said:
True that, agreed!:good:
Click to expand...
Click to collapse
so the process is
1) Flash oreo compatible recovery
2) Flash Rom
3) Flash TWRP recovery
4)Flash root
manishdev said:
so the process is
1) Flash oreo compatible recovery
2) Flash Rom
3) Flash TWRP recovery
4)Flash root
Click to expand...
Click to collapse
1. Flash Stock Recovery.
2. Sideload Oreo Zip
3. Flash Oreo Compatible TWRP
4. Flash SuperSU
manishdev said:
so the process is
1) Flash oreo compatible recovery
2) Flash Rom
3) Flash TWRP recovery
4)Flash root
Click to expand...
Click to collapse
Yes. It's ok like you write.
Hi Guys,
I faced below issue while flashing Oreo beta update on oneplus 3 using twrp.
Details:
TWRP: 3.1.1.2
Rooted: Magisk v14.0
Do I need to unroot and uninstall twrp before updating?
TWRP:
OnePlus3Oxygen_16_OTA_035_all_1710131629_83503ca929ca4b82.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
selinux_android_file_context: Error getting file context handle (No such file or directory)
Warning: No file_contextsscript aborted: E3004: This package is for "OnePlus 3" devices; this is a "".
E3004: This package is for "OnePlus 3" devices; this is a "".error: 3004
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
I:Install took 0 second(s).
Error installing zip file '/sdcard/TWRP/OnePlus3Oxygen_16_OTA_035_all_1710131629_83503ca929ca4b82.zip'
Updating partition details...
Iata backup size is 8093MB, free: 37507MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
SuperSU not Working
dreams.sri said:
I flashed the latest Open Beta 25 yesterday and it took me some time to figure out how to properly root that. I was searching for a compatible TWRP for Android Oreo and I stumbled upon one when I was reading through pages and pages of comments from our community.
So, I am writing the steps here with the necessary files so that everyone can find it in one place.
This is not my work. All credits go to the original developers. I am just consolidating the steps I followed here. If I am violating any rules, please feel free to close this thread.
Credits:
@akhilnarang for Modified TWRP
@Chainfire For SuperSU
Necessary Downloads:
Oreo Compatible TWRP: https://drive.google.com/open?id=0B46mMEeAPSYGd3dBbzJhMWJUVE0
SuperSU Zip: https://drive.google.com/open?id=0B46mMEeAPSYGV1U3c3JSRmF2dWs
Steps to install TWRP and Root:
Note: My phone was encrypted when I tried this.
1. Copy the downloaded SuperSU Zip file to your phone.
2. Copy the TWRP file to the folder where ADB and Fastboot are installed.
3. Turn off your OnePlus 3/3T. Boot your OnePlus 3/3T into Fasboot mode > Press and hold the Volume Up Button + Power Button.
4. Connect your phone to your PC via USB Cable.
5. Open a command window on the folder where ADB and Fastboot are installed. Go to the folder where ADB and Fastboot are installed. Hold down Shift Key > Right Click on the empty space > Choose ‘Open CMD Here’.
6. Execute the below command in the command window to see if your device is properly connected:
Code:
fastboot devices
7. Make sure the TWRP file is in the ADB folder. Execute the below command to install TWRP on your OnePlus 3/3T running Android Oreo:
Code:
fastboot flash recovery TWRP-Oreo-OnePlus-3-3T.img
Do not restart your device upon installation. The procedure is not yet over.
8. Assuming you are now in Fastboot Mode, use the volume buttons and choose ‘Recovery Mode’ and then press the power button to enter TWRP Recovery.
9. Once you are in TWRP > Tap on ‘Install’ > Choose the SuperSU Zip file which you have downloaded from above > Swipe right to flash.
10. Reboot your device.
Let me know if you have any questions/doubts!
Source
Click to expand...
Click to collapse
hello, i followed all the steps but for some reason, my phone is stuck in boot loop. everything is normal untill i see my lockscreen,but as soon as i try to unlock or even press powerbutton , the phone restarts again everytime.
Will the same steps work for magisk?

Can't flash my recovery to TWRP on LineageOS

Hello dear fellows,
since 2 days i try to fix a problem with my unlocked and rooted Sony Xperia Z C6603. Still not finding any solution via internet, i take my last chance and post it here.
I unlocked and rooted my C6603 2 days ago and installed via fastboot the actual Lineage Custom ROM lineage-14.1-20171027-nightly-yuga-signed.zip.
Everything worked fine.
Bootloader -> fastboot flash boot boot.img (from lineage-14.1-20171027-nightly-yuga-signed.zip) :good:
Restart into Android Recovery :good:
Install via ADB sideload lineage-14.1-20171027-nightly-yuga-signed.zip :good:
Install via ADB sideload LineageOS 14.1 ARM32 SU (for full root access) :good:
Boot into Lineage, activate dev options and enabled Android-Debugging + Root-Access -> Apps and ADB :good:
Now my problem:
The so called "Android Recovery" is rly bad, so i try to override this recovery with TWRP 3.0.2.0 (yuga) but everytime i get the following error:
Code:
fastboot flash recovery twrp.img
target didn't report max-download-size
sending 'recovery' (10656 KB)...
OKAY [ 0.351s]
writing 'recovery'...
[B]FAILED (remote: Command not allowed)[/B]
finished. total time: 0.370s
Where is my fffffff problem^^ Yes my phone is unlocked and yes, it is rooted (checked it also via root app).
I cant install gapps (dont work with ADB sideload) and and i want a proper recovery for backups and stuff...
So, what is wrong with me? Maybe someone of you have a good idea and can help me, i would rly appreciate it!
Sry for my not so proper english, hope u understand my problem anyway
Phone information:
Sony Xperia Z C6603
Android 7.1.2
LineageOS 14.1-20171020-NIGHTLY-yuga
LineageOS API-Level Guava (7)
Kernel-Version 3.4.113-yuga-gd710842
Build-Number lineage-yuga-userbug 7.2.1 NJH47F f281cb28f4
Thanx for all the help^^
I figured it out what to do:
1. fastboot flash boot twrp(actualversion).zip NOT fastboot flash recovery twrp(actualversion).zip
2. reboot into TWRP recovery mode
3. check if u can mount your data folder
3.1 if not, go to wipe -> advanced wipe -> change file system to ext4
4. install via ADB the actual LineageOS (or put the actual LineageOS file on your Sony/SD)
4. install LineageOS 14.1 SU via ADB (or put the actual LineageOS 14.1 SU file on your Sony/SD) -> https://www.lineageosroms.org/forums/topic/how-to-root-lineage-os-13-14-1-marshmallow-nougat-rom/
6. install Open gapps -> http://opengapps.org/
7. reboot and configure LineageOS
7.1 check your developer options -> Debugging + root access for ADB and apps
8. download TWRP apk via PlayStore
8.1 give TWRP apk root access and download the actual TWRP file for yuga
9. flash this TWRP recovery via app
10. DONE
Everything works fine (for now )
Topic can be closed!
Same problem here, filesystem is ext4, TWRP app says it flashed but after a reboot its not there.
Always have to go via "fastboot flash boot twrp.img" and on the next reboot after flashing lineage its gone again.
After some research I found it it belongs into the fota partition, but I dont seem to have one.
nurps said:
Same problem here, filesystem is ext4, TWRP app says it flashed but after a reboot its not there.
Always have to go via "fastboot flash boot twrp.img" and on the next reboot after flashing lineage its gone again.
After some research I found it it belongs into the fota partition, but I dont seem to have one.
Click to expand...
Click to collapse
Did you manage to solve the issue? I have the exact problem. The TWRP says it flashed but recovery is still stock android.
I have C6602. Someone on reddit gave me the solution; (do note that I had to run
Code:
adb root
for
Code:
su
to work.
You have a Xperia device which deals with recovery kind of weird. Recovery is stored with the kernel, not in a standalone recovery partition. Because of this you need to flash it to a FOTAKernel partition and use a kernel that supports FOTAKernel (the LineageOS one does).
To flash TWRP, first move the recovery image to your device with the adb command
Code:
adb push twrp-3.0.2-0-yuga.img /sdcard
. Then run
Code:
adb shell
to get access to the shell. Then run
Code:
su
and accept any prompts to gain root access. Then to actually flash, run
Code:
dd if=/sdcard/twrp-3.0.2-0-yuga.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Click to expand...
Click to collapse

Categories

Resources