Software Development [KERNEL] FYT 7862 and 8581 kernel MD-EDITION with FMC

Search This thread

surfer63

Senior Member
May 4, 2010
5,709
3,043
Zwolle
github.com
New release today:

2023-06-09
  • New kernel from May 15th, 2023
  • Kernel level: (seems to be) Fixed: GNSS driver becomes unstable after receiving a bluetooth call
  • TYPE: MD-EDITION-UPDATE
Hi, You use in your kernel the supl server from google on port 7276 instead of the standard supl port of 7275.
7275 is the encrypted SSL port, whereas 7276 is the unencrypted port.
Using 7276 makes it actually unsafer. 7~8 years ago, 7276 was sometimes chosen as it was supposed to be faster, but not nowadays anymore.

Secondly: you changed the supl server to google instead of www.qxwz.com.
For that I am really happy, as the round robin dns-resolving includes 4 servers. Via "whois" (many online sites) one can deduct that they all belong to "Hangzhou Alibaba Advertising Co.,Ltd.".
Maybe it is just a service provided for free, and theoretically ONLY the ip-address should be shared, but I still have slightly more confidence in google (but only slightly ;))
And google is about 4~5 times as fast for me from the Netherlands.
 
  • Wow
Reactions: mariodantas

surfer63

Senior Member
May 4, 2010
5,709
3,043
Zwolle
github.com
I had a deeper look at your MD-EDITION.
Everything you do and modify can be 100% copied to the uis8581a 6316_1.zip.
With regard to the prop files: I assume you use sed or awk commands in your scripts to update and extend the prop files, and the same for the xml files. If you use sed (or awk) to modify/extend the prop and xml files, you do not have to change anything.
If you copy "pre-modified" prop files instead of modifying them, you have to take care of the right architecture (like for example SPRD/ums512_1h10_Natv/ums512_1h10 versus SPRD/uis8581a2h10_Automotive/uis8581a2h10) , but the modifications as such stay 100% the same.

Same for the _fmc apk and the xmls you use for them: Nothing has to change.
Same for su, the rc files and the SuperUser.apk. You do not have to change anything there.

Simply run your scripts on the 6316_1.zip as you would do for the 6315_1.zip. That way you can create an MD-EDITION for the uis8581a as well. You could for example take the latest Mekede 9863-a12-wbt-9-10.rar. Or maybe tyukhta has a newer 8581a version.

I do of course fully understand that you have onther things on your mind right now which are much more important than fiddling with kernels, but I guess this would be "low hanging fruit" where the uis8581a owners also can profit from.
Anyway: I wish you all the best for the coming period.
 
Last edited:

louforgiveno

Senior Member
Jun 24, 2010
3,964
2,500
I had a deeper look at your MD-EDITION.
Everything you do and modify can be 100% copied to the uis8581a 6316_1.zip.
With regard to the prop files: I assume you use sed or awk commands in your scripts to update and extend the prop files, and the same for the xml files. If you use sed (or awk) to modify/extend the prop and xml files, you do not have to change anything.
If you copy "pre-modified" prop files instead of modifying them, you have to take care of the right architecture (like for example SPRD/ums512_1h10_Natv/ums512_1h10 versus SPRD/uis8581a2h10_Automotive/uis8581a2h10) , but the modifications as such stay 100% the same.

Same for the _fmc apk and the xmls you use for them: Nothing has to change.
Same for su, the rc files and the SuperUser.apk. You do not have to change anything there.

Simply run your scripts on the 6316_1.zip as you would do for the 6315_1.zip. That way you can create an MD-EDITION for the uis8581a as well. You could for example take the latest Mekede 9863-a12-wbt-9-10.rar. Or maybe tyukhta has a newer 8581a version.

I do of course fully understand that you have onther things on your mind right now which are much more important than fiddling with kernels, but I guess this would be "low hanging fruit" where the uis8581a owners also can profit from.
Anyway: I wish you all the best for the coming period.
This would be awesome!
Thanks @surfer63 for looking into this.
@mariodantas No rush sir! When you can, please do...I'd love to use your work on my unit.
Take care.
 

surfer63

Senior Member
May 4, 2010
5,709
3,043
Zwolle
github.com
Surfer, can ytou send me please the latest 6316_1.zip ? I'll release a test soon, maybe tomorrow !
I downloaded the latest 9863-a12-wbt-9-10.rar from the Mekede site. I extracted only the 6316_1.zip as that is what you need and slightly smaller .
It is from "Fri Jan 6 16:41:51 CST 2023".
I uploaded it to mga-nz: https://mega.nz/file/9Nk0DZZR#byoCZXoQvsiO5tzHtPgF7V7uiLD81xSJ825mv3xLKvs
(For others: this is not useful for you)

Edit: And now also the complete 9863-a12-wbt-9-10.rar: https://mega.nz/file/pAMHVbpT#u4iy9kgzYgIOHo_-c6Jnwzk7Dp26rREji56pxIz8Q80
 
Last edited:
  • Like
Reactions: louforgiveno

ps3shitshow

Member
Jan 10, 2023
7
0
Reporting back that MD Edition with Main Service got installed on Mekede M600s. Thank you guys a lot :)
I have question regarding the root:
How do I install Magisk as Root manager? I have app but I think I need boot img to be patched for Magisk.
 

surfer63

Senior Member
May 4, 2010
5,709
3,043
Zwolle
github.com
Reporting back that MD Edition with Main Service got installed on Mekede M600s. Thank you guys a lot :)
I have question regarding the root:
How do I install Magisk as Root manager? I have app but I think I need boot img to be patched for Magisk.
No, do not install magisk. This rooting option is incompatible with magisk. The kernel is "pre-rooted" but you need to switch root on or off in the fmc app. the fmc app will install/activate the superuser apk that can allow/deny root access to your apps.
 

ps3shitshow

Member
Jan 10, 2023
7
0
No, do not install magisk. This rooting option is incompatible with magisk. The kernel is "pre-rooted" but you need to switch root on or off in the fmc app. the fmc app will install/activate the superuser apk that can allow/deny root access to your apps.
I enabled root rights already and they work fine, thought I could use Magisk and few modules relating to sound quality like DSP module. But this is good enough :)
 

louforgiveno

Senior Member
Jun 24, 2010
3,964
2,500
@surfer63 or @mariodantas
Quick question.....I'm all set to test this on my uis8581a, i don't have a 6361.zip specifically from whatever firmware my unit contains....i did however grab the updated one you posted which i assume is the same as the md edition....question is do i need (as a fallback) the actual back dated 6361zip my unit shipped with or am i safe to proceed without it?
 

Attachments

  • 20230521_203721.jpg
    20230521_203721.jpg
    9.9 MB · Views: 43
  • 20230518_182756.jpg
    20230518_182756.jpg
    1.1 MB · Views: 42
Last edited:

surfer63

Senior Member
May 4, 2010
5,709
3,043
Zwolle
github.com
Quick question.....I'm all set to test this on my uis8581a, i don't have a 6361.zip specifically from whatever firmware my unit contains....i did however grab the up updated one you posted which i assume is the same as the md edition....question is do i need (as a fallback) the actual back dated 6361zip my unit shipped with or am i safe to proceed without it?
You need "a" 6316_1.zip. You do not need the original one from your firmware. The 6316_1.zip is a universal kernel for the uis8581a. Of course it gets updated every now and then with new Android security fixes, probable updates and fixes in the product partition zip., etcetera.

So if you flash Mario's MD-EDITION and it should not work, you simply download the 6316_1.zip I linked to a few posts up.
That is a fully standard 6316_1.zip which should work on any uis8581a.
You could simply use the usb-stick you already used for Mario's MD-EDITION.
So in case it doesn't work, copy that standard 6316_1.zip onto the USB-stick and remove the lsec_update folder with contents. Then flash it again.
 
Last edited:
  • Like
Reactions: louforgiveno

louforgiveno

Senior Member
Jun 24, 2010
3,964
2,500
You need "a" 6316_1.zip. You do not need the original one from your firmware. The 6316_1.zip is a universal kernel for the uis8581a. Of course it gets updated every now and then with new Android security fixes, probable updates and fixes in the product partition zip., etcetera.

So if you flash Mario's MD-EDITION and it should not work, you simply download the 6316_1.zip I linked to a few posts up.
That is a fully standard6316_1.zip which should work on any uis8581a.
You could simply use the usb-stick you already used for Mario's MD-EDITION.
So in case it doesn't work, copy that standard 6316_1.zip onto the USB-stick and remove the lsec_update folder wirh contents. Then flash it again.
Thank you sir!
I'll post my results. Have a great day!
 

louforgiveno

Senior Member
Jun 24, 2010
3,964
2,500
MD-EDITION for 8581 TEST

Ok

1-) BE SURE TO HAVE A COPY OF 6316_1.zip FILE BEFORE ATTEMTING TO FLASH THIS ***TEST***

6316 MD-EDITION

6316 MD-EDITION-WITH-MAINSERVICE
I can confirm this as working!
Just installed on my uis8581a unit with zero hiccups.
Thanks for making this possible @mariodantas and @surfer63

Ahh....another question.....how do i add launchers that i have downloaded from your site mario? I added zip files to sdcard and also extracted the apk's .....trying to add through file manager...i point it to the apk then nothing appears to happen.

Nevermind i got it sorted out.

Thanks again

Thank you
 
Last edited:
Ahh....another question.....how do i add launchers that i have downloaded from your site mario? I added zip files to sdcard and also extracted the apk's .....trying to add through file manager...i point it to the apk then nothing appears to happen.
Let me check that

I'm happy that this runs under 8581 !
 
  • Like
Reactions: louforgiveno

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    New release today:

    2023-09-17
    • New kernel from Aug 05th, 2023
    • Kernel level: Nothing new (as per my research)
    • FMC: Added: Restart USB hub on system wake up option (FMC settings)
    • FMC: Added: Automatically check and fix /oem/ files/folders permissions ONLY if FYTBackup failed.
    • TYPE: MD-EDITION-UPDATE or FMC-UPDATE
    6
    Many thanks to @LLIyT_HuK who is testing my apk (that will be) capable of coupling with magisk rooted kernels !
    3
    the link is broken can you give new one
    No. I removed it already..We are 3 months further now.
    Check the "Stock Firmware post (AliExpress uis8581a) post"
    2
    NEVER in the earth I'd be capable of doing such a thing Surfer, your post is excellent as you have implemented methods that my kernel don't use (i.e. DocumentUI inside System)

    Who did close the thread ?
    Nobody. Sorry friend, to even think you would do this.

    I went 3 pages down and didn't find it. Then I thought Matt was right.
    Then I searched (what I always tell people to do ;)) and it was on the 4th page.
    2
    Is it possible to make the root rights check normal, and not check for the presence of SuperSu? To make FMC work with Magisk.
  • 20
    Hi community

    I'm happy to introduce Kernel MD-EDITION for FYT 7862 units.
    This firmware is built into the latest kernel released on 2022-12-09.

    Internal mods:
    • Improved SPRD parameters to use more GPU to render instead of consuming CPU for these tasks.
    • Added detailed memory support for units with 8Gb of ram (Original kernel takes config from 6Gb section to be applied to 8Gb units), specially the kernel panic limit has been adjusted.
    • Improved memory handler for 6Gb RAM units and 8Gb RAM units (Below 6Gb the memory handler has not been improved)
    • Includes "su" machanism always disabled (commanded by the provided Fyt Control Center application).
    • Removed "Google Digital Wellbeing" application.
    The firmware is provided with an application named "Fyt Management Center" which exists in both User or Platform builds. The version provided with firmware is obviously the Platfom build, the application is flashed as a system-app automatically after firmware install.

    What can you do with Firmware MD-EDITION coupled with FYT Management Center Platform app ?
    • You can do FYTBACKUPS (OEM application backups) on the fly, delivered in ZIP format the you can use any app (i.e. Amaze or CX File explorer or SYU Filemanager) to send the backup to an USB pendrive or your google drive account, this is at your choice.
    • You can do Backups of your /data/{data,app} folders and, as for the FYTBACKUP, you can download it to an USB pendrive or store it wherever you want.
    • You can change the font scale factor (useful as most of the new chinese modified com.android.settings don't provide access to Font section).
    • You can handle FYT Launchers, add, backup, remove, on the fly whitout using the lsec flash procedure.
    • You can handle OEM apps, backup, replace, on the fly whitout using the lsec flash procedure.
    • Special handler for file "pwctl_config.xml" stored in /oem/app, this file contains all the applications that chinese developpers consider that they should start when BOOT_COMPLETED broadcast is sent by the system (i.e. some TEYES apps, and other chinese apps), now, if you install an application that has (in the app manifest) the "RECEIVE_BOOT_COMPLETED" permission, the package name of your app will be automatically whitelisted in this file, allowing the app to obey to the BOOT_COMPLETED system broadcast.
    • You can Enable and Disable Root Schema. When enabled, Fyt Management Center puts "supersu app" in the system as an User apk and installs it silently, then reboot the system automatically to enable root privileges, when you disable Root Schema, the opposite happens, supersu.apk is removed silently and the Fyt Management Center app reboots the system automatically to disable the root schema.
    • You can set autolaunch applications at system boot time (whatever app installed in the system) you can also chose to autostart every selected app in background.
    • You can access embeeded Bluetooth settings. (latest chinese modified com.android.settings doesn't include the Bluetooth menu anymore).
    • You can lock the system (i.e. you leave your car in the mechanic and don't want to leave open access to your device)
    • You can set day or night UI system mode
    • You can enable / disable NOKILL function (only available in MD-EDITION WITH MAINSERVICE)

    I require your attention for the following:


    You MUST uninstall (il already installed) FYT Management center user edition before flashing the Firmare MD-EDITION (as it comes with a different version intended to run as system user)

    From 2023-04-01, Kernel MD-EDITION (not FMC updates) will be released

    based on Kernel 2023-02-27 with the latest lsec6315update file.
    You WILL NOT BE ABLE TO ROLLBACK to kernels released before November 2023.


    • Not suitable for TEYES units (FYT=95)
    • Not compatible with UDT software
    • Not compatible with ROOTED WITH MAGISK Kernels

    From 2023-01-27, MD-EDITION will be shipped in 2 flavours:
    Original and with a custom "com.syu.ms" apk to avoid killing apps before going into sleep mode.
    This behaviour also maintain accessibility apps running and does not allow accessibility setting going OFF.

    FYT_7862_FIRMWARE_MD_EDITION.zip
    FYT_7862_FIRMWARE_MD_EDITION_WITH_MAINSERVICE.zip

    FMC_UPDATE.zip will be always delivered without custom com.syu.ms

    If you already use another custom com.suy.ms file, you should use the "NO_MAINSERVICE" flavour.


    I can't be taken as responsible for any damage caused to your unit, you're supposed to know how to flash a FYT 7862 based unit and I'll not talk about "how to flash a 7862 FYT unit or woh to flash my original kernel back" here.


    By installing Firmware MD-EDITION with FMC embedded app, You will NOT loose any of your third party installed apks, apk updates, settings and data.

    You should have a copy of your 6315_1.zip, your AllAppUpdate.bin and your config.txt in case you want to roolback your installation (even if the AllAppUpdate apps and config.txt will not be modified in the MD-EDITION installation.
    The installation procedure is like any normal kernel upgrade (FAT32 USB Pendrive, firmware in root of USB and plug it to unit, that's all).

    This firmware and the FYT Management Center App are both based on mutual trust, the FYT Management Center App is a system app using System as user to perform the embeeded tasks (services / activities)

    Obviously the source code isn't available in Github or other public places, but you can use apktool to backsmali and analyse the app, even I encourage you to do that if you think (or doubt) about the app doing "tricks" that aren't meant to be done.

    At first boot, when opening the App and only if internet is reachable from your headunit you'll be asked for registration, with email, first and last name, and a password, this will automatically register you in my fytfactory website as a user (more advantages to come in the near future), then after registration you can use the app.

    In the second boot, the app will check your system for previously installed apks that may have "RECEIVE_BOOT_COMPLETED" permission in their manifest, and will auto whitelist that apks in the "pwctl_conf.xml" file to be sure that your apps will receive the BOOT_COMPLETED and act normally without chinese restrictions. This second boot may bring your unit slow for a couple os seconds (in 6Gb or 8Gb units) or a minute or two (in 4Gb or less RAM units) while whitelisting your applications. Anyway every process running by FYT Management Center will be notified to you by a colored Toast message.

    Fellows, I whish that you will enjoy the firmware as I enjoyed the creation and test period.

    The firmware is available as BETA eve if it's stable (tested in me 4 different FYT units with 2, 4, 6 and 8Gb of ram)

    New updates will come alive with time, you will be notified by email (that's also why the App requires registration).

    If you enjoy the firmware with the FYT Management Center App, just think about how many cofees, coca cola and other stuff I drunk not to mention the white nights passed behind the screen surrounded by a bunch of FYT 7862 units to test the Kernel and the FYT Management Center App, you can be generous and donate for a single cofee, of course this is NOT MANDATORY at all.

    IMPORTANT: I seek every file on the kernel to find out some eventually functions/programs sending our data to chinese servers and I didn't find anything, it seems to be safe at kernel level, but I'm concerned about apks inside AllAppUpdate, but AllAppUpdate is out of my firmware's scope.

    You can read more about the firmware and download it in my FYTFACTORY website: Fyt Management Center MD-EDITION

    FYT Management Center App is available in English, French, German and Russian, other languages to be added in the near future.

    If you have ideas to be implemented they are welcome.

    Sorry for the lack of screenshots/images here, you'll find them in FYTFACTORY.

    FYT one day, FYT everydays !

    If anyone needs a language that is not included in FMC, you can get the attached strings.xml and provide it back translated in your language named as the following pattern: "strings-xx.xml" where "xx" is the ISO code of your country.

    DONATIONS: (Pay me a coffee ?, a beer ?, a McDonnalds ?, other thing ? encourage me ?, all types are welcome !, anyway MD-EDITION remains FREE !)​

    BTC: 3AhqT2LmE6Z9NsDNL3UEV4757mX5M7kFXL

    PAYPAL: [email protected]

    BOOSTY: https://boosty.to/mariodantas

    N'joy fellows .

    Cheers from France
    13
    @surfer63 you can do whatever you want with MD, also share in your own github (kernels and even my scripts, no worries about that)

    I'll be out of business for a while, too many personal problems this year to allow enough time to try to improve things.

    P.S. If you need my scripts to compare with yours, I can feed them to you, no probs !
    10
    New version released today:


    2023-08-21
    • New kernel from Jul 24th, 2023
    • Kernel level: Nothing new (as per my research)
    • FMC: Fixed error while backing up /data/{data,app} dirs
    • TYPE: MD-EDITION-UPDATE or FMC-UPDATE

    P.S. Sorry for the slow work, but things take priority in my life now !
    10
    IMPORTANT:

    I'm not here to manage stuff like config.txt, AllAppUpdate.bin or even how to recover my unit if i I messed up a thing.

    No more question out of MD-EDITION scope, you're alll supposed to know how to flash a unit and what you CAN'T DO that can damage your unit !

    Cheers !
    10
    Fellows, sorry for the upcoming out of scope message (not MD-EDITION related)

    In the past days I was victim from the Paintshop garage who literally destroyed my car, not only the paint is a shame but also some internal components (dashboard, plastics, glovebox and other stuff) have been damaged seriously

    This is only to flush my soul as I feel the need of cry like a child even if I'm 48 years old

    Now, I've paid a lawyer to assign the Paintshop in the penal court and civil court as the owner also made threats against me and my family in the event of a summons to court, I also requested a removal measure for him and all his family or social entourage outside my municipality of residence.

    My vehicle is in automotive expertise because the damage is so important that it no longer complies with the French highway code

    Allow me to step away from MD-EDITION for at least a month because this matter occupies all my mind, but I promise you not to abandon this project, as soon as I get out of this nightmare, I will come back with new ideas for our platform, please excuse me this, I tell you, see you soon my dear friends.

    FYT one day, FYT Everydays !

    Mario DANTAS
    France.