yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] russel5:
[MENTION=535343]all[/MENTION] i want to contribute my 5 cents.

First let's speak about this mystic files, like secd, drmfix, drmf* and it's 64bit's version.

Did you know [MENTION=403684]MrMmmkay[/MENTION] & [MENTION=2796045]shaftenberg[/MENTION] that secd belongs to the Sony company?

Did you know that in this file always changes few bytes in same place of code? And anybody can see this via Ida pro.

Next drmfix & drmfix64 files that makes a "magic".

Did you know that this files belongs to the [MENTION=357342]tobias.waldvogel[/MENTION] ? 1 to 1 without any changes

And the last files drmf** & drmf**64, yes, this files belongs to the [MENTION=8363210]sToRm//[/MENTION] , but anybody can download this files and used, because they can :)

So I do not understand your charges, the more you do not understand this completely, you simply repeat the words of others like parrots. No offense.

To [MENTION=8363210]sToRm//[/MENTION] and if you got working fix for us long time ago, why are you not give it to us?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] MrMmmkay:
But there is no official Version for Z1/Z1C from storm out there, so were does it come from?

There is a little "trap" in the updater binary file of the drm zip out of the op:

"ui_print "Sony XZ1/XZ1C *OREO* DRM restore by //sToRm"

And this means that its defenetifly a beta file which should not be out there...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Reptilez_DK:
I see your point. :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] sToRm//:
That's not the problem... Here you go... https://xdaforums.com/xz-premium/de...-xperia-xz-premium-twrp-t3695171/post75134465
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mhaha:
In case some people still don't understand, this patch from [MENTION=6844550]M-Rom[/MENTION] is basically stolen work from [MENTION=8363210]sToRm//[/MENTION]

It contains files that were privately shared to testers, which were still in development and not ready for release, that somehow leaked.

In addition, [MENTION=6844550]M-Rom[/MENTION] is not willing to acknowledge any wrongdoing, and is either playing dumb by pretending not to understand inquiries about his source or details of his patch, or truly has the sketchiest English skills ever, which is no excuse for being disrespectful and stealing other people's works.

In summary, DO NOT DOWNLOAD and DO NOT USE this patch!

This is a shameful act. DO NOT support this type of behavior. Retract any thanks given to [MENTION=6844550]M-Rom[/MENTION].

I also urge everyone to halt further discussion in this thread and let it die.

Ask yourself, are you willing to trust your *rooted* phone to an untrustworthy person? Who is not the actual developer of the patch, and likely has no means to help you in case something goes wrong, or further developments down the road (e.g. new firmware update)?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] M-Rom:
I will modify secd, why do you think I will not?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jay7193:
drmpatch.zip

Install XperiFIX

In C:\XperiFIX\DATA\XZP\G8142\Oreo2
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] shafiq01:
The useracent it sends when making sip calls aka. Vowifi or volte is ATLAS and not G8441blablabla

Some carriers might have strict device control and some carriers only restrict to imsi (sim)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] MrMmmkay:
No, he didn´t, in that file there is other text in update binary file...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jay7193:
Modify the update binary

ui_print "******************************"

ui_print "Sony XZ Premium *OREO* DRM restore by //sToRm"

ui_print "******************************"

change

ui_print "******************************"

ui_print "Sony XZ1/XZ1C *OREO* DRM restore by //sToRm"

ui_print "******************************"

you mean this?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
The silence from M-Rom explains everything
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] M-Rom:
I am not silence

I have written how to modify
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
It's not your work and you refuse to explain where you got //sToRm's files from. You just Kanged his work and don't even admit any wrongdoing.

You should do the right thing and close the thread and remove the files.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] M-Rom:
Quote:

secd original file（G8441_47.1.A.8.49_CE） https://mega.nz/#!IpYg1Q4Q!ONXXqHoP6...og3ISrMgogO8go

modify

E803003206000014E8031F3204000014E807003202000014E8 031E32

for

08008052060000140800805204000014080080520200001408 008052

drmpatch.zip

Install XperiFIX

In C:\XperiFIX\DATA\XZP\G8142\Oreo2

Modify the update binary

ui_print "******************************"

ui_print "Sony XZ Premium *OREO* DRM restore by //sToRm"

ui_print "******************************"

change

ui_print "******************************"

ui_print "Sony XZ1/XZ1C *OREO* DRM restore by //sToRm"

ui_print "******************************"

/ system

change

/vendor

And replace secd

Quote:

SuperSU.zip

Modify init.supersu.rc.24 and init.supersu.rc.24.bindsbin

on post-fs

exec u:r:supersu:s0 root root -- /sbin/fbe_bypass.sh

export LD_PRELOAD drmfix.so:drm****.so

#RIC disable

mount securityfs securityfs /sys/kernel/security nosuid nodev noexec

write /sys/kernel/security/sony_ric/enable 0

Can not you see what I wrote?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
DRMfix is not your work, why did you think it was ok to release it?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jay7193:
can you read post #116?

The file is not from [MENTION=8363210]sToRm//[/MENTION] 's tester.

Maybe it's a misunderstanding.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
Sure, so all the 'made by sToRm//' notes in the files mean nothing?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jay7193:
That's why M-rom said that

'drmfix.so/drm****.so thank [MENTION=8363210]sToRm//[/MENTION] '

i believe you know what [MENTION=8363210]sToRm//[/MENTION] care about now,and it is just a misunderstanding, could you please close you mouth?

sorry for my poor english
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
Plagiarism

I know, long word for poor english
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] pbarrette:
Wow..

There's so much misunderstanding on your part that I simply don't know where to begin.

It would be helpful if you understood the technical issues at play, but since you don't, there's little left to convince you that not all issues in life are simple black vs. white, true vs. false choices.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
There's nothing technical about releasing someone elses work without permission, just sayin.

The 'bigger picture' is that M-rom released a fix that works with 8.49 firmware, great, but he doesn't have the skills to make a new fix for later firmware. To be able to upgrade to any newer firmware we need the help of sToRm// and he'll never help on the XZ1c's again, great work guys :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
[MENTION=8363210]sToRm//[/MENTION] is a man who always wants to help and share his work with others in XDA. Did [MENTION=8363210]sToRm//[/MENTION] told you that he doesn't want to share his knowledge and skills or any help on the XZ1compact?

We will be very thankful to [MENTION=8363210]sToRm//[/MENTION] if he continues his work on the XZ1 compact. And as a great Dev he will continue his work as always. Hopefully..
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
Lets hope
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derjaeger:
At least, I am happy I bought XZP and not XZ1C, as these mean actions completely burned its root devel. Congratulations, Mr Einstein!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] LooHD:
老铁，加个QQ：1552215178，想问下secd是什么东西，还有这个安全级别补丁我的是2017/12/1该用lever1还是2，跪谢。（安卓机不root和砖头没区别）
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Pakodogan:
hi dude is that work for 47.1.A.12.34 january firmware because ı did its not worked

camera still take green pic vs..
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] SkyHigh76:
I used the files together with the latest firmware.

It worked for me quite finde. No green pics with stock cam app.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Pakodogan:
Hi buddy which version your firmware

I try on January update ıt didn't work

After then I flash December firmware

And it's working fine now

I have January update messages

What should I do now

I have no idea ? say something =)

I don't want to lose my root and working camera after update
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] SkyHigh76:
Hi, I flashed the German firmware from January without userdata. After that I had to fastboot TWRP and then flashed the three files. It works
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Pakodogan:
Really that is a good new

Thanks for information :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] SkyHigh76:
This one exactly:

G8441_Customized DE_1310-4373_47.1.A.12.34_R6B
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] switcher:
i would like to give it a try, no more greenish sounds great

but what about the quality of the images, is it like it was before opening the bootloader ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] SkyHigh76:
Yes, the same quality
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Pakodogan:
yes finally ı did it to ı made with january update everythink work fine

I flash G8441_47.1.A.12.34_1310-6690_R6B(vodafone.de) this version.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] encynator:
Excellent, works like a charm. To whom may be asking, what to do with fstab which is also included in archive. Do not flash it :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Hansoliv:
Thank you very much!

DRM was the only thing that was keeping me from getting rid of my stupid Galaxy S8.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jinishpv:
any one notice without drm fix ,when capturing photo on predictive mode its taking normal photos for me iam on latest firmware
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Boeing747x:
Wow you're the developer on Gfan!:)

Thanks a lot
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] 3assiii:
thank you M-ROM and everzbody else for your work.

I got the Lilac today und just started checking everthing here.

without a way to Backup TA Partition i wont risk it.

yes its hard to go without root; but backing up the TA deserve the waiting.

lets hope it wont be long
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rpgdev:
So what does the drmfix do? In which instances would I need to apply it? Or why would drm break in the first place and which features would I lose?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] koziakauzu:
You lose your DRM if you unlock your bootloader / root your phone. Without DRM you cannot use the camera anymore (green images) and you'll miss some specific features such as image/video display enhancement.

For previous devices from Sony, some dev found a way to backup these DRM, but no one found how to do it for the XZ1c (and some others) yet, so the DRMfix will let your phone believe that the DRM are still here.

If you don't backup your DRM (which you can't atm) and root/unlock your bl, you lose the original DRM forever and you need to install the fix for each update (I think) - it makes the device harder to resell / get serviced under warranty.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rpgdev:
That's ****ed up, I'm new to Sony Xperias. Can you get your drm back if you reinstall the stock rom again? Is there a way to do so?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Nouatik:
Niet. The DRM keys are "personal licenses" who resides in the TA partition of the device.

When you unlock your bootloader, the TA partition gets wiped and your keys gone.

On older devices you could root and then do a backup, but on the newer devices its impossible (yet) to root without unlocking the bootloader.

Get rekt
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rpgdev:
So if I use chainfire to root then I lose the drm?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] PeppeBove:
Yes, now you lose it
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] 4rz0:
You already loose it when you unlock your bootloader.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rpgdev:
So this is the only way to restore it? Makes rooting your phone a lot more high stakes than I'm used to :(
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] akonet.android:
No. Please read few post above. There is no way to restore DRM keys which are lost at the time bootloader is unlocked. DRM-fix is a fix, making the OS think the keys are there. Fix work works witj some combinations of kernel/Magisk/SU/ROM but not with each amd every combination.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] 4rz0:
The only way to possibly backup the keys would be to have root without unlocking the bootloader, which is not possible at this point.

Even if someone manages to achieve that (maybe trough some exploit or something), it's still unknown how the new key system works.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JackyJacks:
I am sorry for the noob questions but even though I red the full topic, I did not find clear answers for each one of them.

1- Can I use this fix with the latest firmware (47.1.A.12.75) ?

2- Can I use this fix with stock kernel ?

3- Can I still receive monthly Sony's update with this fix ?

4- If yes, do I need to reinstall it after the update to make it work again ?

5- What is Magisk (kernel, app, script, ...), and what is its purpose ?

Thank you all :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
Unlocking your phone is not for you.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JackyJacks:
Well, yes it is, I did it with all my previous phones (mostly HTCs and Samsungs), I just did not know that Sony made it so a pain in the ass, so now I want to make sure I got all the information before I go.

Please just answer to the questions, what is it with the mystery ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
I would follow this thread.

sToRm// who wrote the fix used in this thread is about to release a 'one stop' tool that will do everything. If you look back though his comments, he's planning on making it compatble for the XZ1 & XZ1c.

You're also more likely to get support on that thread. Not much help from the OP here.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JackyJacks:
Hmmm nice material.

From the thread you posted, I can see that the tool does flash a custom kernel for the fix to work properly.

Then why isn't there a kernel in the OP for that leaked ricoff/M-rom stuff ?

So, I think I got the answers to my questions for the current fix but two. can you please help with that ?

1- Can I use this fix with the latest firmware (47.1.A.12.75) ?

Well yeah this works for any Oreo version​

2- Can I use this fix with stock kernel ?

3- Can I still receive monthly Sony's update with this fix ?

Well yeah if I use Magisk as a rooting tool and not SuperSU​

4- If yes, do I need to reinstall it after the update to make it work again ?

5- What is Magisk (kernel, app, script, ...), and what is its purpose ?

Hidden root (or "systemless-ly") so that you can user banking apps and other "parano" apps​
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] akonet.android:
To maintain the mystery aspect, here's a riddle ;)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] pbarrette:
2- Can I use this fix with stock kernel ?

The fix in this thread is build for the stock kernel only. Non-stock might work, but there's no guarantee.​

3- Can I still receive monthly Sony's update with this fix ?

No. The fix in this thread REQUIRES the included version of SuperSU which contains a modification that allows the fix to be used without modifying the kernel's ramdisk.

You can't use Magisk directly with the patch in this thread.

Since you'll be rooted, you won't get OTA updates.

You can still download the updated ROM files with XperiCheck and flash them with Newflasher though.​

4- If yes, do I need to reinstall it after the update to make it work again ?

In all cases of updates (OTA or manual) you would have to re-flash the fix.​

.

The //sToRM fix currently uses a "custom" kernel that is really the stock kernel zImage with a re-packaged ramdisk image.

That change is needed in order to get the library files into the LD_PRELOAD environment variable so their patched functions will be called before the equivalent real functions in the Sony libraries, as well as turning off the functions which check for modified files on the /system partition.

The fix in this thread essentially hijacks the systemless functionality of the SuperSU package in order to inject that LD_PRELOAD and turn off the system checks without resorting to a direct modification of the kernel ramdisk image.

That's the primary difference between //sToRM's current package and this one. It means that //sToRM must distribute a full 20MB kernel image for every combination of phone and firmware version he supports, while M-Rom's package means that he only has to include //sToRM's library files, a patched "secd" binary and a modified SuperSU package.

I've told //sToRM in the past that he should be using something like AnyKernel2 to do the ramdisk patching at the user end, so that may be where his dev plans are headed. Otherwise his tool will just keep getting bigger every month.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JackyJacks:
Woa, now that's the kind of answer I was looking for.

Thank you, now everything's clear.

Trying to be smart but you didn't read and/or understand...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] akonet.android:
Think just the opposite. If part of the stock kernel is modified. It no longer is stock. Try it. Make a clean flash to get stock kernel and apply the fix only, and you will see. Several customs kernels are shared in this thread (if you bother to read it through).

What [MENTION=4782500]pbarrette[/MENTION] says above, I don't agree with the definition of stock kernel.

And while you, sir, ask a question and reply to it by yourself is an example of not readin and/or understanding.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JackyJacks:
:eek:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] sToRm//:
To all XZ1 and XZ1 Compact users:

XperiFIX now supports your devices! You can download the current version (fixed) again, install and run it.

https://www.xperifix.com/download/xperifix-latest/

Please report if it works for you!

Original thread: https://xdaforums.com/xz-premium/development/hack-mod-sony-xperia-xz-premium-twrp-t3695171

Cheers!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
Hey Mr Wizard, thank you so much for all your hard work.

Finally an easy 'one stop' app that fixes everything.

:good:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] alximiktik:
First, the program could not automatically boot into the recovery.

2. Could not install magiks and drmfix. After reboot, the camera shoots green.

I think the reason is, we've disabled usb debugging, since I requested a new frimware.

Отправлено с моего G8441 через Tapatalk
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] sToRm//:
It's a bug in TWRP. Will be fixed in the next update (2.2) of XperiFIX. :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Raz0Rfail:
I tried it yesterday with my phone.

XperiFIX freezed 3 times if the phone was up in Android and activated USB-Debugging.

XperiFIX didn't freezed if phone was in fastboot mode.

At first time it pushed only the TWRP Recovery and not the fixes.

In Android it was expected, green pictures and no magisk was installed.

The second time in Fastboot and using XPeriFIX it pushed correctly magisk and DRM-patch.

Now I have magisk, root and correct pictures.

Thx for your hard work. :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] md1982:
Im getting my xz1 compact on monday i always root my phones just wondering after iv rooted etc does everything on the phone work as it should ie same quality pics as stock and all the rest of the phone?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] md1982:
Hello is there anyone stiil on this thread?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
I think sToRm//,'s Xperiafix thread has overtaken this thread for the easy way to root your phone. He has built an app that runs from a PC that does everything and works on all XZ devices, whatever the firmware.

I used this method myself this week, so can confirm that it works.

Do spend some time reading the thread, it's not quite as simple press one button and everything works. Getting the right couple of drivers installed first is paramount.
[8525, TyTN, MDA Vario II, JasJam ROM Development] superman13:
Hello,

i install the shadow 2.1 CE Clean version ENG but everything works fine

but the problem is i can`t writing in my qwertz keyboard german

Have you people a idea how can write in german

it is possible to add german keyboard files in wm6.1 ?

Whats folder and File Please help me?

Thanks

Peace to the people

i have a mda vario 2
[8525, TyTN, MDA Vario II, JasJam ROM Development] Koterpillar:
If you're talking about hardware keyboard, look at the Hermes Wiki or install Advanced Configuration Tool by Schaps.
[8525, TyTN, MDA Vario II, JasJam ROM Development] superman13:
Is this corectly i must only change the registry to use German Hardware Keyboard nomore files needed

Great Thanks

Restore local language support for sliding keyboard after upgrade to a different language ROM

This has been reported not to work, see below for another hack

You need to create Registry value of name "Locale" and type of "String" and data of "Localization ID" within

[HKEY_CURRENT_USER\ControlPanel\Keybd]

Localization IDs:

German = 0407
[8525, TyTN, MDA Vario II, JasJam ROM Development] egoist6:
no. you have to read carefully the wiki. you will see there that you have to create it in

[HKEY_LOCAL_MACHINE\Software\Oem\Qwerty]

the name of the key is Layout

the value (hex) of the key is 20407

do a soft reset via switching the device off (long button press of the on/off button) as it keeps your changes. otherwise you will loose your changes.
[8525, TyTN, MDA Vario II, JasJam ROM Development] superman13:
Thanks that works fine
[8525, TyTN, MDA Vario II, JasJam ROM Development] stan23:
this CAB does the registry entry for a german keyboard and installs the file (\windows\sym.0409.txt) for the german umlauts (that you get ä first and not á when you switch via dot + space)
[8525, TyTN, MDA Vario II, JasJam ROM Development] superman13:
Vielen Dank
[8525, TyTN, MDA Vario II, JasJam ROM Development] colt-ca0:
Hello,

i've installed the rom HTC HERMES_CE OS 5.2.19949 Build 19949.1.2.0. and your tool doesn't work with this rom. Do you know what I can do to have the german Umlaute (äöü)?

Thanks a lot.

Greetz.
[8525, TyTN, MDA Vario II, JasJam ROM Development] egoist6:
edit the file \windows\sym.0409.txt yourself. it is very easy.

have a look into it and you will see what i mean.
[8525, TyTN, MDA Vario II, JasJam ROM Development] mrtkts:
Goto the following registry entry

[HKEY_LOCAL_MACHINE\Software\Oem\Qwerty]There is a key called 'Layout' and it is in Decimal.

The suitable value for German Hermes keyboard is 20407 (132103 in decimal). =qwertz
[8525, TyTN, MDA Vario II, JasJam ROM Development] colt-ca0:
Thanks for the posts. I installed the rom, then I installed the tool of stan23. I looked into the registry and the value is 20407. When I want to use the hardware keyboard I can't write a "ä, ö, ü" not even an "á". I can't understand it.