[Recovery Release] Working TWRP for Sony L1 (G3311 Single SIM others to be confirmed)

Search This thread

bigrammy

Senior Member
Apr 8, 2011
2,946
2,572
huddersfield
Requirements:
1. Bootloader Must Be Unlocked.
2. Have a backup of your working Magisk Patched boot.img saved to your External SDcard.
A little INFO:
The Sony L1 recovery seems to be disabled by SONY for some unknown and Probably stupid reason.
I have tried all ways to get the TWRP and Stock recovery to boot up from the fotakernel partition (recovery) but TWRP and even the stock recovery refuse to boot. :mad:
Anyway to cut a very long story short I am releasing this TWRP which is 95% functional and needs to be flashed to the boot partition

Working Method/flow:
Make sure you have a Back up of your working Boot.img "You know the one you used to root the device in the first place".
For ease of use You can use this app by XDA dev @wanam (Thread here) app on playstore Here You can also use this app to flash the v5-twrp-l1.img to your "boot" partition or you can go old skool and use dd (Via adb shell) or use the Magisk patched_boot.img you first rooted with..
Make SURE to Copy this working boot.img to your External SDcard.
When you require TWRP flash the downloaded TWRP to your boot partition using Fastboot (cmd's below) or the above app then reboot
You will now boot to TWRP.
Do what you need to do in TWRP.
IMPORTANT:
Remember Just before you leave TWRP go to INSTALL choose your external SDCard choose "image" from the install screen find your boot.img and select "boot" with the little radio button.
Once flashed choose reboot system.
Now when you boot you will be back to norma
l :good:

Things Not Working:
1. You will not be able to mount encrypted data therefore you would need to FORMAT your data and then leave it unencrypted.
SuperSU and Magisk will disable forceencrypt for you.
2. Does not Charge or show battery % so I don't know if it's actually charging. (Probably Qnovo battery module used by sony)

It will probably work on all variants but I am not able to test that.
It's use is for backups and restores wipes and installs for which it seems fully functional. :good:

Install Instructios.
Boot to the bootloader then
Code:
fastboot flash boot v5-twrp-l1.img

Then
Code:
fastboot reboot

Download HERE v5-twrp-l1.img
 
Last edited:

bigrammy

Senior Member
Apr 8, 2011
2,946
2,572
huddersfield
Hi @bigrammy!! I have it booting ok, obviously encryption is not working! I was able to do a backup but couldn't boot back into system, just keeps going back to twrp! I had to flashi the patched 3313 boot image from another post to get back into system! Good work though! Tested on g3311
:laugh:
Ok maybe I should update the OP as it seems it's not really clear enough that obviously the boot is replaced by the recovery. :eek:

Method would be make sure you have a Back up your working Boot.img You know the one you used to root the device in the first place.
You can also use dd (Via adb shell) or a app from the playstore or better still use the Magisk patched_boot.img .
Copy this working boot.img to your External SDcard.
When required flash the recovery to your boot partition using Fastboot then reboot
You will now boot to TWRP.
Do what you need to do in TWRP.
Then just before you leave TWRP go to INSTALL choose your external SDCard choose "image" from the install screen find your boot.img and select "boot" with the little radio button.
Once flashed choose reboot system.
Now when you boot you will be back to normal :good:

OP Updated let me know if it's clearer to understand now.
Thanks for reporting back. :good:
 
Last edited:
  • Like
Reactions: Chronic2k13

Chronic2k13

Senior Member
Mar 8, 2013
525
175
London
Sony Xperia 5 II
I'll give it a go! Many thanks! Just one question though. How do I enter recovery mode from then on? Is it still power down, power and volume down yeah?
 
Last edited:

bigrammy

Senior Member
Apr 8, 2011
2,946
2,572
huddersfield
I'll give it a go! Many thanks! Just one question though. How do I enter recovery mode from then on? Is it still power down, power and volume down yeah?

I don't think you have really read or understood the OP :confused:
You are only ever flashing the "boot partition".
When you need to use TWRP you flash the TWRP.img to the boot partition and when your done you flash back your boot.img again to the boot partition as in the OP.
BTW Have you ever been able to enter the STOCK recovery using Power and Volume Down or using any commands :confused:
My phone could not enter the STOCK recovery at all let alone a custom one and since no one ever replied to my question about this I assumed this was the case for everyone as many sony devices from 7.0 had the recovery disabled?
 

alegatorul

Senior Member
Aug 15, 2014
116
24
Timișoara ( Bedford UK )
I tested twrp 2 times
Worked every time.
I've tried to install superSu.zip via twrp, looked all right, rebooted the phone and now it's in bootloop for over 2 hours...
It's getting hotter... i ca't turn it off
The only thing that works is keeping Power and Volume Up pressed and it looks restarting...
What can i do to revive it safely?
 
Last edited:

bigrammy

Senior Member
Apr 8, 2011
2,946
2,572
huddersfield
I tested twrp 2 times
Worked every time.
I've tried to install superSu.zip via twrp, looked all right, rebooted the phone and now it's in bootloop for over 2 hours...
It's getting hotter... i ca't turn it off
The only thing that works is keeping Power and Volume Up pressed and it looks restarting...
What can i do to revive it safely?

Mate you really need to be careful unless you really know what your doing :eek:
You will likely brick the phone if you continue to blindly mess with re-partitioning and the like.
If you were in TWRP which was flashed to the boot partition as directed in the OP then flashing the supersu.zip will simply modify your TWRP.img not your boot.img since TWRP is living in the boot partition at the time you run the .zip hence your looping.
This device has bootloader issues since it will not allow the booting of another partition except "boot" recovery, fotakernel, rdimage, all tested all failed to boot the TWRP recovery and stock recovery.
There is another method used by some sony devices but this will need to be heavily modified for this MediaTek SoC and will require a lot of study and script re-writes.

Spending all this time on a device that's pretty much obsolete before it was launched since it's not planned to receive oreo and Sony 90% locked down the bootloader is kinda futile so use the phone for what it is then throw it in the bin when done in a year or two.
 
Last edited:
  • Like
Reactions: alegatorul

msradam

New member
Aug 28, 2018
4
1
Works great on the G3113 model, thank you for developing this! Now hoping to find a custom rom to install via .zip.
 
  • Like
Reactions: bigrammy

riadjblicd

New member
Oct 1, 2018
2
0
This "HERE v5-twrp-l1.img" is working in my Xperia L1 G3312.
But, after installing TWRP, phone does not get into boot normally. Everytime it boots into recovery mode. I think that it needs separate twrp partition. This twrp is overwriting the main boot. If anyone can make separate partition for TWRP recovery. This problem will be solved.
 

dumb person

Member
Oct 1, 2018
5
1
Hello. I ignored all your post like a retard and basically just went to the last step to flash the image. The twrp works but it wouldn't boot into normal mode but just boot to twrp everytime so I downloaded some random boot image I saw online and installed it. Now it's just stuck in the sony logo and won't even turn off. Is there anything I can do or is it rip for good?
 

bigrammy

Senior Member
Apr 8, 2011
2,946
2,572
huddersfield
Hello. I ignored all your post like a retard and basically just went to the last step to flash the image. The twrp works but it wouldn't boot into normal mode but just boot to twrp everytime so I downloaded some random boot image I saw online and installed it. Now it's just stuck in the sony logo and won't even turn off. Is there anything I can do or is it rip for good?
No it's only the boot.img Flash the boot.img in this thread https://forum.xda-developers.com/xperia-l1/how-to/root-l1-g3313-magisk-t3693350 if you can get into fastboot that is.
If not then use FlashTool to flash the stock boot.sin and system.sin only. That should get you working again.
 
  • Like
Reactions: dumb person

riadjblicd

New member
Oct 1, 2018
2
0
This "HERE v5-twrp-l1.img" is working in my Xperia L1 G3312.
But, after installing TWRP, phone does not get into boot normally. Everytime it boots into recovery mode. I think that it needs separate twrp partition. This twrp is overwriting the main boot. If anyone can make separate partition for TWRP recovery. This problem will be solved.

In twrp mode, I can do everything smoothly..... but phone does not get into boot normally..... After installing stock boot again, phone boot into normally, but twrp has gone completely..... So, it is clear that boot & twrp partition overwrites each other due to no separate partition.... So, we need separate partition for boot & twrp.... then everything will be solved...
 

dumb person

Member
Oct 1, 2018
5
1
  • Like
Reactions: bigrammy

bigrammy

Senior Member
Apr 8, 2011
2,946
2,572
huddersfield
This "HERE v5-twrp-l1.img" is working in my Xperia L1 G3312.
But, after installing TWRP, phone does not get into boot normally. Everytime it boots into recovery mode. I think that it needs separate twrp partition. This twrp is overwriting the main boot. If anyone can make separate partition for TWRP recovery. This problem will be solved.

In twrp mode, I can do everything smoothly..... but phone does not get into boot normally..... After installing stock boot again, phone boot into normally, but twrp has gone completely..... So, it is clear that boot & twrp partition overwrites each other due to no separate partition.... So, we need separate partition for boot & twrp.... then everything will be solved...

Yes but Sony Disabled the recovery partition (fotakernel) by design so you can not boot from it. :(

The OP is clear about the need to flash the TWRP to your boot partition and the reason I also give full instruction in the workflow/method but people simply don't read anymore it seems. :crying:

TWRP can be injected into the boot.img so you can boot normally or boot TWRP using the volume keys at boot time but I can't be bothered working on this since Sony are not going to update the Android Version.
While the phone is OK I have far better phones to spend my time on at the moment. :eek:
 

fisox

New member
Oct 29, 2018
3
0
how to backup boot.img without root? if its impossible then how do i root this phone?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Requirements:
    1. Bootloader Must Be Unlocked.
    2. Have a backup of your working Magisk Patched boot.img saved to your External SDcard.
    A little INFO:
    The Sony L1 recovery seems to be disabled by SONY for some unknown and Probably stupid reason.
    I have tried all ways to get the TWRP and Stock recovery to boot up from the fotakernel partition (recovery) but TWRP and even the stock recovery refuse to boot. :mad:
    Anyway to cut a very long story short I am releasing this TWRP which is 95% functional and needs to be flashed to the boot partition

    Working Method/flow:
    Make sure you have a Back up of your working Boot.img "You know the one you used to root the device in the first place".
    For ease of use You can use this app by XDA dev @wanam (Thread here) app on playstore Here You can also use this app to flash the v5-twrp-l1.img to your "boot" partition or you can go old skool and use dd (Via adb shell) or use the Magisk patched_boot.img you first rooted with..
    Make SURE to Copy this working boot.img to your External SDcard.
    When you require TWRP flash the downloaded TWRP to your boot partition using Fastboot (cmd's below) or the above app then reboot
    You will now boot to TWRP.
    Do what you need to do in TWRP.
    IMPORTANT:
    Remember Just before you leave TWRP go to INSTALL choose your external SDCard choose "image" from the install screen find your boot.img and select "boot" with the little radio button.
    Once flashed choose reboot system.
    Now when you boot you will be back to norma
    l :good:

    Things Not Working:
    1. You will not be able to mount encrypted data therefore you would need to FORMAT your data and then leave it unencrypted.
    SuperSU and Magisk will disable forceencrypt for you.
    2. Does not Charge or show battery % so I don't know if it's actually charging. (Probably Qnovo battery module used by sony)

    It will probably work on all variants but I am not able to test that.
    It's use is for backups and restores wipes and installs for which it seems fully functional. :good:

    Install Instructios.
    Boot to the bootloader then
    Code:
    fastboot flash boot v5-twrp-l1.img

    Then
    Code:
    fastboot reboot

    Download HERE v5-twrp-l1.img
    2
    Hi @bigrammy!! I have it booting ok, obviously encryption is not working! I was able to do a backup but couldn't boot back into system, just keeps going back to twrp! I had to flashi the patched 3313 boot image from another post to get back into system! Good work though! Tested on g3311
    1
    Hi @bigrammy!! I have it booting ok, obviously encryption is not working! I was able to do a backup but couldn't boot back into system, just keeps going back to twrp! I had to flashi the patched 3313 boot image from another post to get back into system! Good work though! Tested on g3311
    :laugh:
    Ok maybe I should update the OP as it seems it's not really clear enough that obviously the boot is replaced by the recovery. :eek:

    Method would be make sure you have a Back up your working Boot.img You know the one you used to root the device in the first place.
    You can also use dd (Via adb shell) or a app from the playstore or better still use the Magisk patched_boot.img .
    Copy this working boot.img to your External SDcard.
    When required flash the recovery to your boot partition using Fastboot then reboot
    You will now boot to TWRP.
    Do what you need to do in TWRP.
    Then just before you leave TWRP go to INSTALL choose your external SDCard choose "image" from the install screen find your boot.img and select "boot" with the little radio button.
    Once flashed choose reboot system.
    Now when you boot you will be back to normal :good:

    OP Updated let me know if it's clearer to understand now.
    Thanks for reporting back. :good:
    1
    I'm unable to get into stock recovery too!
    1
    I tested twrp 2 times
    Worked every time.
    I've tried to install superSu.zip via twrp, looked all right, rebooted the phone and now it's in bootloop for over 2 hours...
    It's getting hotter... i ca't turn it off
    The only thing that works is keeping Power and Volume Up pressed and it looks restarting...
    What can i do to revive it safely?

    Mate you really need to be careful unless you really know what your doing :eek:
    You will likely brick the phone if you continue to blindly mess with re-partitioning and the like.
    If you were in TWRP which was flashed to the boot partition as directed in the OP then flashing the supersu.zip will simply modify your TWRP.img not your boot.img since TWRP is living in the boot partition at the time you run the .zip hence your looping.
    This device has bootloader issues since it will not allow the booting of another partition except "boot" recovery, fotakernel, rdimage, all tested all failed to boot the TWRP recovery and stock recovery.
    There is another method used by some sony devices but this will need to be heavily modified for this MediaTek SoC and will require a lot of study and script re-writes.

    Spending all this time on a device that's pretty much obsolete before it was launched since it's not planned to receive oreo and Sony 90% locked down the bootloader is kinda futile so use the phone for what it is then throw it in the bin when done in a year or two.