yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pergoteborg:
WhaT i did. Was on .205

Downloaded 235 using XperiFirm.

I choosed Malaysian (G8342_Customized MY_1310-7038_47.1.A.12.235_R6B) to my G8342 Dual

Removed userdata sin

Copied newflasher files to same directory as G8342_Customized MY_1310-7038_47.1.A.12.235_R6B

Connected phone while holding volyme down (green light)

ran newflasher

flashed recovery. fastboot flash recovery twrp-3.2.1-0-poplar-8.img

Flashed Janjan boot from 1-kernel. fastboot flash boot boot.img

booted phone and checked it started allright

shutdown phone and booted to recovery

installed 2-Patching.zip and 3-Magisk.zip in recovery

booted phone

opened magisk manager, changed to beta channel and updated to Magisk 16.6

shutdown phone

booted to recovery

installed 4-kernel_permissive.zip

booted phone and lived happily ever after

This is how I did it, which is one of probably 253 ways to successfully do it.

If you can´t figure it out, maybe you shouldn´t fiddle with your phone. Buy a f***ng nobrainer apple piece of **** instead

Just saying....(very tired right now)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Mr.Vag:
well..

i was on latest stock,

unlock BL (ofc must complete the instllation wiz) enable USB debuging

power off and open adb.When you holding vol up connect USB cable to PC.

From adb panel isntall boot.img from first file. (flastboot flash boot boot.img) you must get OK result.Then reboot system.

Reboot again to TWRP,flash patching and then flash Magisk then reboot system.

Goto Magiks manager you will see new update found...install it (recomended settings) you will get reboot message (reboot).

reboot again to TWRP and flash kernel permissive. (should be work).U must dont get nay red error.If you get any error repeat all from the begin.

let me know what happend.. :good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Matzeee:
I have to confirm [MENTION=2649771]dcrin3[/MENTION]

Previous update procedures succeded with installing 4-kernel-permissive.zip through magisk manager.

After the update to .235 this did not work and also no success with magisk 16.6 or 16.0

With 16.6 flashing 4.zip through twrp throws an error. With Magisk Manager it does not fix the camera.

With 16.0 flashing 4.zip through twrp works without an error, but the cam still takes no pictures at all (not even the green ones). With Magisk Manager it does not fix the camera.

Next, i will make a nandroid and titanium backup and start with a clean installation because i lost Wificalling und VoLTE because of another rootapp anyway.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] emyjojo:
Hello. The process is the same as before. It is just not working on the G8341. :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Sagittarius199x:
Today, I tried re-flash rom with flashtool and flash boot, camera fully working

I used magisk 16.6, and flash 4-kernel_permissive.zip in magisk manager. After, I always debloated app (I have attached it below)

Sorry my bad english
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Element-Z:
Works perfectly for me with .235

Great job and thanks for your efforts!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] oF2pks:
Once you have Magisk , you will have a more stable rom and easiest install, by creating your own Magisk module; you can easily adapt this example https://xdaforums.com/showpost.php?p=76091139&postcount=106

Also you can just disable any app (and start-up event) with 3CToolbox or TB, this will simply survive your next ota without unstable /system modification, but Magisk voiding is deeper secure (libs & bin...) and systemless.

Check attached worrying apks (AddonsDetector), I've also uploaded few replacements.

If you want 4-kernel-permissive working within twrp, use Magisk 16.

0

.

You can check your kernel-permissive status with any terminal&su (like 3CToolbox...) by typing [getenforce].

(btw CarbonROM, with Selinux enforcing, supports MicroG and is 100% free of ad & analytics...)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pergoteborg:
One tip might be to before flashing to remove the the previous Magisk SELinux Permissive Script. That worked to me when I had the same problem a few months ago...

What I would do if I was on .235 with no working camera is :

Before anything, open Magisk Manager, go to Modules and remove Magisk SELinux Permissive Script

Reboot. Verify Magisk SELinux Permissive Script is gone in Magisk Manager

Do complete JanJan process according to post1.

My way is:

Connect phone to PC in fastboot mode (Holding Vol+ while connecting cable)

Flash TWRP if you need: fastboot flash recovery twrp-3.2.1-0-poplar-8.img

Flash Janjan boot.img from 1-Kernel: fastboot flash boot boot.img

Disconnect phone, reboot it into recovery (Hold Vol- while power on)

Flash 2-Patching.zip and 3-Magisk-latest.zip. (always good to swipe Dalwik :) )

Reboot phone, enter Magisk Manager, select beta channel and update Magisk to 16.6

You might update Magisk Manager to 5.8.1 if you like, id doesn't really matter

Shut down/restart phone to recovery

Flash 4-kernel-permissive.zip

Reboot and liove happily ever after

It sort of make sense to try to restore the problem (Magisk SELinux Permissive Script) to it´s "natural state" (unexisting, that is) when trying to solve a problem. If you start with inconistency and crap you get crap
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] emyjojo:
Thanks. I had wiped everything and installed from scratch. I ve done this every month, since January. It does not work for me. Waiting on the next months' release.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Mr.Vag:
[MENTION=4475887]emyjojo[/MENTION]

Ok try to..

Update magisk and reboot.

Goto magisk options then to modules and press the + then choose the 4 file (kernel perm) install it and reboot.

Itz working?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Sagittarius199x:
Try the following to fix issue camera.

-After install magisk 16.6 in twrp, reboot your devices

-Open magisk manager and install 4-kernel-permissive.zip, reboot

-After devices boot finished, turn off your devices and boot into twrp wipe cache and davik cache. Reboot

=> Camera fully working
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] emyjojo:
[MENTION=8353123]Sagittarius199x[/MENTION] [MENTION=8307142]Mr.Vag[/MENTION] i have tried all the steps, it's just not working on my G8341 . reverted to .205. Thank you.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Mr.Vag:
Very strange..i have the same device with the same firmware.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] FerrisBueller:
It is really strange, because I have the same problem. Camera is not working [emoji17]

Gesendet von meinem G8341 mit Tapatalk
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Mr.Vag:
I had the same problem and i flashed kernel permissive via magisk module and worked perfect.

Maybe is the firmware or you maybe you need to clean isnstall .235?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] FerrisBueller:
I did it with magisk V16.4. But is it not working. I will try it again to install from the beginning. Flash firmware, install kernel, install TWRP, install point 2 and 3 and at latest the permissive via magisk.

Gesendet von meinem G8341 mit Tapatalk
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] FerrisBueller:
I tried it again and now the camera is working.

The first screen, with the information of unlocked bootloader is different to 205.

My mistake was, that the firmware has not correct flashed. Now all is working, great!

Gesendet von meinem G8341 mit Tapatalk
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Mr.Vag:
Congrats!!!! :) :)

So for the others who have the same problem try this.

:good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
I've tried it two times from scratch and no dice. I'll try again later, my process hasn't changed since drmfix was released.

¯\_(ツ)_/¯
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hungvip2001:
Try clear cache and davik cache after install file-4
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] emyjojo:
Hi, can you please tell me which region have you chosen for this? Thank you
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Sagittarius199x:
I used G8341_1310-4290_47.1.A.12.235-R9B_Customized_DE
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] dcrin3:
I don't know whether this month's update will be the same as last month. I'm looking forward to having the latest update work without issues vs last month's update. ** camera issues **
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hairy55:
Downloaded 235 using XperiFirm.

I choosed HK 47.1.A.12.235

Removed userdata sin

Copied newflasher files to HK 47.1.A.12.235

Connected phone while holding volyme down (green light)

ran newflasher

flashed recovery. fastboot flash recovery twrp-3.2.1-0-poplar-8.img

Flashed Janjan boot from 1-kernel. fastboot flash boot boot.img

booted phone and checked it started allright（If you have had camera problems before, don't restore Google data, don't point to camera and settings, go directly to the next step.）

shutdown phone and booted to recovery

installed 2-Patching.zip and 3-Magisk.zip in recovery

booted phone

opened magisk manager, changed to beta channel and updated to Magisk 16.7

shutdown phone

booted to recovery

installed 4-kernel_permissive.zip
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Sagittarius199x:
Please update to fw 47.1.A.12.270

Tks you
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Sagittarius199x:
thanks for update, but link download need decryption key

Please update
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] TurkO546:
did anyone try xposed on August firmware?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
I have no more free cloud storage left. Need to find another cloud storage to reupload the files.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Sagittarius199x:
You can try mediafire or google drive
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Element-Z:
https://mega.co.nz/ 50GB free
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Sagittarius199x:
Decryption key is not correct, please edit decryption key
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
##############################

Downloads

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

SONY-XZ1 (G8341)(G8342) -47.1.A.12.270-(9/AUGUST/2018)

[PART-1][PART-2]

IF YOU LIKE MY WORK AND WANT TO BUY ME A COFFEE

https://www.paypal.me/JANJANXDA

paypal.me/JANJANXDA
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] N1ghtr08d:
What about files 3&4?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] fabula921:
inside patch 2
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
. 270 patch install is working or have installation troubles like . 235?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] emyjojo:
For me it has the same issues as 235. 205 is the last version that works well on my device.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] TurkO546:
from now, i am waiting Official Android P update which is expecting next month.

That means i will not update to .270 firmware but thanks anyway [MENTION=490110]janjan[/MENTION].

I know we don't have a lot of users in this forum ,thanks for still giving your support to us
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] VinBenzin810:
Dude where Are your Infos about p? Who tell you that xz1 get an update next moth
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] TurkO546:
God directly told me that.

oh and also i searched on google and found this

https://www.androidauthority.com/sony-xz1-xz2-android-pie-894320/
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pergoteborg:
Well...

Of course it awesome we get Android 9 top our phone, but stock firmware from Sony without root/mods have allways sucked and I don't thing this will be any different. We probably have at least a couple of months before our heroes in the community have provided us with root/mods/tools enought so it's worth upgrading.

At least for me personally, after using nothing but Sony/SonyEricson phones at least for ten years there is no chance I flash my phone with sony stock firmware even if its 9.0. It's the commutiy that makes the sony phones the ones with "most bang for the buck" on the market :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] ramirowski:
dumb question, with the drm fix I don't need to backup my drm keys?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
No you don't, and there isn't a way to backup keys on the XZ1
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] evildog1:
I bought XZ1 today and instantly unlock BL, flash kernel+drm fix, and magisk. It works and camera is working :good:

Without DRM fix, camera takes solid green picture. Just to know that.

---------- Post added at 17:10 ---------- Previous post was at 16:29 ----------

And if you reset your phone from settings, the camera may get stuck on focusing. To solve the problem, boot into TWRP, flash zip number 2, 3 and 4 and camera will work again
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] arslancn:
good work. Maybe u can make aroma installer for this kernel and add more options (like overclocking with same values on pixel 2 xl' s elementalx kernel)..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] xFirefly93:
I just want to add some input to this request, after being tinkering around a lot on my two SD835 equipped devices (Google Pixel 2 and Sony Xperia XZ1) for a while with every feature enhancing custom kernel that have been released for BOTH devices.

Overclocking on a chip like SD835 is just creating placebo performance "improvements", specially when the SOC is not really touching the stock maximum that much as it is. Overclocking will also cause some nasty temperature issues which will cause thermal throttling on specially the CPU side which also will cause worsened battery life (because of the "extra" heat) and close to instant reboot issues in worst case.

The general health of your battery will also degrade because of the fact stated here above, thanks to the design choices of the XZ1.

Even higher frequencies than the stock Qualcomm ones for both clusters on SD835 will just create unneccesary heat and thermal managment issues (+CPU throttling for saving the chip from frying itself.)

My best advice is this..

If you want to improve real life performance on this device, you would rather looking into tweaking/modifying the various /sys and /proc tunetables where it is possible.

From there, you will get the real noticeable performance gains. Plus some extra battery life savings and power efficiency enhancements in the long run.

Also carefully disable/inactivate system apps, restricting background services and app permissions (both userspace installed apps and pre-installed system apps) and greenifying battery & CPU hogging apps whenever possible will also create fluditity and performance improvements, even on Oreo 8.x (and future released Android OS versions.)

Overclocking is a thing of the past, just like undervolting and enabling lower minimum CPU frequencies steps that was utilized on close to every SOC that is older than the SD800 series.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Redcalibur:
Can you use this with AOSP 8.1? And perhaps get back some stock features like the camera?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] NotATechnician:
Does anyone know how to set the hwclock?

Wether in TWRP or ADB (with root), I get:

G8342:/ # hwclock -r

Thu Jan 15 01:43:46 1970 0.000000 seconds

G8342:/ # hwclock -w

hwclock: ioctl 4024700a: Invalid argument
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] rophelsaid:
Guys, just use the flashtool by androxyde. I flashed to the latest firmware by using this and apply the kernel and drm patch. Camera working!!!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Kommissar47:
Did you wipe your data before update? I have bootloop after entering pin code password. I got this problem after flashing magisk.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] xFirefly93:
The PIN code/screen password issue have been fixed in this unofficial Magisk build by [MENTION=6842057]nathanchance[/MENTION].

Flash attached ZIP either with TWRP or through the Magisk Manager app, reboot and.. Voilá.

Fixed!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Kommissar47:
Magisk uninstaller helped me and your version of magisk.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pakoce:
camera not work

I installed the latest firmware 47.1.A.12.270 followed by the guide but the camera still does not work (the camera freezes on the focus)

Do you have any solution?

Can someone provide me with the firmware customized it 47.1.A.12.205

thank you
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] rophelsaid:
Yes, i wiped my data. and apps log.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Carlovn:
I Have the same problem with .270
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Carlovn:
[MENTION=490110]janjan[/MENTION] is there a log I could sent you for why the camera is not working on 270? Because i'm not able to downgrade for some reason and expect it could take a while before our camera is functioning on Pie. So not having a camera for a month wouldn't be optimal ;)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
It seems it works for someone. I am working with a new fix..I am going to include the drm fix inside the kernel and hope it will fix your issue .
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Carlovn:
That is strange, I never had problems with your previous fixes. Thank you in advance for the new fix! That would be awesome.

Really wish Sony didn't brake the camera when rooted… :(
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] janjan:
Please try this first. It works for someone

(having trouble getting camera to work. Installed fresh .270 with flashtool, made sure to check wipe userdata box. once flash finished, rebooted to fastboot, flashed recovery then boot.img, boot into system to check that kernel is loaded, is loaded, reboot to twrp, flash 2,3,4, reboot back to system, magisk says 16.7 installed with selinux permissive module. Camera launches but never takes picture.

edit: solved by checking all boxes in flashtools "wipe" section when flashing fresh firmware. In this case it wouldnt flash the selinux zip in twrp, so i had to install through magisk. Stock camera is working now!)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Carlovn:
I tried this several times, and tried different things also (reflashed maybe 10 times now :( Still no working camera
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Nagato Yuki:
Read above replies about failure of patching, I just a bit worried about upgrade to .270.

But Luckily I just tested that this method get worked stock Camera on my G8342 Dual Sim with Customized HK ROM .270, upgraded from .235.

BTW, I just used the updated magisk 17.1 directly after flashing the Patch, and also the permissive is still active in magisk, since I just perform the upgrade action instead of start form scratch.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Carlovn:
[MENTION=490110]janjan[/MENTION] sorry for bothering you with this again. I have tried several ways of flashing but still no luck. In my fist atempts i was upgrading from 179 without wiping. Then as per advice i wiped all and tried all options. Do you have any indication of the other fix you where talking about? If not, also okay, but then I have to look at other options (like downgrading, which caused bootloops. So have to figure that out as well)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] evildog1:
[MENTION=490110]janjan[/MENTION], can you add feature to kernel that automatically change some core state to offline and online, just like older sony phones? for example, it disables 4-6 cores on less load or on idle and enable back when required instead keeping all cores online all the time. maybe it will save more battery.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] xFirefly93:
The thing you are talking about is hotplugging, which is a thing of the past, and it will never result in better battery life because turning off and on the cores will leech more battery than keeping them all enabled on both clusters and letting the EAS policy driver doing all the wet work with frequency scaling, queue scheduling and the most optimal/efficient power state to use for both the cores and the cluster that is needed at that specific moment.

If you really want to achieve battery improvements on modern SOC:s, finetuning the kernel is option 1 that you should start looking at and continue from there step by step.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
Mod LXT from [MENTION=5033594]korom42[/MENTION] works great, i use butterfly profile and get more battery and performance

https://xdaforums.com/apps/magisk/xz-lxt-1-0-insane-battery-life-12h-sot-t3700688
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hairy55:
17.1 magisk hide Consecutive clicks will reboot
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] evildog1:
Ok thanks for explaning
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jutphaas:
Is this the magisk hide from various detections setting?

I have been wondering if my unexplained reboots that I never had before came from a (the 17.1) magisk update or from e. G. Substratum... Turned all substratum overlays of and still got some reboots at moments I don't expect.

I now turned this setting off "hide from various detections", I hope this will help.

I thought about reflashing .270 boot img and installing the patched 16.x magisk again etc
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Element-Z:
Probelm with that app was solved simply thorugh updating Magisk to v17 :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hairy55:
16.7 upgrade 17.1, only install magisk manager-v5.9.1. apk , do not install magisk-v1.71.apk.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] mrsatan:
That's weird. I installed magisk 1.71 and I don't get any problems at all.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] snake218:
Wow, that was quick [MENTION=490110]janjan[/MENTION]

Hope this fw isn't tricky to install drm fix
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] TurkO546:
Need encryption key
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] vanokurilov@gmail.com:
Can not download, asks for decryption key