[Sony Xperia X Performance ROMs, Kernels, Recoverie] AdrianDC:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

About the project

Sony Stock Patcher is a minimal and easy transition from Sony's Stock ROM

(flashed directly from an FTF for example) to a modifiable ROM that can be modded as you like.

Built out of my evolutions of libbootimg for MultiROM to support Sony ELF bootimages,

a custom modified kernel based on Sony's copyleft with a minimal set of needed custom changes,

and an automated installation process to patch completely a Stock ROM,

this will allow you to use the Stock ROMs as you wish to.
​

Relevant features of Sony Stock Patcher

Using my Sony ELF 64bits port to libbootimg, Stock boot partition is automatically converted

Modified copyleft Stock kernel to support alterations and remove limitations

Patches the ramdisk to disable automatically Sony RIC security

Patches the fstab automatically for verity

Injects my init_sony project used on Sony custom ROM projects

Supports making the ROM usable as secondary MultiROM

List of changes made to the kernel

Disable Selinux trap security (allows to boot with stock ramdisk sepolicies)

Disable Device-Mapper verity (needed for example to patch system partitions)

Disable kernel modules forced validation (avoids failures on modules signature)

Disable coresight (unneeeded and irrelevant, just to avoid unsupported error logs)

Disable Sony RIC security (needed to use a recovery and alter /system, /data, ...)

Inline kernel modules compilation (to avoid kernel installation fragmentation)

Clearpad touchscreen updates for MultiROM UI

Minor kernel updates

Installation

Needed: Device has to be with an Unlocked Bootloader

Use Stock ROM or flash a clean FTF ROM from Nougat or Marshmallow

Needs a working TWRP flashed into the FOTA partition (fastboot flash recovery...)

> Fully working TWRP builds : https://mega.nz/#F!DtsERIzb!OFINTFpTQ6CF85alkcIpgA

Boot to TWRP (Power and Volume -)

Flash the relevant sony_stock_xperformance_patcher: n for 7.x or m for 6.0

(Optional) Flash SuperSU by Chainfire if you want to have root access

Reboot to Android

Reasons to use this project ?

Unlocked Bootloader customizations allowed on Stock

Converts the bootimage to support systemless tools

Ability to root with tools like SuperSU

Retains the original Sony bootimage files

Minimal needed changes, no additional kernel mods

Downloads (Unlocked Bootloader only)

Xperia X Performance : https://mega.nz/#F!ClMRQZaT!vY2aFhVHlGqnqkgJZyDOrQ​

Source code

Kernel sources - https://github.com/AdrianDC/kernel-sony-copyleft (branch 41.2.A.7.xxx)

libbootimg sources - https://github.com/AdrianDC/multirom_libbootimg (branch master)

init_sony sources - https://github.com/AdrianDC/device-sony-common-init (branch master)

MultiROM sources - https://github.com/AdrianDC/multirom_core (branch master)

TWRP sources - https://github.com/AdrianDC/twrp_development_sony/commits/device_sony_dora (branch device_sony_dora)​

Sony Stock Patcher for Xperia X Performance created also thanks to :

- Sony for their original copyleft kernel sources

- Tasssadar for the original libbootimg / MultiROM sources

- The XperiaMultiROM team for our evolution of MultiROM

- Everyone involved in testing it​

XDA:DevDB Information

Sony Stock Patcher for Xperia X Performance, Kernel for the Sony Xperia X Performance

Contributors

Adrian DC

Source Code: https://github.com/AdrianDC/kernel-sony-copyleft

Kernel Special Features:

Version Information

Status: No Longer Updated

Created 2016-12-29

Last Updated 2020-08-15