I use a Xiaomi phone, it has this annoying "Security" app that gets everytime I'm installing or updating an app to pass a "security scan" and show me an add. F-Droid downloads updates on start, but then I just get this message "App update is ready to install" and then I have to manually install each update.
Any idea on how to bypass this app? I have partially debloated my phone using some ADB debloater but I'm worried my OS will break if I remove this "Security" app.
Also don't know if I'll also need to keep installing each update individually even after deleting it.
I also noticed that I haven't given permissions for "modifying system settings" to F-Droid.
F-Droid need to be a system app to update/install apps on it own. For that Privileged Extension needs to be installed, using TWRP or other Android recovery that can flash updates to the system.
It would still still prompt that pop-up. That was the case when I had one on android 10. It's a miui thing unless it gets bypassed for this android API.
There's a setting to disable scanning of installing apps. Disable it from security app. Also, don't debloat the security app it will break things for you.
On android 13 however it should be able to do it via session installer (google allowed unattened updates) and even without that there is a shizuku plugin which should allow it to work in theory (however the plugin is buggy and works half the time).