Disable "Unkown sources" setting in Android Oreo In previous versions of Android one could go to Personal > Security and there disable the Unknown sources setting in order to install freely APKs from unknown origins. In Androi Oreo this was changed and this field is no longer in the Settings. I looked everywhere and was unable to find it. So now, when my app tries to install another APK from an unreliable source, I get a Popup saying "Allow Google to regularly check device activity for security problems..." with a Decline and Accept options.

My question: imagine that I factory reset my Android Oreo device, is there a setting that I can set or a system property to modify that will prevent this anoying popup to appear? Does someone know how to disable its appereance?

PS: Please don't answer "just hit decline". That is not the answer I am looking for, nor a viable option.
In previous versions of Android, one could control the system-wide app installation from unknown sources, which saved time but was risky. Having refined control over settings makes your device more secure.
Moreover, the mechanism has now been shifted to app-specific instead of system-wide, that is you can now control app installation from particular apps. In order to modify that, head to settings and search for 'Unknown Sources', and you'll find Special App Permissions. In order to always allow a specific app to install apps, toggle it 'allowed'.