Permission violation – getConfiguredNetworks not allowed for uid=10293, reason=java.lang.SecurityException: UID 10293 has no location permission

I am working on app which works for sharing files whenever I connect to it through scanning it does not connect on target sdk version 29 and above but works fine on target sdk version 28 This happen only on android 10. Please help me.

This stack strace ss

This is manifest request permission ss