yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact General] NeoBeum:
if you follow the exact process, you'll have no problems getting to the end result. If you mix and match, it's up to you to figure out how you lost root access or why your device is overheating, or why the patched boot image didn't retain TA in the Security Test. the restoration process locks the bootloader, so when upgrading to 7.1.1, the cts doesn't get ****ty with the breach it detects, and then you trick it. going into 7.1.1 clean with a locked bootloader gave better results than having an open bootloader going in to 7.1.1.

Also - the Magisk v12 zip will work, and the 'Magisk v12 with sonyfix zip' isn't required.

Magisk doesn't even need to be used unless you want to hide from full SafetyNet checks. You can use SuperSU 2.79

edit: I get what you're asking... maybe... you don't need to backup TA again, just join in at restore, and Restore using your old img
[Xperia Z5 Compact General] NeoBeum:
Sony made some changes to Init and Sec Pol for Audio. Now included in build CRC81D43A45-recovery-v1.1
[Xperia Z5 Compact General] Cerhio:
Okay if I understand correctly, fixing 7.1.1 is as easy as flashing the recovery and my mobile data problems and battery problems will disappear?
[Xperia Z5 Compact General] NeoBeum:
Only if you find Jesus along the way
[Xperia Z5 Compact General] Cerhio:
Sorry, I don't quite understand where that is on the phone. Can you explain it in a little more detail?
[Xperia Z5 Compact General] NeoBeum:
It was a joke about divine intervention, doing clean installs of FTF vs OTA will give better results because of how OTA upgrades the device code, rather than wiping and starting with a clean slate.

any facebook users have moot arguements at any point in time regarding battery usage.
[Xperia Z5 Compact General] Cerhio:
As per our previous conversations, Ive done 5 clean FTF installs that have had mobile data problems. You linked me here saying you had a fix.

What's your email or whatsapp? We should chat in there instead of making useless comments on here. I'm still looking for your explanation of how your guide fixes the mobile data and battery problems of 7.1.1. You linked me here saying your had the answer.
[Xperia Z5 Compact General] NeoBeum:
No, all I said was, don't do OTAs, I explain in the picture guide sort of
[Xperia Z5 Compact General] Cerhio:
As per our previous conversations, I have flashed FTF files using flashtool. I never do OTA.
[Xperia Z5 Compact General] Cerhio:
Does anyone know where to start on these instructions for someone who wants to use PoC instead?
[Xperia Z5 Compact General] NeoBeum:
This is using a TA PoC for the Stock Kernel. You'll never be able to use the original TA of the device in 5.1 without a modification, because the IMEI software changes with every Android release.

if you mean you want to flash into a fully locked bootloader, with root access, you can, but the process is complex. just have a look at the start of this thread when I had a dual boot system to see the problems with guides.

I even mentioned the behavior here https://xdaforums.com/showthread.php?p=72542129#post72542129

problems start when the device upgrades, and that flag is missed.

I don't have time to test other Sony devices to ensure that methods won't accidentally wipe the TA, and by wipe I mean your TA is gone.. you have no IMEI... not just losing the DRM checks.

That: is the Complete Trim Area.

Now it moves away from a simple recovery project, to messing with non-volatile memory to grant access to hardware changes that would be illegal in most countries - even though you'd still be only half way and need to program a SIM to register with a network tower.

you can even see the point in my screen grab where the device sends the master reset signal to the ta when the boot loader gets unlocked. you can even change this message to whatever you want.

edit: have a look at the spoiler original post at the end of the first post to compare
[Xperia Z5 Compact General] NeoBeum:
Magisk 13.1 is out.

[IMG="NB"]http://i.imgur.com/roqQRA5m.jpg[/IMG]

For experienced users, you can manually update.

I will update guide soon. If you don't upgrade correctly, you will lose CTS and Root.

EDIT: But don't upgrade just yet
[Xperia Z5 Compact General] Cerhio:
So even tho I have the TA backup and already have unlocked my phone I still start at the beginning? Do I start at step 1 or 5?
[Xperia Z5 Compact General] NeoBeum:
UPDATE:

Magisk Manager 5.0.4 is able to be installed alongside Magisk v12.0 without any detrimental effect on the device.

The issues I mentioned in the announcement - may be small - but can cause more problems in the future.

I'm just trying to work out the best approach to get Magisk v13.0 to the Sony devices - and maintain the permissions that don't result in unwanted behaviour.

I also mentioned (either here or on the Sony Forums) about boot sequence, and how it can affect any firmware if it isn't sequenced correctly in relation to the code requirement, here are a few samples of Magisk Manager 5.0.4 when I purposely threw out the sequence, by power cycling and leaving it connected to a wall charger.

Here are some videos showing the Qualcomm Adaptive Brightness behaviour - my devices are basically clones - one has Magisk Manager 5.0.4 / v12.0 and the other Magisk Manager 5.0.4 / v13.1

[YOUTUBE]SV1VGElE8eg[/YOUTUBE] [YOUTUBE]f6mYk6cLNao[/YOUTUBE]

[YOUTUBE]o9WGG9d84Ls[/YOUTUBE] [YOUTUBE]ma7KQAfL59g[/YOUTUBE]

https://youtu.be/SV1VGElE8eg

https://youtu.be/f6mYk6cLNao

https://youtu.be/o9WGG9d84Ls

https://youtu.be/ma7KQAfL59g

It's worse in Sunlight
[Xperia Z5 Compact General] lordemperor:
I'm running in to a weird issue. After upgrading to 7.1.1 and flashing the kernel created by Rootkernel and recovery downloaded here, I cannot get in to recovery.

Flashing the recovery appears successful but adb reboot recovery just causes a normal reboot. Using fastboot boot to recovery causes a black screen and necessitates a hard reboot.
[Xperia Z5 Compact General] NeoBeum:
when did you join in the guide?

if you're using adb to boot to recovery, I'm pretty sure it's like that because of how the sony elf and ramdisk work. Sony never gave the newer xperias the ability to do this

https://developer.sonymobile.com/20...for-a-range-of-unlocked-xperia-devices-video/
[Xperia Z5 Compact General] Joeisgood99:
Hey guys.

I have ported Omnirom to Z5C about a year ago. All my TWRP builds were based off omni kernel. I haven't had time to update or continue lately so very excited to find this thread! Please feel free to look at my source in case it helps or saves you time.

OMNIROM FOR Z5C.

https://xdaforums.com/z5-compact/development/omnirom-z5c-t3388479

TWRP 3.0.2

https://mega.nz/#!QhoBESZI!XzXzHvosc...X57GnZvRBEPoR4

GITHUB

https://github.com/joeisgood99?tab=repositories

Great work and good luck guys!
[Xperia Z5 Compact General] NeoBeum:
awesome, thanks. I'm still new to android, so that will help allot.

I'm taking a short break for the week as I got sick of windows updates breaking my laptop even on the education sku, so I got a copy of datacenter 2016, and am going to provision my laptop from my laptop

[IMG="nb"]http://i.imgur.com/IkpGCENm.jpg[/IMG]

I was trying to work my way up from the android and omni branches to learn, but that will probably take to long, and I should just do 7.1 and then go down.

I ran in to java problems with 5.1... I hate java
[Xperia Z5 Compact General] Joeisgood99:
No probs.

I got so sick of trying to work with Android on Windows I moved to Ubuntu... And never looked back.

Good luck with your computer!
[Xperia Z5 Compact General] NeoBeum:
I'm just getting sick of tech now... between Microsoft overriding hardware driver automatic downloads, and Google code that makes simple things complex, like do not disturb... gadgets don't make life easy.. and everyone is a guinea pig for Facebook
[Xperia Z5 Compact General] Alvian_P:
I have follow step. but I cant go to recovery. my bootloader unlock, 7.1.1

+1
[Xperia Z5 Compact General] Superrman:
If i root ill lose camera quality? (iknow thats what happen to my old sony)
[Xperia Z5 Compact General] NeoBeum:
up there ^^

If you use adb commands to get to the recovery, the phone will reboot to the blue led bootloader screen.

I could try and find how to properly get it working like other brands
[Xperia Z5 Compact General] Alvian_P:
thanks bro. and then I root using superSU. but now my devices have heat promblem and fail safetynet. also I cant find fingerprint settings :crying:
[Xperia Z5 Compact General] NeoBeum:
those settings are found in the flux capacitor
[Xperia Z5 Compact General] svekke01:
Any updates on Magisk 13.3 ? Can't make it work on my Z5C. Phone runs hot after update from 12 and root is lost according to the manager (5.1.1). Also starting from a fresh bootloader doesn't work with magisk 13.3. Guess no Safetynet pass possible atm :(
[Xperia Z5 Compact General] Superrman:
i need backup my DRM\TA for this rom?
[Xperia Z5 Compact General] NeoBeum:
Not at the moment. The current setup is falling back on drmfix, but you'll still be able to hide from most apps.

Microsoft are being jerks, and my images of the Enterprise/Education SKU were being stealthy changed during the ESD creation. I noticed when I loaded one of the install.wim to deploy my own configuration as a side project for the ASUS G751 users, and the product package said ProfessionalEdition. So most of this week had been trying to get an iso that stayed at the correct edition... not that it matters, because Cortana and Gaming have made their way to the Edu/Ent SKU.

I haven't been able to work on the Recovery because of that, but I'm going to be more concentrated on the Omni build to get the Z5C on the device list, when I get my Windows built again.

While it would be fairly simple to script out the eMMC changes topjohnwu added; finding a solution to beat CTS will be a pain to integrate to Magisk, because of how 13+ has changed where it loads the modules because it would require me to make sure things don't break with every Magisk release.

Originally this project didn't favor any Superuser app, but Magisk at the time offered the CTS Pass. I was using SuperSU at the start.

This had the flexibility to be able to be loaded in to the recovery partition, which meant that you could work with Marshmallow and Nougat, but app data would require something like Titanium or Apps2SD to handle the restore for the major version change.
[Xperia Z5 Compact General] NeoBeum:
I'm doing this live, not at a PC, but

I'll do a once over, but I think topjohnwu made it easier to change permissions, because there are two new functions in the scripts for 13.3.

edit: yeah, it's still making everything r/w, so all it needs is a permissions revert.
[Xperia Z5 Compact General] NeoBeum:
Done. everything should be back in business.

5.1.1 Magisk Manager & Magisk 13.3
[Xperia Z5 Compact General] Cerhio:
Has anyone managed to get this working with PoC?

EDIT: So PoC is pretty much dead with the developer having his account disabled.

So I'm giving this a try:

1 ) Flash latest FW with flashtool and select every option for wiping right? Even the bottom box?

2) Create boot.img using kernel.elf. I followed your exact Y/N answers but I didnt understand the extra steps after.

3) Flash DK.ta to restore my DRM keys.

4) Flash boot.img that I created.

5) Flash recovery that you uploaded.

Is that correct? Do I have to downgrade? What if I don't downgrade?

does

refer to the recovery in the OP?

EDIT: What does Catching the Device Key in the title mean? I don't see a part the catching the device key part.
[Xperia Z5 Compact General] Cerhio:
Alright if I'm understanding this correctly: the written instructions are incomplete and you need to follow whats in the images right? This needs to be re-written.

---------- Post added at 11:56 PM ---------- Previous post was at 11:52 PM ----------

this is extremely confusing. do you mean it doesn't matter which thing we do? i'm confused because this is one of the very first steps.
[Xperia Z5 Compact General] NeoBeum:
Did you not see this... i even added a picture that shows you what should be on your command prompt screen

Coming from a non modified device, you don't need to restore the keys, because they're already present . Hence the "or"
[Xperia Z5 Compact General] NeoBeum:
200+ people had no problems following these instructions since I made the detailed guide

[IMG="N"]https://i.imgur.com/bdAHY01.png[/IMG]

Is not

Which is not at the start of the guide

If you're trying to make me angry its not working, because I'm pissing myself laughing... It's funnier because I regard myself as a noob to android... Verified in signature
[Xperia Z5 Compact General] Cerhio:
Yes well I already have dk.ta so I'm wondering if that portion is relevant. You mention to check if the DRM keys are restored at the very beginning:

Did you mean to confirm that the device keys are saved instead of restored? Aren't the DRM keys wiped when you install a new FW and wipe everything? I selected all the wipe options that you did and it erases DRM keys until I flash the dk.ta.

Nobody is trying to make you angry. Maybe it is just getting lost in translation. I am a native English speaker. In English, the way you wrote that makes it seem like you can either backup or restore and I think you mean that is just the description of the tool right?

My question refers to this portion of the rootkernel cmd prompt:

What is that part? It is not referred to in the instructions:

---------- Post added at 12:54 AM ---------- Previous post was at 12:51 AM ----------

Again, so I have the steps correct:

1 ) Flash the .ftf

2) Check USB debug and Install Unknown Apps

3) Flash my created boot.img

4) Flash the recovery you uploaded

After that I can root using supersu through TWRP right?
[Xperia Z5 Compact General] Cerhio:
What is this in reference to? I have many many questions. I'm sure I'm not the only one who has questions, I'm just the only one who wants it bad enough.

---------- Post added at 01:11 AM ---------- Previous post was at 01:06 AM ----------

I just flashed the firmware. I also enabled the usb debugging and allow unknown app installs. I just install the kernel and DK.ta now before installing the recovery?
[Xperia Z5 Compact General] Logan:
Thread cleaned

Treat each other with respect guys rules: 2.3 & 2.4,

Divine, XDA Moderator
[Xperia Z5 Compact General] svekke01:
So how do I set the "Mount namespace mode" mode before upgrading ?

Normal upgrade from v12 to 13.3 installs fine, but when rebooted phone loses root and runs hot.

Thanks for working things out.
[Xperia Z5 Compact General] Cerhio:
Has anyone managed to work out OP's instructions correctly? Seems like there are some steps missing.
[Xperia Z5 Compact General] NeoBeum:
You're right... I should've put this at the announcement..

Following the procedure with Magisk Manager 4.3.3 and Magisk v12.0 installed:

use twrp to get back to 4.3.3 with v12.

Following the procedure with Magisk Manager 4.3.3 and Magisk v12.0 installed:

The namespace setting was added to Magisk Manager 5.0.4

I wasn't even in troll mode or aggressive, that was just me having a laugh... I'm still new.. I don't know why it says Senior Member. I'll take a demotion. I blame Malcom Trumbull for the Double Sun Power
[Xperia Z5 Compact General] Logan:
XD :highfive: yes sir i saw :P
[Xperia Z5 Compact General] NeoBeum:
[YOUTUBE]Cs3dNQCZj2w[/YOUTUBE]

[YOUTUBE]qVv0lM4cXHM[/YOUTUBE]

If you're cleaning, i mentioned jesus a few pages in. May as well delete that too.
[Xperia Z5 Compact General] NeoBeum:
Trolling would be naming my videos "For the inept. Lowercase i"

Shall i proceed?
[Xperia Z5 Compact General] NeoBeum:
If you took your time to read, or before you cut and paste to translate, you would've seen this

you literally had to point and click to progress.. I don't know how much more simpler it could be..

those big red headings are mostly for fault finding for me but also to give users a reference point, to prevent headache of pages of needless posts like this similar to other threads where solutions are posted or problems posted by randoms with no reference to anything coherent or a device state dirtier than a sewage pipe because said random followed another post from another random but didn't read 5 pages before where it was for a different firmware region...

example would be the 3 sentence response for this: and then video accompaniment to show exactly what to do

posting half baked workarounds isn't going to help.

these are missing critical points of the procedure - which is a double check to ensure device keys are present, and that bootloader begins in a locked state.

This wall of text does not help, this post does not help, it's just spam, and regurgitation of topics that already have guides. this process is almost identical for every android device. I didn't even have a guide to begin with, I just assumed people would just proceed to do what they do in other threads, and use those guides that were already written

one more thing. you keep asking about the ta poc, and I answered you weeks ago, and that's when I turned on my derp headphones.

which meant I switched off, and bulk of your posts turned in to this in my head to filter out junk

********** ******** **********

you missed that, and you missed the very first picture, which reinforces the notion I had in the tapoc reply, that you do not pay attention to detail

that picture is worth more than its weight, and better than any explaination
[Xperia Z5 Compact General] NeoBeum:
mod edit:

Regarding the Global RW introduced in Magisk 13.1. - temps run higher
[Xperia Z5 Compact General] mark manning:
Lets make sure we keep things civil in here please

Thread cleaned
[Xperia Z5 Compact General] Tiger Shark:
Yes, that's exactly the problem. You

only

included pictures. One who is unfamiliar with the software cannot tell what they need to enter and what are the software's responses. And one cannot cut and paste the commands from the tutorial.

Try to put yourself in the position of the true NOOB. You've never rooted

any

phone. You've never used or even installed

any

of the necessary software and don't know where to get it. You have no idea what terms like TA mean. The non-NOOB can just skip over the embellishments.

I've rooted other phones, but am new to the Sony arena. And even I am having trouble following the tutorial. I suppose if I was trying to work along with it, it might be clearer. But I, like most folks, want to fully understand it before I even start, not have ah-ha moments as I progress. With a potential consequence of not understanding it being bricking my phone, understanding before proceeding is paramount.

This is not to say that we don't appreciate what you have done. I'm sure many have used it with success. But if you want to expand your audience, try making a few more changes as I have suggested.
[Xperia Z5 Compact General] Cerhio:
Wow, I've never met someone as petty as OP. There's literally never a reason for being abusive so I'm not sure why you're trying to justify it. I hope everyone also knows that OP has been going back and editing his replies after being called out by admins. He would post memes whenever questions were asked and then pretended not to be doing anything wrong when confronted. If you are someone who has questions or might need help, this is not the method to follow because OP will not respond to you.

I'm not new to rooting and flashing on the Z5C. I've been doing it since I purchased it last year. I just figured OP was being so picky about his method that I wanted to know what made his instructions work over other methods but I must have brought up some insecurities. It turns out that the only thing that is special about this method is that OP has included some fixes in his recovery install. The steps are all the usual steps that anyone familiar with the Z5C should already know. So just to reiterate: the only difference between using the usual flash/rooting method and OP's method is that his recovery file has some bug fixes.

And also you never answered my question: why is the bootloader locked after flashing LP and then unlocked after installing Nougat? It's a shame that you think everyone is being hostile because I'm only asking for peace of mind.

I'd post up my instructions but OP would probably through another hissy fit. Feel free to PM me if you need some help.
[Xperia Z5 Compact General] NeoBeum:
There's a thread on how to root a device in every subsection to use as references
[Xperia Z5 Compact General] NeoBeum:
it we Marky Mark the moderator that culled the posts, and it's why I took screenshots so they aren't edited,

my methods worked over other methods because I took everyone to a known point, the locked 5.1 bootloader, something you complained About, and then did the procedure, and not provide half baked inductions collected from all over the place, like you were doing by posting your method, which was close, but not the same
[Xperia Z5 Compact General] NeoBeum:
I'm not trying to expand my audience.

it's also not my responsibility to spoon feed everything, as this here was the start of the project,

https://xdaforums.com/z5-compact/he...m-fix-twrp-t3560135/post71704926#post71704926

https://xdaforums.com/z5-compact/he...-2-79-32-3-t3583661/post71715637#post71715637

but also, if 'Only' pictures were posted, there wouldn't be the text in between each of the spoiler sections

there are tons of other guides in the z5c section alone, that gives explanations, why would I need to regurgitate that material.

it's like google changes api for do not disturb, its just a regurgitation
[Xperia Z5 Compact General] NeoBeum:
[/COLOR]

search bar and your eyes are your friend
[Xperia Z5 Compact General] NeoBeum:
<Mod Edit>
[Xperia Z5 Compact General] svekke01:
Did you change something to the recovery to work with Magisk 13.x ?

Because I already had another twrp 3.1.1 installed and still run into problems when installing another Magisk then version 12.

Sorry I'm no Android tech, just managed to backup ta with dirtycow, patched kernel with ta-poc and rootkernel and installed magisk 12 before I even saw this guide.

Greetings,
[Xperia Z5 Compact General] Tiger Shark:
No, it's not your responsibility. But it's a nice thing to do and usually the point of such a posting -- putting everything in one place for the late-comer (like me when it comes to Sony). I have seen your modification, and I believe anyone who now cannot follow it probably shouldn't be trying. Thanks for that.
[Xperia Z5 Compact General] NeoBeum:
nope, its basically a standard twrp configuration using the 7.1 branch for sony's aosp nmr1 branch.

If you used a different twrp, then I have no idea.
[Xperia Z5 Compact General] Cerhio:
Complained? Is that what you think everyone is doing? Nope. Get your head out of your ass. We have questions because we want to learn. Why else would anyone go to the trouble of asking? You should not be a developer if this is your perspective on helping people.
[Xperia Z5 Compact General] NeoBeum:
Something about locking the bootloader and being sketchy...

Then you ask why this method works ..

Also,

1. I don't know why you're fixated on that part, especially when the bit you quoted actually belongs to another section, with a picture for it

it's also an inert action, where nothing is written to the device.. you couldn't even break your PC assuming you had the correct rootkernel tool

2. you're doing a terrible job at reading things in sequence.. or just reading in general

3. because I said: If you're trying to make me angry, it's not working because I'm cracking up laughing
[Xperia Z5 Compact General] NeoBeum:
The pictures themselves are a failsafe, because you can see the entire outcome, unless you have fat fingers, so long as you type what you see in the picture, you can't go wrong and you can see the entire process overview that actually requires user interaction with a keyboard before you even start

There's 4 lines total. or 5.

and you would like a thesis for each?