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.