Want to make an app that detects any virus or any harmful program in the device

Possible using the Device extension HasDangerousApkInstalled block by @gordonlu310 (at least I hope i am not posting a direct link)