yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] Zviratko:
There's not much you can do about SElinux - it's as secure as it gets, but only as secure as the rules from Sony. But I expect Sony to be able to update those (like Samsung does) over OTA without asking anyone so whatever hole we find will get closed eventually.

I think there could be one (albeit a bit fragile) way to get around it - don't boot the stock kernel _ever_.

The full process would go as follows:

1) have a 4.4 KK system installed

2) install the recovery, reboot into recovery (this works until you boot a LP kernel)

3) install 5.0.1 LP and set it to always reboot into a second recovery kernel (5.0.1 with SElinux disabled or mangled to suit us) - I'm not sure if this is possible but I think even the original bootloader and kernel support automatic recovery boot for updates - this could work?

4) and of course automatically reboot to this secondary recovery kernel on every boot (reset the recovery flag to never boot the new kernel)

This should work, but once you boot the original kernel even once, you have to redo it all - possibly one could boot another kernel from fastboot to temporarily disable SElinux and restore the functionality, so it would work like a tethered jailbreak on an iPhone.

Could this work?

Maybe we could retain the 4.4 kernel instead of the 5.0.1 one, and hook to it in case it gets booted instead of the recovery kernel (just a quick check right after init - if it's 4.4 we reboot "recovery kernel", if it's our recovery kernel we keep going).
[Sony Cross-Device General] kurosawa79:
Ok so it looks like at least for the time being we will not be able to get recovery on UB LP. So in the meantime how to I get back the stock recovery? Is there a recovery img I can flash from the LP rom zip?
[Sony Cross-Device General] ondrejvaroscak:
Don't think so. I go downgrade to ".93" with Flashtool, root using giefroot and install NUT's Dual Recovery, then upgrade to pre-rooted ".77" or in my case modified prerooted ".79".
[Sony Cross-Device General] Desperanto86:
no...later will record video...normal reboot without any wipes
[Sony Cross-Device General] [NUT]:
Unfortunately this implies a UB device. The only other location for the kernel would be the FOTA Kernel partition, which won't allow you to boot if you flash anything else then a signed kernel to it. It also does not respond to the reboot-recovery command. What ever the command to boot the FOTA kernel is, I have not been able to find it, nobody did so far.

-- EDIT --

Oh, yes, the stock kernel for KK (don't know for LP yet) does not allow kexec booting, otherwise that would have been an option, but that also requires UB and Multiboot TWRP.
[Sony Cross-Device General] pricey2009:
Doesnt sound very promising at present but I am sure you guys will crack it eventually :)
[Sony Cross-Device General] churchrickshaw:
[MENTION=4904057][NUT][/MENTION]

Does the LG G3 BUMP'd recoveries provide any insight for your project?

http://xdaforums.com/lg-g3/orig-development/bump-unlock-lg-g3-twrp-d852-d852g-f400-t2900614
[Sony Cross-Device General] Desperanto86:
As I promised: video proof no bootloops http://youtu.be/GC9MpIOx-yQ [YOUTUBE] http://youtu.be/GC9MpIOx-yQ[/YOUTUBE]
[Sony Cross-Device General] mo3553:
It's your bootloader locked or unlocked?
[Sony Cross-Device General] zocker7:
nice! how can i do that on my z3?
[Sony Cross-Device General] Sun_:
It's possible if you have an unlocked bootloader.

Here the explanation from [MENTION=410007]Nut[/MENTION]
[Sony Cross-Device General] ptmaniac:
As far as i know BUMP involved signing the recovery/kernel/rom with genuine LG keys, which will make them run on any stock device because they are signed like genuine lg software.

LG has a history of leaking and not securing properly their keys (i remember my p920 bootloader was unlocked because lg private keys were released by mistake together with the source code lol check here: http://xdaforums.com/showthread.php?p=32625058#post32625058 ) but i doubt sony would make a mistake like this ever...
[Sony Cross-Device General] churchrickshaw:
That sucks. I guess like [MENTION=4904057][NUT][/MENTION] said, he's probably already tried everything... I can't think of any other device that seems to be as picky as this one.

I hate how carriers had locked the bootloader, making the mess that we're in now.
[Sony Cross-Device General] zocker7:
hmm okay is there any hope for locked BL?`i dont want lose OTA updates....
[Sony Cross-Device General] ondrejvaroscak:
People still don't get it. You have the choice. Either you want excellent hardware to play with custom ROMs - so you can unlock bootloader and go. Or you want all Sony proprietary bells and whistles. Then you stay on stock. Sony protects their valued and valuable development. I really don't see them releasing their closed code easy.

And I can guess in near future it will all get much worse. With powerful enough chips the executable code will be encrypted. No just simple DRM keys check.
[Sony Cross-Device General] churchrickshaw:
hey. i totally get it. that's why i said CARRIER. i cannot unlock my bootloader even if i wanted to lose all the bells and whistles.
[Sony Cross-Device General] ondrejvaroscak:
Well you could have bought unlockable one... People buy carrier subsidized products and they got surprised but certain limits. I agree that it sucks, but you could have known it before paying the price. If they hidden that then I would require contract void.
[Sony Cross-Device General] churchrickshaw:
lol whatever. you win. you may have the last word.
[Sony Cross-Device General] spider623:
Hahaha I have, it's a pain to do, you need the stock boot.img, make it flashable zip, fastboot the cm12 kernel, go to recovery, flash the stock kernel and super su, done
[Sony Cross-Device General] serajr:
Wow... xposed working like a charm there, congrats!!

You can't imagine how frustrating it is not to have it working over here, I didn't had that luck, yet!!! \m/
[Sony Cross-Device General] jiujitiancai:
How to Flash cm12 kernel if I have lock bootloader. I can't mount system r/w too.
[Sony Cross-Device General] ondrejvaroscak:
Simply. You can't flash non-stock kernel without unlocking.
[Sony Cross-Device General] CygnusHyoga:
Sorry for stupid question :D

Any plan to port for Legacy Xperia like 2011 models?

Thanks in advance :good:
[Sony Cross-Device General] ondrejvaroscak:
Honestly..

I don't think so but better ask at developers for these devices. I have old Xperia Arc S but don't see much future for it
[Sony Cross-Device General] mic-1:
is it possible?

Device & Setting

D6603 (23.1.A.0.690) LB

pre rooted Baltik incl. Xz Dual...

Can i extract the Kernel from 4.4.4 and

Flash it With rashr or flashify to get into recovery mode to restore

My 4.4.4 twrp Backup or must i go the long way " flashtool downgrade to... 93 -giefroot -xzdual... -Flash pre rooted.. 77 with xzdual..."
[Sony Cross-Device General] esps:
W h a t ? ? ?
[Sony Cross-Device General] cschmitt:
You'll need to take the long route.
[Sony Cross-Device General] zohaib0001:
[MENTION=3227013]Desperanto86[/MENTION]

Please tell us how you do this ?

How to get working xposed without boatloop
[Sony Cross-Device General] Desperanto86:
http://xdaforums.com/z3/development/root-stock-flashable-kernel-23-1-0-690-t3061678
[Sony Cross-Device General] armadiljo:
I have issues installing this recovery. Can anyone help or guide me into the right direction?

* I tried to install Z1C-lockeddualrecovery2.8.3-RELEASE.installer

* System: Sony Xperia Z1 Compact (D5503)

OS: PAC amami 5.0.2 on kernel 3.4.0-cm-g0d81916 (= LP Beta-1 nightly) - same issue with different versions of CyanogenMod

* SuperSU v2.46

I started with a clean system. Wiped everything, even did a full erase of SD-card before moving backupfiles back to SD card.

What works? Installing DualRecovery on stock ROM 14.4.A.0.108 + immediately flash DualRecovery + Root on unlocked bootloader with flashtool 32 bit.

When I flash PAC lollipop or CM lollipop + DualRecovery, I can't boot into Philz Recovery (or TWRP). It goes straight to Cyanogen Recovery.

-->> after this, I can't find a way to reinstall/flash DualRecovery.

-->> To make sure I have the correct drivers installed on my system, I used adb-setup-1.4.2 Installing with DualRecovery installer leaves me with this:

-->> At this point, according to flashtool

Does anyone have an idea what I'm doing wrong and how I can solve this?

I'm fine with all possible backups, so in the end it's ok if I have to reinstall my pc too.
[Sony Cross-Device General] yoh_anim:
Your problem is the system.

This recovery is for Stock Sony kernels only and you are running CM. It's written in OP.
[Sony Cross-Device General] armadiljo:
And what kind of solution can you advice?

I already tried to work from stock ROM, and I run into the same errors (adb server is out of date. killing...).

After a format c: and making sure I only install the latest versions I can find (android sdk + possible drivers), I still have that message.

Next to JUST stock rom, there's just no way I could make the phone to flash anything. As soon as it looks like I can install DualRevory, I still get the same errors so my phone only reboots in CM Recovery. And in that recovery, I just can't flash anything else except PAC custom ROM.

So IN GENERAL, is there any way to have a combination of lollipop AND dualrecovery?
[Sony Cross-Device General] yoh_anim:
For the moment, [NUT] has found no way do make this dualrecovery work with LockedBootloader and Lolipop.

Only way found as of now is having already unlocked Bootloader and use a kernel having the recovery already in it like said with lots of details and explanations here
[Sony Cross-Device General] pricey2009:
The only way to use recovery while on lollipop is to flash KK kernel with flashtool then booting into it that way..

You have to flash back lollipop kernel before rebooting of course (unless you have restored KK)
[Sony Cross-Device General] davidbar93:
Can I do it with Locked BL?
[Sony Cross-Device General] ondrejvaroscak:
No
[Sony Cross-Device General] pricey2009:
[MENTION=4488286]davidbar93[/MENTION]

Actually yes you can do it with locked bootloader as long as you use Sony signed ftf's
[Sony Cross-Device General] cXpr:
Boot into dual recovery in LB lollipop

Yes. I can confirm that. I flashed the 4.4.4 kernel from a Sony signed ftf with flashtool to my locked lollipop z3. Then my z3 could boot into the dual recovery. Just deselect all the wipes and exclude every components in the ftf except kernel in flashtool. Still, you need to flash back the lollipop kernel to boot into system.

I used this method to update rooted Baltic lollipop to rooted US lollipop.
[Sony Cross-Device General] ondrejvaroscak:
Clever. But works only for recovery though..
[Sony Cross-Device General] mercuriox85:
Whit this metod you have dual recovery on lollipop?
[Sony Cross-Device General] [NUT]:
This way does work, but be careful not to boot to the LP rom when on the KK kernel, this might cause bootloops you might not be able to recover from...
[Sony Cross-Device General] ondrejvaroscak:
Desperate people are capable of desperate actions :D
[Sony Cross-Device General] Bird40:
When using this way I have changed the MAC address Wi-Fi

Why?
[Sony Cross-Device General] spyvsspy:
so that's it ?

z3 owners have no chance getting recovery on LL ?

without exposed this phone aint worth **** :(
[Sony Cross-Device General] mercuriox85:
You can post all the steps to have dual recovery on lollipop? Please...
[Sony Cross-Device General] ciccio80:
THIS PROCEDURE IS FOR THAT PEOPLE WHO HAVE MODIFIED SYSTEM FILE AND PHONE GO IN BOOTLOOP....

NOT USE FOR HAVE DUAL RECOVERY ON LOLLIPOP - WAIT NUT.....

requirements:

1) Installed Flashtool on PC;

2) Installed Firmware Prerooted Lollipop with DualRecovery (even if the recovery does not work) on Z3;

3) Original Sony firmware FtF of 4.4.4;

4) Original Firmware FtF Sony of 5.0.2;

Let's start:

1) copy the the firm of 4.4.4 in folder Flashtool / firmware and start Flashtool;

2) press the flash button -> select FlashMode --> select firmware Kitkat;

3) at this point, deselect everything in wipe square, select all in "exclude" square except the "Kernel" and click Flash;

4) put the cell in FlashMode (from off attach it to the PC by holding the Vol - button);

5) after flashing the phone, obviously ifrestart phone go in bootloop (does not recognize the Kernel because different), so we must turn off phone holding the power button and vol + simultaneously;

6) go to recovery (turn on your cell when you see the LEDs light up, press vol + several times);

7) At this point you are in TWRP Recovery;

8) flash firmware prerooted;

9) do a wipe cache / Dalvik;

10) Do not reboot but turn off the cell;

11) flashtool and reopen the folder firmware, as point 1, put the firmware FtF Original Lollipop in flashtool firmware directory;

12) press the flash button -> select FlashMode -> select firmware Lollipop;

13) at this point, deselect everything in wipe square, select all in "exclude" square except the "Kernel" and click Flash;

14) put the cell in FlashMode (from off attach it to the PC by holding the Vol button - hold);

15) reboot.

By Ciccio80
[Sony Cross-Device General] Bird40:
For my Z2 Tablet

1. Turn off the tablet.

2. Use FlashTool to flash stock kernel from 23.0.1.A.0.167: remove all the marks in the Wipe, and Section Exclude put anywhere except KERNEL.

3. Go to Recovery and perform the necessary actions (eg, Backup / Recovery).

4. Do not restart the tablet, and return to the main menu and select Reboot -> PowerOff.

5. Use FlashTool to flash stock kernel from 23.1.A.0.690: to remove all the marks in the Wipe, and section Exclude put everywhere except KERNEL.

6. Load the tablet.
[Sony Cross-Device General] mo3553:
Thanks for this step by step guide. But will get xposed to work in lollipop with this recovery method? I've already got a pre-rooted lollipop and the only thing missing is actually Xposed? Thanks in advance.
[Sony Cross-Device General] pricey2009:
No, xposed does not work yet and it is not because the recovery isnt working, it is because xposed for lollipop is NOT finished yet.. You get bootloops and other issues
[Sony Cross-Device General] mo3553:
Thanks for the info. In my opinion it's pointless to get recovery when xposed doesn't work.
[Sony Cross-Device General] ondrejvaroscak:
With above method you DONT get recovery with Lollipop! You get possibility to go to recovery without need to downgrade. You can flash what you need but BEFORE booting Lollipop again you MUST flash back Lollipop kernel! Then you don't have recovery again...
[Sony Cross-Device General] x_one:
Bravo! You have figured out that! ;)
[Sony Cross-Device General] ondrejvaroscak:
Repeating is mother of wisdom...and many here think that they could have LP and recovery that way...
[Sony Cross-Device General] Pandemic:
Please people stop whinning about recovery for Lollipop

it is still aint working but we cant get further if we post replies if it aint still work on Locked Bootloaders, i wait also on it but i have patients, i know bro [MENTION=4904057][NUT][/MENTION] is working on it to get it work for us but it is hard todo due the security etc.

please have patients my friends :D

Peace !
[Sony Cross-Device General] Ludwig151:
Just a question...

If I understand, it's impossible to use the recovery with Lollipop if the bootloader is locked

Si, is it possible to have an application to do :

- Backup the DRM

- Unlock the bootloader

- Restore the DRM

-----> so I can use the recovery <-----

And after, when I reboot

- Relock the Bootloader

or something like that...
[Sony Cross-Device General] ondrejvaroscak:
Guys stop speculating about things you have no clue about. Bootloader is relocked as soon as you restore TA partition (DRM). So no. Your scenario is not possible.

If you want recovery stick with Kitkat or unlock bootloader. Or temporarily flash KK kernel with recovery but reflash LP kernel before booting Lp otherwise you are f****d.
[Sony Cross-Device General] CAL7:
Well, this is progress. A convoluted way, but a way nonetheless, to get into Recovery. Will a nandroid backup in this Recovery be useful? I guess I'd want to exclude the kernel, right? But if I foobar'd my phone, I could restore from that backup, just being careful to flash the .690 kernel?
[Sony Cross-Device General] demon2112:
Guys recovery is there!!!! Only we cant boot in to it!

Download rom manager and check current recovery and in some sub menu you can see that twrp is also installed
[Sony Cross-Device General] vayu:
+1 No recovery after 1st boot
[Sony Cross-Device General] xNAPx:
Lol, know that but as you said u can't get access to it after the first boot
[Sony Cross-Device General] atamig:
when the LED is flashing green I can press vol+ or vol- but I have no access to cwm or twrp

Edit: I have installed the rom manager and I can see the installed 6.0.3.2 CWM but I cannot access this
[Sony Cross-Device General] xNAPx:
Everyone here is experiencing the same issue, any solution found?
[Sony Cross-Device General] demon2112:
Try sending logs to NUT or post them here he wil sort it out,

I cant send it my self
[Sony Cross-Device General] xNAPx:
I don't know how, sorry :(
[Sony Cross-Device General] demon2112:
Read op please
[Sony Cross-Device General] demon2112:
Haha,nee

Read the part where the log files are located,extract them of your phone on to your computer (copy/paste) and post them here,

I would do it myself butt my laptop is acting up like a teenager on a hormontrip!! Hahaha
[Sony Cross-Device General] xNAPx:
look better
[Sony Cross-Device General] [NUT]:
Good news! I've finally found why the keycheck sometimes works and many of you have issues!

In the process of fixing it now!

:victory:
[Sony Cross-Device General] [NUT]:
BETA Change log:

BETA releases will only appear on http://www.fun-industries.nl/xda/ and as soon as enough people report it to be working fine will it move in to the OP as a RELEASE version.

Version 2.5:

exFAT Support added, it will load the kernel modules prior to mounting the SDCard1.

Simplified keychecking and in the process made it work on DooMLoRD's leaked 4.2.2 release: Needs testing!

Fixed the simplified keychecking, the linux/android way of sorting files when trying to find files... it's not natural!

Should work OK now for the ZL 4.2.2 ROM's: Needs testing!

Should now also work on the Tablet Z: Needs testing!

Fixed an issue with XZDualRecovery's listeners not getting killed. This was possibly causing a problem with the NFC receiver on some models.

Any and all keychecking issues in 2.5 BETA have been solved now.

Re-download your preferred package and install it again. It should now also not break when you leave your USB cable attached!
[Sony Cross-Device General] mohdsubaie:
Stock 4.2.2 rooted LB

Can confirm that the key check is now working rebooted into twrp fine after installing the beta version.
[Sony Cross-Device General] xNAPx:
Now it works just fine :good: unlocked bootloader
[Sony Cross-Device General] lyndonguti:
hi guys..

i know twrp cant read sdcard(internal) it just contain folder but in my previous twrp it can read everything....now that i tried to back to the single recovery (just twrp2.4) i cant read the sdcard either....is there any work around for this sdcard problem rightnow?

sorry for not searching my tapatalk strangely didnt show me the search button tnx again guys
[Sony Cross-Device General] [NUT]:
No, it can... but not always... :confused:

No solution at the moment. Sorry :(
[Sony Cross-Device General] kennethso168:
hi tried downloading the new 2.5 beta several times but the SHA1 checksum still doesn't match with the one listed on your site. Maybe you forget to change the checksum after uploading the new version?
[Sony Cross-Device General] vayu:
+1 Works now!!!
[Sony Cross-Device General] Mr.TheND:
2.5_beta is working fine when I'm using 4.1.2 ROM but when I update to 4.2.2, I can't mount sdcard in TWRP. It's always said: E:\ Can't mount /external_sd :( (my sdCard i exFAT)

Anyone help me to solve it. Thanks
[Sony Cross-Device General] Ludwig151:
I don't speculate...I imagine...other possibilities...

Another scenario :

- Backup the DRM

- Unlock the bootloader

-----> so I can use the recovery <-----

And after reboot

- Restore the DRM (Bootloader is automatically relocked)

Imaginable ? ;)
[Sony Cross-Device General] ondrejvaroscak:
You can do without unlocking. Flash KK kernel with recovery, use recovery, flash LP kernel and boot LP.

---------- Post added at 15:59 ---------- Previous post was at 15:58 ----------

Anyway you can't do it with "application"...
[Sony Cross-Device General] Bäcker:
why?

there is alredy a method not involving tempering with TA, making it preferable right there.

Since unlock always goes together with wipe there is no point anyways.

Only better solution will be working recovery for lollipop, which will eventually come.
[Sony Cross-Device General] ondrejvaroscak:
Exactly..
[Sony Cross-Device General] Ludwig151:
ok, I forget my idea....wipe wins !

Anybody to create an application to flash kk kernel, reboot to recovery, flash lp kernel and reboot ?
[Sony Cross-Device General] ondrejvaroscak:
What it would be good for? You flash to KK kernel, reboot to recovery to flash LP kernel to be where you started...app to flash KK kernel exists and it's called Flashtool. LP kernel you can flash in recovery itself...
[Sony Cross-Device General] belloni:
Does this work for lollipop it's not installing on my z2 :(
[Sony Cross-Device General] pricey2009:
Have you even read any of this thread yet?

Geez..

:banghead:
[Sony Cross-Device General] belloni:
Unfortunately I don't have time to read 380 pages.
[Sony Cross-Device General] tribemac:
Well that's what the search function is for.... And No it doesn't work.
[Sony Cross-Device General] Pandemic:
Well again for a million time: NO !

It aint work on any Xperia device except for the Xperia's with unlocked bootloader that use a kernel for LP with recovery inside it, it aint work on Xperia's with a locked bootloader so far and bro [MENTION=4904057][NUT][/MENTION] still work on it for both bootloaders, Now you know the answer so please all people dont be annoying and ask 1000 times the same of this work on locked bl with Lollipop, the answer is still no !
[Sony Cross-Device General] ondrejvaroscak:
You have no time to read but expect others to have time to answer thousand times the same questions. Guys of you don't have simple abilities as to search and read them stock to stock, avoid root and be happy that you have enough brain to at least can use smartphone.
[Sony Cross-Device General] belloni:
So to clarify, it doesn't work?
[Sony Cross-Device General] ondrejvaroscak:
NO.
[Sony Cross-Device General] belloni:
You're 100% sure?
[Sony Cross-Device General] juanpirulo:
I know this probably its a stupid question :D:D:D but could be changing selinux policy to permissive in kk and afterwards install a prerooted lollipop a solution?? to install the dualrecovery? . cheers
[Sony Cross-Device General] ondrejvaroscak:
No ;) if the world was that easy :D
[Sony Cross-Device General] juanpirulo:
Yep, but you know sometimes we are looking for the difficult answers, and we dont realised that the solution is much easier. cheers
[Sony Cross-Device General] [NUT]:
True, that's why I attempted to do both... But until selinux properties have been set up and configured properly it won't budge. The problem is that I can't make it load a different ruleset either :(
[Sony Cross-Device General] Pandemic:
Stop spamming dude and yes !!

Sent From My Z2 On LP 5.0.2 Full Debloated !
[Sony Cross-Device General] MaSsAcRe1992:
Do you also have the problem, that stamina isnt working on 5.0.2? drains my batterie in idle like hell, 1 hour is good 5 %
[Sony Cross-Device General] ondrejvaroscak:
No. I have about two days decent usage with wifi and data on no Stamina no greenify.

---------- Post added at 00:26 ---------- Previous post was at 00:24 ----------

In this case it is whole nonsense. Set KK permissive and expect it to stay working after flashing LP. You don't mean it seriously...