[KERNEL/BOOT]+[DRMFIX][MAGISK]Sony XZ1 [G8341][G8342_Dual]-11-MARCH-2019

Search This thread

janjan

Recognized Developer
May 20, 2007
3,202
3,437
Aalborg
tweaksyourandroid.weebly.com
vnm2k3.png
I am sharing my kernel/boot.img, which is build from Sony Open Source/Qualcomm/ and android source (Very close to Stock KERNEL). Designed to keep balance security/ with high Performance and battery life.​
Code:
###Disclaimer###
I am not responsible for any damage, broken or boot looping.
Please read the instructions and notes before flashing anything. Don't ask me if you don't read the instructions.
Please respect and try to help each other. You may face sometimes that I cannot answer your questions/or answer your questions a bit later. I am busy with my work and don't have enough time to read and answer all your questions at the same time.

DONATE ME HERE
DONATE-HERE

##############################
Requirements-
##############################


- A working driver for your device.
USB drivers for Xperia devices
- Unlock bootloader
- A Working TWRP-with latest patch security
- YOUR firmware must match my kernel version. I used to update the kernel with latest firmware.
- Backup your stuff for future
- YOU NEED a refresh stock ROM (means you have to wipe EVERYTHING). Use flashtool to flash the latest firmware. (Remember to check Wipe USERDATA in flashtool). It seems not necessary if you have already flashed my kernel and have a working camera
- USE LATEST FLASHTOOL VERSION TO FLASH THE LATEST FIRMWARE
- (DOWNLOAD FROM HERE:- LATEST FLASHTOOL)

##############################
Features 11/MARCH/2019
##############################

- Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 148 (47.2.A.8.24) MARCH, 2019
- Up to date with the September security update—MARCH, 2019
- 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)
- Scheduler optimize/support for heterogeneous multi-core. Battery efficiency
- Energy Aware Scheduling (EAS) feature is enabled/optimize energy consumption for advanced multicore SoCs
- Update and add Qualcomm PM driver/APM driver updated reduce battery usage during sleeping
- Enable latest energy aware scheduling patches
- Multi-core scheduler enable/optimized
- A lot subsystems converted to use power efficient work-queues
- CAF improvements and optimized
- Enable latest energy aware scheduling patches
- Enable work-queue power-efficient mode by default
- Several other patches to improve the speed and battery usage
- Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPU's or idling them,
- Tweaked to predict the best time to save power on the CPU without affecting performance
- Tweaked/optimized the scheduler to balance the load across all CPUs without any regards to the power costs.[/SIZE]

##############################
Instructions-
##############################

- Reboot into bootloader mode and following the following steps
Code:
- adb devices
- adb reboot bootloader
- fastboot devices
- fastboot flash boot boot.img (flash my kernel/boot.img)
- fastboot reboot

##############################
Downloads
##############################

XPERIA-XZ1 (G8341)+XPERIA XZ1 Dual-(G8342)-LATEST-47.2.A.8.24-(11/MARCH/2019)
##############################
XPERIA XZ1 (G8341)+(G8342)-ALL-BOOT IMAGES-[KERNEL][DRM-PATCHING]-

##############################
Source/GitHub
##############################

Kernel Source
-47.1.A.12.xxx
https://github.com/Nexusma/msm-4.4
https://github.com/toffyjan/android_kernel_Sony_lilac_poplar
https://github.com/sonyxperiadev/device-sony-lilac

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

Special Thanks To:
If you can, donate and respect all the devs :)
@Chainfire for his great work to achieve root SuperSU
@Sultanxda for his great work in android kernel and SafetyNet CTS check
@modpunk for TWRP-recovery 3.2.1-0 and drm-fix THANK YOU

@Androxyde for Flashtool. merci beaucoup pour tout
@munjeni for his great knowledge and tools for extracting SIN images
@sToRm// for his effort on DRM work, THANKS
@SuperR. for SuperR's Kitchen , THANK YOU
@M-Rom Thanks for sharing drm-fix and patch
@serajr Thanks for DRM Fix Workaround and Sony RIC disabler @tobias.waldvogel thanks for older drmfix and his great effort.
THANK YOU SONY FOR SUPPORTING DEVs AND ALLOWING US TO UNLOCK THE BOOTLOADER
ALSO THANKS FOR EVERYONE ELSE EVEN I FORGET TO MENTION THEIR NAMES.
Thanks to XDA And everyone else who share their knowledge and works among us in xda.​
 
Last edited:

Gnome1911

Senior Member
Dec 4, 2013
50
9
Reutlingen
plus.google.com
Thank You! Amazing Work!
All works fine on my G8341!


Finally! Will download and try your kernel tomorrow!
Is it needed to flash SuperSU, or is this kernel pre-rooted through Magisk?

I had to patch the boot.img manually with magisk and then flash with it via TWRP.
Now Magisk SafetyNet and Xposed are working like a charm!
 
Last edited:
  • Like
Reactions: urdamaster

xFirefly93

Senior Member
Jan 10, 2018
1,424
2,292
Timrå
Thank You! Amazing Work!
All works fine on my G8341!




I had to patch the boot.img manually with magisk and then flash with it via TWRP.
Now Magisk SafetyNet and Xposed are working like a charm!

How-to do this? This is my first Android device after being away from the OS for 1,5-2 years, so I am basically a newbie from scratch on the more "advanced" stuff.. ?

Want to help me out?
 

Gnome1911

Senior Member
Dec 4, 2013
50
9
Reutlingen
plus.google.com
How-to do this? This is my first Android device after being away from the OS for 1,5-2 years, so I am basically a newbie from scratch on the more "advanced" stuff..

Want to help me out?

Sure ;)

Your Bootloader is unlocked and TWRP is installed?

Then just download the the Zip from the first post for your device and extract the boot.img
Download and install Magisk Manager.

When you now open open Magisk Manager on your Smartphone, you will be asked to install the latest Magisk.zip. Now press patch boot image and navigate to the extracted boot.img.

When the progress is finished boot into TWRP press install, select install img (bottom of the screen), navigate to the patched boot.img (internal memory/Magisk Manager) and press install.

After installation you can reboot and now Magisk should be working
 
Last edited:

Carlovn

Senior Member
Feb 5, 2009
195
41
Thank you, great work. Tried it and booting and root with magisk is fine.
Except camera doesn't take a picture. It opens buth freezes when i want to take the picture
 

janjan

Recognized Developer
May 20, 2007
3,202
3,437
Aalborg
tweaksyourandroid.weebly.com
Sure ;)

Your Bootloader is unlocked and TWRP is installed?

Then just download the the Zip from the first post for your device and extract the boot.img
Download and install Magisk Manager.

When you now open open Magisk Manager on your Smartphone, you will be asked to install the latest Magisk.zip. Now press patch boot image and navigate to the extracted boot.img.

When the progress is finished boot into TWRP press install, select install img (bottom of the screen), navigate to the patched boot.img (internal memory/Magisk Manager) and press install.

After installation you can reboot and now Magisk should be working

Ramdisk is already patched. No need to patch it again. Flash the zip from first thread and then flash the latest magisk. Done

Xposed is also working..no issue (unofficial build)
 
Last edited:
  • Like
Reactions: josephnero

Gnome1911

Senior Member
Dec 4, 2013
50
9
Reutlingen
plus.google.com
Don't tested the Cam before...

Same here. Cam freezes on focus

---------- Post added at 09:22 AM ---------- Previous post was at 09:20 AM ----------

Ramdisk is already patched. No need to patch it again. Flash the zip from first thread and then flash the latest magisk. Done

Xposed is also working..no issue (unofficial build)

I tried to flash Magisk.zip and get an error.
So i tried it as i wrote before and this worked
 

Carlovn

Senior Member
Feb 5, 2009
195
41
It shouldn't effect your camera. Did you flash anything else maybe?

I flashed part-1 of the previous drm fix. That could be the problem.
When i get home I will flash .34 to start over and check if this fixes the problem

Or does anybody know how to change back to the original secd
 
Last edited:

N1ghtr08d

Senior Member
Feb 15, 2011
783
189
Dublin
Does this kernel work with the DRM fix? What I mean is, can we flash the kernel, then flash the DRM fix and flash Magisk so we can have both the DRM fix for the camera and Magisk for root?
 

Carlovn

Senior Member
Feb 5, 2009
195
41
Does this kernel work with the DRM fix? What I mean is, can we flash the kernel, then flash the DRM fix and flash Magisk so we can have both the DRM fix for the camera and Magisk for root?
The whole meaning for this is that you don't need the DRM fix with this kernel. So flashing this kernel and magisk you shuld be good to go.

Edit: Camera doesn't seem te work. I misread in the title that it said DRM fix but is dm fix...
 
Last edited:

N1ghtr08d

Senior Member
Feb 15, 2011
783
189
Dublin
I'm going the new firmware now then this kernel and Magisk to test.
Fingers crossed ?

---------- Post added at 11:42 AM ---------- Previous post was at 10:47 AM ----------

Ok so I upgraded the OS to 12.34 then reflashed TWRP latest from modpunk then rebooted to recovery and flashed the kernel and Magisk and I got a bootloop so....
I reflashed again with newflasher, TWRP, reboot to recovery, flash the kernel then this time I rebooted to system and again back into recovery then I flashed Magisk and it all booted fine, but here's the problem.....
The camera doesn't work. It has no DRM fix so all the pictures are that horrible green square.
Should I flash the DRM fix separately or what?

---------- Post added at 11:52 AM ---------- Previous post was at 11:42 AM ----------

So I decided to boot into recovery again and flash 2 of the 3 DRM fix files (the DRM fix and Ricoff) and they flashed fine, then I rebooted and tested the camera and it just hangs even I try to take a picture.
Does anybody have any ideas what we can do to have the DRM fix working alongside Magisk?
 
Last edited:

pergoteborg

Senior Member
Feb 11, 2009
225
97
Göteborg
Thank you very much, @janjan for your effort.
There seems to be a difference in the DRM handling between XZ1 and XZ1Compact, resulting in a non-working camera on the XZ1 even if it works on the Compact.
It is really nice of you to compile this kernel for our device, but unfortunatly it doesn´t really work all the way
 

janjan

Recognized Developer
May 20, 2007
3,202
3,437
Aalborg
tweaksyourandroid.weebly.com
Thank you very much, @janjan for your effort.
There seems to be a difference in the DRM handling between XZ1 and XZ1Compact, resulting in a non-working camera on the XZ1 even if it works on the Compact.
It is really nice of you to compile this kernel for our device, but unfortunatly it doesn´t really work all the way

I just found out some issue with G8342-Dual. It seems G8341 and G8342 are used two different deconfig for building Kernel. I am going to fix it now. I will try to look at DRM soon.

So don't flash G8342 boot.img yet. Going to remove the link.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 52
    vnm2k3.png
    I am sharing my kernel/boot.img, which is build from Sony Open Source/Qualcomm/ and android source (Very close to Stock KERNEL). Designed to keep balance security/ with high Performance and battery life.​
    Code:
    ###Disclaimer###
    I am not responsible for any damage, broken or boot looping.
    Please read the instructions and notes before flashing anything. Don't ask me if you don't read the instructions.
    Please respect and try to help each other. You may face sometimes that I cannot answer your questions/or answer your questions a bit later. I am busy with my work and don't have enough time to read and answer all your questions at the same time.

    DONATE ME HERE
    DONATE-HERE

    ##############################
    Requirements-
    ##############################


    - A working driver for your device.
    USB drivers for Xperia devices
    - Unlock bootloader
    - A Working TWRP-with latest patch security
    - YOUR firmware must match my kernel version. I used to update the kernel with latest firmware.
    - Backup your stuff for future
    - YOU NEED a refresh stock ROM (means you have to wipe EVERYTHING). Use flashtool to flash the latest firmware. (Remember to check Wipe USERDATA in flashtool). It seems not necessary if you have already flashed my kernel and have a working camera
    - USE LATEST FLASHTOOL VERSION TO FLASH THE LATEST FIRMWARE
    - (DOWNLOAD FROM HERE:- LATEST FLASHTOOL)

    ##############################
    Features 11/MARCH/2019
    ##############################

    - Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 148 (47.2.A.8.24) MARCH, 2019
    - Up to date with the September security update—MARCH, 2019
    - 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)
    - Scheduler optimize/support for heterogeneous multi-core. Battery efficiency
    - Energy Aware Scheduling (EAS) feature is enabled/optimize energy consumption for advanced multicore SoCs
    - Update and add Qualcomm PM driver/APM driver updated reduce battery usage during sleeping
    - Enable latest energy aware scheduling patches
    - Multi-core scheduler enable/optimized
    - A lot subsystems converted to use power efficient work-queues
    - CAF improvements and optimized
    - Enable latest energy aware scheduling patches
    - Enable work-queue power-efficient mode by default
    - Several other patches to improve the speed and battery usage
    - Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPU's or idling them,
    - Tweaked to predict the best time to save power on the CPU without affecting performance
    - Tweaked/optimized the scheduler to balance the load across all CPUs without any regards to the power costs.[/SIZE]

    ##############################
    Instructions-
    ##############################

    - Reboot into bootloader mode and following the following steps
    Code:
    - adb devices
    - adb reboot bootloader
    - fastboot devices
    - fastboot flash boot boot.img (flash my kernel/boot.img)
    - fastboot reboot

    ##############################
    Downloads
    ##############################

    XPERIA-XZ1 (G8341)+XPERIA XZ1 Dual-(G8342)-LATEST-47.2.A.8.24-(11/MARCH/2019)
    ##############################
    XPERIA XZ1 (G8341)+(G8342)-ALL-BOOT IMAGES-[KERNEL][DRM-PATCHING]-

    ##############################
    Source/GitHub
    ##############################

    Kernel Source
    -47.1.A.12.xxx
    https://github.com/Nexusma/msm-4.4
    https://github.com/toffyjan/android_kernel_Sony_lilac_poplar
    https://github.com/sonyxperiadev/device-sony-lilac

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

    Special Thanks To:
    If you can, donate and respect all the devs :)
    @Chainfire for his great work to achieve root SuperSU
    @Sultanxda for his great work in android kernel and SafetyNet CTS check
    @modpunk for TWRP-recovery 3.2.1-0 and drm-fix THANK YOU

    @Androxyde for Flashtool. merci beaucoup pour tout
    @munjeni for his great knowledge and tools for extracting SIN images
    @sToRm// for his effort on DRM work, THANKS
    @SuperR. for SuperR's Kitchen , THANK YOU
    @M-Rom Thanks for sharing drm-fix and patch
    @serajr Thanks for DRM Fix Workaround and Sony RIC disabler @tobias.waldvogel thanks for older drmfix and his great effort.
    THANK YOU SONY FOR SUPPORTING DEVs AND ALLOWING US TO UNLOCK THE BOOTLOADER
    ALSO THANKS FOR EVERYONE ELSE EVEN I FORGET TO MENTION THEIR NAMES.
    Thanks to XDA And everyone else who share their knowledge and works among us in xda.​
    13
    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
    12
    Update to 47.2.A.8.24
    Hey guys and girls, new source got released by Sony. Here´s the next kernel based on latest source 47.2.A.8.24-March, 2019.


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

    ##############################
    Features 11/3/2019
    ##############################


    - Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 148 (LATEST-47.2.A.8.24) March, 2019
    - Up to date with latest security update—March 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 multicore 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
    ##############################

    XPERIA-XZ1 (G8341)+XPERIA XZ1 Dual-(G8342)-LATEST-47.2.A.8.24-(11/MARCH/2019)
    ##############################
    Source/GitHub
    ##############################

    Kernel-source
    kernel-Source

    IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN DON'T FORGET TO BUY ME COFFEE
    DONATE ME HERE
    DONATE-HERE
    12
    ##############################
    Features 21/jan/2019
    ##############################

    - Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 83 (version 47.2.A.4.41 and 47.2.A.4.45) January 17, 2019
    - Up to date with the September security update—January 17, 2019
    - 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)
    - Scheduler optimize/support for heterogeneous multi-core. Battery efficiency
    - Energy Aware Scheduling (EAS) feature is enabled/optimize energy consumption for advanced multi-core SoCs
    - Update and add Qualcomm PM driver/APM driver updated reduce battery usage during sleeping
    - Enable latest energy aware scheduling patches
    - Multi-core scheduler enable/optimized
    - A lot subsystems converted to use power efficient work-queues
    - CAF improvements and optimized
    - Enable latest energy aware scheduling patches
    - Enable work-queue power-efficient mode by default
    - Several other patches to improve the speed and battery usage
    - Tweaked the scheduler to reduce/save power by scaling down the frequency of the CPU's or idling them,
    - Tweaked to predict the best time to save power on the CPU without affecting performance
    - Tweaked/optimized the scheduler to balance the load across all CPUs without any regards to the power costs.[/SIZE]

    ##############################
    Downloads
    ##############################

    Sony Xperia XZ1 (G8341)-(21/January/2019)
    Sony Xperia XZ1 Dual-(G8342)-(21/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
    9

    DONATE ME HERE
    DONATE-HERE

    ##############################
    Features 3/2/2019
    ##############################


    - Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 148 (LATEST-47.2.A.6.30) JANUARY/FEBRUARY, 2019
    - Up to date with latest security update—JANUARY/FEBRUARY 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 multicore 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

    ##############################
    Instructions-
    ##############################

    Code:
    - adb devices
    - adb reboot bootloader
    - fastboot devices
    - fastboot flash boot boot.img (flash kernel/boot.img)
    - fastboot reboot

    ##############################
    Downloads
    ##############################


    XPERIA-XZ1 (G8341)+XPERIA XZ1 Dual-(G8342)-LATEST-47.2.A.6.30-(3/FEB/2019)
    ##############################

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