I need to check if another app has the permission to External Storage Manager. With
Environment.isExternalStorageManager()
I check if the current app is granted. How can I do this for another app? I already tried to check the permission status with
getPackageManager().checkPermission(Manifest.permission.MANAGE_EXTERNAL_STORAGE, "dk.tacit.android.foldersync.lite")
but it return always -1, which means PERMISSION_DENIED, even if the permission is granted.