Offset 12, 202 lines modifiedOffset 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·methods13 #·direct·methods
14 .method·static·constructor·<clinit>()V14 .method·static·constructor·<clinit>()V
15 ····.locals·115 ····.locals·1
  
16 ····.line·5616 ····.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·v019 ····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-void21 ····return-void
22 .end·method22 .end·method
  
23 .method·public·constructor·<init>()V23 .method·public·constructor·<init>()V
24 ····.locals·024 ····.locals·0
  
25 ····.line·5525 ····.line·56
26 ····invoke-direct·{p0},·Landroidx/fragment/app/FragmentActivity;-><init>()V26 ····invoke-direct·{p0},·Landroidx/fragment/app/FragmentActivity;-><init>()V
  
27 ····return-void27 ····return-void
28 .end·method28 .end·method
  
  
29 #·virtual·methods29 #·virtual·methods
30 .method·public·onCreate(Landroid/os/Bundle;)V30 .method·public·onCreate(Landroid/os/Bundle;)V
31 ····.locals·831 ····.locals·10
  
32 ····.line·7232 ····.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;)Z34 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z
  
35 ····move-result·v135 ····move-result·v1
  
36 ····if-nez·v1,·:cond_136 ····if-nez·v1,·:cond_1
  
37 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isWear(Landroid/content/Context;)Z37 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isWear(Landroid/content/Context;)Z
  
38 ····move-result·v138 ····move-result·v1
  
39 ····if-nez·v1,·:cond_139 ····if-nez·v1,·:cond_1
  
40 ····.line·7340 ····.line·74
41 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isTelevision(Landroid/content/Context;)Z41 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isTelevision(Landroid/content/Context;)Z
  
42 ····move-result·v142 ····move-result·v1
  
43 ····if-eqz·v1,·:cond_043 ····if-eqz·v1,·:cond_0
  
44 ····goto·:goto_044 ····goto·:goto_0
  
45 ····.line·7445 ····.line·75
46 ····:cond_046 ····: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;)V49 ····invoke-direct·{p1,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  
50 ····throw·p150 ····throw·p1
  
51 ····.line·7751 ····.line·78
52 ····:cond_152 ····:cond_1
53 ····:goto_053 ····:goto_0
54 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z54 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z
  
55 ····move-result·v155 ····move-result·v1
  
56 ····if-eqz·v1,·:cond_256 ····if-eqz·v1,·:cond_2
  
57 ····const·v1,·0x7f1300f957 ····const·v1,·0x7f1300f9
  
58 ····.line·8058 ····.line·81
59 ····invoke-virtual·{p0,·v1},·Landroid/app/Activity;->setTheme(I)V59 ····invoke-virtual·{p0,·v1},·Landroid/app/Activity;->setTheme(I)V
  
60 ····.line·8260 ····.line·83
61 ····:cond_261 ····:cond_2
62 ····invoke-super·{p0,·p1},·Landroidx/fragment/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V62 ····invoke-super·{p0,·p1},·Landroidx/fragment/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V
  
63 ····.line·8463 ····.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·p165 ····move-result-object·p1
  
66 ····const/high16·v1,·0x8000066 ····const/high16·v1,·0x80000
  
67 ····invoke-virtual·{p1,·v1},·Landroid/view/Window;->addSystemFlags(I)V67 ····invoke-virtual·{p1,·v1},·Landroid/view/Window;->addSystemFlags(I)V
  
68 ····.line·8668 ····.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·p170 ····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·p173 ····move-result-object·v2
  
74 ····if-nez·p1,·:cond_374 ····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·8876 ····.line·89
77 ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I77 ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
  
78 ····.line·8978 ····.line·90
79 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V79 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V
  
80 ····return-void80 ····return-void
  
81 ····.line·9381 ····.line·94
82 ····:cond_382 ····: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·v284 ····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·v287 ····move-result-object·v3
  
88 ····.line·9488 ····.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·v390 ····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_493 ····move-result-object·p1
  
95 ····if-nez·v3,·:cond_494 ····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·9697 ····.line·97
98 ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I98 ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
  
99 ····.line·9899 ····.line·99
100 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V100 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V
  
101 ····return-void101 ····return-void
  
102 ····:cond_4102 ····:cond_4
103 ····if-nez·v3,·:cond_6103 ····if-nez·p1,·:cond_6
  
104 ····.line·102104 ····.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·v3106 ····move-result-object·p1
  
107 ····.line·105107 ····.line·106
108 ····:try_start_0108 ····: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·v4110 ····move-result-object·v4
  
111 ····const/4·v5,·0x0111 ····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·v4113 ····move-result-object·v4
  
114 ····.line·106114 ····.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;)Z117 ····invoke-virtual·{v6,·v7},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  
118 ····move-result·v6118 ····move-result·v6
  
119 ····if-nez·v6,·:cond_6119 ····if-nez·v6,·:cond_6
  
120 ····.line·108120 ····.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·v6122 ····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·v5124 ····move-result-object·v5
  
125 ····.line·109125 ····.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·v5127 ····move-result-object·v5
  
128 ····:cond_5128 ····:cond_5
129 ····:goto_1129 ····:goto_1
130 ····invoke-interface·{v5},·Ljava/util/Iterator;->hasNext()Z130 ····invoke-interface·{v5},·Ljava/util/Iterator;->hasNext()Z
Offset 218, 136 lines modifiedOffset 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·v6219 ····move-result-object·v6
  
220 ····check-cast·v6,·Landroid/content/pm/PermissionGroupInfo;220 ····check-cast·v6,·Landroid/content/pm/PermissionGroupInfo;
  
221 ····.line·110221 ····.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;)Z224 ····invoke-virtual·{v6,·v7},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  
225 ····move-result·v6225 ····move-result·v6
  
226 ····if-eqz·v6,·:cond_5226 ····if-eqz·v6,·:cond_5
  
227 ····.line·111227 ····.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_0229 ····:try_end_0
230 ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0230 ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0
  
231 ····goto·:goto_1231 ····goto·:goto_1
  
232 ····:catch_0232 ····:catch_0
233 ····const/4·v3,·0x0233 ····const/4·p1,·0x0
  
234 ····.line·121 
235 ····:cond_6234 ····: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·v4238 ····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·v4241 ····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_7244 ····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·123246 ····.line·124
245 ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I247 ····invoke-static·{v0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
  
246 ····.line·124248 ····.line·125
247 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V249 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V
  
248 ····return-void250 ····return-void
  
249 ····.line·128251 ····.line·129
250 ····:cond_7252 ····:cond_7
251 ····invoke-static·{p0,·v3,·p1},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->isLocationGroupAndProvider(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z253 ····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_8254 ····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;)V258 ····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·132260 ····.line·132
261 ····invoke-virtual·{p0,·v0,·v4},·Landroid/app/Activity;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V261 ····invoke-virtual·{p1,·v1,·v2},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
  
262 ····.line·133262 ····.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()V265 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V
  
264 ····return-void266 ····return-void
  
265 ····.line·137267 ····.line·138
266 ····:cond_8268 ····:cond_8
267 ····invoke-static·{p0,·v3,·p1},·Lcom/android/permissioncontroller/permission/utils/LocationUtils;->isLocationGroupAndControllerExtraPackage(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z269 ····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·v0270 ····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·141272 ····.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()V275 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V
  
274 ····return-void276 ····return-void
  
275 ····.line·145277 ····.line·146
276 ····:cond_9278 ····:cond_9
277 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z279 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z
  
278 ····move-result·v0280 ····move-result·p1
  
279 ····if-eqz·v0,·:cond_a281 ····const·v0,·0x1020002
  
 282 ····if-eqz·p1,·:cond_a
  
280 ····.line·148283 ····.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·p1285 ····move-result-object·p1
  
283 ····.line·151286 ····.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·v0288 ····move-result-object·v1
  
286 ····invoke-virtual·{v0},·Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction; 
  
287 ····move-result-object·v0289 ····invoke-virtual·{v1},·Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
  
288 ····const·v1,·0x1020002290 ····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·152292 ····.line·153
291 ····invoke-virtual·{v0},·Landroidx/fragment/app/FragmentTransaction;->commit()I293 ····invoke-virtual·{v1},·Landroidx/fragment/app/FragmentTransaction;->commit()I
  
292 ····goto·:goto_2294 ····goto·:goto_2
  
293 ····.line·154295 ····.line·154
294 ····:cond_a296 ····: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·v0325 ····move-result-object·v0
  
298 ····invoke-direct·{p1,·v0},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V326 ····invoke-direct·{p1,·v0},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V
Offset 356, 56 lines modifiedOffset 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·p1405 ····move-result-object·p1
  
358 ····invoke-virtual·{p0,·p1},·Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V406 ····invoke-virtual·{p0,·p1},·Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
  
359 ····.line·155407 ····.line·164
360 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V408 ····invoke-virtual·{p0},·Landroid/app/Activity;->finish()V
  
361 ····:goto_2409 ····:goto_2
362 ····return-void410 ····return-void
363 .end·method411 .end·method
  
364 .method·public·onOptionsItemSelected(Landroid/view/MenuItem;)Z412 .method·public·onOptionsItemSelected(Landroid/view/MenuItem;)Z
365 ····.locals·2413 ····.locals·2
  
366 ····.line·162414 ····.line·171
367 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z415 ····invoke-static·{p0},·Lcom/android/permissioncontroller/DeviceUtils;->isAuto(Landroid/content/Context;)Z
  
368 ····move-result·v0416 ····move-result·v0
  
369 ····if-eqz·v0,·:cond_1417 ····if-eqz·v0,·:cond_1
  
370 ····.line·163418 ····.line·172
371 ····invoke-interface·{p1},·Landroid/view/MenuItem;->getItemId()I419 ····invoke-interface·{p1},·Landroid/view/MenuItem;->getItemId()I
  
372 ····move-result·v0420 ····move-result·v0
  
373 ····const·v1,·0x102002c421 ····const·v1,·0x102002c
  
374 ····if-eq·v0,·v1,·:cond_0422 ····if-eq·v0,·v1,·:cond_0
  
375 ····.line·168423 ····.line·177
376 ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z424 ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z
  
377 ····move-result·p1425 ····move-result·p1
  
378 ····return·p1426 ····return·p1
  
379 ····.line·165427 ····.line·174
380 ····:cond_0428 ····:cond_0
381 ····invoke-virtual·{p0},·Landroidx/activity/ComponentActivity;->onBackPressed()V429 ····invoke-virtual·{p0},·Landroidx/activity/ComponentActivity;->onBackPressed()V
  
382 ····const/4·p1,·0x1430 ····const/4·p1,·0x1
  
383 ····return·p1431 ····return·p1
  
384 ····.line·171432 ····.line·180
385 ····:cond_1433 ····:cond_1
386 ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z434 ····invoke-super·{p0,·p1},·Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z
  
387 ····move-result·p1435 ····move-result·p1
  
388 ····return·p1436 ····return·p1
389 .end·method437 .end·method