170 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			170 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Landroidx/core/content/f;
 | |
| .super Ljava/lang/Object;
 | |
| .source "IntentCompat.java"
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final a:Ljava/lang/String; = "android.intent.action.CREATE_REMINDER"
 | |
|     .annotation build Landroid/annotation/SuppressLint;
 | |
|         value = {
 | |
|             "ActionValue"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static final b:Ljava/lang/String; = "android.intent.extra.HTML_TEXT"
 | |
| 
 | |
| .field public static final c:Ljava/lang/String; = "android.intent.extra.START_PLAYBACK"
 | |
| 
 | |
| .field public static final d:Ljava/lang/String; = "android.intent.extra.TIME"
 | |
|     .annotation build Landroid/annotation/SuppressLint;
 | |
|         value = {
 | |
|             "ActionValue"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static final e:Ljava/lang/String; = "android.intent.category.LEANBACK_LAUNCHER"
 | |
| 
 | |
| 
 | |
| # 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/Context;Ljava/lang/String;)Landroid/content/Intent;
 | |
|     .locals 5
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Landroidx/core/content/PackageManagerCompat;->a(Landroid/content/pm/PackageManager;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 2
 | |
|     sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
 | |
| 
 | |
|     const/16 v1, 0x1f
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     const-string v3, "package"
 | |
| 
 | |
|     if-lt v0, v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance p0, Landroid/content/Intent;
 | |
| 
 | |
|     const-string v0, "android.settings.APPLICATION_DETAILS_SETTINGS"
 | |
| 
 | |
|     invoke-direct {p0, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {v3, p1, v2}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     new-instance v1, Landroid/content/Intent;
 | |
| 
 | |
|     const-string v4, "android.intent.action.AUTO_REVOKE_PERMISSIONS"
 | |
| 
 | |
|     invoke-direct {v1, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v3, p1, v2}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const/16 v1, 0x1e
 | |
| 
 | |
|     if-lt v0, v1, :cond_1
 | |
| 
 | |
|     return-object p1
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-static {p0}, Landroidx/core/content/PackageManagerCompat;->b(Landroid/content/pm/PackageManager;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {p0}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     check-cast p0, Ljava/lang/String;
 | |
| 
 | |
|     invoke-virtual {p1, p0}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     new-instance p0, Ljava/lang/UnsupportedOperationException;
 | |
| 
 | |
|     const-string p1, "Unused App Restriction features are not available on this device"
 | |
| 
 | |
|     invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| .method public static b(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
 | |
|     .locals 0
 | |
|     .param p0    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1}, Landroid/content/Intent;->makeMainSelectorActivity(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 |