Welcome brothers and sisters, I really like foss apps and I cant imagine android without Fdroid, but lately I installed Fdroid on my new phone and play protect say - this app can be dangerous so he stopped installing apk. Of course I downloaded fdroid client from official site https://f-droid.org/ so it cant be something dirty there, anyway maybe play protect is supersensitive or something? or maybe I should use other client like droid-ify? - https://github.com/Droid-ify/client/releases or simply dont care and turn off play protect because its normal thing how he “fight” with fdroid. Thank you for helping with my paranoia.
Actually seems like in this case the global “allow unknown sources” setting is still disabled on your phone, not the app’s permission. But you will see this dialogue if the app you’re installing from doesn’t have permission as well.