Offset 17, 15 lines modifiedOffset 17, 15 lines modified
17 ········"+",17 ········"+",
18 ········"Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;",18 ········"Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;",
19 ········">;>;"19 ········">;>;"
20 ····}20 ····}
21 .end·annotation21 .end·annotation
  
22 .annotation·system·Ldalvik/annotation/SourceDebugExtension;22 .annotation·system·Ldalvik/annotation/SourceDebugExtension;
23 ····value·=·"SMAP\nFullStoragePermissionAppsLiveData.kt\nKotlin\n*S·Kotlin\n*F\n+·1·FullStoragePermissionAppsLiveData.kt\ncom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData\n+·2·_Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,132:1\n673#2:133\n746#2,2:134\n*E\n*S·KotlinDebug\n*F\n+·1·FullStoragePermissionAppsLiveData.kt\ncom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData\n*L\n68#1:133\n68#1,2:134\n*E\n"23 ····value·=·"SMAP\nFullStoragePermissionAppsLiveData.kt\nKotlin\n*S·Kotlin\n*F\n+·1·FullStoragePermissionAppsLiveData.kt\ncom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData\n+·2·_Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,112:1\n673#2:113\n746#2,2:114\n*E\n*S·KotlinDebug\n*F\n+·1·FullStoragePermissionAppsLiveData.kt\ncom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData\n*L\n67#1:113\n67#1,2:114\n*E\n"
24 .end·annotation24 .end·annotation
  
  
25 #·static·fields25 #·static·fields
26 .field·public·static·final·INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;26 .field·public·static·final·INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;
  
27 .field·private·static·final·app:Landroid/app/Application;27 .field·private·static·final·app:Landroid/app/Application;
Offset 33, 271 lines modifiedOffset 33, 71 lines modified
33 .field·private·static·final·standardPermGroupsPackagesLiveData:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;33 .field·private·static·final·standardPermGroupsPackagesLiveData:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;
  
  
34 #·direct·methods34 #·direct·methods
35 .method·static·constructor·<clinit>()V35 .method·static·constructor·<clinit>()V
36 ····.locals·336 ····.locals·3
  
37 ····.line·3937 ····.line·38
38 ····new-instance·v0,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;38 ····new-instance·v0,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;
  
39 ····invoke-direct·{v0},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;-><init>()V39 ····invoke-direct·{v0},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;-><init>()V
  
40 ····sput-object·v0,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;40 ····sput-object·v0,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;
  
41 ····.line·4241 ····.line·41
42 ····invoke-static·{},·Lcom/android/permissioncontroller/PermissionControllerApplication;->get()Lcom/android/permissioncontroller/PermissionControllerApplication;42 ····invoke-static·{},·Lcom/android/permissioncontroller/PermissionControllerApplication;->get()Lcom/android/permissioncontroller/PermissionControllerApplication;
  
43 ····move-result-object·v143 ····move-result-object·v1
  
44 ····const-string·v2,·"PermissionControllerApplication.get()"44 ····const-string·v2,·"PermissionControllerApplication.get()"
  
45 ····invoke-static·{v1,·v2},·Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V45 ····invoke-static·{v1,·v2},·Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
  
46 ····sput-object·v1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->app:Landroid/app/Application;46 ····sput-object·v1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->app:Landroid/app/Application;
  
47 ····.line·4347 ····.line·42
48 ····sget-object·v1,·Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;->Companion:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData$Companion;48 ····sget-object·v1,·Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;->Companion:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData$Companion;
  
49 ····const/4·v2,·0x049 ····const/4·v2,·0x0
  
50 ····invoke-virtual·{v1,·v2},·Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData$Companion;->get(Z)Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;50 ····invoke-virtual·{v1,·v2},·Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData$Companion;->get(Z)Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;
  
51 ····move-result-object·v151 ····move-result-object·v1
  
52 ····sput-object·v1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->standardPermGroupsPackagesLiveData:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;52 ····sput-object·v1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->standardPermGroupsPackagesLiveData:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;
  
53 ····.line·5453 ····.line·53
54 ····sget-object·v2,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$1;->INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$1;54 ····sget-object·v2,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$1;->INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$1;
  
55 ····invoke-virtual·{v0,·v1,·v2},·Lcom/android/permissioncontroller/permission/data/SmartUpdateMediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V55 ····invoke-virtual·{v0,·v1,·v2},·Lcom/android/permissioncontroller/permission/data/SmartUpdateMediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
  
56 ····.line·5756 ····.line·56
57 ····sget-object·v1,·Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;->INSTANCE:Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;57 ····sget-object·v1,·Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;->INSTANCE:Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;
  
58 ····sget-object·v2,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$2;->INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$2;58 ····sget-object·v2,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$2;->INSTANCE:Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$2;
  
59 ····invoke-virtual·{v0,·v1,·v2},·Lcom/android/permissioncontroller/permission/data/SmartUpdateMediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V59 ····invoke-virtual·{v0,·v1,·v2},·Lcom/android/permissioncontroller/permission/data/SmartUpdateMediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
  
60 ····return-void60 ····return-void
61 .end·method61 .end·method
  
62 .method·private·constructor·<init>()V62 .method·private·constructor·<init>()V
63 ····.locals·063 ····.locals·0
  
64 ····.line·4064 ····.line·39
65 ····invoke-direct·{p0},·Lcom/android/permissioncontroller/permission/data/SmartAsyncMediatorLiveData;-><init>()V65 ····invoke-direct·{p0},·Lcom/android/permissioncontroller/permission/data/SmartAsyncMediatorLiveData;-><init>()V
  
66 ····return-void66 ····return-void
67 .end·method67 .end·method
  
68 .method·public·static·synthetic·getFullStorageStateForPackage$default(Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;Landroid/app/AppOpsManager;Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;Landroid/os/UserHandle;ILjava/lang/Object;)Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState; 
69 ····.locals·0 
  
70 ····and-int/lit8·p4,·p4,·0x4 
  
71 ····if-eqz·p4,·:cond_0 
  
72 ····const/4·p3,·0x0 
  
73 ····.line·100 
74 ····:cond_0 
75 ····invoke-virtual·{p0,·p1,·p2,·p3},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->getFullStorageStateForPackage(Landroid/app/AppOpsManager;Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;Landroid/os/UserHandle;)Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState; 
  
76 ····move-result-object·p0 
  
77 ····return-object·p0 
78 .end·method 
  
  
79 #·virtual·methods68 #·virtual·methods
80 .method·public·final·getFullStorageStateForPackage(Landroid/app/AppOpsManager;Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;Landroid/os/UserHandle;)Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState; 
81 ····.locals·6 
82 ····.param·p1····#·Landroid/app/AppOpsManager; 
83 ········.annotation·build·Lorg/jetbrains/annotations/NotNull; 
84 ········.end·annotation 
85 ····.end·param 
86 ····.param·p2····#·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo; 
87 ········.annotation·build·Lorg/jetbrains/annotations/NotNull; 
88 ········.end·annotation 
89 ····.end·param 
90 ····.param·p3····#·Landroid/os/UserHandle; 
91 ········.annotation·build·Lorg/jetbrains/annotations/Nullable; 
92 ········.end·annotation 
93 ····.end·param 
94 ····.annotation·build·Lorg/jetbrains/annotations/Nullable; 
95 ····.end·annotation 
  
96 ····const-string·v0,·"appOpsManager" 
  
97 ····invoke-static·{p1,·v0},·Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 
  
98 ····const-string·v0,·"packageInfo" 
  
99 ····invoke-static·{p2,·v0},·Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 
  
100 ····.line·102 
101 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getTargetSdkVersion()I 
  
102 ····move-result·v0 
  
103 ····if-eqz·p3,·:cond_0 
  
104 ····goto·:goto_0 
  
105 ····.line·103 
106 ····:cond_0 
107 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getUid()I 
  
108 ····move-result·p3 
  
109 ····invoke-static·{p3},·Landroid/os/UserHandle;->getUserHandleForUid(I)Landroid/os/UserHandle; 
  
110 ····move-result-object·p3 
  
111 ····:goto_0 
112 ····const/16·v1,·0x1c 
  
113 ····const-string·v2,·"user" 
  
114 ····const/4·v3,·0x1 
  
115 ····if-ge·v0,·v1,·:cond_1 
  
116 ····.line·105 
117 ····new-instance·p1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState; 
  
118 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; 
  
119 ····move-result-object·p2 
  
120 ····invoke-static·{p3,·v2},·Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 
  
121 ····invoke-direct·{p1,·p2,·p3,·v3,·v3},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;-><init>(Ljava/lang/String;Landroid/os/UserHandle;ZZ)V 
  
122 ····return-object·p1 
  
123 ····:cond_1 
124 ····const/16·v1,·0x1d 
  
125 ····if-gt·v0,·v1,·:cond_2 
  
126 ····.line·108 
127 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getUid()I 
  
128 ····move-result·v0 
  
129 ····.line·109 
130 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; 
  
131 ····move-result-object·v1 
  
132 ····const-string·v4,·"android:legacy_storage" 
  
133 ····.line·108 
134 ····invoke-virtual·{p1,·v4,·v0,·v1},·Landroid/app/AppOpsManager;->unsafeCheckOpNoThrow(Ljava/lang/String;ILjava/lang/String;)I 
  
135 ····move-result·v0 
  
136 ····if-nez·v0,·:cond_2 
  
137 ····.line·110 
138 ····new-instance·p1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState; 
  
139 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; 
  
140 ····move-result-object·p2 
  
141 ····invoke-static·{p3,·v2},·Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 
  
142 ····invoke-direct·{p1,·p2,·p3,·v3,·v3},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;-><init>(Ljava/lang/String;Landroid/os/UserHandle;ZZ)V 
  
143 ····return-object·p1 
  
144 ····.line·113 
145 ····:cond_2 
146 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getRequestedPermissions()Ljava/util/List; 
  
147 ····move-result-object·v0 
  
148 ····const-string·v1,·"android.permission.MANAGE_EXTERNAL_STORAGE" 
  
149 ····invoke-interface·{v0,·v1},·Ljava/util/List;->contains(Ljava/lang/Object;)Z 
  
150 ····move-result·v0 
  
151 ····if-eqz·v0,·:cond_5 
  
152 ····.line·115 
153 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getUid()I 
  
154 ····move-result·v0 
  
155 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; 
  
156 ····move-result-object·v4 
  
157 ····const-string·v5,·"android:manage_external_storage" 
  
158 ····.line·114 
159 ····invoke-virtual·{p1,·v5,·v0,·v4},·Landroid/app/AppOpsManager;->unsafeCheckOpNoThrow(Ljava/lang/String;ILjava/lang/String;)I 
  
160 ····move-result·p1 
  
161 ····const/4·v0,·0x0 
  
162 ····if-eqz·p1,·:cond_4 
  
163 ····const/4·v4,·0x4 
  
164 ····if-eq·p1,·v4,·:cond_4 
  
165 ····const/4·v4,·0x3 
  
166 ····if-ne·p1,·v4,·:cond_3 
  
167 ····.line·118 
168 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getGrantedPermissions()Ljava/util/List; 
  
169 ····move-result-object·p1 
  
170 ····invoke-interface·{p1,·v1},·Ljava/util/List;->contains(Ljava/lang/Object;)Z 
  
171 ····move-result·p1 
  
172 ····if-eqz·p1,·:cond_3 
  
173 ····goto·:goto_1 
  
174 ····:cond_3 
175 ····move·v3,·v0 
  
176 ····.line·119 
177 ····:cond_4 
178 ····:goto_1 
179 ····new-instance·p1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState; 
  
180 ····invoke-virtual·{p2},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String; 
  
181 ····move-result-object·p2 
  
182 ····invoke-static·{p3,·v2},·Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 
  
183 ····invoke-direct·{p1,·p2,·p3,·v0,·v3},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;-><init>(Ljava/lang/String;Landroid/os/UserHandle;ZZ)V 
  
184 ····return-object·p1 
  
185 ····:cond_5 
186 ····const/4·p1,·0x0 
  
187 ····return-object·p1 
188 .end·method 
  
189 .method·public·loadDataAndPostValue(Lkotlinx/coroutines/Job;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;69 .method·public·loadDataAndPostValue(Lkotlinx/coroutines/Job;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
190 ····.locals·870 ····.locals·11
191 ····.param·p1····#·Lkotlinx/coroutines/Job;71 ····.param·p1····#·Lkotlinx/coroutines/Job;
192 ········.annotation·build·Lorg/jetbrains/annotations/NotNull;72 ········.annotation·build·Lorg/jetbrains/annotations/NotNull;
193 ········.end·annotation73 ········.end·annotation
194 ····.end·param74 ····.end·param
195 ····.param·p2····#·Lkotlin/coroutines/Continuation;75 ····.param·p2····#·Lkotlin/coroutines/Continuation;
196 ········.annotation·build·Lorg/jetbrains/annotations/NotNull;76 ········.annotation·build·Lorg/jetbrains/annotations/NotNull;
197 ········.end·annotation77 ········.end·annotation
Offset 313, 54 lines modifiedOffset 113, 54 lines modified
313 ············"Ljava/lang/Object;"113 ············"Ljava/lang/Object;"
314 ········}114 ········}
315 ····.end·annotation115 ····.end·annotation
  
316 ····.annotation·build·Lorg/jetbrains/annotations/Nullable;116 ····.annotation·build·Lorg/jetbrains/annotations/Nullable;
317 ····.end·annotation117 ····.end·annotation
  
318 ····.line·63118 ····.line·62
319 ····sget-object·p1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->standardPermGroupsPackagesLiveData:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;119 ····sget-object·p1,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->standardPermGroupsPackagesLiveData:Lcom/android/permissioncontroller/permission/data/PermGroupsPackagesLiveData;
  
320 ····invoke-virtual·{p1},·Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;120 ····invoke-virtual·{p1},·Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;
  
321 ····move-result-object·p1121 ····move-result-object·p1
  
322 ····check-cast·p1,·Ljava/util/Map;122 ····check-cast·p1,·Ljava/util/Map;
  
323 ····if-eqz·p1,·:cond_a123 ····if-eqz·p1,·:cond_e
  
324 ····const-string·p2,·"android.permission-group.STORAGE"124 ····const-string·p2,·"android.permission-group.STORAGE"
  
325 ····invoke-interface·{p1,·p2},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;125 ····invoke-interface·{p1,·p2},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
  
326 ····move-result-object·p1126 ····move-result-object·p1
  
327 ····check-cast·p1,·Ljava/util/Set;127 ····check-cast·p1,·Ljava/util/Set;
  
328 ····if-eqz·p1,·:cond_a128 ····if-eqz·p1,·:cond_e
  
329 ····.line·64129 ····.line·63
330 ····sget-object·p2,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->app:Landroid/app/Application;130 ····sget-object·p2,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->app:Landroid/app/Application;
  
331 ····const-class·v0,·Landroid/app/AppOpsManager;131 ····const-class·v0,·Landroid/app/AppOpsManager;
  
332 ····invoke-virtual·{p2,·v0},·Landroid/app/Application;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;132 ····invoke-virtual·{p2,·v0},·Landroid/app/Application;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
  
333 ····move-result-object·p2133 ····move-result-object·p2
  
334 ····check-cast·p2,·Landroid/app/AppOpsManager;134 ····check-cast·p2,·Landroid/app/AppOpsManager;
  
335 ····if-eqz·p2,·:cond_8135 ····if-eqz·p2,·:cond_c
  
336 ····.line·66136 ····.line·65
337 ····new-instance·v0,·Ljava/util/ArrayList;137 ····new-instance·v0,·Ljava/util/ArrayList;
  
338 ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V138 ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V
  
339 ····.line·67139 ····.line·66
340 ····sget-object·v1,·Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;->INSTANCE:Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;140 ····sget-object·v1,·Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;->INSTANCE:Lcom/android/permissioncontroller/permission/data/AllPackageInfosLiveData;
  
341 ····invoke-virtual·{v1},·Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;141 ····invoke-virtual·{v1},·Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;
  
342 ····move-result-object·v1142 ····move-result-object·v1
  
343 ····check-cast·v1,·Ljava/util/Map;143 ····check-cast·v1,·Ljava/util/Map;
Offset 388, 15 lines modifiedOffset 188, 15 lines modified
388 ····move-result-object·v1188 ····move-result-object·v1
  
389 ····:cond_1189 ····:cond_1
390 ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z190 ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z
  
391 ····move-result·v2191 ····move-result·v2
  
392 ····if-eqz·v2,·:cond_7192 ····if-eqz·v2,·:cond_b
  
393 ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object;193 ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object;
  
394 ····move-result-object·v2194 ····move-result-object·v2
  
395 ····check-cast·v2,·Ljava/util/Map$Entry;195 ····check-cast·v2,·Ljava/util/Map$Entry;
  
Offset 424, 162 lines modifiedOffset 224, 280 lines modified
  
424 ····:cond_2224 ····:cond_2
425 ····:goto_1225 ····:goto_1
426 ····invoke-interface·{v2},·Ljava/util/Iterator;->hasNext()Z226 ····invoke-interface·{v2},·Ljava/util/Iterator;->hasNext()Z
  
427 ····move-result·v5227 ····move-result·v5
  
 228 ····const/4·v6,·0x0
  
 229 ····const-string·v7,·"android.permission.MANAGE_EXTERNAL_STORAGE"
  
 230 ····const/4·v8,·0x1
  
428 ····if-eqz·v5,·:cond_5231 ····if-eqz·v5,·:cond_5
  
429 ····invoke-interface·{v2},·Ljava/util/Iterator;->next()Ljava/lang/Object;232 ····invoke-interface·{v2},·Ljava/util/Iterator;->next()Ljava/lang/Object;
  
430 ····move-result-object·v5233 ····move-result-object·v5
  
431 ····move-object·v6,·v5234 ····move-object·v9,·v5
  
432 ····check-cast·v6,·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;235 ····check-cast·v9,·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;
  
433 ····.line·69236 ····.line·68
434 ····invoke-virtual·{v6},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String;237 ····invoke-virtual·{v9},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String;
  
435 ····move-result-object·v7238 ····move-result-object·v10
  
436 ····invoke-static·{v7,·v3},·Lkotlin/TuplesKt;->to(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;239 ····invoke-static·{v10,·v3},·Lkotlin/TuplesKt;->to(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
  
437 ····move-result-object·v7240 ····move-result-object·v10
  
438 ····invoke-interface·{p1,·v7},·Ljava/util/Set;->contains(Ljava/lang/Object;)Z241 ····invoke-interface·{p1,·v10},·Ljava/util/Set;->contains(Ljava/lang/Object;)Z
  
439 ····move-result·v7242 ····move-result·v10
  
440 ····if-nez·v7,·:cond_4243 ····if-nez·v10,·:cond_3
  
441 ····.line·70 
442 ····invoke-virtual·{v6},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getRequestedPermissions()Ljava/util/List; 
  
443 ····move-result-object·v6 
  
444 ····const-string·v7,·"android.permission.MANAGE_EXTERNAL_STORAGE"244 ····.line·69
 245 ····invoke-virtual·{v9},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getRequestedPermissions()Ljava/util/List;
  
445 ····invoke-interface·{v6,·v7},·Ljava/util/List;->contains(Ljava/lang/Object;)Z246 ····move-result-object·v9
  
446 ····move-result·v6247 ····invoke-interface·{v9,·v7},·Ljava/util/List;->contains(Ljava/lang/Object;)Z
  
447 ····if-eqz·v6,·:cond_3248 ····move-result·v7
  
448 ····goto·:goto_2249 ····if-eqz·v7,·:cond_4
  
449 ····:cond_3250 ····:cond_3
 251 ····move·v6,·v8
450 ····const/4·v6,·0x0 
  
451 ····goto·:goto_3 
  
452 ····:cond_4252 ····:cond_4
453 ····:goto_2 
454 ····const/4·v6,·0x1 
  
455 ····:goto_3 
456 ····invoke-static·{v6},·Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;253 ····invoke-static·{v6},·Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
  
457 ····move-result-object·v6254 ····move-result-object·v6
  
458 ····invoke-virtual·{v6},·Ljava/lang/Boolean;->booleanValue()Z255 ····invoke-virtual·{v6},·Ljava/lang/Boolean;->booleanValue()Z
  
459 ····move-result·v6256 ····move-result·v6
  
460 ····if-eqz·v6,·:cond_2257 ····if-eqz·v6,·:cond_2
  
461 ····invoke-interface·{v4,·v5},·Ljava/util/Collection;->add(Ljava/lang/Object;)Z258 ····invoke-interface·{v4,·v5},·Ljava/util/Collection;->add(Ljava/lang/Object;)Z
  
462 ····goto·:goto_1259 ····goto·:goto_1
  
463 ····.line·73260 ····.line·72
464 ····:cond_5261 ····:cond_5
465 ····invoke-interface·{v4},·Ljava/util/List;->iterator()Ljava/util/Iterator;262 ····invoke-interface·{v4},·Ljava/util/List;->iterator()Ljava/util/Iterator;
  
466 ····move-result-object·v2263 ····move-result-object·v2
  
467 ····:cond_6264 ····:cond_6
468 ····:goto_4265 ····:goto_2
469 ····invoke-interface·{v2},·Ljava/util/Iterator;->hasNext()Z266 ····invoke-interface·{v2},·Ljava/util/Iterator;->hasNext()Z
  
470 ····move-result·v4267 ····move-result·v4
  
471 ····if-eqz·v4,·:cond_1268 ····if-eqz·v4,·:cond_1
  
472 ····invoke-interface·{v2},·Ljava/util/Iterator;->next()Ljava/lang/Object;269 ····invoke-interface·{v2},·Ljava/util/Iterator;->next()Ljava/lang/Object;
  
473 ····move-result-object·v4270 ····move-result-object·v4
  
474 ····check-cast·v4,·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;271 ····check-cast·v4,·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;
  
475 ····.line·74272 ····.line·73
476 ····invoke-virtual·{p0,·p2,·v4,·v3},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData;->getFullStorageStateForPackage(Landroid/app/AppOpsManager;Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;Landroid/os/UserHandle;)Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;273 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getTargetSdkVersion()I
  
 274 ····move-result·v5
  
 275 ····const/16·v9,·0x1c
  
 276 ····if-ge·v5,·v9,·:cond_7
  
 277 ····.line·75
 278 ····new-instance·v5,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;
  
 279 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String;
  
477 ····move-result-object·v4280 ····move-result-object·v4
  
478 ····if-eqz·v4,·:cond_6281 ····invoke-direct·{v5,·v4,·v3,·v8,·v8},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;-><init>(Ljava/lang/String;Landroid/os/UserHandle;ZZ)V
  
479 ····invoke-interface·{v0,·v4},·Ljava/util/List;->add(Ljava/lang/Object;)Z282 ····invoke-interface·{v0,·v5},·Ljava/util/List;->add(Ljava/lang/Object;)Z
  
480 ····goto·:goto_4283 ····goto·:goto_2
  
481 ····.line·79 
482 ····:cond_7284 ····:cond_7
483 ····invoke-virtual·{p0,·v0},·Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V285 ····const/16·v9,·0x1d
  
 286 ····if-gt·v5,·v9,·:cond_8
  
 287 ····.line·79
 288 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getUid()I
  
 289 ····move-result·v5
  
484 ····.line·80290 ····.line·80
 291 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String;
  
 292 ····move-result-object·v9
  
 293 ····const-string·v10,·"android:legacy_storage"
  
 294 ····.line·79
 295 ····invoke-virtual·{p2,·v10,·v5,·v9},·Landroid/app/AppOpsManager;->unsafeCheckOpNoThrow(Ljava/lang/String;ILjava/lang/String;)I
  
 296 ····move-result·v5
  
 297 ····if-nez·v5,·:cond_8
  
 298 ····.line·81
 299 ····new-instance·v5,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;
  
 300 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String;
  
 301 ····move-result-object·v4
  
 302 ····invoke-direct·{v5,·v4,·v3,·v8,·v8},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;-><init>(Ljava/lang/String;Landroid/os/UserHandle;ZZ)V
  
 303 ····invoke-interface·{v0,·v5},·Ljava/util/List;->add(Ljava/lang/Object;)Z
  
 304 ····goto·:goto_2
  
 305 ····.line·85
 306 ····:cond_8
 307 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getRequestedPermissions()Ljava/util/List;
  
 308 ····move-result-object·v5
  
 309 ····invoke-interface·{v5,·v7},·Ljava/util/List;->contains(Ljava/lang/Object;)Z
  
 310 ····move-result·v5
  
 311 ····if-eqz·v5,·:cond_6
  
 312 ····.line·87
 313 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getUid()I
  
 314 ····move-result·v5
  
 315 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String;
  
 316 ····move-result-object·v9
  
 317 ····const-string·v10,·"android:manage_external_storage"
  
 318 ····.line·86
 319 ····invoke-virtual·{p2,·v10,·v5,·v9},·Landroid/app/AppOpsManager;->unsafeCheckOpNoThrow(Ljava/lang/String;ILjava/lang/String;)I
  
 320 ····move-result·v5
  
 321 ····if-eqz·v5,·:cond_a
  
 322 ····const/4·v9,·0x4
  
 323 ····if-eq·v5,·v9,·:cond_a
  
 324 ····const/4·v9,·0x3
  
 325 ····if-ne·v5,·v9,·:cond_9
  
 326 ····.line·90
 327 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getGrantedPermissions()Ljava/util/List;
  
 328 ····move-result-object·v5
  
 329 ····invoke-interface·{v5,·v7},·Ljava/util/List;->contains(Ljava/lang/Object;)Z
  
 330 ····move-result·v5
  
 331 ····if-eqz·v5,·:cond_9
  
 332 ····goto·:goto_3
  
 333 ····:cond_9
 334 ····move·v5,·v6
  
 335 ····goto·:goto_4
  
 336 ····:cond_a
 337 ····:goto_3
 338 ····move·v5,·v8
  
 339 ····.line·91
 340 ····:goto_4
 341 ····new-instance·v9,·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;
  
 342 ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/livedatatypes/LightPackageInfo;->getPackageName()Ljava/lang/String;
  
 343 ····move-result-object·v4
  
 344 ····invoke-direct·{v9,·v4,·v3,·v6,·v5},·Lcom/android/permissioncontroller/permission/data/FullStoragePermissionAppsLiveData$FullStoragePackageState;-><init>(Ljava/lang/String;Landroid/os/UserHandle;ZZ)V
  
 345 ····invoke-interface·{v0,·v9},·Ljava/util/List;->add(Ljava/lang/Object;)Z
  
 346 ····goto·:goto_2
  
 347 ····.line·97
 348 ····:cond_b
 349 ····invoke-virtual·{p0,·v0},·Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V
  
 350 ····.line·98
485 ····sget-object·p1,·Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;351 ····sget-object·p1,·Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
  
486 ····return-object·p1352 ····return-object·p1
  
487 ····.line·64353 ····.line·63
488 ····:cond_8354 ····:cond_c
489 ····invoke-static·{},·Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;355 ····invoke-static·{},·Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
  
490 ····move-result-object·p1356 ····move-result-object·p1
  
491 ····if-ne·p2,·p1,·:cond_9357 ····if-ne·p2,·p1,·:cond_d
  
492 ····return-object·p2358 ····return-object·p2
  
493 ····:cond_9359 ····:cond_d
494 ····sget-object·p1,·Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;360 ····sget-object·p1,·Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
  
495 ····return-object·p1361 ····return-object·p1
  
496 ····.line·63362 ····.line·62
497 ····:cond_a363 ····:cond_e
498 ····invoke-static·{},·Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;364 ····invoke-static·{},·Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
  
499 ····move-result-object·p2365 ····move-result-object·p2
  
500 ····if-ne·p1,·p2,·:cond_b366 ····if-ne·p1,·p2,·:cond_f
  
501 ····return-object·p1367 ····return-object·p1
  
502 ····:cond_b368 ····:cond_f
503 ····sget-object·p1,·Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;369 ····sget-object·p1,·Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
  
504 ····return-object·p1370 ····return-object·p1
505 .end·method371 .end·method
  
506 .method·protected·onActive()V372 .method·protected·onActive()V
507 ····.locals·0373 ····.locals·0
  
508 ····.line·83374 ····.line·101
509 ····invoke-super·{p0},·Lcom/android/permissioncontroller/permission/data/SmartUpdateMediatorLiveData;->onActive()V375 ····invoke-super·{p0},·Lcom/android/permissioncontroller/permission/data/SmartUpdateMediatorLiveData;->onActive()V
  
510 ····.line·84376 ····.line·102
511 ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/data/SmartAsyncMediatorLiveData;->updateAsync()V377 ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/data/SmartAsyncMediatorLiveData;->updateAsync()V
  
512 ····return-void378 ····return-void
513 .end·method379 .end·method
  
514 .method·public·final·recalculate()V380 .method·public·final·recalculate()V
515 ····.locals·0381 ····.locals·0
  
516 ····.line·130382 ····.line·110
517 ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/data/SmartAsyncMediatorLiveData;->updateAsync()V383 ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/data/SmartAsyncMediatorLiveData;->updateAsync()V
  
518 ····return-void384 ····return-void
519 .end·method385 .end·method