mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
fix permission loading in sig spoofing patch
This commit is contained in:
parent
9193eef121
commit
d5f37e93ed
@ -126,7 +126,7 @@ index f69922f64787..9517e4032646 100644
|
||||
- || ArrayUtils.isEmpty(p.getRequestedPermissions())) ? Collections.emptySet()
|
||||
- : mPermissionManager.getGrantedPermissions(ps.name, userId);
|
||||
+ boolean computePermissions = !ArrayUtils.isEmpty(p.getRequestedPermissions()) &&
|
||||
+ ((flags & PackageManager.GET_PERMISSIONS) == 0 || getRequestedFakeSignature(p) != null);
|
||||
+ ((flags & PackageManager.GET_PERMISSIONS) != 0 || getRequestedFakeSignature(p) != null);
|
||||
+ final Set<String> permissions = computePermissions ?
|
||||
+ mPermissionManager.getGrantedPermissions(ps.name, userId)
|
||||
+ : Collections.emptySet();
|
||||
|
Loading…
Reference in New Issue
Block a user