Thanks so much for your reply. Although I'll say it left me surprised. After researching the last couple of days ,even here on this site I was lead to believe that an unlocked bootloader was absolutely essential to flash a custom rom not based on stock firmware much less upgrade to a later version of android. However I am more than willing to take your word for it seeing that you are one of the modders for the Rom I would like to try "LoS 15 Oreo". I fully understand that the risk is totally mine. A further question, I currently run andriod 5.1.1 with dual custom recovery twrp and cwm, how do I update my current twrp version 2 . Something to the latest recommended. Do I flash the new zip with my current twrp recovery ?
Well, at first I have to apologize for the "optimistic" answer. There's one "small" detail I forgot about. It's the boot.img signature which may cause problems. However I don't know if Sony was enforcing the verified boot / signature checking even with android L. This would mean the bootloader checks, if the boot.img was signed with Sony keys - if not: it'll enter a bootloop (or doesn't turn on at all). Unlocking the bootloader then allows you to also boot unsigned images.
But I didn't tried booting custom images with locked BL on my own
So I guess it's a try and error thing here... Most likely you'll end up unsuccessfully
However you can still give it a try. Can you post the output of
when you're in recovery? (TWRP has an inbuilt terminal, or you can use adb shell).
At first you need an independent recovery - which means it can boot up without needing the stock boot.img. That's your current configuration: original sony kernel boots up and you decide which ramdisk it should load by pressing vol+/-.
That's why it's actually no real recovery. If something in boot.img breaks you won't be able to reach recovery anymore.
So I think of following steps now:
- Make sure you've installed the latest sony firmware
- install the bootloader patch from @munjeni (he also states you need a unlockes BL, so it's not really promising
Maybe he can jump in and give further clarification here?)
- install TWRP (e.g. this) with dd like this (change your inputfile accordingly):
Code:
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
- if you strike it lucky you'll be able to boot into the new real recovery with: poweroff device; hold VOL down and power until vibration; release power but keep holding VOL down until TWRP screen comes up (needs ~10 seconds or so)
To be honest: I lost my confidence a bit. Maybe buying a device with unlockable BL is the way to go. I suppose the devices sold with contracts by big carriers like Vodafone or Telekom (however they are called in your country) DON'T have unlockable BL's. So devices without a simlock may have a good chance to be unlockable. However - that's just a guess.