| | | |
Offset 12, 202 lines modified | Offset 12, 202 lines modified |
12 | .field·private·static·final·LOG_TAG:Ljava/lang/String; | 12 | .field·private·static·final·LOG_TAG:Ljava/lang/String; |
| |
| |
13 | #·direct·methods | 13 | #·direct·methods |
14 | .method·static·constructor·<clinit>()V | 14 | .method·static·constructor·<clinit>()V |
15 | ····.locals·1 | 15 | ····.locals·1 |
| |
16 | ····.line·56 | 16 | ····.line·57 |
17 | ····const-class·v0,·Lcom/android/permissioncontroller/permission/ui/legacy/AppPermissionActivity; | 17 | ····const-class·v0,·Lcom/android/permissioncontroller/permission/ui/legacy/AppPermissionActivity; |
| |
18 | ····invoke-virtual·{v0},·Ljava/lang/Class;->getSimpleName()Ljava/lang/String; | 18 | ····invoke-virtual·{v0},·Ljava/lang/Class;->getSimpleName()Ljava/lang/String; |
| |
19 | ····move-result-object·v0 | 19 | ····move-result-object·v0 |
| |
20 | ····sput-object·v0,·Lcom/android/permissioncontroller/permission/ui/legacy/AppPermissionActivity;->LOG_TAG:Ljava/lang/String; | 20 | ····sput-object·v0,·Lcom/android/permissioncontroller/permission/ui/legacy/AppPermissionActivity;->LOG_TAG:Ljava/lang/String; |
| |
21 | ····return-void | 21 | ····return-void |
22 | .end·method | 22 | .end·method |
| |
23 | .method·public·constructor·<init>()V | 23 | .method·public·constructor·<init>()V |
24 | ····.locals·0 | 24 | ····.locals·0 |
| |
25 | ····.line·55 | 25 | ····.line·56 |
26 | ····invoke-direct·{p0},·Landroidx/fragment/app/FragmentActivity;-><init>()V | 26 | ····invoke-direct·{p0},·Landroidx/fragment/app/FragmentActivity;-><init>()V |
| |
27 | ····return-void | 27 | ····return-void |
28 | .end·method | 28 | .end·method |
| |
| |
29 | #·virtual·methods | 29 | #·virtual·methods |
30 | .method·public·onCreate(Landroid/os/Bundle;)V | 30 | .method·public·onCreate(Landroid/os/Bundle;)V |
31 | ····.locals·8 | 31 | ····.locals·10 |
| |
32 | ····.line·72 | 32 | ····.line·73 |
33 | ····sget-object·v0,·Lcom/android/permissioncontroller/permission/ui/legacy/AppPermissionActivity;->LOG_TAG:Ljava/lang/String; | 33 | ····sget-object·v0,·Lcom/android/permissioncontroller/permission/ui/legacy/AppPermissionActivity;->LOG_TAG:Ljava/lang/String; |
| |
34 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z | 34 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z |
| |
35 | ····move-result·v1 | 35 | ····move-result·v1 |
| |
36 | ····if-nez·v1,·:cond_1 | 36 | ····if-nez·v1,·:cond_1 |
| |
37 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isWear(Landroid/content/Context;)Z | 37 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isWear(Landroid/content/Context;)Z |
| |
38 | ····move-result·v1 | 38 | ····move-result·v1 |
| |
39 | ····if-nez·v1,·:cond_1 | 39 | ····if-nez·v1,·:cond_1 |
| |
40 | ····.line·73 | 40 | ····.line·74 |
41 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isTelevision(Landroid/content/Context;)Z | 41 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isTelevision(Landroid/content/Context;)Z |
| |
42 | ····move-result·v1 | 42 | ····move-result·v1 |
| |
43 | ····if-eqz·v1,·:cond_0 | 43 | ····if-eqz·v1,·:cond_0 |
| |
44 | ····goto·:goto_0 | 44 | ····goto·:goto_0 |
| |
45 | ····.line·74 | 45 | ····.line·75 |
46 | ····:cond_0 | 46 | ····:cond_0 |
47 | ····new-instance·p1,·Ljava/lang/IllegalStateException; | 47 | ····new-instance·p1,·Ljava/lang/IllegalStateException; |
| |
48 | ····const-string·v0,·"Do·not·use·AppPermissionActivity·for·handheld·ui.·Create·intent·with·ACTION_MANAGE_APP_PERMISSION·instead." | 48 | ····const-string·v0,·"Do·not·use·AppPermissionActivity·for·handheld·ui.·Create·intent·with·ACTION_MANAGE_APP_PERMISSION·instead." |
| |
49 | ····invoke-direct·{p1,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 49 | ····invoke-direct·{p1,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
50 | ····throw·p1 | 50 | ····throw·p1 |
| |
51 | ····.line·77 | 51 | ····.line·78 |
52 | ····:cond_1 | 52 | ····:cond_1 |
53 | ····:goto_0 | 53 | ····:goto_0 |
54 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z | 54 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z |
| |
55 | ····move-result·v1 | 55 | ····move-result·v1 |
| |
56 | ····if-eqz·v1,·:cond_2 | 56 | ····if-eqz·v1,·:cond_2 |
| |
57 | ····const·v1,·0x7f1300f9 | 57 | ····const·v1,·0x7f1300f9 |
| |
58 | ····.line·80 | 58 | ····.line·81 |
59 | ····invoke-virtual·{p0,·v1},·Landroid/app/Activity;->setTheme(I)V | 59 | ····invoke-virtual·{p0,·v1},·Landroid/app/Activity;->setTheme(I)V |
| |
60 | ····.line·82 | 60 | ····.line·83 |
61 | ····:cond_2 | 61 | ····:cond_2 |
62 | ····invoke-super·{p0,·p1},·Landroidx/fragment/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V | 62 | ····invoke-super·{p0,·p1},·Landroidx/fragment/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V |
| |
63 | ····.line·84 | 63 | ····.line·85 |
64 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getWindow()Landroid/view/Window; | 64 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getWindow()Landroid/view/Window; |
| |
65 | ····move-result-object·p1 | 65 | ····move-result-object·p1 |
| |
66 | ····const/high16·v1,·0x80000 | 66 | ····const/high16·v1,·0x80000 |
| |
67 | ····invoke-virtual·{p1,·v1},·Landroid/view/Window;->addSystemFlags(I)V | 67 | ····invoke-virtual·{p1,·v1},·Landroid/view/Window;->addSystemFlags(I)V |
| |
68 | ····.line·86 | 68 | ····.line·87 |
69 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; | 69 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; |
| |
70 | ····move-result-object·p1 | 70 | ····move-result-object·p1 |
| |
71 | ····const-string·v1,·"android.intent.extra.PACKAGE_NAME" | 71 | ····const-string·v1,·"android.intent.extra.PACKAGE_NAME" |
| |
72 | ····invoke-virtual·{p1,·v1},·Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; | 72 | ····invoke-virtual·{p1,·v1},·Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; |
| |
73 | ····move-result-object·p1 | 73 | ····move-result-object·v2 |
| |
74 | ····if-nez·p1,·:cond_3 | 74 | ····if-nez·v2,·:cond_3 |
| |
75 | ····const-string·p1,·"Missing·mandatory·argument·EXTRA_PACKAGE_NAME" | 75 | ····const-string·p1,·"Missing·mandatory·argument·EXTRA_PACKAGE_NAME" |
| |
76 | ····.line·88 | 76 | ····.line·89 |
77 | ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I | 77 | ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I |
| |
78 | ····.line·89 | 78 | ····.line·90 |
79 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V | 79 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V |
| |
80 | ····return-void | 80 | ····return-void |
| |
81 | ····.line·93 | 81 | ····.line·94 |
82 | ····:cond_3 | 82 | ····:cond_3 |
83 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; | 83 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; |
| |
84 | ····move-result-object·v2 | 84 | ····move-result-object·p1 |
| |
85 | ····const-string·v3,·"android.intent.extra.PERMISSION_NAME" | 85 | ····const-string·v3,·"android.intent.extra.PERMISSION_NAME" |
| |
86 | ····invoke-virtual·{v2,·v3},·Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; | 86 | ····invoke-virtual·{p1,·v3},·Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; |
| |
87 | ····move-result-object·v2 | 87 | ····move-result-object·v3 |
| |
88 | ····.line·94 | 88 | ····.line·95 |
89 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; | 89 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; |
| |
90 | ····move-result-object·v3 | 90 | ····move-result-object·p1 |
| |
91 | ····const-string·v4,·"android.intent.extra.PERMISSION_GROUP_NAME" | 91 | ····const-string·v4,·"android.intent.extra.PERMISSION_GROUP_NAME" |
| |
92 | ····invoke-virtual·{v3,·v4},·Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; | 92 | ····invoke-virtual·{p1,·v4},·Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; |
| |
93 | ····move-result-object·v3 | |
| |
94 | ····if-nez·v2,·:cond_4 | 93 | ····move-result-object·p1 |
| |
95 | ····if-nez·v3,·:cond_4 | 94 | ····if-nez·v3,·:cond_4 |
| |
| 95 | ····if-nez·p1,·:cond_4 |
| |
96 | ····const-string·p1,·"Missing·argument·EXTRA_PERMISSION_NAME·or·EXTRA_PERMISSION_GROUP_NAME,·at·least·one·must·be·present." | 96 | ····const-string·p1,·"Missing·argument·EXTRA_PERMISSION_NAME·or·EXTRA_PERMISSION_GROUP_NAME,·at·least·one·must·be·present." |
| |
97 | ····.line·96 | 97 | ····.line·97 |
98 | ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I | 98 | ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I |
| |
99 | ····.line·98 | 99 | ····.line·99 |
100 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V | 100 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V |
| |
101 | ····return-void | 101 | ····return-void |
| |
102 | ····:cond_4 | 102 | ····:cond_4 |
103 | ····if-nez·v3,·:cond_6 | 103 | ····if-nez·p1,·:cond_6 |
| |
104 | ····.line·102 | 104 | ····.line·103 |
105 | ····invoke-static·{v2},·Lcom/android/permissioncontroller/permission/utils/Utils;->getGroupOfPlatformPermission(Ljava/lang/String;)Ljava/lang/String; | 105 | ····invoke-static·{v3},·Lcom/android/permissioncontroller/permission/utils/Utils;->getGroupOfPlatformPermission(Ljava/lang/String;)Ljava/lang/String; |
| |
106 | ····move-result-object·v3 | 106 | ····move-result-object·p1 |
| |
107 | ····.line·105 | 107 | ····.line·106 |
108 | ····:try_start_0 | 108 | ····:try_start_0 |
109 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager; | 109 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager; |
| |
110 | ····move-result-object·v4 | 110 | ····move-result-object·v4 |
| |
111 | ····const/4·v5,·0x0 | 111 | ····const/4·v5,·0x0 |
| |
112 | ····invoke-virtual·{v4,·v2,·v5},·Landroid/content/pm/PackageManager;->getPermissionInfo(Ljava/lang/String;I)Landroid/content/pm/PermissionInfo; | 112 | ····invoke-virtual·{v4,·v3,·v5},·Landroid/content/pm/PackageManager;->getPermissionInfo(Ljava/lang/String;I)Landroid/content/pm/PermissionInfo; |
| |
113 | ····move-result-object·v4 | 113 | ····move-result-object·v4 |
| |
114 | ····.line·106 | 114 | ····.line·107 |
115 | ····iget-object·v6,·v4,·Landroid/content/pm/PermissionInfo;->packageName:Ljava/lang/String; | 115 | ····iget-object·v6,·v4,·Landroid/content/pm/PermissionInfo;->packageName:Ljava/lang/String; |
| |
116 | ····const-string·v7,·"android" | 116 | ····const-string·v7,·"android" |
| |
117 | ····invoke-virtual·{v6,·v7},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | 117 | ····invoke-virtual·{v6,·v7},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
| |
118 | ····move-result·v6 | 118 | ····move-result·v6 |
| |
119 | ····if-nez·v6,·:cond_6 | 119 | ····if-nez·v6,·:cond_6 |
| |
120 | ····.line·108 | 120 | ····.line·109 |
121 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager; | 121 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager; |
| |
122 | ····move-result-object·v6 | 122 | ····move-result-object·v6 |
| |
123 | ····invoke-virtual·{v6,·v5},·Landroid/content/pm/PackageManager;->getAllPermissionGroups(I)Ljava/util/List; | 123 | ····invoke-virtual·{v6,·v5},·Landroid/content/pm/PackageManager;->getAllPermissionGroups(I)Ljava/util/List; |
| |
124 | ····move-result-object·v5 | 124 | ····move-result-object·v5 |
| |
125 | ····.line·109 | 125 | ····.line·110 |
126 | ····invoke-interface·{v5},·Ljava/util/List;->iterator()Ljava/util/Iterator; | 126 | ····invoke-interface·{v5},·Ljava/util/List;->iterator()Ljava/util/Iterator; |
| |
127 | ····move-result-object·v5 | 127 | ····move-result-object·v5 |
| |
128 | ····:cond_5 | 128 | ····:cond_5 |
129 | ····:goto_1 | 129 | ····:goto_1 |
130 | ····invoke-interface·{v5},·Ljava/util/Iterator;->hasNext()Z | 130 | ····invoke-interface·{v5},·Ljava/util/Iterator;->hasNext()Z |
Offset 218, 136 lines modified | Offset 218, 184 lines modified |
| |
218 | ····invoke-interface·{v5},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 218 | ····invoke-interface·{v5},·Ljava/util/Iterator;->next()Ljava/lang/Object; |
| |
219 | ····move-result-object·v6 | 219 | ····move-result-object·v6 |
| |
220 | ····check-cast·v6,·Landroid/content/pm/PermissionGroupInfo; | 220 | ····check-cast·v6,·Landroid/content/pm/PermissionGroupInfo; |
| |
221 | ····.line·110 | 221 | ····.line·111 |
222 | ····iget-object·v6,·v6,·Landroid/content/pm/PermissionGroupInfo;->name:Ljava/lang/String; | 222 | ····iget-object·v6,·v6,·Landroid/content/pm/PermissionGroupInfo;->name:Ljava/lang/String; |
| |
223 | ····iget-object·v7,·v4,·Landroid/content/pm/PermissionInfo;->group:Ljava/lang/String; | 223 | ····iget-object·v7,·v4,·Landroid/content/pm/PermissionInfo;->group:Ljava/lang/String; |
| |
224 | ····invoke-virtual·{v6,·v7},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | 224 | ····invoke-virtual·{v6,·v7},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
| |
225 | ····move-result·v6 | 225 | ····move-result·v6 |
| |
226 | ····if-eqz·v6,·:cond_5 | 226 | ····if-eqz·v6,·:cond_5 |
| |
227 | ····.line·111 | 227 | ····.line·112 |
228 | ····iget-object·v3,·v4,·Landroid/content/pm/PermissionInfo;->group:Ljava/lang/String; | 228 | ····iget-object·p1,·v4,·Landroid/content/pm/PermissionInfo;->group:Ljava/lang/String; |
229 | ····:try_end_0 | 229 | ····:try_end_0 |
230 | ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 | 230 | ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
231 | ····goto·:goto_1 | 231 | ····goto·:goto_1 |
| |
232 | ····:catch_0 | 232 | ····:catch_0 |
233 | ····const/4·v3,·0x0 | 233 | ····const/4·p1,·0x0 |
| |
234 | ····.line·121 | |
235 | ····:cond_6 | 234 | ····:cond_6 |
| 235 | ····move-object·v4,·p1 |
| |
| 236 | ····.line·122 |
236 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; | 237 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; |
| |
237 | ····move-result-object·v4 | 238 | ····move-result-object·p1 |
| |
238 | ····const-string·v5,·"android.intent.extra.USER" | 239 | ····const-string·v5,·"android.intent.extra.USER" |
| |
239 | ····invoke-virtual·{v4,·v5},·Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable; | 240 | ····invoke-virtual·{p1,·v5},·Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable; |
| |
240 | ····move-result-object·v4 | 241 | ····move-result-object·p1 |
| |
| 242 | ····move-object·v5,·p1 |
| |
241 | ····check-cast·v4,·Landroid/os/UserHandle; | 243 | ····check-cast·v5,·Landroid/os/UserHandle; |
| |
242 | ····if-nez·v4,·:cond_7 | 244 | ····if-nez·v5,·:cond_7 |
| |
243 | ····const-string·p1,·"Missing·mandatory·argument·EXTRA_USER" | 245 | ····const-string·p1,·"Missing·mandatory·argument·EXTRA_USER" |
| |
244 | ····.line·123 | 246 | ····.line·124 |
245 | ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I | 247 | ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I |
| |
246 | ····.line·124 | 248 | ····.line·125 |
247 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V | 249 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V |
| |
248 | ····return-void | 250 | ····return-void |
| |
249 | ····.line·128 | 251 | ····.line·129 |
250 | ····:cond_7 | 252 | ····:cond_7 |
251 | ····invoke-static·{p0,·v3,·p1},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->isLocationGroupAndProvider(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z | 253 | ····invoke-static·{p0,·v4,·v2},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->isLocationGroupAndProvider(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z |
| |
252 | ····move-result·v0 | |
| |
253 | ····if-eqz·v0,·:cond_8 | 254 | ····move-result·p1 |
| |
| 255 | ····if-eqz·p1,·:cond_8 |
254 | ····.line·130 | |
255 | ····new-instance·v0,·Landroid/content/Intent; | |
| |
256 | ····const-class·v2,·Lcom/android/permissioncontroller/permission/ui/LocationProviderInterceptDialog; | 256 | ····.line·131 |
| 257 | ····new-instance·p1,·Landroid/content/Intent; |
| |
257 | ····invoke-direct·{v0,·p0,·v2},·Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V | 258 | ····const-class·v0,·Lcom/android/permissioncontroller/permission/ui/LocationProviderInterceptDialog; |
| |
| 259 | ····invoke-direct·{p1,·p0,·v0},·Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V |
258 | ····.line·131 | |
259 | ····invoke-virtual·{v0,·v1,·p1},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; | |
| |
260 | ····.line·132 | 260 | ····.line·132 |
261 | ····invoke-virtual·{p0,·v0,·v4},·Landroid/app/Activity;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V | 261 | ····invoke-virtual·{p1,·v1,·v2},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; |
| |
262 | ····.line·133 | 262 | ····.line·133 |
| 263 | ····invoke-virtual·{p0,·p1,·v5},·Landroid/app/Activity;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V |
| |
| 264 | ····.line·134 |
263 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V | 265 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V |
| |
264 | ····return-void | 266 | ····return-void |
| |
265 | ····.line·137 | 267 | ····.line·138 |
266 | ····:cond_8 | 268 | ····:cond_8 |
267 | ····invoke-static·{p0,·v3,·p1},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->isLocationGroupAndControllerExtraPackage(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z | 269 | ····invoke-static·{p0,·v4,·v2},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->isLocationGroupAndControllerExtraPackage(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z |
| |
268 | ····move-result·v0 | 270 | ····move-result·p1 |
| |
269 | ····if-eqz·v0,·:cond_9 | |
| |
| 271 | ····if-eqz·p1,·:cond_9 |
270 | ····.line·140 | |
271 | ····invoke-static·{p0,·v4},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->startLocationControllerExtraPackageSettings(Landroid/content/Context;Landroid/os/UserHandle;)V | |
| |
272 | ····.line·141 | 272 | ····.line·141 |
| 273 | ····invoke-static·{p0,·v5},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->startLocationControllerExtraPackageSettings(Landroid/content/Context;Landroid/os/UserHandle;)V |
| |
| 274 | ····.line·142 |
273 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V | 275 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V |
| |
274 | ····return-void | 276 | ····return-void |
| |
275 | ····.line·145 | 277 | ····.line·146 |
276 | ····:cond_9 | 278 | ····:cond_9 |
277 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z | 279 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z |
| |
278 | ····move-result·v0 | 280 | ····move-result·p1 |
| |
279 | ····if-eqz·v0,·:cond_a | 281 | ····const·v0,·0x1020002 |
| |
| 282 | ····if-eqz·p1,·:cond_a |
| |
280 | ····.line·148 | 283 | ····.line·149 |
281 | ····invoke-static·{p1,·v2,·v3,·v4},·Lcom/android/permissioncontroller/permission/ui/auto/AutoAppPermissionFragment;->newInstance(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/UserHandle;)Lcom/android/permissioncontroller/permission/ui/auto/AutoAppPermissionFragment; | 284 | ····invoke-static·{v2,·v3,·v4,·v5},·Lcom/android/permissioncontroller/permission/ui/auto/AutoAppPermissionFragment;->newInstance(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/UserHandle;)Lcom/android/permissioncontroller/permission/ui/auto/AutoAppPermissionFragment; |
| |
282 | ····move-result-object·p1 | 285 | ····move-result-object·p1 |
| |
283 | ····.line·151 | 286 | ····.line·152 |
284 | ····invoke-virtual·{p0},·Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager; | 287 | ····invoke-virtual·{p0},·Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager; |
| |
285 | ····move-result-object·v0 | 288 | ····move-result-object·v1 |
| |
286 | ····invoke-virtual·{v0},·Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction; | |
| |
287 | ····move-result-object·v0 | 289 | ····invoke-virtual·{v1},·Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction; |
| |
288 | ····const·v1,·0x1020002 | 290 | ····move-result-object·v1 |
| |
289 | ····invoke-virtual·{v0,·v1,·p1},·Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction; | 291 | ····invoke-virtual·{v1,·v0,·p1},·Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction; |
| |
290 | ····.line·152 | 292 | ····.line·153 |
291 | ····invoke-virtual·{v0},·Landroidx/fragment/app/FragmentTransaction;->commit()I | 293 | ····invoke-virtual·{v1},·Landroidx/fragment/app/FragmentTransaction;->commit()I |
| |
292 | ····goto·:goto_2 | 294 | ····goto·:goto_2 |
| |
293 | ····.line·154 | 295 | ····.line·154 |
294 | ····:cond_a | 296 | ····:cond_a |
| 297 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isTelevision(Landroid/content/Context;)Z |
| |
| 298 | ····move-result·p1 |
| |
| 299 | ····if-eqz·p1,·:cond_b |
| |
| 300 | ····.line·155 |
| 301 | ····new-instance·p1,·Lcom/android/permissioncontroller/permission/ui/television/AppPermissionFragment; |
| |
| 302 | ····invoke-direct·{p1},·Lcom/android/permissioncontroller/permission/ui/television/AppPermissionFragment;-><init>()V |
| |
| 303 | ····const/4·v6,·0x0 |
| |
| 304 | ····const-wide/16·v7,·0x0 |
| |
| 305 | ····const/4·v9,·0x0 |
| |
| 306 | ····.line·157 |
| 307 | ····invoke-static/range·{v2·..·v9},·Lcom/android/permissioncontroller/permission/ui/television/AppPermissionFragment;->createArgs(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/UserHandle;Ljava/lang/String;JLjava/lang/String;)Landroid/os/Bundle; |
| |
| 308 | ····move-result-object·v1 |
| |
| 309 | ····.line·156 |
| 310 | ····invoke-virtual·{p1,·v1},·Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V |
| |
| 311 | ····.line·159 |
| 312 | ····invoke-virtual·{p0},·Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager; |
| |
| 313 | ····move-result-object·v1 |
| |
| 314 | ····invoke-virtual·{v1},·Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction; |
| |
| 315 | ····move-result-object·v1 |
| |
| 316 | ····.line·160 |
| 317 | ····invoke-virtual·{v1,·v0,·p1},·Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction; |
| |
| 318 | ····.line·161 |
| 319 | ····invoke-virtual·{v1},·Landroidx/fragment/app/FragmentTransaction;->commit()I |
| |
| 320 | ····goto·:goto_2 |
| |
| 321 | ····.line·163 |
| 322 | ····:cond_b |
295 | ····new-instance·p1,·Landroid/content/Intent; | 323 | ····new-instance·p1,·Landroid/content/Intent; |
| |
296 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; | 324 | ····invoke-virtual·{p0},·Landroid/app/Activity;->getIntent()Landroid/content/Intent; |
| |
297 | ····move-result-object·v0 | 325 | ····move-result-object·v0 |
| |
298 | ····invoke-direct·{p1,·v0},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V | 326 | ····invoke-direct·{p1,·v0},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V |
Offset 356, 56 lines modified | Offset 404, 56 lines modified |
| |
356 | ····invoke-virtual·{p1,·v0},·Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent; | 404 | ····invoke-virtual·{p1,·v0},·Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent; |
| |
357 | ····move-result-object·p1 | 405 | ····move-result-object·p1 |
| |
358 | ····invoke-virtual·{p0,·p1},·Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V | 406 | ····invoke-virtual·{p0,·p1},·Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V |
| |
359 | ····.line·155 | 407 | ····.line·164 |
360 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V | 408 | ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V |
| |
361 | ····:goto_2 | 409 | ····:goto_2 |
362 | ····return-void | 410 | ····return-void |
363 | .end·method | 411 | .end·method |
| |
364 | .method·public·onOptionsItemSelected(Landroid/view/MenuItem;)Z | 412 | .method·public·onOptionsItemSelected(Landroid/view/MenuItem;)Z |
365 | ····.locals·2 | 413 | ····.locals·2 |
| |
366 | ····.line·162 | 414 | ····.line·171 |
367 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z | 415 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z |
| |
368 | ····move-result·v0 | 416 | ····move-result·v0 |
| |
369 | ····if-eqz·v0,·:cond_1 | 417 | ····if-eqz·v0,·:cond_1 |
| |
370 | ····.line·163 | 418 | ····.line·172 |
371 | ····invoke-interface·{p1},·Landroid/view/MenuItem;->getItemId()I | 419 | ····invoke-interface·{p1},·Landroid/view/MenuItem;->getItemId()I |
| |
372 | ····move-result·v0 | 420 | ····move-result·v0 |
| |
373 | ····const·v1,·0x102002c | 421 | ····const·v1,·0x102002c |
| |
374 | ····if-eq·v0,·v1,·:cond_0 | 422 | ····if-eq·v0,·v1,·:cond_0 |
| |
375 | ····.line·168 | 423 | ····.line·177 |
376 | ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z | 424 | ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z |
| |
377 | ····move-result·p1 | 425 | ····move-result·p1 |
| |
378 | ····return·p1 | 426 | ····return·p1 |
| |
379 | ····.line·165 | 427 | ····.line·174 |
380 | ····:cond_0 | 428 | ····:cond_0 |
381 | ····invoke-virtual·{p0},·Landroidx/activity/ComponentActivity;->onBackPressed()V | 429 | ····invoke-virtual·{p0},·Landroidx/activity/ComponentActivity;->onBackPressed()V |
| |
382 | ····const/4·p1,·0x1 | 430 | ····const/4·p1,·0x1 |
| |
383 | ····return·p1 | 431 | ····return·p1 |
| |
384 | ····.line·171 | 432 | ····.line·180 |
385 | ····:cond_1 | 433 | ····:cond_1 |
386 | ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z | 434 | ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z |
| |
387 | ····move-result·p1 | 435 | ····move-result·p1 |
| |
388 | ····return·p1 | 436 | ····return·p1 |
389 | .end·method | 437 | .end·method |