yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Android Development] okij:
Does or will this new system-less root method allow it to have root on Marshmallow with a locked bootloader, or won't this be possible because of then still missing custom recovery?

I'm asking because I'm still on Lollipop (although eagerly reading this thread an the M Concept threads) and I'm hoping that there will be pre-rooted M firmwares, just like it was possible on KK and L.
[Xperia Z3 Android Development] shoey63:
You can try rooting with Chainfires regular ziphttp://download.chainfire.eu/supersu

It should work, but /system will obviously become modified.
[Xperia Z3 Android Development] shoey63:
You can't have root, systemless or otherwise on MM concept rom without a custom kernel. And you can't have custom kernel on a locked bootloader. This method is mainly aimed at getting future OTA 's without having to reflash /system.
[Xperia Z3 Android Development] shoey63:
The kernel (zImage) is pure stock (no kernel source either). Only the ramdisk has been modified to allow root and twrp recovery. So you are stuck with default values unless a script can be made for su.d to change them. Sorry. I don't have the time or the inclination to look into it. I'm not bothered by it.
[Xperia Z3 Android Development] shoey63:
A new update is coming through. 2153 apparently. For those using the "systemless root" method, and haven't modified /system with xposed or whatever, flash This in recovery to get stock 2134 kernel and recovery back. Then you should be good to get the update.

Edit: Don't be alarmed if you get a notification on reboot saying something like "your device is corrupted and may not work properly". It WILL reboot, and if the update is available, it WILL install. Then the message will go away after the update. I will make a new kernel as soon as I get the update on my device.
[Xperia Z3 Android Development] gyuuuu:
bootloader unlock for z3c kernel please
[Xperia Z3 Android Development] shoey63:
When someone from z3c forums provides a boot.img, I will do it. (I only have z3)
[Xperia Z3 Android Development] master':
Thanks [MENTION=4675598]shoey63[/MENTION], but again desperately waiting z3c stock and modified kernel :)
[Xperia Z3 Android Development] deepongi:
unmodified boot img from 2153:

https://www.dropbox.com/s/uwjq5rch51ynupn/boot_2153.tar.gz?dl=0

lets [MENTION=4675598]shoey63[/MENTION] do its magic.
[Xperia Z3 Android Development] master':
How to extract unmodified boot img? May be i will for z3c...

D5803 cihazımdan Tapatalk kullanılarak gönderildi
[Xperia Z3 Android Development] deepongi:
is on this thread the procedure

http://xdaforums.com/showthread.php?p=63577871&highlight=dd+if=#post63577871
[Xperia Z3 Android Development] FcukBloat:
[MENTION=4815490]jenkins-84[/MENTION] is now part of official beta testers so I think he'll do that for z3c when he will update his phone ;) so probably no need anymore to bother shoey for this at least not for z3c that he doesn't own :o
[Xperia Z3 Android Development] master':
I have ub and 2134, i need z3c stock kernel.zip for update.

D5803 cihazımdan Tapatalk kullanılarak gönderildi
[Xperia Z3 Android Development] 2010matej:
I get update 2153, cant wait for another kernel update, because of root and xposed, i know maybe you are busy or something, take time. ;):good:
[Xperia Z3 Android Development] shoey63:
It's in the OP now

Edit: Sorry forgot you are on z3c. Don't have it. Ask in your forum.
[Xperia Z3 Android Development] Black_Eyes:
Waiting for 2153 Update Kernel :D
[Xperia Z3 Android Development] shoey63:
New kernels updated to 2153

Z3

Z3 Compact

Thanks to [MENTION=1077833]infected_[/MENTION] and [MENTION=4344080]AnGrY sCoTsMaN[/MENTION] for the stock boot.img's
[Xperia Z3 Android Development] lamducthien:
Have kernel but havent seen ota update notification
[Xperia Z3 Android Development] shoey63:
Don't flash the kernel until you have received the update. OTA updates require stock kernel, system and recovery.
[Xperia Z3 Android Development] ldarbs:
Can someone confirm if this will work to get back to stock to receive ota? I'm running 2099:

1) flash in flashtool just system and kernel (2099 ftf)

2) go to updates and check for updates

3) update three times

4) fastboot flash boot boot.img (the modified 2153 build)

5) flash systemless

6) flash xposed

I had to delete the FOTA updater because it was making my phone reboot to try an install the update (but it couldn't because I don't have the stock kernel). Will this work without wiping anything, or is there an easier way to do this? Thanks.
[Xperia Z3 Android Development] shoey63:
Do it this way:-

1) Flash in flashtool 9.18.6 everything with no wipes. (2099 ftf) This will ensure stock recovery is flashed - needed for OTA updates.

2) Update till 2153

3) Flash 2153 Systemless kernel

4) Boot to TWRP and backup /system (before you modify it with xposed - handy for when next update comes around)

4) Flash SuperSu xdaforums.com/attachment.php?attachmentid=3523851&d=1446166283 and reboot.

5) Boot back into TWRP and flash xposed
[Xperia Z3 Android Development] ldarbs:
I have flashtool 9.19.10. Should I downgrade, or will it work?
[Xperia Z3 Android Development] shoey63:
I think that is ok as well
[Xperia Z3 Android Development] ldarbs:
I'm getting ERROR - Driver need to be installed... I ran the tool. Should I flash it anyway?

https://imgur.com/DA0xk4Y
[Xperia Z3 Android Development] shoey63:
Install them as per the message.

Edit: I use Linux and 9.18.6 - no problems. Maybe downgrade to 9.18.6 and disable driver verification if on Windows. Sorry, can't help any further with flashtool issues.
[Xperia Z3 Android Development] ldarbs:
I ran the tool in the Flashtool folder, but I still go the message. Should I just use 9.18.6? Still same error.

No worries. Thanks for your help

EDIT: I got it to recognise by revoking USB debugging permissions, and then plugging it back into my computer.
[Xperia Z3 Android Development] shoey63:
Glad you got it working. Good luck:thumbup:
[Xperia Z3 Android Development] Black_Eyes:
Can i flash SuperSU-BETA-2.52, if i don't want systemless root? Will it work with the current boot.img?
[Xperia Z3 Android Development] shoey63:
Yep 252 for normal, 256 for systemless. Both work on my boot.img
[Xperia Z3 Android Development] shoey63:
2157 custom kernel Here

Flash in Fastboot mode.

For "systemless" root flash SuperSU 2.56 In recovery.

For "regular" root flash SuperSU 2.52 in recovery.
[Xperia Z3 Android Development] :
Is there a normal kernel I can get for 2153 so I can OTA to 2157?
[Xperia Z3 Android Development] JaseLegenda:
page 20 post before the last
[Xperia Z3 Android Development] lamducthien:
Can make z3c ver 2157
[Xperia Z3 Android Development] shoey63:
Later today
[Xperia Z3 Android Development] :
That's a .tar file. Not sure how I can flash it on my device. Any ideas?
[Xperia Z3 Android Development] JaseLegenda:
Extract the file and flash in fastboot
[Xperia Z3 Android Development] shoey63:
2157 for z3c guys https://www.androidfilehost.com/?fid=24269982087004932
[Xperia Z3 Android Development] Bonehead Fraggle:
Hmm.. I can't update. I don't think I've made any changes to /system. Or maybe my Ad free makes changes?

Anyone that would like to share a TWRP backup of /system from a clean 2153?

I'd really like a quick fix instead of going back to 2099 with endless otas and cache rebuilds

.

Thanks in advance!
[Xperia Z3 Android Development] AnGrY sCoTsMaN:
Cheers, working fine[emoji106]
[Xperia Z3 Android Development] Erikdc:
anyone who has stock kernel and recovery for Z3C on update 2134? (or any other way I can do it myself without losing my data and settings?)

Can't update with the custom kernel...

Thanks already!
[Xperia Z3 Android Development] shoey63:
It's your lucky day:)

[MENTION=4344080]AnGrY sCoTsMaN[/MENTION] has provided a 2157 TWRP backup of /system and /kernel for your device;)

Put This it into your TWRP backup folder (I hope he doesn't mind me hotlinking his file), restore /system and fastboot the 2157 Z3C Rootable boot.img
[Xperia Z3 Android Development] Erikdc:
I'm afraid my problem runs a little deeper...

I use my sd card as internal storage, but somehow, TWRP doesn't load it (yes, I tried mounting it, but it just doesn't do that)

therefore, TWRP, while in recovery, says there is a folder "TWRP" in "sdcard", where I suppose the backup should be in order to restore it.

however, while it is on, I can't find that folder in my sdcard, since it then takes the real sdcard.

I tried creating the folder while it was on and then adding the file, I tried searching my whole gsm for "TWRP", still nothing.

so far I can flash zips by sideloading them, but I don't think I can restore my system and kernel from that backup by sideloading?

so the most easy solution for me would be if someone could provide a flashable zip of the kernel and system, so I can sideload it, else I'm not sure I can do this...
[Xperia Z3 Android Development] Erikdc:
I already worked around my own problem, by flashing the kernel and system from the rom I had in flashtool (2058), without wiping anything, and then starting to update again (2058->2085->2099->2134->2153->2157)

with this new rootable boot.img, is it possible to update? or will I have to do this all over again when the next update arrives?
[Xperia Z3 Android Development] shoey63:
I will post the stock 2157 boot.img to flash back to for Z3 and z3c for when the next update comes around.

Note: It will require an unmodified system or the phone won't boot. That's why I recommend systemless root.
[Xperia Z3 Android Development] AnGrY sCoTsMaN:
[MENTION=4675598]shoey63[/MENTION] just got new update for z3c...i will pull later tonight for yall
[Xperia Z3 Android Development] AnGrY sCoTsMaN:
z3c 2178 ota pulled https://www.androidfilehost.com/?fid=24269982087010244
[Xperia Z3 Android Development] lamducthien:
Can I flash this zip via twrp recovery?
[Xperia Z3 Android Development] shoey63:
It's a twrp backup of Kernel and system, not a flashable zip.
[Xperia Z3 Android Development] lamducthien:
So I restore it with 2157 recovery ?
[Xperia Z3 Android Development] JaseLegenda:
2157 kernel boots just fine with 2178 build
[Xperia Z3 Android Development] aliw32619:
I got this and using systemless root
[Xperia Z3 Android Development] shoey63:
Yep, and you will continue to get that until you go back to stock kernel. I will post a zip for 2157 stock boot.img later.
[Xperia Z3 Android Development] lamducthien:
Wait for 2178 kernel z3c
[Xperia Z3 Android Development] domicq:
Sorry for a noob question ? so can I flash kernel for systemless root, change dpi, or change something else and then revert to stock kernel with ability to get updates?

Gesendet von meinem D6603 mit Tapatalk
[Xperia Z3 Android Development] Erikdc:
is it safe to use the rootable img from 2157 to gain root? or should I wait for someone to create a rootable img for 2178?

I could of course just try it, but then I would need an img from 2178 in case it fails :)
[Xperia Z3 Android Development] shoey63:
Working on it soon.

Phone won't boot on stock kernel if /system is modified

That "someone" is me, and I'm working on it ;)
[Xperia Z3 Android Development] JaseLegenda:
You're good to go. I flashed 2157 kernel over 2178 update last night and all is working fine
[Xperia Z3 Android Development] shoey63:
For those on 2157 with custom kernel, who have not modified /system, and want to roll back to 2157 stock kernel to get 2178 update, here are the links:-

Stock z3 kernel 2157 flashable zip Here

Stock z3c kernel 2157 flashable zip Here
[Xperia Z3 Android Development] :
Thanks for that. I don't have to remove SuperSU right? Using a systemless root.
[Xperia Z3 Android Development] shoey63:
No need. Just flash and get the update.
[Xperia Z3 Android Development] aliw32619:
I flashed the stock kernel and still getting the dm-verity disabled thing
[Xperia Z3 Android Development] :
Yup me too
[Xperia Z3 Android Development] shoey63:
Must be a new security measure. Once detected, the message persists, even after reverting to stock kernel. No easy fix that I can think of.
[Xperia Z3 Android Development] :
Oh well back to the first build I guess

Edit: Yeah seems like they have a new security measure. IIRC if you have a custom kernel on, it used to give out an error during the update itself (in recovery). Now all it does is prevent you to download the next update.
[Xperia Z3 Android Development] shoey63:
New kernels are up for rooting 2178

Z3

Z3Compact
[Xperia Z3 Android Development] :
Tested on the Z3. It's working. Thanks!
[Xperia Z3 Android Development] HernWang:
can you update to 2186 with that kernel?
[Xperia Z3 Android Development] :
Nope. It won't allow it.
[Xperia Z3 Android Development] lamducthien:
Wait for 2186 kernel for z3c
[Xperia Z3 Android Development] shoey63:
No need for kernels anymore.

Chainfire has provided a zip that automatically patches boot.img
[Xperia Z3 Android Development] lamducthien:
How about this method? And we have twrp too? I dont understand. Can u explain for detail?
[Xperia Z3 Android Development] shoey63:
I will upload a Twrp image to flash later. Then you can flash Chainfires zip. He has stopped support for manually patched MM kernels.
[Xperia Z3 Android Development] lamducthien:
Do you mean chainfire zip is supersu-2.52.zip?
[Xperia Z3 Android Development] shoey63:
It will be 2.62 soon. Wait for links...
[Xperia Z3 Android Development] lamducthien:
Uppppp
[Xperia Z3 Android Development] shoey63:
- Get Chainfire's latest zip from Here

-download zc3TWRPrecovery.img

- Enter fastboot mode

fastboot flash recovery z3cTWRPrecovery.img

- Boot to recovery from bootloader menu. (Navigate to reboot recovery using volume key, then press power button)

- Flash Chainfire's zip. (Plus any other zips you wish to install)

- Reboot

- Done. You are rooted with patched kernel.

Edit z3 users need to use z3TWRPrecovery.img

Note: You will need to flash the recovery image each time you want to enter TWRP recovery.
[Xperia Z3 Android Development] Aunen:
And no problem getting new updates?
[Xperia Z3 Android Development] lamducthien:
Is this 2186 kernel ?
[Xperia Z3 Android Development] shoey63:
Select full unroot option

in SuperSU, and stock kernel will be restored, ready for next update. We shall see if it works when new update comes around.

It is a RECOVERY.IMG (notice the "fastboot flash recovery command?) to get you into TWRP so Chainfire's zip can do its magic on your STOCK kernel, and root your device.
[Xperia Z3 Android Development] lamducthien:
oh, I see. I am at 2178 FW and have not got notification 2186 OTA . Show I used 2178 kernel rootable (by you ) to restore 2186 backup system (by angryman) to get 2186 FW base but the kernel is only 2178. So I want 2186 kernel rootable as previous kernel you had made (2123,2134,etc...). I need a latest kernel with TWRP so that I can install any zip file such as Xposed,...BTW I like traditional rooting , I don't use systemless rooting. So can you make 2186 kernel with TWRP please ?
[Xperia Z3 Android Development] shoey63:
I assume you have downloaded https://www.androidfilehost.com/?fid=24269982087014726 from [MENTION=4344080]AnGrY sCoTsMaN[/MENTION].

Just restore the stock kernel and follow the instructions provided. Latest SU zip provides the same functionality as regular root. While you are in recovery flash SuperSU zip plus any others you want. If you need to enter recovery again in the future, use Rashr or some other app to flash the recovery image again, or fastboot it. Sorry, but I'm going on holidays and don't have time to do weekly kernel updates for 2 devices. I have provided the tools and instructions to do it yourself. Please try. I *may* make a kernel with inbuilt recovery when the final release comes out.
[Xperia Z3 Android Development] fazzowicz:
I build 2186 and want to do root. After following the instructions do not have a recovery so I can not install SuperSU.
[Xperia Z3 Android Development] shoey63:
You need to fastboot flash recovery each time you want to enter TWRP.

Edit. You enter TWRP after flashing by navigating to "reboot to recovery" while still in the fastboot menu using volume down key, and then pressing the power button.

From the instructions...

[QUOTE ]Note: You will need to flash the recovery image each time you want to enter TWRP recovery.[/QUOTE]
[Xperia Z3 Android Development] fazzowicz:
Boot to recovery from bootloader menu - You can broadly explain this passage? Maybe I'm doing something wrong.
[Xperia Z3 Android Development] shoey63:
You enter TWRP after flashing it by navigating to "Recovery mode" while still in the fastboot/bootloader menu using volume down key, and then pressing the power button.
[Xperia Z3 Android Development] fazzowicz:
OKAY. I'm just an idiot. Thanks for the help :)
[Xperia Z3 Android Development] aliw32619:
i was using the 2.62-3 root and when i received OTA i unrooted and tried to install but got dm-verity disabled thing
[Xperia Z3 Android Development] Aunen:
Was this on a fresh install of the concept software?
[Xperia Z3 Android Development] aliw32619:
yes
[Xperia Z3 Android Development] shoey63:
Ok, looks like full unroot still leaves a record of system having been made R/W at some point.

I'm working on a flashable zip of untouched system and boot for latest update. Will be uploaded later.
[Xperia Z3 Android Development] zarzuh:
Does this method work while keeping the bootloader unlocked?????
[Xperia Z3 Android Development] shoey63:
Unlocked bootloader will be required.

And YES! Future updates will be received, even on UB:D
[Xperia Z3 Android Development] zarzuh:
Will it automatically re-root when I do an OTA update?
[Xperia Z3 Android Development] shoey63:
Of course not. You will be on stock.

Then just follow instructions from OP
[Xperia Z3 Android Development] snaky90:
Thanks for the new info !
[Xperia Z3 Android Development] pavholm:
Hi. On 3021 it is possible to make root? it is possible to ota-update with the unblocked bootloader?

I badly speak English, I can't understand. Thanks!

Ok, I root phone. How made ota-update?
[Xperia Z3 Android Development] shoey63:
Concept rom users on unlocked bootloader may be interested in this:-

https://www.androidfilehost.com/?fid=24269982087018972

and this

https://www.androidfilehost.com/?fid=24269982087019650

Edit: Both are pure stock images.
[Xperia Z3 Android Development] deepongi:
very nice!
[Xperia Z3 Android Development] Bonehead Fraggle:
That worked great. Stock zip + new SuperSU = Total success.

Thanks a lot.
[Xperia Z3 Android Development] Aunen:
Not sure how to do this,flash this every time to get the ota or only the one?
[Xperia Z3 Android Development] shoey63:
If you root, flash it back to get future OTA 's
[Xperia Z3 Android Development] lamducthien:
how about z3c ? do you have z3c ver zip files?
[Xperia Z3 Android Development] shoey63:
Sorry friend, I can only do it on Z3, I don't own a z3c
[Xperia Z3 Android Development] albertobom:
Do I have to unlock my bootloader first?

Enviado desde mi D6603 mediante Tapatalk
[Xperia Z3 Android Development] JaseLegenda:
Couldnt install the latest OTA said something drm verity disabled or something similar. No root pure stock as you posted
[Xperia Z3 Android Development] Bonehead Fraggle:
Same here. Translation something like: incremental system update can't be done when dm-verity is turned off

The zips work fine but no OTA.
[Xperia Z3 Android Development] Bonehead Fraggle:
I have two Z3s. One is never rooted but with unlocked bootloader. I could use this as a clean install to make boot- and system zips from. Only question is, is that possible without Linux knowledge? If so, please guide me how.
[Xperia Z3 Android Development] Erikdc:
does anyone by any chance have the stock boot.img for version 2178?
[Xperia Z3 Android Development] shoey63:
Yes

There may be a problem with the zip. I will investigate

Could also be the bbootloader, will look at that too

If you have a working fastboot environment on your pc, it will be quite easy. I'll provide some instructions a little later. Thanks for offering to help.
[Xperia Z3 Android Development] jassalmithu:
I think the system zip is fine but the boot zip has recovery included which it shouldn't have, i did a system reset and it happened through twrp, it needs to be total vanilla.
[Xperia Z3 Android Development] shoey63:
If you flashed the twrp recovery image, then SuperSU.zip, twrp will stay in recovery, and not get replaced by stock recovery on reboot. The boot.img is unmodified.

it seems the issue is that with each update, the bootloader and TA partition also gets updated. So flashing 3021 system and boot on say, 2086 bootloader will cause the update error. It is expecting 2186 - the previous version.

This means the only way to get latest updates is:-

1. Roll back to 2086 or 2099 ftf and let all the updates come through one at a time (painfull)

2. Wait for someone to share a twrp backup or images of latest update, or

3. My preferred method:

- Make pure images of stock boot and system of each update before rooting, and restore them whenever a new update comes along, so you will be on unmodified stock.
[Xperia Z3 Android Development] jassalmithu:
That's super painful though, I have done it three times now and quit third time halfway because it just wouln't update past 2078 and just flashed the latest zip you posted. Will you also make a zip for 3027. Thanks.
[Xperia Z3 Android Development] JaseLegenda:
Well for me nothing works. Went back to 2058 tried updating but it says device is up to date. Then i flashed 2099 ftf and still the same
[Xperia Z3 Android Development] JaseLegenda:
I relocked my bootloader, went back to official software through Concept app. Booted up set up the phone and then went to concept software through concept app. it flashed version 2157 on my device and still didnt wont to go further with updates
[Xperia Z3 Android Development] JaseLegenda:
Anyone still have 2157 stock kernel?
[Xperia Z3 Android Development] shoey63:
I will start a new thread and provide flashable zips for 3027 later.

Edit: In the meantime, flashable zip for 3027 system image can be found Here, and boot image Here
[Xperia Z3 Android Development] lamducthien:
For both z3 and z3c?
[Xperia Z3 Android Development] shoey63:
Z3 only. Z3c support is discontinued as I have decided to support only devices that I personally own.
[Xperia Z3 Android Development] russel5:
for z3c - http://xdaforums.com/showpost.php?p=64395702&postcount=982
[Xperia Z3 Android Development] 2010matej:
I flashed twrp and flash supersu...Without flashing boot.img it wont let me boot, because twrp is always at boot... When I flash boot.img, it says phone may be corrupted but it let me to boot (and there is no root or there are constantly force closes....) :/
[Xperia Z3 Android Development] shoey63:
You have flashed twrp to the boot partition.

That's why it booted only to twrp.

Which rom were you on?

Which supersu did you flash?

Which boot.img did you flash?

If I were you I would flash the 3027 boot and system zips from a few posts up, do a factory reset and start again. Be sure to closely follow the steps in the op.
[Xperia Z3 Android Development] 2010matej:
1. I was on 3027.

2. First time i flashed latest version, second time after clean installing concept rom again i flashed version you posted in first page of thread.

3. I flashed 3027 boot.img

Anyway i see, that after flashing 3027 system zip, my phone get massage that it's corrupted or something like that, but it let me boot anyway :p
[Xperia Z3 Android Development] shoey63:
If you flash the recovery.img from OP (fastboot flash recovery....) then flash SuperSU 2.65, that message will go away and you will have root. You lost root before because you flashed the boot.img AFTER SuperSU. SuperSU always needs to be flashed last so it can patch the boot.img.
[Xperia Z3 Android Development] 2010matej:
Okey, everything works now. :)
[Xperia Z3 Android Development] michbag:
Hello when you try to root phone. Pops up a message

C: \ ADB> fastboot flash recovery z3TWRPrecovery.img

<Waiting for device>

sending 'recovery' (11870 KB) ...

OKAY [0.650s]

writing 'recovery' ...

FAILED (remote: Command not allowed)

finished. total time: 0.680s

Have you met someone with something like that ??
[Xperia Z3 Android Development] shoey63:
Needs unlocked bootloader.