[FYT Android Head Units] surfer63:
Optimized and optimized root prepared Magisk based kernels for 7862/7862S and 8581a FYT models​

Updated: 023March 2024

To start with: Many thanks to @mariodantas for starting his work on the MD-kernel. You will find all details about the MD-kernel in his thread "[KERNEL] FYT 7862 and 8581 kernel MD-EDITION with FMC".

These kernels are NOT for T'eyes units! T'eyes units are not compatible with these kind of kernels.

What is the Optimized-Edition?​

The Optimized Edition has some memory optimizations for units of 6GB and more, some optimized and more secure entries for your network (dns, (ntp) time), some hosts file optimizations to block as much spam and advertisements as possible, some removed annoying Google apps.

What is the Magisk-Edition?​

The Magisk-Edition is the optimized kernel, but boot.img patched and root prepared with Magisk. Magisk is another way to root your system. It is a safer rooting system than SuperSU as it does not deactivate SELinux (SE=Security Enhanced). This kernel comes with the Magisk root prepared boot image. Upon flashing the kernel, the Magisk apk will be copied to /oem/oem. Apks copied in that folder are not installed but available for install. You can use the FYT file manager to install Magisk and then your unit will be rooted.

Only use the Magisk apk coming with this zip/flash. If you try to update, the Magisk apk wants to update your boot.img, which is not possible in a read-only system, leaving you with an unrooted system.

Magisk documentation.

See also post #192 for some extra info about optimized versus standard kernels.

How is this kernel created?​

You can create this Magisk kernel using these Linux/MacOS scripts: Fyt-Kernel-Workbench-5.0.1.zip (2024-02-01). There is hardly any documentation (a README.md) and the parameters in the config.ini are made as explaining as possible, but you really need to know what you do. Again: These scripts are for linuxes and unixes like MacOS or others.

Compatibility:​

A 7862 kernel can run on any FYT 7862 or 7862S, no matter whether it is a hortizontal or vertical model, and Mx00 model or an M6 model.

An 8581 kernel can run on any FYT 8581, no matter whether it is a hortizontal or vertical model.

Versions:

Based On	kernel type

(post #2)	Kernel date	Magisk-Edition	Remarks
欧凯科技 带360全景_7862_四合一_carlink_1280兼容1024_国外_无碟_gdy_20240701(包含UI4-6-27-29-30)	full	01 July 2024	20240701-7862-Laoyang-Optimized-Edition.zip	862(S) version without root and with original boot.img
欧凯科技 带360全景_7862_四合一_carlink_1280兼容1024_国外_无碟_gdy_20240701(包含UI4-6-27-29-30)	full	01 July 2024	20240701-7862-Laoyang-Magisk-Edition.zip	7862(S) Magisk version with Magisk patched boot.img - At least temporarily removed due to issues
MKD M6 3D PLUS_国外UI62 5L_360_横屏2000x1200_20240322_Zzb.rar	full	21 March 2024	20240321-MKD_M6_3D_PLUS-Optimized-Edition.zip	7862(S) version without root and with original boot.img
MKD M6 3D PLUS_国外UI62 5L_360_横屏2000x1200_20240322_Zzb.rar	full	21 March 2024	20240321-MKD_M6_3D_PLUS-Magisk-V270-Edition.zip	7862(S) Magisk version with Magisk patched boot.img
20240109-MKD-M6-20240118-MagiskV270	full	09 January 2024	20240109-M6Max-20240118-Magisk-V270-Edition	7862(S) version; Rebuilt using Magisk V27.0 on 02 March 2024
M200-400_9863-20240103_lzp	Full	08 December 2023	20231208-M200-400_9863_20240103_Magisk-Edition	9863 version; Still on Magisk V23.0; fixed

General Link to all the kernels on mega.nz.​

Changelog (to Mario's previous release):

- 03 March 2024:

Upgrade to Magisk V27.0

Add the LSPosed framework as optional install

- 01 March 2024: Upgrade Magisk V23.0 to Magisk V26.4.

- 11 Oct 2023: Created a new rooted kernel based on Magisk

- Added Documentsui to system/system/app.

- Changed serverport back to 7275 (from 7276) for improved security as it is the encrypted port.

- Added the MVPN hosts file ("Blocking Unwanted Connections with a Hosts File")

Disclaimer: This is BETA but should work just fine.

How to flash this Magisk-Edition kernel:​

If you already have a kernel with the Magisk V23.0 apk installed, then please first uninstall the Magisk apk.

Unzip the zip file to an empty freshly formatted USB-stick.

Depending whether you have a uis7862(S)/ums512 or a 8581/9863 (and downloaded the correct zip for your unit), you will find an lsec6315update and 6315_1.zip, or an lsec6316update and 6316_1.zip on the USB-stick

Next to that you will find a README.txt and an lsec_updatesh folder containing scripts.

Add your own original (or modified) config.txt for your system to the USB-stick.

No updatecfg.txt or other file is needed. The config.txt to use is the config.txt that came with the firmware for your unit. If you made some small changes to it to implement things you prefer, you can leave these in.

What to do after the kernel flash and after your system has rebooted:​

If you don't care about a rooted unit, you are done. Simply enjoy.

Options:

Install Magisk to get root.

Activate "Zygisk" and "Enforce DenyList".

Install LSPosed framework.

Install lsposed-manager (only if LSPosed framework install does not create a shortcut for the lsposed manager).

(Click images to view in full size)

1. If you want your unit to be rooted, you open the standard FYT File Manager and go to the folder OEM (click image to enlarge). From this folder OEM you can install the Magisk-v27.0.apk (shown in this picture with no. 1) and from that moment on your system is rooted.

View attachment 6075707

If you only need a rooted unit for a short time, you can just as easily uninstall Magisk again (from the Settings apk), and if you need it again at a later stage, you simply install it again from the OEM folder.

View attachment 6075640

Never install another Magisk.apk. No support will be given if you still try to install another Magisk.apk. Do not update Magisk. An updated version will not work. In rhe above image you see the version with this kernel which works as it should.

1a. (Optional) Activate "Zygisk" and "Enforce DenyList".

Go in the Magisk app to the top-right settings (gear) icon, scroll down and activate both "Zygisk" and "Enforce DenyList" (Google if you don't know).

View attachment 6075639

2. (Optional) Install LSPosed framework.

If neccessary first copy the framework zip (shown in the picture with no. 2) to internal memory. Go to the Magisk Modules tab (bottom line of Magisk) and install LSPosed from local storage.

For reading: LSPosed wiki.

View attachment 6075638

4. (optional; only if necessary)

The LSPosed framework install will also install the lsposed manager (shown in the picture with no. 3). Sometimes there is no shortcut for it (Nova launcher is known for this). In that case "install" the lsposed manager "again" from the OEM folder and your shortcut will appear.

= If kernel flashing is not successful or after the reboot your system does not work..

Simply flash any original kernel from an up-to-date full firmware. Make sure you use a a USB-stick that is without errors.

Note: The first boot after the flash takes longer as APKs need to be optimized. So don't worry and be a bit patient.

*: I will try to keep an up-to-date lsec6315_1.zip and lsec6316_1.zip attached. If it is too old, please let me know and I will attach a newer one.

Questions and answers:

Q1: I get a, or multiple, "red error" message(s) when flashing the kernel. What is wrong?

A: Either your USB-stick is corrupt or when downloading/unzipping the Magisk-Edition zipfile something went wrong. Do you remember that every operating system tells you to properly unmount/disconnect the USB-stick and only then to remove it? Well, do that! If you didn't do that, then format again to FAT32 or run a checkdisk.

Q2: I did see the blue "Update" button in Magisk and decided to upgrade, despite all warnings not to do so. Now Magisk doesn't work and mentions that the boot image needs to be patched.

A: Bad luck! You are on your own. This article clearly mentions to only use the Magisk version coming with the Magisk-Edition zip. In all those past years that users provided Magisk rooted kernels, you were always warned to never, ever use another Magisk version. So you solve it yourself.

Q3: Does this Magisk Edition work with Mario's fmc?

A: Yes and No. Mario also created an MD-Edition kernel which comes with some properites, whitelisting and some more tweaks especially for his FMC app. I removed those tweaks from my Magisk-Edition.

Q4: Does @seb21 modded com.syu.ms apk with enhanced steering wheel options work with these kernels?

A: Yes, it does. Note however that newer com.syu.ms apks seem to have something "extra" that Seb's older version doesn't have. If you encounter issues with Seb's version on a newer kernel, this might be the reason.

Q5: If I flash a new version of one of your kernels and I already have Magisk installed (from a previous Magisk kernel): Do I need to uninstall it or reinstall it?

A: Yes, it is better to first uninstall the Magisk apk. It is not necessary do any "further things" with regard to the kernel itself. And if you somehow rooted your unit yourself and installed Magisk, you first need to uninstall Magisk before flashing one of the Magisk kernels.

Q6: Where can I find more documentation about Magisk?

A: See the website https://topjohnwu.github.io/Magisk/