[KERNEL]/[BOOT]+[DRMFIX][MAGISK]Sony XZ Premium [G8141][G8142]-11-MARCH-2019]

Search This thread

janjan

Recognized Developer
May 20, 2007
3,209
3,447
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)

[/INDENT]##############################
Features 11/3/2019
##############################


- Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 148 (version 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.

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


- Boot into custom-recovery and flash the zip OR UNZIP the zip, then move the boot.img into your adb/fastboot folder and follow
Code:
- adb devices
- adb reboot bootloader
- fastboot devices
- fastboot flash boot boot.img
- fastboot reboot
- DONE AND ENJOY

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

Xperia XZ Premium(G8141 and G8142)-[LATEST]-[11/MARCH/2019]
##############################
Xperia XZ Premium(G8141 and G8142)--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
@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
THANK YOU SONY FOR SUPPORTING DEVs AND ALLOWING US TO UNLOCK THE BOOTLOADER
Thanks to XDA And everyone else who share their knowledge and works among us in xda.​
 
Last edited:

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
##############################
Detailed instructions-
##############################

Please install all drivers and ADB files needed.

1. Download to PC XperiFirm_5.3.6_(by_Igor_Eisberg).
2. Download to PC newflasher_v11.
3. Download to PC and unzip XZ-Premium-G8141/G8142-Kernel+DRM+patch+Magisk+47.1.A.xx.xxx.zip.
4. copy the 4 zip files to the any device microSDcard folder.
5. Download to PC twrp 3.2.1-0-maple and copy the img file to ADB folder.
6. Run XperiFirm and download latest firmware update, for G8141 or G8142
7. copy the newflasher.exe to the firmware downloaded folder.
8. power off the device, press and hold vol- and plug the USB cable some seconds, review the green led is on, bootloader mode.
9. run the newflasher copied on the firmware folder.
10. unplug the USB cable when the process finished.
11. press and hold vol+ and plug the USB cable some seconds, blue led is on, flash mode.
12. open a window "cmd" and go to ADB folder.
13. run the command "fastboot devices" to check the device is showed.
14. run the command "fastboot flash recovery twrp-3.2.1-0-maple.img".
15. unplug the USB cable and reboot to twrp recovery (press and hold vol- + power button).
16. On twrp menu, go to "Advanced" and "File Manager" and copy from microSDcard folder the 4 zip files to root "/" internal storage.
17. install the 1-kernel and reboot to recovery.
18. install the 2,3,4 zip on order and reboot.
19. enjoy

THANKS TO hbenavid FOR THESE STEPS
 
Last edited:

hbenavid

Member
May 24, 2015
45
5
Cali
Hi,

Thanks for your work.

1. I have flashed the firmware: G8141_Customized CE1_1308-5321_47.1.A.12.145_R5B via "newflasher"
2. flashed the recovery twrp-3.2.1-0-maple.img
3. flashed the boot 1-boot.img
4. copied the 2-Patching.zip, 3-Magisk-latest.zip and 4-kernel-permissive.zip to "Download" folder in the internal storage.
5. reboot to twrp recovery.
6. Try to flash 2-Patching.zip and error: /vendor cannot be mounted.
stop.
 

karrouma

Senior Member
Jun 27, 2013
2,054
677
when u first boot into TWRP , select mount then tick system then install the Zips ;)

@janjan
Also tried to tick system then install 2-patching.zip
And same error like others.

If i flash the 1-boot.img and restart my phone i got bootloop on xperia.
I testet on stock xz premium dual. (not any other rom)
Also trying with turbo rom on my other xz premium and same problem also
 

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
@janjan
Also tried to tick system then install 2-patching.zip
And same error like others.

If i flash the 1-boot.img and restart my phone i got bootloop on xperia.
I testet on stock xz premium dual. (not any other rom)
Also trying with turbo rom on my other xz premium and same problem also

I will take a look once again. Thanks for the report
 

karrouma

Senior Member
Jun 27, 2013
2,054
677
Be more clear please. Did you follow the instructions? Are you on stock ROM without any kind of modifications. Otherwise it doesn't work.

Yes , after hard reset.
Phone boot without rooting.
After flashing 1 boot.img i got boot loop.
I follow system mount and same problem can't glash 2-patching also.
 

Attachments

  • Screenshot_1970-12-01-08-25-21.png
    Screenshot_1970-12-01-08-25-21.png
    157.6 KB · Views: 465
Last edited:

janjan

Recognized Developer
May 20, 2007
3,209
3,447
Aalborg
tweaksyourandroid.weebly.com
there is a problem when i tried to flash 2-patching
/vendor cannot be mounted
Hi,
Thanks for your work.
1. I have flashed the firmware: G8141_Customized CE1_1308-5321_47.1.A.12.145_R5B via "newflasher"
2. flashed the recovery twrp-3.2.1-0-maple.img
3. flashed the boot 1-boot.img
4. copied the 2-Patching.zip, 3-Magisk-latest.zip and 4-kernel-permissive.zip to "Download" folder in the internal storage.
5. reboot to twrp recovery.
6. Try to flash 2-Patching.zip and error: /vendor cannot be mounted.
stop.
@janjan
Also tried to tick system then install 2-patching.zip
And same error like others.
If i flash the 1-boot.img and restart my phone i got bootloop on xperia.
I testet on stock xz premium dual. (not any other rom)
Also trying with turbo rom on my other xz premium and same problem also

Here is a new build. for G8142 Dual SIM. Follow the steps from 1st post.
https://mega.nz/#!wpRyzSQB!HsqTpJIEozjd85DLXHHWO3LjTo0d4dkYdRA8RimRn4M

Please let me know, if there is something. It should work for XZ premium too (works fine with XZ1 and XZ1 compact. NO issue there)
 
  • Like
Reactions: karrouma

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    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)

    [/INDENT]##############################
    Features 11/3/2019
    ##############################


    - Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 148 (version 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.

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


    - Boot into custom-recovery and flash the zip OR UNZIP the zip, then move the boot.img into your adb/fastboot folder and follow
    Code:
    - adb devices
    - adb reboot bootloader
    - fastboot devices
    - fastboot flash boot boot.img
    - fastboot reboot
    - DONE AND ENJOY

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

    Xperia XZ Premium(G8141 and G8142)-[LATEST]-[11/MARCH/2019]
    ##############################
    Xperia XZ Premium(G8141 and G8142)--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
    @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
    THANK YOU SONY FOR SUPPORTING DEVs AND ALLOWING US TO UNLOCK THE BOOTLOADER
    Thanks to XDA And everyone else who share their knowledge and works among us in xda.​
    10
    ##############################
    Detailed instructions-
    ##############################

    Please install all drivers and ADB files needed.

    1. Download to PC XperiFirm_5.3.6_(by_Igor_Eisberg).
    2. Download to PC newflasher_v11.
    3. Download to PC and unzip XZ-Premium-G8141/G8142-Kernel+DRM+patch+Magisk+47.1.A.xx.xxx.zip.
    4. copy the 4 zip files to the any device microSDcard folder.
    5. Download to PC twrp 3.2.1-0-maple and copy the img file to ADB folder.
    6. Run XperiFirm and download latest firmware update, for G8141 or G8142
    7. copy the newflasher.exe to the firmware downloaded folder.
    8. power off the device, press and hold vol- and plug the USB cable some seconds, review the green led is on, bootloader mode.
    9. run the newflasher copied on the firmware folder.
    10. unplug the USB cable when the process finished.
    11. press and hold vol+ and plug the USB cable some seconds, blue led is on, flash mode.
    12. open a window "cmd" and go to ADB folder.
    13. run the command "fastboot devices" to check the device is showed.
    14. run the command "fastboot flash recovery twrp-3.2.1-0-maple.img".
    15. unplug the USB cable and reboot to twrp recovery (press and hold vol- + power button).
    16. On twrp menu, go to "Advanced" and "File Manager" and copy from microSDcard folder the 4 zip files to root "/" internal storage.
    17. install the 1-kernel and reboot to recovery.
    18. install the 2,3,4 zip on order and reboot.
    19. enjoy

    THANKS TO hbenavid FOR THESE STEPS
    6

    DONATE ME HERE
    DONATE-HERE

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


    - Based on latest kernel source VERSION = 4, PATCHLEVEL = 4, SUBLEVEL = 83 (version 47.2.A.6.30) January/February, 2019
    - Up to date with the September 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 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.

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


    - Boot into custom-recovery and flash the zip OR UNZIP the zip, then move the boot.img into your adb/fastboot folder and follow
    Code:
    - adb devices
    - adb reboot bootloader
    - fastboot devices
    - fastboot flash boot boot.img
    - fastboot reboot
    - DONE AND ENJOY

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

    Xperia XZ Premium(G8141 and G8142)-(3/February/2019)
    ##############################

    IF YOU LIKE MY WORK AND WANT ME TO CONTINUE, THEN DON'T FORGET TO BUY ME COFFEE
    DONATE ME HERE
    DONATE-HERE
    6
    Good News for all Xperia Users getting/having official Android 9 from SONY. THE CAMERA WORKS WITH UNLOCKED BOOTLOADER! No need to fix DRMs anymore on Android 9 Xperia Devices! Looks like SONY doesn't Support Things like XperiFix (Making Money with a DRM Workaround). Hopefully do we now get many more Users and Developers on Xperia Devices again! HAIL SONY lol

    Anyways. Many Thanks to @janjan for giving us a great and free fix for on the Go! The last Months would be Hard without You! We still appreciate Your nice Kernels and i would be glad to help You out with AROMA installers for Multi Device Support (Single/Dual Sim)
    6

    DONATE ME HERE
    DONATE-HERE


    ##############################
    Features 24/1/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.

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

    Xperia XZ Premium(G8141 and G8142)-(24/January/2019)
    ##############################[/SIZE]

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