| | | |
Offset 13, 15 lines modified | Offset 13, 15 lines modified |
| |
13 | #·direct·methods | 13 | #·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·1 | 15 | ····.locals·1 |
| |
16 | ····const/4·v0,·0x0 | 16 | ····const/4·v0,·0x0 |
| |
17 | ····.line·38 | 17 | ····.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·p0 | 19 | ····move-result-object·p0 |
| |
20 | ····return-object·p0 | 20 | ····return-object·p0 |
21 | .end·method | 21 | .end·method |
| |
Offset 33, 148 lines modified | Offset 33, 148 lines modified |
33 | ····if-nez·p2,·:cond_0 | 33 | ····if-nez·p2,·:cond_0 |
| |
34 | ····return-object·v0 | 34 | ····return-object·v0 |
| |
35 | ····:cond_0 | 35 | ····:cond_0 |
36 | ····const-string·v1,·"device_policy" | 36 | ····const-string·v1,·"device_policy" |
| |
37 | ····.line·46 | 37 | ····.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·v1 | 39 | ····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_1 | 41 | ····if-nez·v1,·:cond_1 |
| |
42 | ····return-object·v0 | 42 | ····return-object·v0 |
| |
43 | ····.line·54 | 43 | ····.line·64 |
44 | ····:cond_1 | 44 | ····:cond_1 |
45 | ····:try_start_0 | 45 | ····: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·v2 | 47 | ····move-result-object·v2 |
| |
48 | ····const/4·v3,·0x0 | 48 | ····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·p0 | 50 | ····move-result-object·p0 |
51 | ····:try_end_0 | 51 | ····:try_end_0 |
52 | ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 | 52 | ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
53 | ····.line·59 | 53 | ····.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·p0 | 56 | ····move-result-object·p0 |
| |
57 | ····check-cast·p0,·Landroid/app/admin/DevicePolicyManager; | 57 | ····check-cast·p0,·Landroid/app/admin/DevicePolicyManager; |
| |
58 | ····.line·60 | 58 | ····.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·p0 | 60 | ····move-result-object·p0 |
| |
61 | ····if-eqz·p0,·:cond_2 | 61 | ····if-eqz·p0,·:cond_2 |
| |
62 | ····.line·62 | 62 | ····.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;)V | 64 | ····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·v0 | 65 | ····return-object·v0 |
| |
66 | ····.line·64 | 66 | ····.line·74 |
67 | ····:cond_2 | 67 | ····: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·p0 | 69 | ····move-result-object·p0 |
| |
70 | ····invoke-static·{p0,·p2},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z | 70 | ····invoke-static·{p0,·p2},·Ljava/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z |
| |
71 | ····move-result·p0 | 71 | ····move-result·p0 |
| |
72 | ····if-eqz·p0,·:cond_3 | 72 | ····if-eqz·p0,·:cond_3 |
| |
73 | ····.line·65 | 73 | ····.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·p0 | 75 | ····move-result-object·p0 |
| |
76 | ····if-eqz·p0,·:cond_3 | 76 | ····if-eqz·p0,·:cond_3 |
| |
77 | ····.line·67 | 77 | ····.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;)V | 79 | ····invoke-direct·{v0,·p0,·p1,·p2},·Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;-><init>(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/UserHandle;)V |
| |
80 | ····:cond_3 | 80 | ····:cond_3 |
81 | ····return-object·v0 | 81 | ····return-object·v0 |
| |
82 | ····:catch_0 | 82 | ····:catch_0 |
83 | ····move-exception·p0 | 83 | ····move-exception·p0 |
| |
84 | ····.line·56 | 84 | ····.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;)V | 86 | ····invoke-direct·{p1,·p0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V |
| |
87 | ····throw·p1 | 87 | ····throw·p1 |
88 | .end·method | 88 | .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·2 | 90 | ····.locals·2 |
| |
91 | ····.line·90 | 91 | ····.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;)V | 94 | ····invoke-direct·{p0,·v0},·Landroid/content/Intent;-><init>(Ljava/lang/String;)V |
| |
95 | ····if-eqz·p1,·:cond_1 | 95 | ····if-eqz·p1,·:cond_1 |
| |
96 | ····.line·92 | 96 | ····.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_0 | 98 | ····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·93 | 100 | ····.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·95 | 102 | ····.line·106 |
103 | ····:cond_0 | 103 | ····: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_1 | 107 | ····:cond_1 |
108 | ····return-object·p0 | 108 | ····return-object·p0 |
109 | .end·method | 109 | .end·method |
| |
110 | .method·public·static·isCurrentUserOrProfile(Landroid/content/Context;I)Z | 110 | .method·public·static·isCurrentUserOrProfile(Landroid/content/Context;I)Z |
111 | ····.locals·1 | 111 | ····.locals·1 |
| |
112 | ····.line·101 | 112 | ····.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·p0 | 115 | ····move-result-object·p0 |
| |
116 | ····check-cast·p0,·Landroid/os/UserManager; | 116 | ····check-cast·p0,·Landroid/os/UserManager; |
| |
117 | ····.line·102 | 117 | ····.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·p0 | 119 | ····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·p1 | 121 | ····move-result-object·p1 |
Offset 185, 58 lines modified | Offset 185, 58 lines modified |
| |
185 | ····return·p0 | 185 | ····return·p0 |
186 | .end·method | 186 | .end·method |
| |
187 | .method·public·static·sendShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)V | 187 | .method·public·static·sendShowAdminSupportDetailsIntent(Landroid/content/Context;Lcom/android/settingslib/RestrictedLockUtils$EnforcedAdmin;)V |
188 | ····.locals·3 | 188 | ····.locals·3 |
| |
189 | ····.line·77 | 189 | ····.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·v0 | 191 | ····move-result-object·v0 |
| |
192 | ····.line·78 | 192 | ····.line·89 |
193 | ····invoke-static·{},·Landroid/os/UserHandle;->myUserId()I | 193 | ····invoke-static·{},·Landroid/os/UserHandle;->myUserId()I |
| |
194 | ····move-result·v1 | 194 | ····move-result·v1 |
| |
195 | ····if-eqz·p1,·:cond_1 | 195 | ····if-eqz·p1,·:cond_1 |
| |
196 | ····.line·80 | 196 | ····.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_0 | 198 | ····if-eqz·v2,·:cond_0 |
| |
199 | ····.line·81 | 199 | ····.line·92 |
200 | ····invoke-virtual·{v2},·Landroid/os/UserHandle;->getIdentifier()I | 200 | ····invoke-virtual·{v2},·Landroid/os/UserHandle;->getIdentifier()I |
| |
201 | ····move-result·v2 | 201 | ····move-result·v2 |
| |
202 | ····invoke-static·{p0,·v2},·Lcom/android/settingslib/RestrictedLockUtils;->isCurrentUserOrProfile(Landroid/content/Context;I)Z | 202 | ····invoke-static·{p0,·v2},·Lcom/android/settingslib/RestrictedLockUtils;->isCurrentUserOrProfile(Landroid/content/Context;I)Z |
| |
203 | ····move-result·v2 | 203 | ····move-result·v2 |
| |
204 | ····if-eqz·v2,·:cond_0 | 204 | ····if-eqz·v2,·:cond_0 |
| |
205 | ····.line·82 | 205 | ····.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()I | 207 | ····invoke-virtual·{v1},·Landroid/os/UserHandle;->getIdentifier()I |
| |
208 | ····move-result·v1 | 208 | ····move-result·v1 |
| |
209 | ····.line·84 | 209 | ····.line·95 |
210 | ····:cond_0 | 210 | ····: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·86 | 214 | ····.line·97 |
215 | ····:cond_1 | 215 | ····: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·p1 | 217 | ····move-result-object·p1 |
| |
218 | ····invoke-virtual·{p0,·v0,·p1},·Landroid/content/Context;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V | 218 | ····invoke-virtual·{p0,·v0,·p1},·Landroid/content/Context;->startActivityAsUser(Landroid/content/Intent;Landroid/os/UserHandle;)V |
| |