| | | |
Offset 12, 37 lines modified | Offset 12, 37 lines modified |
| |
12 | ····return-void | 12 | ····return-void |
13 | .end·method | 13 | .end·method |
| |
14 | .method·private·final·isNewJobScheduleRequired(Landroid/content/Context;)Z | 14 | .method·private·final·isNewJobScheduleRequired(Landroid/content/Context;)Z |
15 | ····.locals·12 | 15 | ····.locals·12 |
| |
16 | ····.line·198 | 16 | ····.line·195 |
17 | ····const-class·p0,·Landroid/app/job/JobScheduler; | 17 | ····const-class·p0,·Landroid/app/job/JobScheduler; |
| |
18 | ····invoke-virtual·{p1,·p0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; | 18 | ····invoke-virtual·{p1,·p0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; |
| |
19 | ····move-result-object·p0 | 19 | ····move-result-object·p0 |
| |
20 | ····check-cast·p0,·Landroid/app/job/JobScheduler; | 20 | ····check-cast·p0,·Landroid/app/job/JobScheduler; |
| |
21 | ····invoke-static·{p0},·Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V | 21 | ····invoke-static·{p0},·Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V |
| |
22 | ····const/4·p1,·0x2 | 22 | ····const/4·p1,·0x2 |
| |
23 | ····.line·199 | 23 | ····.line·196 |
24 | ····invoke-virtual·{p0,·p1},·Landroid/app/job/JobScheduler;->getPendingJob(I)Landroid/app/job/JobInfo; | 24 | ····invoke-virtual·{p0,·p1},·Landroid/app/job/JobScheduler;->getPendingJob(I)Landroid/app/job/JobInfo; |
| |
25 | ····move-result-object·p0 | 25 | ····move-result-object·p0 |
| |
26 | ····const/4·p1,·0x1 | 26 | ····const/4·p1,·0x1 |
| |
27 | ····if-nez·p0,·:cond_0 | 27 | ····if-nez·p0,·:cond_0 |
| |
28 | ····.line·202 | 28 | ····.line·199 |
29 | ····sget-object·v0,·Lcom/android/permissioncontroller/DumpableLog;->INSTANCE:Lcom/android/permissioncontroller/DumpableLog; | 29 | ····sget-object·v0,·Lcom/android/permissioncontroller/DumpableLog;->INSTANCE:Lcom/android/permissioncontroller/DumpableLog; |
| |
30 | ····const/4·v3,·0x0 | 30 | ····const/4·v3,·0x0 |
| |
31 | ····const/4·v4,·0x4 | 31 | ····const/4·v4,·0x4 |
| |
32 | ····const/4·v5,·0x0 | 32 | ····const/4·v5,·0x0 |
Offset 51, 29 lines modified | Offset 51, 29 lines modified |
| |
51 | ····const-string·v2,·"No·existing·job,·scheduling·a·new·one" | 51 | ····const-string·v2,·"No·existing·job,·scheduling·a·new·one" |
| |
52 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V | 52 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V |
| |
53 | ····goto·:goto_0 | 53 | ····goto·:goto_0 |
| |
54 | ····.line·205 | 54 | ····.line·202 |
55 | ····:cond_0 | 55 | ····:cond_0 |
56 | ····invoke-virtual·{p0},·Landroid/app/job/JobInfo;->getIntervalMillis()J | 56 | ····invoke-virtual·{p0},·Landroid/app/job/JobInfo;->getIntervalMillis()J |
| |
57 | ····move-result-wide·v0 | 57 | ····move-result-wide·v0 |
| |
58 | ····invoke-static·{},·Lcom/android/permissioncontroller/hibernation/HibernationPolicyKt;->access$getCheckFrequencyMs()J | 58 | ····invoke-static·{},·Lcom/android/permissioncontroller/hibernation/HibernationPolicyKt;->access$getCheckFrequencyMs()J |
| |
59 | ····move-result-wide·v2 | 59 | ····move-result-wide·v2 |
| |
60 | ····cmp-long·p0,·v0,·v2 | 60 | ····cmp-long·p0,·v0,·v2 |
| |
61 | ····if-eqz·p0,·:cond_1 | 61 | ····if-eqz·p0,·:cond_1 |
| |
62 | ····.line·207 | 62 | ····.line·204 |
63 | ····sget-object·v0,·Lcom/android/permissioncontroller/DumpableLog;->INSTANCE:Lcom/android/permissioncontroller/DumpableLog; | 63 | ····sget-object·v0,·Lcom/android/permissioncontroller/DumpableLog;->INSTANCE:Lcom/android/permissioncontroller/DumpableLog; |
| |
64 | ····const/4·v3,·0x0 | 64 | ····const/4·v3,·0x0 |
| |
65 | ····const/4·v4,·0x4 | 65 | ····const/4·v4,·0x4 |
| |
66 | ····const/4·v5,·0x0 | 66 | ····const/4·v5,·0x0 |
Offset 82, 15 lines modified | Offset 82, 15 lines modified |
| |
82 | ····const-string·v2,·"Interval·frequency·has·changed,·updating·job" | 82 | ····const-string·v2,·"Interval·frequency·has·changed,·updating·job" |
| |
83 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V | 83 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V |
| |
84 | ····goto·:goto_0 | 84 | ····goto·:goto_0 |
| |
85 | ····.line·212 | 85 | ····.line·209 |
86 | ····:cond_1 | 86 | ····:cond_1 |
87 | ····sget-object·v6,·Lcom/android/permissioncontroller/DumpableLog;->INSTANCE:Lcom/android/permissioncontroller/DumpableLog; | 87 | ····sget-object·v6,·Lcom/android/permissioncontroller/DumpableLog;->INSTANCE:Lcom/android/permissioncontroller/DumpableLog; |
| |
88 | ····const/4·v9,·0x0 | 88 | ····const/4·v9,·0x0 |
| |
89 | ····const/4·v10,·0x4 | 89 | ····const/4·v10,·0x4 |
| |
Offset 172, 38 lines modified | Offset 172, 35 lines modified |
| |
172 | ····const/4·v5,·0x0 | 172 | ····const/4·v5,·0x0 |
| |
173 | ····move-object·v0,·p2 | 173 | ····move-object·v0,·p2 |
| |
174 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V | 174 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V |
| |
175 | ····.line·156 | 175 | ····.line·155 |
176 | ····invoke-static·{p1},·Lcom/android/permissioncontroller/hibernation/HibernationPolicyKt;->access$getFirstBootTime(Landroid/content/Context;)J | |
| |
177 | ····.line·158 | |
178 | ····const-class·v0,·Landroid/os/UserManager; | 176 | ····const-class·v0,·Landroid/os/UserManager; |
| |
179 | ····invoke-virtual·{p1,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; | 177 | ····invoke-virtual·{p1,·v0},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; |
| |
180 | ····move-result-object·v0 | 178 | ····move-result-object·v0 |
| |
181 | ····check-cast·v0,·Landroid/os/UserManager; | 179 | ····check-cast·v0,·Landroid/os/UserManager; |
| |
182 | ····invoke-static·{v0},·Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V | 180 | ····invoke-static·{v0},·Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V |
| |
183 | ····.line·161 | 181 | ····.line·158 |
184 | ····invoke-virtual·{v0},·Landroid/os/UserManager;->isProfile()Z | 182 | ····invoke-virtual·{v0},·Landroid/os/UserManager;->isProfile()Z |
| |
185 | ····move-result·v0 | 183 | ····move-result·v0 |
| |
186 | ····const-string·v1,·"user·" | 184 | ····const-string·v1,·"user·" |
| |
187 | ····if-eqz·v0,·:cond_0 | 185 | ····if-eqz·v0,·:cond_0 |
| |
188 | ····.line·163 | 186 | ····.line·160 |
189 | ····new-instance·p0,·Ljava/lang/StringBuilder; | 187 | ····new-instance·p0,·Ljava/lang/StringBuilder; |
| |
190 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V | 188 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V |
| |
191 | ····invoke-virtual·{p0,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 189 | ····invoke-virtual·{p0,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
192 | ····invoke-static·{},·Landroid/os/Process;->myUserHandle()Landroid/os/UserHandle; | 190 | ····invoke-static·{},·Landroid/os/Process;->myUserHandle()Landroid/os/UserHandle; |
Offset 234, 15 lines modified | Offset 231, 15 lines modified |
| |
234 | ····move-object·v0,·p2 | 231 | ····move-object·v0,·p2 |
| |
235 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V | 232 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V |
| |
236 | ····return-void | 233 | ····return-void |
| |
237 | ····.line·168 | 234 | ····.line·165 |
238 | ····:cond_0 | 235 | ····:cond_0 |
239 | ····new-instance·v0,·Ljava/lang/StringBuilder; | 236 | ····new-instance·v0,·Ljava/lang/StringBuilder; |
| |
240 | ····invoke-direct·{v0},·Ljava/lang/StringBuilder;-><init>()V | 237 | ····invoke-direct·{v0},·Ljava/lang/StringBuilder;-><init>()V |
| |
241 | ····invoke-virtual·{v0,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 238 | ····invoke-virtual·{v0,·v1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
Offset 272, 61 lines modified | Offset 269, 61 lines modified |
| |
272 | ····const-string·v1,·"HibernationPolicy" | 269 | ····const-string·v1,·"HibernationPolicy" |
| |
273 | ····move-object·v0,·p2 | 270 | ····move-object·v0,·p2 |
| |
274 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V | 271 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->i$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V |
| |
275 | ····.line·172 | 272 | ····.line·169 |
276 | ····invoke-direct·{p0,·p1},·Lcom/android/permissioncontroller/hibernation/HibernationOnBootReceiver;->isNewJobScheduleRequired(Landroid/content/Context;)Z | 273 | ····invoke-direct·{p0,·p1},·Lcom/android/permissioncontroller/hibernation/HibernationOnBootReceiver;->isNewJobScheduleRequired(Landroid/content/Context;)Z |
| |
277 | ····move-result·p0 | 274 | ····move-result·p0 |
| |
278 | ····if-eqz·p0,·:cond_1 | 275 | ····if-eqz·p0,·:cond_1 |
| |
279 | ····const/4·p0,·0x1 | 276 | ····const/4·p0,·0x1 |
| |
280 | ····.line·174 | 277 | ····.line·171 |
281 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/hibernation/HibernationPolicyKt;->access$setSKIP_NEXT_RUN$p(Z)V | 278 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/hibernation/HibernationPolicyKt;->access$setSKIP_NEXT_RUN$p(Z)V |
| |
282 | ····.line·175 | 279 | ····.line·172 |
283 | ····new-instance·v0,·Landroid/app/job/JobInfo$Builder; | 280 | ····new-instance·v0,·Landroid/app/job/JobInfo$Builder; |
| |
284 | ····const/4·v1,·0x2 | 281 | ····const/4·v1,·0x2 |
| |
285 | ····.line·177 | 282 | ····.line·174 |
286 | ····new-instance·v2,·Landroid/content/ComponentName; | 283 | ····new-instance·v2,·Landroid/content/ComponentName; |
| |
287 | ····const-class·v3,·Lcom/android/permissioncontroller/hibernation/HibernationJobService; | 284 | ····const-class·v3,·Lcom/android/permissioncontroller/hibernation/HibernationJobService; |
| |
288 | ····invoke-direct·{v2,·p1,·v3},·Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V | 285 | ····invoke-direct·{v2,·p1,·v3},·Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V |
| |
289 | ····.line·175 | 286 | ····.line·172 |
290 | ····invoke-direct·{v0,·v1,·v2},·Landroid/app/job/JobInfo$Builder;-><init>(ILandroid/content/ComponentName;)V | 287 | ····invoke-direct·{v0,·v1,·v2},·Landroid/app/job/JobInfo$Builder;-><init>(ILandroid/content/ComponentName;)V |
| |
291 | ····.line·178 | 288 | ····.line·175 |
292 | ····invoke-static·{},·Lcom/android/permissioncontroller/hibernation/HibernationPolicyKt;->access$getCheckFrequencyMs()J | 289 | ····invoke-static·{},·Lcom/android/permissioncontroller/hibernation/HibernationPolicyKt;->access$getCheckFrequencyMs()J |
| |
293 | ····move-result-wide·v1 | 290 | ····move-result-wide·v1 |
| |
294 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/app/job/JobInfo$Builder;->setPeriodic(J)Landroid/app/job/JobInfo$Builder; | 291 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/app/job/JobInfo$Builder;->setPeriodic(J)Landroid/app/job/JobInfo$Builder; |
| |
295 | ····move-result-object·v0 | 292 | ····move-result-object·v0 |
| |
296 | ····.line·180 | 293 | ····.line·177 |
297 | ····invoke-virtual·{v0,·p0},·Landroid/app/job/JobInfo$Builder;->setPersisted(Z)Landroid/app/job/JobInfo$Builder; | 294 | ····invoke-virtual·{v0,·p0},·Landroid/app/job/JobInfo$Builder;->setPersisted(Z)Landroid/app/job/JobInfo$Builder; |
| |
298 | ····move-result-object·v0 | 295 | ····move-result-object·v0 |
| |
299 | ····.line·181 | 296 | ····.line·178 |
300 | ····invoke-virtual·{v0},·Landroid/app/job/JobInfo$Builder;->build()Landroid/app/job/JobInfo; | 297 | ····invoke-virtual·{v0},·Landroid/app/job/JobInfo$Builder;->build()Landroid/app/job/JobInfo; |
| |
301 | ····move-result-object·v0 | 298 | ····move-result-object·v0 |
| |
302 | ····.line·182 | 299 | ····.line·179 |
303 | ····const-class·v1,·Landroid/app/job/JobScheduler; | 300 | ····const-class·v1,·Landroid/app/job/JobScheduler; |
| |
304 | ····invoke-virtual·{p1,·v1},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; | 301 | ····invoke-virtual·{p1,·v1},·Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object; |
| |
305 | ····move-result-object·p1 | 302 | ····move-result-object·p1 |
| |
306 | ····check-cast·p1,·Landroid/app/job/JobScheduler; | 303 | ····check-cast·p1,·Landroid/app/job/JobScheduler; |
Offset 335, 15 lines modified | Offset 332, 15 lines modified |
| |
335 | ····invoke-virtual·{p1,·v0},·Landroid/app/job/JobScheduler;->schedule(Landroid/app/job/JobInfo;)I | 332 | ····invoke-virtual·{p1,·v0},·Landroid/app/job/JobScheduler;->schedule(Landroid/app/job/JobInfo;)I |
| |
336 | ····move-result·p1 | 333 | ····move-result·p1 |
| |
337 | ····if-eq·p1,·p0,·:cond_1 | 334 | ····if-eq·p1,·p0,·:cond_1 |
| |
338 | ····.line·185 | 335 | ····.line·182 |
339 | ····new-instance·p0,·Ljava/lang/StringBuilder; | 336 | ····new-instance·p0,·Ljava/lang/StringBuilder; |
| |
340 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V | 337 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V |
| |
341 | ····const-string·v0,·"Could·not·schedule·" | 338 | ····const-string·v0,·"Could·not·schedule·" |
| |
342 | ····invoke-virtual·{p0,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 339 | ····invoke-virtual·{p0,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
Offset 372, 13 lines modified | Offset 369, 13 lines modified |
| |
372 | ····const/4·v5,·0x0 | 369 | ····const/4·v5,·0x0 |
| |
373 | ····const-string·v1,·"HibernationPolicy" | 370 | ····const-string·v1,·"HibernationPolicy" |
| |
374 | ····move-object·v0,·p2 | 371 | ····move-object·v0,·p2 |
| |
375 | ····.line·184 | 372 | ····.line·181 |
376 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->e$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V | 373 | ····invoke-static/range·{v0·..·v5},·Lcom/android/permissioncontroller/DumpableLog;->e$default(Lcom/android/permissioncontroller/DumpableLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V |
| |
377 | ····:cond_1 | 374 | ····:cond_1 |
378 | ····return-void | 375 | ····return-void |
379 | .end·method | 376 | .end·method |