| | | |
Offset 1, 59 lines modified | Offset 1, 53 lines modified |
1 | .class·public·final·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils; | 1 | .class·public·final·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils; |
2 | .super·Ljava/lang/Object; | 2 | .super·Ljava/lang/Object; |
3 | .source·"UserSensitiveFlagsUtils.kt" | 3 | .source·"UserSensitiveFlagsUtils.kt" |
| |
| |
4 | #·annotations | 4 | #·annotations |
5 | .annotation·system·Ldalvik/annotation/SourceDebugExtension; | 5 | .annotation·system·Ldalvik/annotation/SourceDebugExtension; |
6 | ····value·=·"SMAP\nUserSensitiveFlagsUtils.kt\nKotlin\n*S·Kotlin\n*F\n+·1·UserSensitiveFlagsUtils.kt\ncom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils\n*L\n1#1,106:1\n*E\n" | 6 | ····value·=·"SMAP\nUserSensitiveFlagsUtils.kt\nKotlin\n*S·Kotlin\n*F\n+·1·UserSensitiveFlagsUtils.kt\ncom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils\n*L\n1#1,109:1\n*E\n" |
7 | .end·annotation | 7 | .end·annotation |
| |
| |
8 | #·direct·methods | 8 | #·direct·methods |
9 | .method·public·static·final·synthetic·access$updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V | 9 | .method·public·static·final·synthetic·access$updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V |
10 | ····.locals·0 | 10 | ····.locals·0 |
| |
11 | ····.line·1 | 11 | ····.line·1 |
12 | ····invoke-static·{p0,·p1,·p2},·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils;->updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V | 12 | ····invoke-static·{p0,·p1,·p2},·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils;->updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V |
| |
13 | ····return-void | 13 | ····return-void |
14 | .end·method | 14 | .end·method |
| |
15 | .method·public·static·final·updateUserSensitiveForUid(ILjava/lang/Runnable;)V | 15 | .method·public·static·final·updateUserSensitiveForUid(ILjava/lang/Runnable;)V |
16 | ····.locals·7 | 16 | ····.locals·6 |
17 | ····.param·p1····#·Ljava/lang/Runnable; | 17 | ····.param·p1····#·Ljava/lang/Runnable; |
18 | ········.annotation·build·Lorg/jetbrains/annotations/NotNull; | 18 | ········.annotation·build·Lorg/jetbrains/annotations/Nullable; |
19 | ········.end·annotation | 19 | ········.end·annotation |
20 | ····.end·param | 20 | ····.end·param |
| |
21 | ····const-string·v0,·"callback" | 21 | ····.line·98 |
| 22 | ····sget-object·v0,·Lkotlinx/coroutines/GlobalScope;->INSTANCE:Lkotlinx/coroutines/GlobalScope; |
22 | ····invoke-static·{p1,·v0},·Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V | |
| |
23 | ····.line·96 | |
24 | ····sget-object·v1,·Lkotlinx/coroutines/GlobalScope;->INSTANCE:Lkotlinx/coroutines/GlobalScope; | |
| |
25 | ····invoke-static·{},·Lcom/android/permissioncontroller/permission/utils/AndroidUtilsKt;->getIPC()Lkotlinx/coroutines/ExecutorCoroutineDispatcher; | 23 | ····invoke-static·{},·Lcom/android/permissioncontroller/permission/utils/AndroidUtilsKt;->getIPC()Lkotlinx/coroutines/ExecutorCoroutineDispatcher; |
| |
26 | ····move-result-object·v2 | 24 | ····move-result-object·v1 |
| |
27 | ····new-instance·v4,·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils$updateUserSensitiveForUid$1; | |
| |
28 | ····const/4·v0,·0x0 | 25 | ····new-instance·v3,·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils$updateUserSensitiveForUid$1; |
| |
29 | ····invoke-direct·{v4,·p0,·p1,·v0},·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils$updateUserSensitiveForUid$1;-><init>(ILjava/lang/Runnable;Lkotlin/coroutines/Continuation;)V | 26 | ····const/4·v2,·0x0 |
| |
30 | ····const/4·v3,·0x0 | 27 | ····invoke-direct·{v3,·p0,·p1,·v2},·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils$updateUserSensitiveForUid$1;-><init>(ILjava/lang/Runnable;Lkotlin/coroutines/Continuation;)V |
| |
31 | ····const/4·v5,·0x2 | 28 | ····const/4·v4,·0x2 |
| |
32 | ····const/4·v6,·0x0 | 29 | ····const/4·v5,·0x0 |
| |
33 | ····invoke-static/range·{v1·..·v6},·Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job; | 30 | ····invoke-static/range·{v0·..·v5},·Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job; |
| |
34 | ····return-void | 31 | ····return-void |
35 | .end·method | 32 | .end·method |
| |
36 | .method·private·static·final·updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V | 33 | .method·private·static·final·updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V |
37 | ····.locals·13 | 34 | ····.locals·13 |
38 | ····.annotation·system·Ldalvik/annotation/Signature; | 35 | ····.annotation·system·Ldalvik/annotation/Signature; |
Offset 78, 19 lines modified | Offset 72, 20 lines modified |
| |
78 | ····move-result-object·v0 | 72 | ····move-result-object·v0 |
| |
79 | ····const-string·v1,·"Utils.getUserContext(Per\u2026rApplication.get(),·user)" | 73 | ····const-string·v1,·"Utils.getUserContext(Per\u2026rApplication.get(),·user)" |
| |
80 | ····invoke-static·{v0,·v1},·Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V | 74 | ····invoke-static·{v0,·v1},·Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V |
| |
| 75 | ····.line·62 |
81 | ····invoke-virtual·{v0},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; | 76 | ····invoke-virtual·{v0},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; |
| |
82 | ····move-result-object·v0 | 77 | ····move-result-object·v0 |
| |
83 | ····.line·63 | 78 | ····.line·64 |
84 | ····invoke-interface·{p0},·Ljava/util/Map;->entrySet()Ljava/util/Set; | 79 | ····invoke-interface·{p0},·Ljava/util/Map;->entrySet()Ljava/util/Set; |
| |
85 | ····move-result-object·p0 | 80 | ····move-result-object·p0 |
| |
86 | ····invoke-interface·{p0},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | 81 | ····invoke-interface·{p0},·Ljava/util/Set;->iterator()Ljava/util/Iterator; |
| |
87 | ····move-result-object·p0 | 82 | ····move-result-object·p0 |
Offset 120, 15 lines modified | Offset 115, 15 lines modified |
| |
120 | ····invoke-interface·{v1},·Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; | 115 | ····invoke-interface·{v1},·Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; |
| |
121 | ····move-result-object·v1 | 116 | ····move-result-object·v1 |
| |
122 | ····check-cast·v1,·Lcom/android/permissioncontroller/permission/model/livedatatypes/UidSensitivityState; | 117 | ····check-cast·v1,·Lcom/android/permissioncontroller/permission/model/livedatatypes/UidSensitivityState; |
| |
123 | ····.line·64 | 118 | ····.line·65 |
124 | ····invoke-virtual·{v1},·Lcom/android/permissioncontroller/permission/model/livedatatypes/UidSensitivityState;->getPackages()Ljava/util/Set; | 119 | ····invoke-virtual·{v1},·Lcom/android/permissioncontroller/permission/model/livedatatypes/UidSensitivityState;->getPackages()Ljava/util/Set; |
| |
125 | ····move-result-object·v2 | 120 | ····move-result-object·v2 |
| |
126 | ····invoke-interface·{v2},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | 121 | ····invoke-interface·{v2},·Ljava/util/Set;->iterator()Ljava/util/Iterator; |
| |
127 | ····move-result-object·v9 | 122 | ····move-result-object·v9 |
Offset 144, 15 lines modified | Offset 139, 15 lines modified |
| |
144 | ····move-result-object·v2 | 139 | ····move-result-object·v2 |
| |
145 | ····move-object·v10,·v2 | 140 | ····move-object·v10,·v2 |
| |
146 | ····check-cast·v10,·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo; | 141 | ····check-cast·v10,·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo; |
| |
147 | ····.line·65 | 142 | ····.line·66 |
148 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getRequestedPermissions()Ljava/util/List; | 143 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getRequestedPermissions()Ljava/util/List; |
| |
149 | ····move-result-object·v2 | 144 | ····move-result-object·v2 |
| |
150 | ····invoke-interface·{v2},·Ljava/util/List;->iterator()Ljava/util/Iterator; | 145 | ····invoke-interface·{v2},·Ljava/util/List;->iterator()Ljava/util/Iterator; |
| |
151 | ····move-result-object·v11 | 146 | ····move-result-object·v11 |
Offset 169, 15 lines modified | Offset 164, 15 lines modified |
| |
169 | ····move-result-object·v2 | 164 | ····move-result-object·v2 |
| |
170 | ····move-object·v12,·v2 | 165 | ····move-object·v12,·v2 |
| |
171 | ····check-cast·v12,·Ljava/lang/String; | 166 | ····check-cast·v12,·Ljava/lang/String; |
| |
172 | ····.line·66 | 167 | ····.line·67 |
173 | ····invoke-virtual·{v1},·Lcom/android/permissioncontroller/permission/model/livedatatypes/UidSensitivityState;->getPermStates()Ljava/util/Map; | 168 | ····invoke-virtual·{v1},·Lcom/android/permissioncontroller/permission/model/livedatatypes/UidSensitivityState;->getPermStates()Ljava/util/Map; |
| |
174 | ····move-result-object·v2 | 169 | ····move-result-object·v2 |
| |
175 | ····invoke-interface·{v2,·v12},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; | 170 | ····invoke-interface·{v2,·v12},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; |
| |
176 | ····move-result-object·v2 | 171 | ····move-result-object·v2 |
Offset 186, 29 lines modified | Offset 181, 29 lines modified |
| |
186 | ····if-eqz·v2,·:cond_2 | 181 | ····if-eqz·v2,·:cond_2 |
| |
187 | ····invoke-virtual·{v2},·Ljava/lang/Integer;->intValue()I | 182 | ····invoke-virtual·{v2},·Ljava/lang/Integer;->intValue()I |
| |
188 | ····move-result·v6 | 183 | ····move-result·v6 |
| |
189 | ····.line·69 | 184 | ····.line·70 |
190 | ····:try_start_0 | 185 | ····:try_start_0 |
191 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; | 186 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; |
| |
192 | ····move-result-object·v2 | 187 | ····move-result-object·v2 |
| |
193 | ····invoke-virtual·{v0,·v12,·v2,·p1},·Landroid/content/pm/PackageManager;->getPermissionFlags(Ljava/lang/String;Ljava/lang/String;Landroid/os/UserHandle;)I | 188 | ····invoke-virtual·{v0,·v12,·v2,·p1},·Landroid/content/pm/PackageManager;->getPermissionFlags(Ljava/lang/String;Ljava/lang/String;Landroid/os/UserHandle;)I |
| |
194 | ····move-result·v2 | 189 | ····move-result·v2 |
| |
195 | ····and-int/lit16·v2,·v2,·0x300 | 190 | ····and-int/lit16·v2,·v2,·0x300 |
| |
196 | ····if-eq·v6,·v2,·:cond_2 | 191 | ····if-eq·v6,·v2,·:cond_2 |
| |
197 | ····.line·72 | 192 | ····.line·73 |
198 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; | 193 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; |
| |
199 | ····move-result-object·v4 | 194 | ····move-result-object·v4 |
| |
200 | ····const/16·v5,·0x300 | 195 | ····const/16·v5,·0x300 |
| |
201 | ····move-object·v2,·v0 | 196 | ····move-object·v2,·v0 |
Offset 222, 15 lines modified | Offset 217, 15 lines modified |
222 | ····.catch·Ljava/lang/IllegalArgumentException;·{:try_start_0·..·:try_end_0}·:catch_0 | 217 | ····.catch·Ljava/lang/IllegalArgumentException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
223 | ····goto·:goto_0 | 218 | ····goto·:goto_0 |
| |
224 | ····:catch_0 | 219 | ····:catch_0 |
225 | ····move-exception·v2 | 220 | ····move-exception·v2 |
| |
226 | ····.line·76 | 221 | ····.line·77 |
227 | ····invoke-virtual·{v2},·Ljava/lang/IllegalArgumentException;->getMessage()Ljava/lang/String; | 222 | ····invoke-virtual·{v2},·Ljava/lang/IllegalArgumentException;->getMessage()Ljava/lang/String; |
| |
228 | ····move-result-object·v3 | 223 | ····move-result-object·v3 |
| |
229 | ····if-eqz·v3,·:cond_2 | 224 | ····if-eqz·v3,·:cond_2 |
| |
230 | ····const/4·v4,·0x0 | 225 | ····const/4·v4,·0x0 |
Offset 243, 24 lines modified | Offset 238, 24 lines modified |
| |
243 | ····invoke-static·{v3,·v7,·v4,·v5,·v6},·Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z | 238 | ····invoke-static·{v3,·v7,·v4,·v5,·v6},·Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z |
| |
244 | ····move-result·v3 | 239 | ····move-result·v3 |
| |
245 | ····if-nez·v3,·:cond_2 | 240 | ····if-nez·v3,·:cond_2 |
| |
246 | ····.line·77 | 241 | ····.line·78 |
247 | ····new-instance·v3,·Ljava/lang/StringBuilder; | 242 | ····new-instance·v3,·Ljava/lang/StringBuilder; |
| |
248 | ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V | 243 | ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V |
| |
249 | ····const-string·v4,·"Unexpected·exception·while·updating·flags·for·" | 244 | ····const-string·v4,·"Unexpected·exception·while·updating·flags·for·" |
| |
250 | ····invoke-virtual·{v3,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 245 | ····invoke-virtual·{v3,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
251 | ····.line·78 | 246 | ····.line·79 |
252 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; | 247 | ····invoke-virtual·{v10},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; |
| |
253 | ····move-result-object·v4 | 248 | ····move-result-object·v4 |
| |
254 | ····invoke-virtual·{v3,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 249 | ····invoke-virtual·{v3,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
255 | ····const-string·v4,·"·(uid·" | 250 | ····const-string·v4,·"·(uid·" |
Offset 277, 23 lines modified | Offset 272, 26 lines modified |
| |
277 | ····invoke-virtual·{v3},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 272 | ····invoke-virtual·{v3},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
278 | ····move-result-object·v3 | 273 | ····move-result-object·v3 |
| |
279 | ····const-string·v4,·"UserSensitiveFlagsUtils" | 274 | ····const-string·v4,·"UserSensitiveFlagsUtils" |
| |
280 | ····.line·77 | 275 | ····.line·78 |
281 | ····invoke-static·{v4,·v3,·v2},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I | 276 | ····invoke-static·{v4,·v3,·v2},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
| |
282 | ····goto·:goto_0 | 277 | ····goto·:goto_0 |
| |
283 | ····.line·86 | |
284 | ····:cond_3 | 278 | ····:cond_3 |
| 279 | ····if-eqz·p2,·:cond_4 |
| |
| 280 | ····.line·87 |
285 | ····invoke-interface·{p2},·Ljava/lang/Runnable;->run()V | 281 | ····invoke-interface·{p2},·Ljava/lang/Runnable;->run()V |
| |
| 282 | ····:cond_4 |
286 | ····return-void | 283 | ····return-void |
287 | .end·method | 284 | .end·method |
| |
288 | .method·public·static·final·updateUserSensitiveForUser(Landroid/os/UserHandle;Ljava/lang/Runnable;)V | 285 | .method·public·static·final·updateUserSensitiveForUser(Landroid/os/UserHandle;Ljava/lang/Runnable;)V |
289 | ····.locals·7 | 286 | ····.locals·7 |
290 | ····.param·p0····#·Landroid/os/UserHandle; | 287 | ····.param·p0····#·Landroid/os/UserHandle; |
291 | ········.annotation·build·Lorg/jetbrains/annotations/NotNull; | 288 | ········.annotation·build·Lorg/jetbrains/annotations/NotNull; |