Offset 1, 59 lines modifiedOffset 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 #·annotations4 #·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·annotation7 .end·annotation
  
  
8 #·direct·methods8 #·direct·methods
9 .method·public·static·final·synthetic·access$updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V9 .method·public·static·final·synthetic·access$updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V
10 ····.locals·010 ····.locals·0
  
11 ····.line·111 ····.line·1
12 ····invoke-static·{p0,·p1,·p2},·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils;->updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V12 ····invoke-static·{p0,·p1,·p2},·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils;->updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V
  
13 ····return-void13 ····return-void
14 .end·method14 .end·method
  
15 .method·public·static·final·updateUserSensitiveForUid(ILjava/lang/Runnable;)V15 .method·public·static·final·updateUserSensitiveForUid(ILjava/lang/Runnable;)V
16 ····.locals·716 ····.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·annotation19 ········.end·annotation
20 ····.end·param20 ····.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·v224 ····move-result-object·v1
  
27 ····new-instance·v4,·Lcom/android/permissioncontroller/permission/utils/UserSensitiveFlagsUtils$updateUserSensitiveForUid$1; 
  
28 ····const/4·v0,·0x025 ····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;)V26 ····const/4·v2,·0x0
  
30 ····const/4·v3,·0x027 ····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,·0x228 ····const/4·v4,·0x2
  
32 ····const/4·v6,·0x029 ····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-void31 ····return-void
35 .end·method32 .end·method
  
36 .method·private·static·final·updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V33 .method·private·static·final·updateUserSensitiveForUidsInternal(Ljava/util/Map;Landroid/os/UserHandle;Ljava/lang/Runnable;)V
37 ····.locals·1334 ····.locals·13
38 ····.annotation·system·Ldalvik/annotation/Signature;35 ····.annotation·system·Ldalvik/annotation/Signature;
Offset 78, 19 lines modifiedOffset 72, 20 lines modified
  
78 ····move-result-object·v072 ····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;)V74 ····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·v077 ····move-result-object·v0
  
83 ····.line·6378 ····.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·p080 ····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·p082 ····move-result-object·p0
Offset 120, 15 lines modifiedOffset 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·v1116 ····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·64118 ····.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·v2120 ····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·v9122 ····move-result-object·v9
Offset 144, 15 lines modifiedOffset 139, 15 lines modified
  
144 ····move-result-object·v2139 ····move-result-object·v2
  
145 ····move-object·v10,·v2140 ····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·65142 ····.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·v2144 ····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·v11146 ····move-result-object·v11
Offset 169, 15 lines modifiedOffset 164, 15 lines modified
  
169 ····move-result-object·v2164 ····move-result-object·v2
  
170 ····move-object·v12,·v2165 ····move-object·v12,·v2
  
171 ····check-cast·v12,·Ljava/lang/String;166 ····check-cast·v12,·Ljava/lang/String;
  
172 ····.line·66167 ····.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·v2169 ····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·v2171 ····move-result-object·v2
Offset 186, 29 lines modifiedOffset 181, 29 lines modified
  
186 ····if-eqz·v2,·:cond_2181 ····if-eqz·v2,·:cond_2
  
187 ····invoke-virtual·{v2},·Ljava/lang/Integer;->intValue()I182 ····invoke-virtual·{v2},·Ljava/lang/Integer;->intValue()I
  
188 ····move-result·v6183 ····move-result·v6
  
189 ····.line·69184 ····.line·70
190 ····:try_start_0185 ····: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·v2187 ····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;)I188 ····invoke-virtual·{v0,·v12,·v2,·p1},·Landroid/content/pm/PackageManager;->getPermissionFlags(Ljava/lang/String;Ljava/lang/String;Landroid/os/UserHandle;)I
  
194 ····move-result·v2189 ····move-result·v2
  
195 ····and-int/lit16·v2,·v2,·0x300190 ····and-int/lit16·v2,·v2,·0x300
  
196 ····if-eq·v6,·v2,·:cond_2191 ····if-eq·v6,·v2,·:cond_2
  
197 ····.line·72192 ····.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·v4194 ····move-result-object·v4
  
200 ····const/16·v5,·0x300195 ····const/16·v5,·0x300
  
201 ····move-object·v2,·v0196 ····move-object·v2,·v0
Offset 222, 15 lines modifiedOffset 217, 15 lines modified
222 ····.catch·Ljava/lang/IllegalArgumentException;·{:try_start_0·..·:try_end_0}·:catch_0217 ····.catch·Ljava/lang/IllegalArgumentException;·{:try_start_0·..·:try_end_0}·:catch_0
  
223 ····goto·:goto_0218 ····goto·:goto_0
  
224 ····:catch_0219 ····:catch_0
225 ····move-exception·v2220 ····move-exception·v2
  
226 ····.line·76221 ····.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·v3223 ····move-result-object·v3
  
229 ····if-eqz·v3,·:cond_2224 ····if-eqz·v3,·:cond_2
  
230 ····const/4·v4,·0x0225 ····const/4·v4,·0x0
Offset 243, 24 lines modifiedOffset 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;)Z238 ····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·v3239 ····move-result·v3
  
245 ····if-nez·v3,·:cond_2240 ····if-nez·v3,·:cond_2
  
246 ····.line·77241 ····.line·78
247 ····new-instance·v3,·Ljava/lang/StringBuilder;242 ····new-instance·v3,·Ljava/lang/StringBuilder;
  
248 ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V243 ····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·78246 ····.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·v4248 ····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 modifiedOffset 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·v3273 ····move-result-object·v3
  
279 ····const-string·v4,·"UserSensitiveFlagsUtils"274 ····const-string·v4,·"UserSensitiveFlagsUtils"
  
280 ····.line·77275 ····.line·78
281 ····invoke-static·{v4,·v3,·v2},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I276 ····invoke-static·{v4,·v3,·v2},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  
282 ····goto·:goto_0277 ····goto·:goto_0
  
283 ····.line·86 
284 ····:cond_3278 ····:cond_3
 279 ····if-eqz·p2,·:cond_4
  
 280 ····.line·87
285 ····invoke-interface·{p2},·Ljava/lang/Runnable;->run()V281 ····invoke-interface·{p2},·Ljava/lang/Runnable;->run()V
  
 282 ····:cond_4
286 ····return-void283 ····return-void
287 .end·method284 .end·method
  
288 .method·public·static·final·updateUserSensitiveForUser(Landroid/os/UserHandle;Ljava/lang/Runnable;)V285 .method·public·static·final·updateUserSensitiveForUser(Landroid/os/UserHandle;Ljava/lang/Runnable;)V
289 ····.locals·7286 ····.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;