We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6157c commit b8f51c9Copy full SHA for b8f51c9
sample/src/main/java/com/xdandroid/sample/misc/RevokeActivity.java
@@ -40,7 +40,7 @@ protected void onCreate(Bundle savedInstanceState) {
40
try { return pm.getPermissionInfo(p, 0); } catch (Exception e) { return null; }
41
})
42
.filter(Objects::nonNull)
43
- .filter(pi -> (pi.protectionLevel & PermissionInfo.PROTECTION_DANGEROUS) != 0)
+ .filter(pi -> (pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) == PermissionInfo.PROTECTION_DANGEROUS)
44
.map(pi -> pi.name)
45
.filter(pn -> pn.startsWith("android"))
46
.filter(pn -> !"android.permission.READ_EXTERNAL_STORAGE".equals(pn))
0 commit comments