AppSecurityPermissions: fix some lint errors
This commit is contained in:
		
							parent
							
								
									2da380a04d
								
							
						
					
					
						commit
						8b0b8bd6d9
					
				| @ -241,7 +241,7 @@ public class AppSecurityPermissions { | |||||||
|                 installedPkgInfo = mPm.getPackageInfo(info.packageName, |                 installedPkgInfo = mPm.getPackageInfo(info.packageName, | ||||||
|                         PackageManager.GET_PERMISSIONS); |                         PackageManager.GET_PERMISSIONS); | ||||||
|             } catch (NameNotFoundException e) { |             } catch (NameNotFoundException e) { | ||||||
|                 // ignore |                 throw new RuntimeException("NameNotFoundException during GET_PERMISSIONS!"); | ||||||
|             } |             } | ||||||
|             extractPerms(info, permSet, installedPkgInfo); |             extractPerms(info, permSet, installedPkgInfo); | ||||||
|         } |         } | ||||||
| @ -262,10 +262,8 @@ public class AppSecurityPermissions { | |||||||
|         if (strList == null || strList.length == 0) { |         if (strList == null || strList.length == 0) { | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|         final int[] flagsList = getRequestedPermissionFlags(info); |  | ||||||
| 
 | 
 | ||||||
|         for (int i = 0; i < strList.length; i++) { |         for (String permName : strList) { | ||||||
|             String permName = strList[i]; |  | ||||||
|             try { |             try { | ||||||
|                 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); |                 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); | ||||||
|                 if (tmpPermInfo == null) { |                 if (tmpPermInfo == null) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dominik Schürmann
						Dominik Schürmann