yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] MartinX3:
The developer of https://www.xperifix.com/
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=6031898]MartinX3[/MENTION], I know, still I do not follow - he had disappeared or something?

And now he has posted something or is about to what exactly?

And somehow is that related to this kernel?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] MartinX3:
he disappeared and is now back to crack the PIE sony DRM.

that's the relationship with your kernel crack attemption.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=6031898]MartinX3[/MENTION], I am sorry, but it might have been better if you had it written clearly with your first post.

I assume that you know about his plans from pm or something?

Because I cannot see any new post from him...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
With all due respect, j4nn method of a so called "crack" works just fine.. your metion of storm is a bit late to the party ... Those on Oreo who went with the "DRM " fix at the time lost the ability to apply for a true TA partion " fix" , granted he might be back but there isn't a reason to jump up an down...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] MartinX3:
No problem :)

(Text) communication can sometimes be difficult :silly:

He told me it in private. :)

He'll write a news in his xperifix blog.

---------- Post added at 10:04 PM ---------- Previous post was at 10:02 PM ----------

It depends on how the sony feature tries to verify the "unlocked" state on the phone.

And it is not too late.

(And I either hope he'll fix Q, too).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
Has he shown a method as of this date... Granted he may be the next great thing but he isn'' t here as of your posting.... And year has past.. granted he may have taken a break but for you to announce in multiple different threads that he's back and no proof has been shown to his work in the XZ1 forum or the cross platform forum..what do you want us to do ...jump up an down?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=6031898]MartinX3[/MENTION], in my opinion, there may be features, that simply cannot be made working again if a (device master) key is lost (I mean in general, not concerning yoshino platform only). So it may be possible to fix camera somehow, but if something in trustzone does not work because there is no device master key that would be used to decrypt some other feature key in TrustZone (I could imagine for example that drm encrypted videos could be played/decoded only via some TZ applet) - that's something completely different.

Therefore in my opinion, it would be much better to concentrate the development effort into proper TA backup via exploit - for example, there is (just now) documented universal android rooting solution working even on pie - slides for the exploit presentation were just released.

See my post#961 in the "[XZ1c/XZ1/XZp] temp root exploit to backup drm keys" thread for more details.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
As I've flashed the 10.62 fw without fotakernel and userdata, I only can confirm that your prerelease works after flashing, also Magisk 19.2. But I had to reinstall Magisk, because dm-verity was enabled by default.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] MartinX3:
We'll see what a drmfix will achieve.

Btw "concentrate" is the completely wrong term.

I mean if storm develops his drm fix it won't slow down the attempts to hack root on a locked system. :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
Here is the dual version of an experimental repack of 10.45 kernel for 10.62 fw:

boot-G8342-47.2.A.10.62-hideunlock-kernel-10.45.img

(does not include magisk, patch it in your magisk manager for fota upgrade with root or just flash it and magisk over it for alt use)

For single sim variant see post#77 and post#81.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
Ok, flashed it patched it with magisk 18.1, upon first boot it bootlooped but restarted and booted just fine. WiFi, cell signal, camera all work fine.. In the security settings all is good..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] fankyy:
I also can confirm that this repack works :good:

Same here, also force encryption is enabled. Will a simple reinstall of magisk disable both settings or where can i configure this? (Unticking it didn't work somehow..) Will safetynet still pass after deactivate dm-verity? Or should i just leave it as it is because it's working with no issues so far, as long as i don't want to modify system and vendor partitions? Will TWRP backups of systems with active dm-verity/encryption be usable?

Thanks very much for any tipps
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=3405518]fankyy[/MENTION], you need to untick _and_ create an image and use/flash the resulting patched image as the manager tells you where to find it.

If you do not need to modify system and vendor partitions you may better keep dm-verity on.

Not sure if google starts checking this for his certification stuff, but it would make sense.

Making backups of system and vendor partitions from twrp when not modifying them (and having dm-verity on) does not make sense as they must be the same as stock - you may keep a copy a full stock fw instead.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] fankyy:
@j4nn: Do i still need to untick and create image if i don't need to modify system and vendor partitions? I only want to use it the alternative way. Or did you mean untick them before a twrp backup? Just that i'm not confusing things :) Thanks!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
[MENTION=4418980]j4nn[/MENTION] , hey I did try magisk 19.2 and all the phone stuff worked, wifi,cell signal, camera ect.. but it's just buggy in my case as it messes with some of my other apps...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=4133204]lilbrat[/MENTION], right, so it seems it would be better not to pre-root the kernel as everybody is used to use a different magisk version nowadays so it could be magisk-patched as desired.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
I would say yes as it only takes a minute to patch it but we have a variety of folks here that run different setups on their phones so in some cases magisk may work for some.. as it doesn't for others.. but leaving it un-patched will appear to be the easiest option.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Jetbear:
Help for my fisrt root

Hello and read on the internet that in Android 9 there are no problems with the camera after unlocking the bootloader, my xz1 10.62 is operator, how could I root my cell correctly so that they are and think it is still blocked? And what would not work correctly after unlocking the bootloader? The system would add application updates that are port? Or apkmirror?

Sorry my english i use Google translate
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=6619198]Jetbear[/MENTION], if you need root, just backup TA using renoroot exploit with oreo fw - follow the guide in xz1c thread (linked also in this kernel thread). After done, just use this kernel to hide bootloader unlock.

After unlock, fota updates are still possible but not that convenient.

There can also be problems with google pay, particularly if your android attest key is still provisioned.

On pie (if you do not back up and restore TA) camera seems to somehow work, but there are some doubts if the quality is still the same. If you need unlock, it is worth to do the TA backup, also for other functions apart from camera.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
@ j4nn, the new 19.3 magisk works fine with your kernel..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] torben5247:
Thanks foryour work j4nn

I have the just received notification for ota update 47.2.A.10.62.

i am currently running 47.2.A.10.45.

I have flashed twrp 3.3.0.

i have disabled verity in the kernel using magisk.

And i have flashed the magisk patced kernel using fastboot.

I was not expecting that the ota update was working after these steps, but now i have the notification.

My question is:

Can i do the ota update?

I know i will loose root, but after the fota update i will flash the boot-G8341-47.2.A.10.62-hideunlock-kernel-10.45.img and disable verity in magisk.

And if i loose twrp i will just flash twrp recovery.

Will that work or will it cause bootloop if i do the ota update.

Thanks in advance for any answers.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=5219494]torben5247[/MENTION], the fota system update verification will fail unless you have stock kernel, stock recovery (fotakernel) and not modified (i.e. stock) system and vendor partitions.

If wanting to do fota, it is good to backup 'boot' and 'fotakernel' partitions before flashing customized kernel and twrp and restore them from the backup just before accepting fota upgrade (but you need to boot unlock hiding kernel from usb via 'fastboot boot' command).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] KpKi:
Just out of curiosity, is it possible to create a universal kernel patcher for Pie instead of reworking each release ?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=5608334]KpKi[/MENTION], well that would be very interesting, I am not keen on releasing these many kernel variants two times at each month, possibly multiplied even with different magisk versions...

unfortunately the patch is not trivial (see the source code here) - it's not like flipping a result code of a function, there is added not trivial code, that can in my opinion hardly be added via binary pattern patching...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] torben5247:
Ok. thanks for clarifying this [MENTION=4418980]j4nn[/MENTION] :good:

So i need to use newflasher for updating without dataloss.

I know that i have to delete "persist_X-FLASH_ALL.sin" And all "ta files".

But i am i little bit unsecure how to update using newflasher, without dataloss.

I read her https://xdaforums.com/showpost.php?p=76327783&postcount=5

that i also have to delete these files:

appslog_X-FLASH-ALL-42E5.sin

diag_X-FLASH-ALL-42E5.sin

ssd_X-FLASH-ALL-42E5.sin

userdata_X-FLASH-ALL-42E5.sin

Could you please help me out is that correct?

Thanks in advance:good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
No, actually you can use system fota upgrade as described - there is no dataloss, similarly as it is not when doing fota update on a still locked phone.

The only difference is that you need to take care that you have not modified stock fw, i.e. if you need to flash a kernel, you can backup the stock one first.

If you need to flash twrp, you can backup 'recovery' (i.e. fotakernel) partition first. If you use only magisk modules for fw mods, your system and vendor partitions would not be modified, so no need to backup/restore them.

When wanted to do a system fota upgrade, you would restore your backups, boot unlock hiding kernel from usb via 'fastboot boot' and do a system fota update without any data loss.

And backup new kernel (and recovery) before flashing kernel/recovery.

This way you can avoid downloading full fw completely and do just fota updates without data loss.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] torben5247:
Thanks [MENTION=4418980]j4nn[/MENTION] for your reply

Unfortunally i haven't backed up fotakernel before flashing twrp :(

And I have deleted app's in "system/app" And "system/priv-app" so system partition are modified :(

So i think i have to use newflasher. And do a dirty flash. But I am not sure how to do that..

Can You explain how to do that?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=5219494]torben5247[/MENTION], your previous post about full flash should be ok, just be sure to flash also all content of 'boot' subdirectory including the .ta there, so the bootloader of to be flashed fw is flashed as well.

In addition, you may skip Qnovo, cache and ramdump.

Flashing userdata would be the same as full reset.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] torben5247:
dear [MENTION=4418980]j4nn[/MENTION].

Worked like a charm with the dirty flash.:good:

flashed 10.62 without these files:

appslog_X-FLASH-ALL-C93B.sin

auto-boot.ta

cache_X-FLASH-ALL-C93B.sin

cust-reset.ta

diag_X-FLASH-ALL-C93B.sin

fota-reset.ta

master-reset.ta

osv-restriction.ta

persist_X-FLASH-ALL-C93B.sin

Qnovo_X-FLASH-ALL-C93B.sin

ramdump_X-FLASH-ALL-C93B.sin

reset-kernel-cmd-debug.ta

reset-non-secure-adb.ta

reset-wipe-reason.ta

simlock.ta

ssd_X-FLASH-ALL-C93B.sin

userdata_X-FLASH-CUST-C93B.sin

booted the phone up.

The phone showed the bar "finishing the system update" .

Flashed your boot.img (i have patched it in magisk 19.3 manually) and twrp.

Everything just worked:laugh:

Thanks:good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
I never back up my drm and ta!! How to fix this?

Please help i never bavk up anything. I just rooted the phone. Id like to back my drm and ta. Thanksp
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
Well, I hate to be the bearer of bad news but if you have already rooted your device then backing up DRM/TA partition is gone as it needed to be prior to unlocking and rooting your device..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
Finding the alternative kernel

Where can i download alternative kernel. I downloaded the zip file at github intall it in twrp but it failed
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
There really isn't an alternative kernel per say at this time for folks that have unlock their bootloader without a backup , as there currently isn't a "drm" fix for pie.

Now with that being said luckily the camera still functions ..

j4nn does make a stock kernel that does a lot, hides roots, allows for fota ect .. bit it also doesn't have a an *drm" fix , he'll chime in here at some point he has posted his lastest ones for the.lastest firmware on pages 9 and 10 for the single and dual sim phones .. you can flash the one that is based off your model as it is stock based.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
You mean theres no hope to bypass DRM tru any kernel?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
The only thing I can think of is check janjan's thread and if it's still posted there might be and older oreo kernel and a drm patch.. it's here in the rom , kernel but that's going backwards.. not all is lost .. your camera should be fine and it's debatable one the picture quality, check your sound settings and video image enchantment.. the only other issue and it's an easy fix is you won't get ota updates that fixed with newflasher and Xperifirm..

Should you really bummed go check out the Treble ROMs ..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
How did you root your device? Have you already unlocked your bootloader, or do you mean you've temporally rooted it via exploit?

If you have unlocked your bootloader before backing up the ta partition of your device, the drm keys are lost forever. In this case you may have a look inside this thread. As far as I know, the last provided firmware to do that is 47.2.A.8.24 atm. But if you kindly ask the threadstarter there (in his thread), maybe he'll provide a kernel matching the current firmware.

But if you've rooted your device only temporally, you are able to backup your drm keys. Just follow [MENTION=4418980]j4nn[/MENTION]'s corresponding thread in that case.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
I rooted with no back up. I flash the theunlock kernel and jts working. Can i add the janjan kernel?

---------- Post added at 10:31 PM ---------- Previous post was at 10:27 PM ----------

Can i use this unloked kernel and janjan kernel at the same time?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=8445698]jlespiritu[/MENTION], [MENTION=4898998]Klaus N.[/MENTION], the pie version of janjan's kernel does not come with any drmfix (the last version with a drmfix included has been released for oreo).

In my opinion, the referenced kernel might be useful if you go after a specially tuned kernel.

If you seek to restore drm functionality, you may be better using this "hiding bootloader unlock kernel" as with that you may even install a system fota update (one of "drm" related functionality), even though it is not straightforward. There is no drmfix available for pie with anything anywhere, but it is questionable if it is still needed, while camera somehow works.

You can use only one kernel at a time obviously.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
So this is the recommended kernel for pie without TA or DRM key.? How about the other camera funtionality lile bionz and xreality? Does this fixed this problem on this kernel?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
Thanks for the reply.

Yes, you're right - my fault! Actually I know that, because my other device is a XZ2 ;)

[MENTION=8445698]jlespiritu[/MENTION]

So you will wait and cross your fingers for sToRm// to get a working fix on Pie.

And - as recommended by j4nn - install the appropriate rooted kernel hiding bootloader.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
Drm patch of janjan + unhide bootloader of j4ann for oreo .20? Is that possible?

Planning to downgrade to oreo .20 im going to use drm fix of jan jan and unhide kernel of j4nn is that really working?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
I have no idea, but I guess it won't work. Afaik, the drm fix is integrated in janjan's Oreo kernel - that would mean for you: either or...

If you really want to downgrade to the latest Oreo (47.1.A.16.20) firmware, you can flash the appropriate kernel image from post #2 of this thread. Right after (if you want the drm fix in addition), you can search in Google for "XperiFIX" (links are not allowed, and it's not related to this thread).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=8445698]jlespiritu[/MENTION], I am afraid you are asking in a wrong thread - this kernel has never been intended to serve as a drmfix.

It may be used on phones with drm keys lost, as it allows to install system fota upgrade even with those phones.

But I do not think going back to oreo would provide you a big advantage, even though drmfix is available there.

I guess you should be discussing your expectations with [MENTION=7835385]TheVan28[/MENTION] - you two are exactly on the opposite sides (see here please) - you seem to know that there are certain crucial features not working on pie with lost drm while TheVan28 would like to know exactly that as he seems to think that backing up locked TA does not bring any benefit anymore, not worth it even for the sake to be on the safe side for features not yet verified to work the same.

What about starting a thread where you two could compare lost drm vs restored TA feature wise?

It would be great source of info, if you could include even some proofs, like camera picture quality and so on...

[MENTION=4898998]Klaus N.[/MENTION], actually I guess the drmfix from janjan's oreo kernel might work with my oreo kernel too. It is flashed as a standalone zip via twrp. I guess (not tested) that it could even work with a stock kernel (at least for the camera stuff).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
[MENTION=4418980]j4nn[/MENTION]

As I've never dealed with a drm fix for my XZ1 (because of you and your phantastic work with the exploit and your detailed instructions to backup and restore our drm keys :svetius:), I fortunately never had to search for a "solution" like that.

Btw, it's a good idea from you, [MENTION=8445698]jlespiritu[/MENTION] should start a new thread to compare Oreo with drm fix vs. Pie without - the results would be very interesting!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
Experimental

I just want to share my idea. I hope this one will help. Because i read DRM fix is good to the oreo plus amazing work of [MENTION=4418980]j4nn[/MENTION] unhide bootloader. I think it would be giving great help to others. I hope someone will try.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=8445698]jlespiritu[/MENTION], you would need to convert that drmfix into a magisk systemless module (if that is even possible) in order to make use of the system fota update possibility provided by the kernel patched to hide bootloader unlock.

In fact I would assume that not all components of that drmfix would be needed - possibly the patched secd could be skipped as that is covered by my kernel patch, while lost sony credentials would be provided from the injected dynamic libs.

But staying with oreo is in my opinion not that good idea...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jlespiritu:
Suggestions

Master j4nn thank younfor your ideas. I learned a lot. I hope wr can find ways to fix and activate all DRM issue esp to those lost and unback up TA. Your work would be great help to us. Please suggest what i need to do.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
Just flash the full stock 16.20 fw including bootloader and the .ta in boot/ subdirectory to downgrade to oreo (would erase all userdata). You may skip persist.sin in case you still have the android attest key. Then flash twrp and boot-*-47.1.A.16.20-hideunlock-magisk-19.1-noverity.img kernel. Then from twrp you may flash the 2-Patching.zip from janjan's 16.20 package - you may modify the zip removing vendor/bin/secd from it. That should make your oreo camera working (with lost drm).

I am not putting any effort to convert that to systemless magisk module as you still like to stay on oreo so fota system upgrade possibility does not make sense anyway.

Most likely you would also need the 4-kernel_permissive.zip, but as magisk is already in my kernel, you would skip 3-Magisk.zip from janjan.

To be honest I would not be happy with this, because running in permissive mode is not very safe. Staying with oreo is not great either, missing all the (vendor's and google's) security updates and bug fixes.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
I wonder why Sony still has not released the kernel sources for the previous (10.62) fw, while there's already the 10.80 fw rolling out :confused:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=4898998]Klaus N.[/MENTION], exactly, I wonder the same.

It is beyond me, why they stopped updating the kernel-copyleft on their github - it would be so much easier and quicker to update custom kernels with stock changes, avoiding those huge downloads of oss archives.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
Please ask the SONY support! I will do the same.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
As some may noticed already I have built 10.62 blu hiding kernel using just recently released Sony kernel sources: the kernels are available on my androidfilehost:

https://androidfilehost.com/?w=profile&uid=5862345805528050190

It is a shame Sony released sources for a may patch level while releasing fw update with June(?) patch level (10.80 version) without sources.

The kernels have magisk 19.3 integrated with verity on and are not tested, just assumed to work.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
First of all, thanks a lot for your efforts!

I can confirm, it works flawlessly - awesome job as always :good:

As we don't know, when Sony will release the sources for the 10.80 fw, it would be very appreciated, if you could release a pre-version of your hideunlock-kernel for it. But take your time, ofc.