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

Search This thread

si1233

Member
Sep 5, 2016
38
5
Hi I am on firmware 47.2.A.6.30. (g8141) Can someone please tell me what steps do I need to follow and what Files I should download.
 
  • Like
Reactions: karrouma

janjan

Recognized Developer
May 20, 2007
3,202
3,437
Aalborg
tweaksyourandroid.weebly.com
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 XZ Premium(G8141 and G8142)-[LATEST]-[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
 

ishemes

Senior Member
Jan 1, 2008
221
77
Is it still necessary to do a full wipe to try this kernel on Android Pie? I'm thinking the full wipe might be necessary for the drm fix and not for the kernel to work. I'm really curious about EAS, but I'm going on a three week trip in two days and prefer not to wipe my phone before I fly.
 

enige1993

Senior Member
Sep 6, 2017
61
6
Xiaomi Mi 10T / 10T Pro
Hi guys,

I've flashed the last firmware (47.2.A.8.24 pie) with newflasher hoping to fix a fingerprint problem...
But always same issue, so I've disassmled the Phone and I've checked for connectors, and now it seems to be luckly fixed about that.
But since I've flashed the new firmware, I'm having other software issues... Now I tell what I've done, flashed firmware, flashed last twrp, flashed this kernel and last magisk. It seems work, But later it Will stops and goes in bootloop... And I've to do everyhing again. Do you know why? Can you help me? What wrong I made?

Thanks
 
Nov 30, 2013
5
0
Ethernet

Hi @janjan and thanks for your work.
Does your patch include support for:
*ethernet (ie. USB-C OTG ethernet adapter) and/or
*double tap to wake ?

If not how can it be added ? I'll gladly contribute.
 

LazerL0rd

Senior Member
Nov 2, 2016
1,363
1,155
Aberdeen, United Kingdom
www.thezest.dev
@janjan AFAIK your source is supposed to be held here https://github.com/Nexusma/msm-4.4.

However this isn't the source for your kernels that you build. The commandline variables in your released kernels don't match up to the source. Could you please update the source to what you build on and uphold the GPL? If you are busy and cannot do it for the time being, please say. But if otherwise, I myself would love to see what commits you've got and what stuff I can learn from your kernel as your OP suggests there's a lot there (which most isn't in the source).
 

janjan

Recognized Developer
May 20, 2007
3,202
3,437
Aalborg
tweaksyourandroid.weebly.com
@janjan AFAIK your source is supposed to be held here https://github.com/Nexusma/msm-4.4.

However this isn't the source for your kernels that you build. The commandline variables in your released kernels don't match up to the source. Could you please update the source to what you build on and uphold the GPL? If you are busy and cannot do it for the time being, please say. But if otherwise, I myself would love to see what commits you've got and what stuff I can learn from your kernel as your OP suggests there's a lot there (which most isn't in the source).

https://github.com/Nexusma/msm-4.4
Maybe I should compile a new kernel with latest source.
 
Last edited:
  • Like
Reactions: flizer
Nov 30, 2013
5
0
UP

Hi @janjan and thanks for your work.
Does your patch include support for:
*ethernet (ie. USB-C OTG ethernet adapter) and/or
*double tap to wake ?

If not how can it be added ? I'll gladly contribute.

Anything ??
I know this is possible (AndroPlus kernel) but don't have the time to do it myself.
Could anybody implement this ? I'll gladly pay as stated in my first reply.
If *ethernet (ie. USB-C OTG ethernet adapter) can't be added, at least
*double tap to wake
 

Sc0rp1on

Member
Feb 18, 2011
7
0
Hi,
First: I can't find the 3 Zips (in 47.2.a.8.24)
Second: is an update for 47.2.A.10.80 possible?

Best Regards
 

Fischkop

New member
May 6, 2019
4
0
Konstanz
Thank you . Anyway, a question on the topic here. Item 14 Why did not he want to loa

##############################
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

Thank you works perfectly. It was a hard work.
It was a detour. Had a problem with the point 14. There was always the message Error cannt load.
I then had xperifix to load twrp. Please no questions about how to do that!
However, after xperifix (also problems) I then had twrp (3.3.1 - maple) on it and manually downloaded Magsik 13.2 and flashed via trwp. This time it worked completely. Then download the Masik Manager and rootchecker .Root checker - checked and device is rooted.
Thanks for the instructions. but still do not understand why cmd comand fastboot devices goes (device is detected) and point 14 not. (fastboot flash recovery twrp3.2.1) or 3.3.1 does not load.
It's the same with Windows shell.
Driver I had taken original Android Adb.
Bootloader was already unlocked.

Device Sony xzp G8141 (Germany) Sim Lock Free
with build 47.2.A.10.80 before 47.2.A10.45
Windows 10 Pro Version 1903 build 18362.267


Thank you . Anyway, a question on the topic here. Item 14 Why did not he want to load it (flashing)?
:good::good::good::good::good:
 

p0tat0es

New member
Mar 27, 2020
2
0
Can I install it with magisk ? I have a g8141 with android 9 ( 47.2.A.8.24 ) and I want to have a root with magisk + DRM fix.
 
Last edited:

Top Liked Posts

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