yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] 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 (G8341)(G8342) -(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  ROMs, Kernels, Recoveries, & Othe] rophelsaid:
Thnx for the update. i have updated to 47.1.A.16.20 without problem. the camera works fine!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] xFirefly93:
Is it possible to dirty flash with the help of Flashtool?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
Yes
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] xFirefly93:
How?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
Just flash the new firmware without wiping anything.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
upgraded sucesfully from .205 to latest 16.20, flash FW without wipe, then follow all exact OP steps. all working great so far, great job.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pergoteborg:
If you use nerflasher, just delete userdata*****.sin before flashing :)

Marvelous work, JanJan, and damn, you really were fast to get it out this time . Works lika a charm for my G8342.

Tnx a bunch from the other side of the bridge :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
My pleasure...Enjoy :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
Sony XZ1 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  ROMs, Kernels, Recoveries, & Othe] dcrin3:
Is it finally working on all XZ1 devices without issues? I'm still at .205 because of the camera problem even after following the OP instructions.

[MENTION=490110]janjan[/MENTION] how do you usually patch the code each month? I might be interested in building it

Thanks again for the hard work you do for the community.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
I was in 205, updated following op steps, worked fine for me. Didn't encounter the problems like the past fw.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
Thank you for confirming it, I'll attempt the update again.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] emyjojo:
I am in the same situation. did the steps, no success. went back to .205 worked like a charm. by mounting all the partitions you mean tick them all in the Mount menu? Also, is there a way to flash the fix without the kernel? Thank you.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
You are still having the same issue? Ugh! That means there's a chance I'll have the same problem too.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
Which firmware do you use? I mean which version?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
I added the patched for it, but didn't add the DRM fix since it is not my work ( not gonna get any credit for others work. You can flash the DRM fix. You can flash the latest firmware via flashtool and REMEMBER to EXCLUDE wipe USERDATA. It will keep your camera setting and no grennish picture.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pergoteborg:
Latest 47.1.A.12. 75

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Send from my Xperia XZ1 Dual (G8342) using Tapatalk
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] N1ghtr08d:
But the question becomes... If I flash the DRM fix, do I have to flash SuperSU to get it working or can I use magisk and still have a working camera?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] boonhim:
the boot.img using in your latest kernel is for xz1 compact, please recheck if i am correct or not else please accept my apology if i am wrong.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] xFirefly93:
No it's for the XZ1 :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Gnome1911:
Any answer yet?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] N1ghtr08d:
I haven't gotten an answer but I tried it myself and the answer is no. We can't have our call and eat it, lol. I ended up downgrading back to 8.49 because I had nothing but trouble with 12.34 and the radio absolutely blows on 12.75 for me.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Gnome1911:
I've flashed the latest Kernel on latest FW, then DRM Fix.

Magisk works but Camera Pictures still green on my XZ1...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] N1ghtr08d:
The DRM fix won't work with Magisk. You have to flash the DRM fix along with the SuperSU and the Ricoff zips. After that you have root with SuperSU and you won't be able to install Magisk because the boot image was modified by SuperSU.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Gnome1911:
Yes, i know. just wanted to say, that Magisk + DRM Fix not working with this Kernel ;)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
It seems I find the issue. Magisk should work now and no greensh picture. I just tried and it works fine without any issue (Test on xz1 compact). So please test and report me back.

A- Boot into TWRP and backup your boot image. You can restore it back if the the following doesn't work for you.

B- Uninstall Supersu from your devices if you already applied/flashed. Open Supersu and find total unroot and follow your screen. Then follow the below steps.

C- If you haven't install SuperSu then follow the steps:

1- Flash 1-Patching_drm.zip

2- Flash 2-Kernel.zip

3- Flash 3-Magisk-v15.3.zip

SONY-XZ1

[youtube]oBBzEWuLCMQ[/youtube]
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] boonthongw@gmail.com:
Please check your MEGA link again as it show decry error.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] N1ghtr08d:
I second that. The link is failing the download.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
Fixed. I tired again on Sony XZ1 Compact and it works fine. If you have a working camera..no greenish pictures..then it should work for you.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Gnome1911:
Sorry. I followed your instruction step by step with your files, but Camera is not working.

The Cam focuses, and then nothing. No green picture, no picture...

Can I send any Log-Files that will help you?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
Please tell me what you did ? Your steps? Was there any issue with your camera..I mean greenish picture before applying the steps? Was your camera working before? I justed tired once again and end up with working camera + magisk + No greenish pictures.

[youtube]oBBzEWuLCMQ[/youtube]
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] N1ghtr08d:
Are you using an XZ1 or an XZ1C? I'm thinking there's some difference between the 2 devices with this issue.

---------- Post added at 09:33 AM ---------- Previous post was at 09:27 AM ----------

Guys we are on the verge of making the biggest advancement these 2 devices have seen since they've been launched. If [MENTION=490110]janjan[/MENTION] can figure out this issue and get it working on the XZ1 like it does in the XZ1C then we can have a fully working camera, Magisk for root, Xposed, and v4a all working harmoniously on a fantastic phone.

Come on boys, were so close.........
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] boonthongw@gmail.com:
not working , my camera is not working eventhough I flash full rom again and followed your steps.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Gnome1911:
I did it as you wrote a few posts above. Complete unroot in SuperSU App, then the other 3 steps.

I'm using XZ1. Think thats the problem...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jamesbdx:
Updated as per the instructions a bit further up, dirty flashed the latest firmware keeping userdata and followed op's steps to the letter and everything went fine. Thanks for all the hard work on this phone [MENTION=490110]janjan[/MENTION], much appreciated and if you can't continue your work, thanks for all your past work.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
Yes, check that all partitions are mounted, i think only the last one can't be checked (usb otg). I did a dirty flash too, maybe that had to do with it. Follow exact steps..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] alpadolmeri:
In my case, everything went well but while in usage sometimes I receive error message popup that tell that "update software app was interrupted". What is wrong ?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
do you mind showing us what settings you picked in the flashtool options? The sections: WIPE : Exclude : Misc TA and Misc TA two.

A screen shot would be good because I'm used to newsflasher, i'm not familiar with flashtool.

Thanks [MENTION=3136636]rophelsaid[/MENTION]

---------- Post added at 06:27 AM ---------- Previous post was at 06:24 AM ----------

[MENTION=490110]janjan[/MENTION] How would you go about doing the same with newsflasher or is flashtool the go to tool these days? Can you share a screenshot when you get time please?

thanks.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
I don't own the device to share a screenshot. You can take a look my thread for Sony XZ1 Compact and Sony XZP. I am sure some user already post something about newflasher and flashtool.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
But the same procedure from XZ1 Compact can be used on the XZ1. There's been posts about the tool used but not of what was selected on the actual application during flash. So i'll post the actual steps, the screeshots, and whatever else is needed. I've asked for some assistance but I just couldn't wait to hear from other users in different time-zones, so I went ahead and just did the flash myself.

I was able to get a successful install with flashtool. I've been using newsflasher ever since Jan/Feb. 2018, now I've switched to Flashtool.

I've ommited some steps I took to configure my phone differently(fingerprint(CE1) and group MMS(US)) but the update was successful without even wiping userdata.

This was from a failed 'newsflasher' update just in case anyone wonders.

Here are my steps: With the failed newsflasher install(Customized US_1310-4358_47.1.A.16.20_R6B), camera is non-functional at this time. I've not had success since 47.1.A.12.205

1. First I flashed G8342_Customized US_1310-4358_47.1.A.16.20_R6B via Flashtool Version 0.9.25.0 then reboot.

-- Check the image below for the selections I picked. I never deleted any .TA files from the folders, I just isolated them from installing(Look at the two MISC TA parts).

2. Second I flashed kernel (fastboot flash boot G8342-boot.img) then reboot. Check kernel in About phone.

3. Shutdown, volume up + USB cable(bootloader)

4. Flash recovery (fastboot flash recovery twrp-3.2.3-0-poplar-1.img) via fastboot, reboot. Shutdown. (This step can be done together with boot.img flash)

5. Next I booted to recovery(twrp) and flashed 2-Patching.zip with also 3-Magisk.zip then reboot.

6. Launch Magisk, see if it works while in homescreen. Shutdown phone. Hold volume down+power to boot twrp-recovery and I flashed 4-kernel_permissive.zip with wipe dalvik & cache. Reboot.

Camera works again after using flashtool without wiping userdata.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] emyjojo:
[MENTION=2649771]dcrin3[/MENTION] thanks man, I was finally able to update to the latest version! never thought newflasher will be the solution
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
Welcome to the club! ?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Matzeee:
After lots of tries with errors and bootloops (which I could at least solve by downgrading) and living without a working cam for some time, this finally solved it.

Thank you so much [MENTION=2649771]dcrin3[/MENTION] and of course [MENTION=490110]janjan[/MENTION]

I can confirm that an upgrade from .205 with nonworking cam to the latest .20 worked without a factory reset.

WifiCalling also works again :D

At the same time, I am wondering where the myth to delete the .ta came from…
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
You are most welcome. As far as the suggestions to remove .TA files, I don't know where it started. Maybe at first it was risky flashing (.ta) but [MENTION=4120742]munjeni[/MENTION] addressed it via newsflasher by gathering(sniffing) data from sony companion software. Maybe it never was an issue, [MENTION=4120742]munjeni[/MENTION], can you pitch in?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] wyt18:
Thanks for the update ... Does this mean root, magisk and xposed is now possible on the latest .20 firmware, with no degradation in camera quality?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Matzeee:
I did not try xposed, since I only read it was not working at some point thanks to Sony but never read anything of a fix.

Root, Magisk, Cam etc are working.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] YoungFiire:
Hi,

I have a problem with my camera. I can take photos like normal but Whatsapp says that it can't use the camera and I should restart my phone, After restart nothing changes, it's important for me because of the Videocall function.

Could someone help me ? I search for "Whatsapp" in this thread but I found nothing...

Thanks in advance!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] mr_kliff:
guys, after installing twrp and kernel and all of the 3 patches my second slot for sim stopped working? can anyone help me? G8342 the latest security patch

---------- Post added at 02:24 PM ---------- Previous post was at 02:23 PM ----------

emm, I 'm not using what's up at all, so... :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] alpadolmeri:
Hello to everybody.

I have few issues.

1-many times I have this error popup: "Update software app was interrupted". Everything is running fine, it seems, but what is cause of this message?

2-which is correct way to debloat? I want to uninstall Facebook official app and substitute AVG with other antivirus. I use Magisk module called debloat to remove preinstalled apps, but I noticed several problems after debloating, like bootloops and applications freeze.

Thank you for Your help.

Aldo
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] DHGE:
Did you do a search on xdadevelopers?

There are many more or less sophisticated ways to debloat.

The most convenient ones let you do a batch debloat via TWRP - I have an ancient one linked in my [GUIDE].

Today I mostly install ROM updates. Then immediately after installing the new ROM I look into TitaniumBackup for not backuped apps. These I deinstall via batch-deinstall. Then I do a reboot to prevent error popups.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] JerryYin:
Is that possible to make a new boot.img for the G8343?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] DHGE:
the 1 image should work ...

https://www.techwalls.com/sony-xperia-xz1-model-number-differences/

You can even back up your TA now - so you can try it and if it does not work you just relock your bootloader.

Tell us what you find out.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] matpabellz:
HELLO i have sony xz1 docomo...can i unlock sim by flashing other global model ?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] DHGE:
No
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hungvip2001:
Android Pie is coming soon. Now available in Vietnam.

Check Xperfirm if you want to try
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] TurkO546:
I hope we can get Drm Fix with fully working camera
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] beammer335d:
Downloaded it here for my Sony XZP. .. no need for DRM fix, camera works
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
But you had a stock unrooted firmware i guess?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] beammer335d:
Downloaded it from xperiafirm, I have root , magisk is installed
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] mrsatan:
What did you use to achieve root? What are the steps?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
You are saying that on your Sony device with unlocked bootloader (you lost DRM keys) you don't have to use a DRM fix to get the camera working!? This should be only this way if you used the new TA backup method.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] mrsatan:
What is the new TA method?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
https://xdaforums.com/xperia-xz1-compact/development/devonly-exploits-temp-root-to-backup-t3795510
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] mrsatan:
Now we just need Sony to roll out the source code.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] vanokurilov@gmail.com:
Today, two more regions have been updated to android 9. We are waiting for your magisk, boot and drmfix. Thank you)))
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
It seems there is no need of drmfix anymore.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] vanokurilov@gmail.com:
They say that the image quality does not work in the camera because there are no keys
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
I wouldn't get to exited just yet.. There been a DRM fix for how long now and with how many different Sony phones and they just now decided to skip it.

Yet we haven't had anyone compare photo images or video enhancement or audio quality.. all we have heard is a few said it works..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] cprasitnok:
xz1 upgrade to Android 9 pie. Camera is work very good. don't need to fix drm.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] mrsatan:
Need kernal and magisk still though I think.

---------- Post added at 07:19 PM ---------- Previous post was at 07:08 PM ----------

Ok we got a new TWRP version for Pie out. Now we just need magisk.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
It's limited to 17MP instead of the 19MP, HDR, well HDR is some what functional but I could not tell. Once the kernel goes to 4.9, things might break.

Magisk works fine for root on upgrade without userdata wipe and for full wipe install(userdata*.sin inside folder).

My thoughts based the usage of Pie. Skip this update and wait for December 2018 Pie security update version.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] mrsatan:
Did you just use the magisk from this thread? And the new TWRP?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
here

I wrote a bit about it here: https://xdaforums.com/showpost.php?p=78143959&postcount=14
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] cprasitnok:
Camera is not limited to 17MP. It work to 19MP 4:3
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] vanokurilov@gmail.com:
Only need a kernel for new firmware.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
Actually we may need a bit more, as we now have the ability to backup DRM keys / TA partion.. Granted it's been reported that their no longer needed.. But if we have them might as well use them..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] DHGE:
ta_poc worked for me on the XZ

https://xdaforums.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893

I do not know if it works for Pie and the XZ1.

I had success with original TA and the XZ and Oreo for more than a year (until my XZ got stolen).

It even worked with a backup of a TA (on a Tablet Z4) where I never backed up the original. I just made a backup to feed the batch file. But this tablet is on Lineage now and I do not look back.

With the ta_poc on the XZ it was quite straightforward:

- download the new ROM via Xperifirm

- flash it via flashtool (I read there are problems with Pie as of today)

- get the kernel part out of the ROM ftf -> boot.img

- patch it via PoC

- flash the resulting boot.img via fastboot

- flash Magisk via recovery

Worked with every ROM I tried. ATM I am too lazy to try it on Pie and the XZ1 and do a restore if it does not work.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
Thanks for the additional info.. As I am currently not home at the and no computer with me, I will have a look at all this next week.. As my XZ1 is still in stock mode..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] DHGE:
NOW you can backup your TA and - if this poc works on Pie - have full DRM functionality with your device specific keys.

https://xdaforums.com/xperia-xz1-compact/development/devonly-exploits-temp-root-to-backup-t3795510

So one does not have to wait until SONY posts the kernel sources to build one yourself without DRM working (or plus DRM-fix needed for 80% of it).

Or wait for [MENTION=490110]janjan[/MENTION] to bake it for the not so compiler savvy guys among us.

Sometimes the sources lag the ROM for 30 or so days...
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] vanokurilov@gmail.com:
https://developer.sony.com/file/download/open-source-archive-for-47-2-a-0-306/

Open source archive for 47.2.A.0.306
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] matpabellz:
how can i unlock it