flashing rom – Unable to re-sign the Android system application without the application crashing (with LineageOS)

I have re-signed all LineageOS system applications with my own key and have them all replaced before the first boot. LineageOS starts normally, but all re-signed system applications crash with an error such as:

SystemUI stopped, settings stopped.

The screen remains black. It seems that re-signed system applications are unusable. Maybe I made a mistake or did LineageOS set up an anti-tampering control?

What I did: I opened all the system applications with the Winrar zip manager and deleted the CERT.RSA and CERT.SF files from each META INF folder and deleted all the names and entries from SHA-256 synthesis in all MF manifest files. Similarly, all other apks, for example, in the framework folder, like the framework-res.apk file, are edited like this. Then I created a key store with Key, using the Java key tool, which is self-signed. Then I signed all the APK files with the Uber Apk signature tool and I successfully completed the zip alignment. Then I flashed Lineage OS with TWRP on the phone. Before the first boot, I removed the system apks with the TWRP file manager and replaced them with self-signed ones. Uber-Sign-Tool: https://github.com/patrickfav/uber-apk-signer

Image of the error: https://imgur.com/a/hAwsJuO

Thank you for your help

Mike the android-noob

That's why I did that: