Offset 13, 15 lines modifiedOffset 13, 15 lines modified
  
13 #·direct·methods13 #·direct·methods
14 .method·public·static·getProfileOrDeviceOwner(Landroid/content/Context;Landroid/os/UserHandle;)Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;14 .method·public·static·getProfileOrDeviceOwner(Landroid/content/Context;Landroid/os/UserHandle;)Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;
15 ····.locals·115 ····.locals·1
  
16 ····const/4·v0,·0x016 ····const/4·v0,·0x0
  
17 ····.line·3817 ····.line·44
18 ····invoke-static·{p0,·v0,·p1},·Lcom/android/settingslib/RestrictedLockUtils;->getProfileOrDeviceOwner(Landroid/content/Context;Ljava/lang/String;Landroid/os/UserHandle;)Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;18 ····invoke-static·{p0,·v0,·p1},·Lcom/android/settingslib/RestrictedLockUtils;->getProfileOrDeviceOwner(Landroid/content/Context;Ljava/lang/String;Landroid/os/UserHandle;)Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;
  
19 ····move-result-object·p019 ····move-result-object·p0
  
20 ····return-object·p020 ····return-object·p0
21 .end·method21 .end·method
  
Offset 33, 148 lines modifiedOffset 33, 148 lines modified
33 ····if-nez·p2,·:cond_033 ····if-nez·p2,·:cond_0
  
34 ····return-object·v034 ····return-object·v0
  
35 ····:cond_035 ····:cond_0
36 ····const-string·v1,·"device_policy"36 ····const-string·v1,·"device_policy"
  
37 ····.line·4637 ····.line·56
38 ····invoke-virtual·{p0,·v1},·Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;38 ····invoke-virtual·{p0,·v1},·Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
  
39 ····move-result-object·v139 ····move-result-object·v1
  
40 ····check-cast·v1,·Landroid/app/admin/DevicePolicyManager;40 ····check-cast·v1,·Landroid/app/admin/DevicePolicyManager;
  
41 ····if-nez·v1,·:cond_141 ····if-nez·v1,·:cond_1
  
42 ····return-object·v042 ····return-object·v0
  
43 ····.line·5443 ····.line·64
44 ····:cond_144 ····:cond_1
45 ····:try_start_045 ····:try_start_0
46 ····invoke-virtual·{p0},·Landroid/content/Context;->getPackageName()Ljava/lang/String;46 ····invoke-virtual·{p0},·Landroid/content/Context;->getPackageName()Ljava/lang/String;
  
47 ····move-result-object·v247 ····move-result-object·v2
  
48 ····const/4·v3,·0x048 ····const/4·v3,·0x0
  
49 ····invoke-virtual·{p0,·v2,·v3,·p2},·Landroid/content/Context;->createPackageContextAsUser(Ljava/lang/String;ILandroid/os/UserHandle;)Landroid/content/Context;49 ····invoke-virtual·{p0,·v2,·v3,·p2},·Landroid/content/Context;->createPackageContextAsUser(Ljava/lang/String;ILandroid/os/UserHandle;)Landroid/content/Context;
  
50 ····move-result-object·p050 ····move-result-object·p0
51 ····:try_end_051 ····:try_end_0
52 ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_052 ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0
  
53 ····.line·5953 ····.line·69
54 ····const-class·v2,·Landroid/app/admin/DevicePolicyManager;54 ····const-class·v2,·Landroid/app/admin/DevicePolicyManager;
  
55 ····invoke-virtual·{p0,·v2},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;55 ····invoke-virtual·{p0,·v2},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
  
56 ····move-result-object·p056 ····move-result-object·p0
  
57 ····check-cast·p0,·Landroid/app/admin/DevicePolicyManager;57 ····check-cast·p0,·Landroid/app/admin/DevicePolicyManager;
  
58 ····.line·6058 ····.line·70
59 ····invoke-virtual·{p0},·Landroid/app/admin/DevicePolicyManager;->getProfileOwner()Landroid/content/ComponentName;59 ····invoke-virtual·{p0},·Landroid/app/admin/DevicePolicyManager;->getProfileOwner()Landroid/content/ComponentName;
  
60 ····move-result-object·p060 ····move-result-object·p0
  
61 ····if-eqz·p0,·:cond_261 ····if-eqz·p0,·:cond_2
  
62 ····.line·6262 ····.line·72
63 ····new-instance·v0,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;63 ····new-instance·v0,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;
  
64 ····invoke-direct·{v0,·p0,·p1,·p2},·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;-><init>(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/UserHandle;)V64 ····invoke-direct·{v0,·p0,·p1,·p2},·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;-><init>(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/UserHandle;)V
  
65 ····return-object·v065 ····return-object·v0
  
66 ····.line·6466 ····.line·74
67 ····:cond_267 ····:cond_2
68 ····invoke-virtual·{v1},·Landroid/app/admin/DevicePolicyManager;->getDeviceOwnerUser()Landroid/os/UserHandle;68 ····invoke-virtual·{v1},·Landroid/app/admin/DevicePolicyManager;->getDeviceOwnerUser()Landroid/os/UserHandle;
  
69 ····move-result-object·p069 ····move-result-object·p0
  
70 ····invoke-static·{p0,·p2},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z70 ····invoke-static·{p0,·p2},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
  
71 ····move-result·p071 ····move-result·p0
  
72 ····if-eqz·p0,·:cond_372 ····if-eqz·p0,·:cond_3
  
73 ····.line·6573 ····.line·75
74 ····invoke-virtual·{v1},·Landroid/app/admin/DevicePolicyManager;->getDeviceOwnerComponentOnAnyUser()Landroid/content/ComponentName;74 ····invoke-virtual·{v1},·Landroid/app/admin/DevicePolicyManager;->getDeviceOwnerComponentOnAnyUser()Landroid/content/ComponentName;
  
75 ····move-result-object·p075 ····move-result-object·p0
  
76 ····if-eqz·p0,·:cond_376 ····if-eqz·p0,·:cond_3
  
77 ····.line·6777 ····.line·77
78 ····new-instance·v0,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;78 ····new-instance·v0,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;
  
79 ····invoke-direct·{v0,·p0,·p1,·p2},·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;-><init>(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/UserHandle;)V79 ····invoke-direct·{v0,·p0,·p1,·p2},·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;-><init>(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/UserHandle;)V
  
80 ····:cond_380 ····:cond_3
81 ····return-object·v081 ····return-object·v0
  
82 ····:catch_082 ····:catch_0
83 ····move-exception·p083 ····move-exception·p0
  
84 ····.line·5684 ····.line·66
85 ····new-instance·p1,·Ljava/lang/IllegalStateException;85 ····new-instance·p1,·Ljava/lang/IllegalStateException;
  
86 ····invoke-direct·{p1,·p0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V86 ····invoke-direct·{p1,·p0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
  
87 ····throw·p187 ····throw·p1
88 .end·method88 .end·method
  
89 .method·public·static·getShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)Landroid/content/Intent;89 .method·public·static·getShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)Landroid/content/Intent;
90 ····.locals·290 ····.locals·2
  
91 ····.line·9091 ····.line·101
92 ····new-instance·p0,·Landroid/content/Intent;92 ····new-instance·p0,·Landroid/content/Intent;
  
93 ····const-string·v0,·"android.settings.SHOW_ADMIN_SUPPORT_DETAILS"93 ····const-string·v0,·"android.settings.SHOW_ADMIN_SUPPORT_DETAILS"
  
94 ····invoke-direct·{p0,·v0},·Landroid/content/Intent;-><init>(Ljava/lang/String;)V94 ····invoke-direct·{p0,·v0},·Landroid/content/Intent;-><init>(Ljava/lang/String;)V
  
95 ····if-eqz·p1,·:cond_195 ····if-eqz·p1,·:cond_1
  
96 ····.line·9296 ····.line·103
97 ····iget-object·v0,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->component:Landroid/content/ComponentName;97 ····iget-object·v0,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->component:Landroid/content/ComponentName;
  
98 ····if-eqz·v0,·:cond_098 ····if-eqz·v0,·:cond_0
  
99 ····const-string·v1,·"android.app.extra.DEVICE_ADMIN"99 ····const-string·v1,·"android.app.extra.DEVICE_ADMIN"
  
100 ····.line·93100 ····.line·104
101 ····invoke-virtual·{p0,·v1,·v0},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;101 ····invoke-virtual·{p0,·v1,·v0},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
  
102 ····.line·95102 ····.line·106
103 ····:cond_0103 ····:cond_0
104 ····iget-object·p1,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->user:Landroid/os/UserHandle;104 ····iget-object·p1,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->user:Landroid/os/UserHandle;
  
105 ····const-string·v0,·"android.intent.extra.USER"105 ····const-string·v0,·"android.intent.extra.USER"
  
106 ····invoke-virtual·{p0,·v0,·p1},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;106 ····invoke-virtual·{p0,·v0,·p1},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
  
107 ····:cond_1107 ····:cond_1
108 ····return-object·p0108 ····return-object·p0
109 .end·method109 .end·method
  
110 .method·public·static·isCurrentUserOrProfile(Landroid/content/Context;I)Z110 .method·public·static·isCurrentUserOrProfile(Landroid/content/Context;I)Z
111 ····.locals·1111 ····.locals·1
  
112 ····.line·101112 ····.line·116
113 ····const-class·v0,·Landroid/os/UserManager;113 ····const-class·v0,·Landroid/os/UserManager;
  
114 ····invoke-virtual·{p0,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;114 ····invoke-virtual·{p0,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
  
115 ····move-result-object·p0115 ····move-result-object·p0
  
116 ····check-cast·p0,·Landroid/os/UserManager;116 ····check-cast·p0,·Landroid/os/UserManager;
  
117 ····.line·102117 ····.line·117
118 ····invoke-virtual·{p0},·Landroid/os/UserManager;->getUserProfiles()Ljava/util/List;118 ····invoke-virtual·{p0},·Landroid/os/UserManager;->getUserProfiles()Ljava/util/List;
  
119 ····move-result-object·p0119 ····move-result-object·p0
  
120 ····invoke-static·{p1},·Landroid/os/UserHandle;->of(I)Landroid/os/UserHandle;120 ····invoke-static·{p1},·Landroid/os/UserHandle;->of(I)Landroid/os/UserHandle;
  
121 ····move-result-object·p1121 ····move-result-object·p1
Offset 185, 58 lines modifiedOffset 185, 58 lines modified
  
185 ····return·p0185 ····return·p0
186 .end·method186 .end·method
  
187 .method·public·static·sendShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)V187 .method·public·static·sendShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)V
188 ····.locals·3188 ····.locals·3
  
189 ····.line·77189 ····.line·88
190 ····invoke-static·{p0,·p1},·Lcom/android/settingslib/RestrictedLockUtils;->getShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)Landroid/content/Intent;190 ····invoke-static·{p0,·p1},·Lcom/android/settingslib/RestrictedLockUtils;->getShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)Landroid/content/Intent;
  
191 ····move-result-object·v0191 ····move-result-object·v0
  
192 ····.line·78192 ····.line·89
193 ····invoke-static·{},·Landroid/os/UserHandle;->myUserId()I193 ····invoke-static·{},·Landroid/os/UserHandle;->myUserId()I
  
194 ····move-result·v1194 ····move-result·v1
  
195 ····if-eqz·p1,·:cond_1195 ····if-eqz·p1,·:cond_1
  
196 ····.line·80196 ····.line·91
197 ····iget-object·v2,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->user:Landroid/os/UserHandle;197 ····iget-object·v2,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->user:Landroid/os/UserHandle;
  
198 ····if-eqz·v2,·:cond_0198 ····if-eqz·v2,·:cond_0
  
199 ····.line·81199 ····.line·92
200 ····invoke-virtual·{v2},·Landroid/os/UserHandle;->getIdentifier()I200 ····invoke-virtual·{v2},·Landroid/os/UserHandle;->getIdentifier()I
  
201 ····move-result·v2201 ····move-result·v2
  
202 ····invoke-static·{p0,·v2},·Lcom/android/settingslib/RestrictedLockUtils;->isCurrentUserOrProfile(Landroid/content/Context;I)Z202 ····invoke-static·{p0,·v2},·Lcom/android/settingslib/RestrictedLockUtils;->isCurrentUserOrProfile(Landroid/content/Context;I)Z
  
203 ····move-result·v2203 ····move-result·v2
  
204 ····if-eqz·v2,·:cond_0204 ····if-eqz·v2,·:cond_0
  
205 ····.line·82205 ····.line·93
206 ····iget-object·v1,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->user:Landroid/os/UserHandle;206 ····iget-object·v1,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->user:Landroid/os/UserHandle;
  
207 ····invoke-virtual·{v1},·Landroid/os/UserHandle;->getIdentifier()I207 ····invoke-virtual·{v1},·Landroid/os/UserHandle;->getIdentifier()I
  
208 ····move-result·v1208 ····move-result·v1
  
209 ····.line·84209 ····.line·95
210 ····:cond_0210 ····:cond_0
211 ····iget-object·p1,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->enforcedRestriction:Ljava/lang/String;211 ····iget-object·p1,·p1,·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;->enforcedRestriction:Ljava/lang/String;
  
212 ····const-string·v2,·"android.app.extra.RESTRICTION"212 ····const-string·v2,·"android.app.extra.RESTRICTION"
  
213 ····invoke-virtual·{v0,·v2,·p1},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;213 ····invoke-virtual·{v0,·v2,·p1},·Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
  
214 ····.line·86214 ····.line·97
215 ····:cond_1215 ····:cond_1
216 ····invoke-static·{v1},·Landroid/os/UserHandle;->of(I)Landroid/os/UserHandle;216 ····invoke-static·{v1},·Landroid/os/UserHandle;->of(I)Landroid/os/UserHandle;
  
217 ····move-result-object·p1217 ····move-result-object·p1
  
218 ····invoke-virtual·{p0,·v0,·p1},·Landroid/content/Context;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V218 ····invoke-virtual·{p0,·v0,·p1},·Landroid/content/Context;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V