I'm working in my app to read all installed applications to get the "icon" and package name in android 11 I must use android.permission.QUERY_ALL_PACKAGES I don't want to use
<uses-permissions tag because that mean special requirements for Google Play, my app works with with the following xml tag in the Android Manifest
<permission android:name="android.permission.QUERY_ALL_PACKAGES" />
However apparently other apps are doing the same, and when they try to install my app or sideloading i receive the following message:
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.package.myApp attempting to redeclare permission android.permission.QUERY_ALL_PACKAGES already owned by com.package.another_app]
Is any way to solve this issue? Thanks a lot!