yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] sylphio:
This seems like a great kernel :D. Has anyone tried it with modpunk's LineageOS 15.1 ?

Edit: Actually, feedback on any custom ROM is welcome.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] InteRadek:
Side note: after upgrading from rooted FW version 205 to 235/270 using NewFlasher the camera in the phone was not working properly (after applying patches). It additionaly made a full data wipe by default.

But after upgrading using FlashTool the camera is working fine and no wipe was needed.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Ruttix:
I would really be grateful if someone could find the minute to write down what should we do to upgrade from an existing working precious kernel. I've looked through comments and I'm very confused.

Is flashing everything on top of an old janjan kernel going to work?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] InteRadek:
Hi [MENTION=6047177]Ruttix[/MENTION], you can use detailed guide created by [MENTION=3666806]N1ghtr08d[/MENTION]. This guide is for XZ1, so the software is different, but steps are the same as for XZ1 Compact.

https://xdaforums.com/xperia-xz1/how-to/guide-how-to-persistant-root-xperia-xz1-t3718375
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Ruttix:
Hmmm, I took a quick look, this is great but I've already flashed janjan's kernel a while back and am using it.

I want to know how to proceed in order to update it, as in should I factory reset before, or perhaps just flash on top of existing installation?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rsk_kelkar:
Hi [MENTION=490110]janjan[/MENTION] can you let us know what's the difference between your drmfix and the one by [MENTION=236992]Storm[/MENTION] he is selling through XperiFix?

I know kernel is different, but is there any real difference in the drmfix method or approach?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
Both method fixes/do their job..fixing Camera issue after bootloader unlocking :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rsk_kelkar:
I know both do their job. In fact I tried both methods. What I want to know is if the method of fixing is same or different. This I want to know if the money I used to buy XperiFix, was really needed to be spent/worth it. Instead I could donate some amount to you
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
No difference both method is fixing the camera issue.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] bofis:
Thanks again for all your help, I love having the DRM-fix on my unlocked bootloader, and even getting Google Pay working with root thanks to Magisk...so now Sony has released 47.1.A.16.20 build for our devices, and I simply flashed the update (without any TA files) and without wiping userdata, and then applied your patches, and I'm up and running better than ever! Battery life is vastly improved from the already-great it used to be. Thanks again for your continued development work for our XZ1 Compacts!!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Vaxes013:
Thanks but the downloads are not working :(
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
HERE YOU GO. ENJOY

IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN DON'T FORGET TO BUY ME COFFEE

DONATE ME HERE

DONATE-HERE​

##############################

Features 14/9/2018

##############################

- Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 78 (47.1.A.16.20) September 2018

- Up to date with the September security update—September 2018

- Hide verifiedbootstate from /proc/cmdline in order to fix the failed SafetyNet CTS check(It can still fail through other means)-GOOGLE PAY SHOULD WORK

- Remove verifiedbootstate flag from /proc/cmdline - Disable CRC check

- Support wireguard VPN protocol

- dm-verity removed

- Sepolicy is patched for latest Oreo (deodex ROMs)

- Camera/DRM fix working with latest magisk manager. No greenish picture

- Scheduler optimize/support for heterogeneous multi-core. Battery efficiency

- Energy Aware Scheduling (EAS) feature is enabled/optimize energy consumption for advanced multi-core SoCs

- Multi-core scheduler enable/optimized

- Update and add Qualcomm PM driver/APM driver updated reduce battery usage during sleeping

- A lot subsystems converted to use power efficient workqueues

- CAF improvements and optimized

- Enable latest energy aware scheduling patches

- Enable workqueue power-efficient mode by default

- Several other patches to improve the speed and battery usage

- Tweaked/optimized the scheduler to balance the load across all CPUs without any regards to the power costs

- Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPUs or idling them,

- Tweaked to predict the best time to save power on the CPU without affecting performance

##############################

Downloads

##############################

SONY-XZ1 Compact(G8441)-47.1.A.16.20-(14/September/2018)

[KERNEL][DRM-PATCHING]

IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN DON'T FORGET TO BUY ME COFFEE

DONATE ME HERE

DONATE-HERE​
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
Sony XZ1 Compact user :)

I do all these things in my free time and appreciate peoples donations for buying coffee/ whiskey :) Since I am starting my work from next month.. I am not sure that I will be able to continue these thing any more. But who knows.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JackyJacks:
Hello janjan,

Just to be sure, let say I'm on the latest stock firmware (47.1.A.16.20), fresh.

If I :

- Unlock my bootloader

- Flash TWRP

- Flash Magisk

- Flash what you call "[DRM-PATCHING]" (without flashing your kernel)

Will I be good ?

Now, if yes, I actually am on 47.1.A.12.270, and am some kind of morron who prefers to wait for the OTA update than flashing it myself...

From the post below, is "[PART-2]" the equivalent of "[DRM-PATCHING]" for the previous firmware ?

Then again if yes, the link is broken :eek:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
U have to flash the kernel otherwise it doesn't work.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rsk_kelkar:
Isn't there any way I get to keep my userdata (by deleting userdata.sin in newflasher dir?) when I am upgrading the stock ROM? Will the TWRP backup from one firmware work if restored on the new firmware?

Also when you release a new update, is just the new boot.img updated? or do you even update 2-patching, 3-magisk and 4-pemissive zips too?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JackyJacks:
I'm sorry maybe that's not the place, I'm just looking for a non automated patch for DRM.

I know there's a paid tool that does all the job for you, but I already have TWRP and am unlocked, now I'd just like to flash some zip throufh TWRP to fix the DRM.

I'm pretty sure that's feasible, is that drmpatch/ricoff stuff still the best way to do it ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] dcrin3:
I kept my userdata on this thread for XZ1 but the process should be similar for the XZ1c

https://xdaforums.com/showpost.php?p=77669662&postcount=586

---------- Post added at 08:28 AM ---------- Previous post was at 08:24 AM ----------

[MENTION=490110]janjan[/MENTION] method seems to work just fine on my XZ1, the same should work for XZ1c with a combination of flashtool. I used newsflasher before but that has failed me for months... now I'm trying a new method(flashtool).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] dcrin3:
I snooped around the 2/3/4 and it appears they don't get updated as often. It's mainly the kernel(boot.img) that gets updated every build.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Juel-DK:
Thanks for your work janjan!! You saved me! A donation is sent your way! :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Juel-DK:
One note though, Wifi calling is gone :/
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] OldAresius:
Can anyone confirm that the camera is still working with the current version (47.1.A.16.20)

Unfortunately, for me that is currently not the case, the camera app is kind of hanging when I push the trigger, the picture keeps on moving on the screen, but no picture is taken and the controls are disabled so I have to hard kill the app.

As far as I can tell, everything else is working as usual.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rsk_kelkar:
Your battery must be low. Check back after you charge the phone
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] camaro322hp:
I know the instructions say to use Flashtool, but will it make any difference if I use NewFlasher? I ask because I need to mix/match firmware files before flashing to keep T-Mobile/fingerprint functionality active.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] OldAresius:
How do you mean that? Beside that I tried that not only once and for sure with fully charged battery, what impact do you think does the battery status have to if the camera is working?

Can I read from your answer, that you do have an XZ1 compact with janjan's newest kernel and patch an working camera?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rsk_kelkar:
When the battery is low, the phone just shows the live camera in view finder doesn't take any pictures. It also shows such message. Will post a screenshot here once my battery is down.

Also I noticed the camera won't work sometimes when you boot first time after installing a new magisk module. Haven't tried to reproduce this, may be caused by something else. But this should be solved by a simple reboot.

I am on 16.20 stock rom with janjan kernel, drm fix and magisk.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] OldAresius:
Ok, seems that something went wrong during my last system update, I have flashed and patched the rom once again and now the camera is working again.

Sidenote: I noticed that after this time's rom flash the unlocked bootloader warning screen changed from one with a small yellow triangle to one with a larger opened white lock.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] TimeIsAll:
Does anyone know how to get mobile banking apps working with this kernel? i tried to hide the lloyds banking app in magisk hide but as soon as i open the banking app it closes automatically
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] gshegosh81:
Have you tried using "MagiskHide Props Config" module? I've posted more details here: https://xdaforums.com/xperia-xz1-co...ageoslilac-t3745215/post77229012#post77229012
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] d_fens:
is it necessary to insert a simcard to get the dram fix working? without simcard it doesn't work, although I followed the description from first side. My camera won't take pictures, if I press the white circle nothing happens (in "security menue" blobs are provisioned)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] michelangeloagorini:
drm patch does not work for me. That's what i did:

1) flash the 47.1.A.16.20 build via flashtool. reboot. shoutdown

2) flash kernel and boot via fastboot. fastboot reboot. shoutdown

3) boot into twrp. flash 2-patching.zip . flash 3-magisk.zip. reboot

4) flash 4-kernel_permissive.zip using magisk

i cannot take pictures.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Dany XP:
[youtube]KHjEZvYPgzE[/youtube]

To sum up: u have to hide most of the Google Apps in your phone, not just Google Pay
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] dcrin3:
Might I suggest you look at my post, it's for the XZ1 but I think it should apply for XZ1c as well.

https://xdaforums.com/showpost.php?p=77678165&postcount=587
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] michelangeloagorini:
Now the camera is working fine!! thanks!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] auz_mo:
Same Camera Issue

I am having the same issue with the camera. When I press the button, all the icons disappear from the screen and it just sort of hangs there. I have tried 4 different versions of the firmware (German, Ireland, UK, and French) I am getting the exact same problem with all of them. Interestingly I don't think this has anything to do with the drm fix. I just tried once again wiping everything and flashing the latest firmware (after re-downloading a fresh copy). I have the exact same issue with the camera on a clean install. No TWRP, nothing. I suspect that the problem lies is how that firmware is interacting with the North American hardware.

Back to 270 it is I guess... Too bad.

---------- Post added at 10:43 PM ---------- Previous post was at 10:11 PM ----------

Nope, camera is still doing the exact same thing. Not sure what to do now, I am on firmware 270, no mods. I can't even get a green picture. It just hangs when the button is pressed.

Anyone have any ideas?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] auz_mo:
And finally, using the Flash Tool downloaded directly from Sony Developer World (Emma) I was able to get the newest firmware from there, camera worked again immediately, albeit green. Did the steps listed here, and camera is working perfect again.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] coolmen777:
I recently picked up a used XZ1C with unlocked bootloader (thus non-functional camera) and came across this thread on kernel and DRM bypass workaround. I do not have any backup of DRM or any partitions. I am not a newbie; had the Z3C and more recently Pixel 2 (much easier for flashing/modding) familiar with Magisk and other tools.

Looks like my device might be a USA model (nothing re: fingerprint G8441) and still runs the older firmware (built 47.1.A.12.179 with Android 8.0, see screenshot attached). I plan on using it on T-mobile USA and would like to enable fingerprint (if possible) and keep WiFi calling/VoLTE. Should I first load the latest firmware (through flashtool, assuming it will work with unlocked bootloader?) and incorporate steps in this guide to fix the camera/other features or do some other combination due to the existing firmware on the phone?

As far as I know, there is no TWRP recovery loaded, which I can easily do through command prompts. Is that my first step? What would I do next ? If anyone can point me in the right direction, I will gladly read more and download/try things on my own. Thanks everyone in advance.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jrbmed08:
Hi all, I am seeing an error in TWRP when I try to flash the patch zip. I have unlocked my bootloader, flashed TWRP and the boot image, and booted into TWRP but I get the following error:

Zip signature verification failed!

Error installing zip file '/sdard/2-Patching.zip

Any thoughts?

Edit: flashed it after disabling signature verification, seemed to work. Went through rest of steps, now have working magisk with safetynet pass, but no working camera.

Edit again: camera started working again, I don't recall rebooting but maybe I did and that fixed it? At any rate all seems to be good now.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] bofis:
Now that Pie is out, what is the path forward for those of us who unlocked bootloader, and used this kernel and DRM-fix to get Magisk working and the camera working? I'm happy to wait if an update will be posted here, even sent some coffee back during the last update and would happily again. Are there other custom kernels or instructions for building our own or other drm-fix patches that work with Pie?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslancn:
after pie update, you dont need drm fix anymore because camera is working without issues on unlocked bootloader :o
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] bofis:
woah, okay, so what about retaining root with Magisk in the update process?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] danish0175:
For now there is no compatible twrp for pie, but [MENTION=4297219]modpunk[/MENTION] is building a recovery compatible with pie
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] coolmen777:
So, if I don't care for the Magisk/root but already have the bootloader unlocked and flash the stock Pie firmware and try to relock the bootloader, will the device look and function like stock (no pre-boot warning and camera fully functioning?) I am thinking of trying to sell it and don't want buyers be suspicious. Thanks.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] SkyHigh76:
There is no way to relock the bootloader. But an already opened bootloader wont affect the camera anymore. Your boot up message will stay.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] coolmen777:
Thanks. If unrooted and reflashed with stock image, will OTA updates be pushed or need to manually flash?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Mandagor:
Sorry if i dont understand well (my english is bad):

If an unrooted Xz1c is updated with Pie OTA, we can root it without loosing DRM keys ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslancn:
check this thread before unlock your phone(and losing your DRM keys). Follow the instructions in this thread.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Didgesteve:
You can back your keys up :good: but there's still no way to relock the bootloader
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Dean F:
Is it true with Android PIE, you no longer need the DRM keys? May camera, X-reality, etc all seem working on a stock pie rom, and unlocked bootloader with no patching what so ever.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Mandagor:
so i can easily root my stock XZ1C updated with Pie ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] A.Kn.Arnval:
Hello janjan,

Seems like your link for DRM Fix Patching file is corrupted, bringing me to the SELinux Permission Patch file instead, which should be flashed through Magisk Manager in the very last step.I suppose the correct filename should be "2-patching.zip" or something like that. Maybe it's just a small mistake... or it's me that misunderstood something? Which is the link for DRMFix Patch?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] InteRadek:
Links are fine, just look into the ZIP file.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] A.Kn.Arnval:
Thanks Bro.

I have just thought the zip is exactly the flashable one.LMAO:laugh:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] bexem:
Is that true? I would be quite interested to unlock my phone without losing feature!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jazzdglass:
have you been able to confirm this bro?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Dean F:
The camera now works fine without root/drm fix. However apps like google pay, netflix wont run, they complain rooted/unlocked bootloader.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] gaboed:
Very good
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Username I can't imagine:
Screeen mirroring

Hello! Can someone say if screen mirroring works properly?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] rsk_kelkar:
Refer this thread https://xdaforums.com/xperia-xz1-compact/development/oreo-wifidisplay-fix-t3736917/page3
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Username I can't imagine:
Thanks! Will try
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JDC2389:
This isn't updated for pie stock rom yet, also when I was on oreo it had random freezes and reboots so it needs some work.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] LuminousOne:
I don't think Pie needs a DRM Fix? When I rooted it, the camera seems to work fine.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Dean F:
Is there a root method for PIE at all yet?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] vofferz:
Magisk works just fine.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] OldAresius:
[MENTION=490110]janjan[/MENTION] Please tell us if you are planning to create a version of your ROM based on pie. Perhaps we do not need the drmfix any more, but what about the other stuff you changed or patched, especially for battery duration.

Beside, I would appreciate to be able to update the ROM without the need of setting up everything once again and I'm in doubt if it will work if I would flash stock now without purging data. Does anybody has experience in changing from janjan's oreo ROM to stock pie ROM keeping data partition?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
##############################

Features 18/1/2019

##############################

- Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 148 (LATEST-47.2.A.4.45) JANUARY 17, 2019

- Up to date with latest security update—JANUARY 2019

- Hide verifiedbootstate from /proc/cmdline in order to fix the failed SafetyNet CTS check(It can still fail through other means)-GOOGLE PAY WORK

- Remove verifiedbootstate flag from /proc/cmdline - Disable CRC check

- Support wireguard VPN protocol

- dm-verity removed

- Sepolicy is patched for latest Oreo (deodex ROMs)

- Camera works without any patch

- Scheduler optimize/support for heterogeneous multi-core. Battery efficiency

- Energy Aware Scheduling (EAS) feature is enabled/optimize energy consumption for advanced multi-core SoCs

- Multi-core scheduler enable/optimized

- Update and add Qualcomm PM driver/APM driver updated reduce battery usage during sleeping

- A lot subsystems converted to use power efficient workqueues

- CAF improvements and optimized

- Enable latest energy aware scheduling patches

- Enable workqueue power-efficient mode by default

- Several other patches to improve the speed and battery usage

- Tweaked/optimized the scheduler to balance the load across all CPUs without any regards to the power costs

- Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPUs or idling them,

- Tweaked to predict the best time to save power on the CPU without affecting performance

##############################

Downloads

##############################

SONY-XZ1 Compact(G8441)-LATEST-47.2.A.4.45-(18/January/2019)

IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN DON'T FORGET TO BUY ME COFFEE

DONATE ME HERE

DONATE-HERE​
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] barbarendave:
Thanks!!! But link is down :(
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] unotretresette:
hi mate, can we have a version with signature spoof activated please?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
I think u need a patch or Xposed module for your ROM. Correct me if I'm wrong.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] arslancn:
can u release new kernel for XZ1(G8341) too?

Thanks
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] janjan:
Yes. Tonight..
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] unotretresette:
yeah, you're right

Inviato dal mio G8441 utilizzando Tapatalk
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] JDC2389:
First off I'd like to thank you for updating the kernel and your optimizations/disabling verity for us. Would you consider adding voltage table control, fiops i/o scheduler and slight overclocks? 2.4ghz won't stick on my xz1c. If you don't feel like bothering with any of that I have a friend that wants to help with kernel stuff anyways so if you'd update your kernel sources on github I'd appreciate it, thank you!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
Is there a copy of the older SONY-XZ1 Compact(G8441)-47.1.A.16.20-(14/September/2018)

version somewhere? I'd like to try that out on my phone that's still on Oreo.

Thanks!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] komer:
Download with Xperifirm. There's still Customized UK 47.1.A.16.20 rom.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Doman:
Hi.

Is there any chance for extra modifications? What I miss in my XZ1C from previous phones:

1. access to override sound volume levels in Kernel Auditor (no Sound settings group available at the moment)

2. DT2W - double tap to wake, I have seen it in Kernel Auditor on the same phones as well

3. Ambient Display - not sure here if it is a kernel thing