Skip to content

Instantly share code, notes, and snippets.

@fabricedesre
Created October 19, 2022 02:36
Show Gist options
  • Save fabricedesre/f486d7a32e7599576fa9c81923552d61 to your computer and use it in GitHub Desktop.
Save fabricedesre/f486d7a32e7599576fa9c81923552d61 to your computer and use it in GitHub Desktop.
Comparing vdc with vs. without zygote

With zygote:

10-19 02:16:27.704     1     1 I init    : starting service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)'...
10-19 02:16:27.704     1     1 I init    : SVC_EXEC service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' pid 498 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:16:27.711     1     1 I init    : Service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 498) exited with status 0 waiting took 0.006000 seconds
10-19 02:16:27.711     1     1 I init    : Sending signal 9 to service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 498) process group...
10-19 02:16:27.759     1     1 I init    : Calling: /system/bin/vdc checkpoint needsCheckpoint
10-19 02:16:27.763   555   555 D vdc     : Waited 0ms for vold
10-19 02:16:27.766     1     1 I vdc     : vdc terminated by exit(1)
10-19 02:16:27.766     1     1 I vdc     :
10-19 02:16:27.769     1     1 I init    : Calling: /system/bin/vdc cryptfs encryptFstab /dev/block/platform/14700000.ufs/by-name/userdata /data true f2fs
10-19 02:16:27.776   556   556 D vdc     : Waited 0ms for vold
10-19 02:16:31.179     1     1 I init    : starting service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)'...
10-19 02:16:31.180     1     1 I init    : SVC_EXEC service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' pid 652 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:16:31.184     1     1 I init    : Service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 652) exited with status 0 waiting took 0.004000 seconds
10-19 02:16:31.184     1     1 I init    : Sending signal 9 to service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 652) process group...
10-19 02:16:31.185     1     1 I init    : starting service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)'...
10-19 02:16:31.186     1     1 I init    : SVC_EXEC service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)' pid 654 (uid 0 gid 0+0 context default) started; waiting...
10-19 02:16:31.189   654   654 D vdc     : Waited 0ms for vold
10-19 02:16:31.221     1     1 I init    : Service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)' (pid 654) exited with status 0 waiting took 0.035000 seconds
10-19 02:16:31.221     1     1 I init    : Sending signal 9 to service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)' (pid 654) process group...
10-19 02:16:31.225     1     1 I init    : starting service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)'...
10-19 02:16:31.226     1     1 I init    : SVC_EXEC service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)' pid 660 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:16:31.242     1     1 I init    : Service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)' (pid 660) exited with status 0 waiting took 0.015000 seconds
10-19 02:16:31.242     1     1 I init    : Sending signal 9 to service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)' (pid 660) process group...
10-19 02:16:33.938     1     1 I init    : starting service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)'...
10-19 02:16:33.939     1     1 I init    : SVC_EXEC service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)' pid 752 (uid 0 gid 0+0 context default) started; waiting...
10-19 02:16:33.944   752   752 D vdc     : Waited 0ms for vold
10-19 02:16:33.993     1     1 I init    : Service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)' (pid 752) exited with status 0 waiting took 0.054000 seconds
10-19 02:16:33.993     1     1 I init    : Sending signal 9 to service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)' (pid 752) process group...

Without zygote:

10-19 02:31:03.708     1     1 I init    : starting service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)'...
10-19 02:31:03.709     1     1 I init    : SVC_EXEC service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' pid 494 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:31:03.714     1     1 I init    : Service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 494) exited with status 0 waiting took 0.005000 seconds
10-19 02:31:03.714     1     1 I init    : Sending signal 9 to service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 494) process group...
10-19 02:31:03.763     1     1 I init    : Calling: /system/bin/vdc checkpoint needsCheckpoint
10-19 02:31:03.767   551   551 D vdc     : Waited 0ms for vold
10-19 02:31:03.769     1     1 I vdc     : vdc terminated by exit(1)
10-19 02:31:03.769     1     1 I vdc     :
10-19 02:31:03.772     1     1 I init    : Calling: /system/bin/vdc cryptfs encryptFstab /dev/block/platform/14700000.ufs/by-name/userdata /data true f2fs
10-19 02:31:03.776   552   552 D vdc     : Waited 0ms for vold
10-19 02:31:07.186     1     1 I init    : starting service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)'...
10-19 02:31:07.186     1     1 I init    : SVC_EXEC service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' pid 644 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:31:07.191     1     1 I init    : Service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 644) exited with status 0 waiting took 0.004000 seconds
10-19 02:31:07.191     1     1 I init    : Sending signal 9 to service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 644) process group...
10-19 02:31:07.193     1     1 I init    : starting service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)'...
10-19 02:31:07.193     1     1 I init    : SVC_EXEC service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)' pid 646 (uid 0 gid 0+0 context default) started; waiting...
10-19 02:31:07.197   646   646 D vdc     : Waited 0ms for vold
10-19 02:31:07.230     1     1 I init    : Service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)' (pid 646) exited with status 0 waiting took 0.036000 seconds
10-19 02:31:07.230     1     1 I init    : Sending signal 9 to service 'exec 6 (/system/bin/vdc --wait cryptfs enablefilecrypto)' (pid 646) process group...
10-19 02:31:07.235     1     1 I init    : starting service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)'...
10-19 02:31:07.236     1     1 I init    : SVC_EXEC service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)' pid 652 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:31:07.255     1     1 I init    : Service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)' (pid 652) exited with status 0 waiting took 0.018000 seconds
10-19 02:31:07.255     1     1 I init    : Sending signal 9 to service 'exec 7 (/system/bin/vdc keymaster earlyBootEnded)' (pid 652) process group...
10-19 02:31:09.976     1     1 I init    : starting service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)'...
10-19 02:31:09.976     1     1 I init    : SVC_EXEC service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)' pid 744 (uid 0 gid 0+0 context default) started; waiting...
10-19 02:31:09.980   744   744 D vdc     : Waited 0ms for vold
10-19 02:31:10.028     1     1 I init    : Service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)' (pid 744) exited with status 0 waiting took 0.052000 seconds
10-19 02:31:10.028     1     1 I init    : Sending signal 9 to service 'exec 10 (/system/bin/vdc --wait cryptfs init_user0)' (pid 744) process group...
@fabricedesre
Copy link
Author

Searching for "checkpoint" instead:

With zygote:

10-19 02:16:26.726     1     1 I SELinux : Permission checkpoint_restore in class capability2 not defined in policy.
10-19 02:16:26.726     1     1 I SELinux : Permission checkpoint_restore in class cap2_userns not defined in policy.
10-19 02:16:27.704     1     1 I init    : starting service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)'...
10-19 02:16:27.704     1     1 I init    : SVC_EXEC service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' pid 498 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:16:27.711     1     1 I init    : Service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 498) exited with status 0 waiting took 0.006000 seconds
10-19 02:16:27.711     1     1 I init    : Sending signal 9 to service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 498) process group...
10-19 02:16:27.759     1     1 I init    : Calling: /system/bin/vdc checkpoint needsCheckpoint
10-19 02:16:30.580   455   455 I make_f2fs: [f2fs_write_check_point_pack:1074] 	Writing cp page 1 of checkpoint pack 2, at offset 0x00000400
10-19 02:16:30.580   455   455 I make_f2fs: [f2fs_write_check_point_pack:1093] 	Writing cp page 2 of checkpoint pack 2, at offset 0x00000405
10-19 02:16:31.100   455   455 I fsck.f2fs: Info: checkpoint state = 185 :  trimmed nat_bits compacted_summary unmount
10-19 02:16:31.121   455   455 I F2FS-fs (dm-36): Found nat_bits in checkpoint
10-19 02:16:31.169   455   455 W F2FS-fs (dm-36): Start checkpoint disabled!
10-19 02:16:31.171   455   455 I F2FS-fs (dm-36): Mounted with checkpoint version = 4f3eedaf
10-19 02:16:31.179     1     1 I init    : starting service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)'...
10-19 02:16:31.180     1     1 I init    : SVC_EXEC service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' pid 652 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:16:31.150   455   455 I Checkpoint: cp_prepareCheckpoint called
10-19 02:16:31.184     1     1 I init    : Service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 652) exited with status 0 waiting took 0.004000 seconds
10-19 02:16:31.184     1     1 I init    : Sending signal 9 to service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 652) process group...
10-19 02:16:49.453  1679  1836 D StrictMode: 	at android.database.sqlite.SQLiteConnection.setAutoCheckpointInterval(SQLiteConnection.java:310)
10-19 02:16:49.456  1679  1836 D StrictMode: 	at android.database.sqlite.SQLiteConnection.setAutoCheckpointInterval(SQLiteConnection.java:312)
10-19 02:18:22.764  1679  1705 I ActivityManager: About to commit checkpoint
10-19 02:18:22.768   455   455 I Checkpoint: Marked slot as booted successfully.
10-19 02:18:22.908   455   455 I Checkpoint: Checkpoint has been committed.

Without zygote:

10-19 02:31:02.734     1     1 I SELinux : Permission checkpoint_restore in class capability2 not defined in policy.
10-19 02:31:02.734     1     1 I SELinux : Permission checkpoint_restore in class cap2_userns not defined in policy.
10-19 02:31:03.708     1     1 I init    : starting service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)'...
10-19 02:31:03.709     1     1 I init    : SVC_EXEC service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' pid 494 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:31:03.714     1     1 I init    : Service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 494) exited with status 0 waiting took 0.005000 seconds
10-19 02:31:03.714     1     1 I init    : Sending signal 9 to service 'exec 2 (/system/bin/vdc checkpoint markBootAttempt)' (pid 494) process group...
10-19 02:31:03.763     1     1 I init    : Calling: /system/bin/vdc checkpoint needsCheckpoint
10-19 02:31:06.581   452   452 I make_f2fs: [f2fs_write_check_point_pack:1074] 	Writing cp page 1 of checkpoint pack 2, at offset 0x00000400
10-19 02:31:06.581   452   452 I make_f2fs: [f2fs_write_check_point_pack:1093] 	Writing cp page 2 of checkpoint pack 2, at offset 0x00000405
10-19 02:31:07.107   452   452 I fsck.f2fs: Info: checkpoint state = 185 :  trimmed nat_bits compacted_summary unmount
10-19 02:31:07.127   452   452 I F2FS-fs (dm-36): Found nat_bits in checkpoint
10-19 02:31:07.176   452   452 W F2FS-fs (dm-36): Start checkpoint disabled!
10-19 02:31:07.177   452   452 I F2FS-fs (dm-36): Mounted with checkpoint version = 7addc43
10-19 02:31:07.186     1     1 I init    : starting service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)'...
10-19 02:31:07.186     1     1 I init    : SVC_EXEC service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' pid 644 (uid 1000 gid 1000+0 context default) started; waiting...
10-19 02:31:07.161   452   452 I Checkpoint: cp_prepareCheckpoint called
10-19 02:31:07.191     1     1 I init    : Service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 644) exited with status 0 waiting took 0.004000 seconds
10-19 02:31:07.191     1     1 I init    : Sending signal 9 to service 'exec 5 (/system/bin/vdc checkpoint prepareCheckpoint)' (pid 644) process group...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment