Xperia X Performance, XZ and XZs ONLY (Xperia X and Xperia X Compact must skip this):
Android Oreo ramdisk patching needs some additional files, and they must be copied from Oreo /system into the rootkernel's filesystem_files folder, prior to run the script, and they are:
(you can pull these files through adb, or even converting system.sin to system.ext4 and take them out from there - just copy them, and DO NOT touch its contents)Code:
/system/vendor/etc/[B][COLOR="Blue"]fstab.qcom[/COLOR][/B] /system/vendor/etc/init/hw/[B][COLOR="blue"]init.qcom.rc[/COLOR][/B] /system/vendor/etc/init/hw/[B][COLOR="blue"]init.target.rc[/COLOR][/B]
Rootkernel's procedure for Oreo kernel ONLY:
1. Download and extract attached Rootkernel V5.23 (UNOFFICIAL 2.5)
2. Download attached flashable zip (DRM-fix_System_Mode.zip) and push it somewhere in your device (internal memory or sdcard)
3. Run rootkernel script with Oreo stock kernel.elf (eg.: rootkernel kernel.elf boot.img)
4. Say yes (Y) to everything - If you want munjeni's TA PoC option, ensure your TA.img (case sensitive) is located at rootkernel's root folder, and say no (N) to DRM fix
5. You're done!
Rootkernel's output should look like this:
Rootkernel V5.23 (UNOFFICIAL 2.5) - Unpacking kernel Found elf boot image Kernel version: 3.18.66-perf-g27a9189 Found appended DTB - Detected vendor: somc (Sony), device: dora (Xperia X Performance), variant: row - Unpacking initramfs - Detected platform: 64-bit - Detected Android version: 8.0.0 - Android Oreo requires additional files! Continue? (Say yes to copy) [Y/n] [B][COLOR="blue"]Y[/COLOR][/B] init.rc (patched) fstab.qcom (copied) init.qcom.rc (copied and patched) init.target.rc (copied and patched) - dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] [B][COLOR="Blue"]Y[/COLOR][/B] Patching fstab in dtb to disable dm-verity - Sony RIC is enabled. Disable? [Y/n] [B][COLOR="blue"]Y[/COLOR][/B] Disabling Sony RIC - force-encrypt is enabled. Disable? (Say yes if you decrypt /data) [Y/n] [B][COLOR="blue"]Y[/COLOR][/B] Disabling force-encrypt - Install DRM fix? [Y/n] [B][COLOR="blue"]Y[/COLOR][/B] 1. DRM fix preload line added successfully! 2. DRM libraries still need to be flashed manually on TWRP recovery before 1st boot!! System mode, flash: DRM-fix_System_Mode.zip - All done! Continue? [Y/n] [B][COLOR="blue"]Y[/COLOR][/B] - Creating new initramfs - Creating boot image - Cleaning up Done
Flash patched kernel:
1. Flash Oreo ftf (wiping everything, excluding nothing - except *.ta files - if any)
2. Unplug device and DO NOT turn it on
3. Fastboot newly created boot.img
4. Fastboot TWRP for your device
5. Unplug device and DO NOT turn it on again
6. Enter TWRP recovery and flash: DRM-fix_System_Mode.zip << YOU CAN SKIP THIS STEP IF YOU CHOOSE munjeni's TA PoC OPTION!!
7. You're done!
- After step 6 above, flash latest Magisk zip (SuperSU seems not to work properly yet)
- Magisk zip installation may fail, and device may also fall in a bootloop
- If you're facing this ^, do whole procedure again, but DO NOT flash Magisk zip, instead, turn device on, install latest Magisk Manager, patch boot.img and flash it (fastboot it)!
As always, TRY IT AT YOUR OWN RISK!
@sToRm// for additional ramdisk files hint (man, you're insane!)
When there is a risk, there is fun!
Your method works fine with me. Good job!
After flash boot.img system starts twice.
The first boot takes about 3-5 minutes.
If the boot lasts more than 5 minutes, you should check the data format in TWRP partition. It should be ext4 (instead of emmc).
That's the way it's supposed to be.