94 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			94 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Landroidx/core/content/pm/PermissionInfoCompat;
 | |
| .super Ljava/lang/Object;
 | |
| .source "PermissionInfoCompat.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Landroidx/core/content/pm/PermissionInfoCompat$ProtectionFlags;,
 | |
|         Landroidx/core/content/pm/PermissionInfoCompat$Protection;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static a(Landroid/content/pm/PermissionInfo;)I
 | |
|     .locals 2
 | |
|     .param p0    # Landroid/content/pm/PermissionInfo;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroid/annotation/SuppressLint;
 | |
|         value = {
 | |
|             "WrongConstant"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
 | |
| 
 | |
|     const/16 v1, 0x1c
 | |
| 
 | |
|     if-lt v0, v1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/content/pm/PermissionInfo;->getProtection()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget p0, p0, Landroid/content/pm/PermissionInfo;->protectionLevel:I
 | |
| 
 | |
|     and-int/lit8 p0, p0, 0xf
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static b(Landroid/content/pm/PermissionInfo;)I
 | |
|     .locals 2
 | |
|     .param p0    # Landroid/content/pm/PermissionInfo;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroid/annotation/SuppressLint;
 | |
|         value = {
 | |
|             "WrongConstant"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
 | |
| 
 | |
|     const/16 v1, 0x1c
 | |
| 
 | |
|     if-lt v0, v1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/content/pm/PermissionInfo;->getProtectionFlags()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget p0, p0, Landroid/content/pm/PermissionInfo;->protectionLevel:I
 | |
| 
 | |
|     and-int/lit8 p0, p0, -0x10
 | |
| 
 | |
|     return p0
 | |
| .end method
 |