Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Look for local and cloud backups
- [main] registername/check-for-local-and-remote-backups
- # Query Google Drive for backups if your device is logged in with Google account
- [WhatsApp Worker] gdrive-api-v2/auth-request asking GoogleAuthUtil for auth token: yourEmailId@gmail.com
- [WhatsApp Worker] gdrive-api-v2/auth-request/received-auth-token
- # Response from Google Drive: No backup exists
- [WhatsApp Worker] gdrive-activity/one-time-setup/account-with-no-backup/yourEmailId@gmail.com
- # Found local backup, get last backup file
- [WhatsApp Worker] msgstore/lastbackupfile/file msgstore.db.crypt12 size=10485760
- # Number of local backup files can be max 9 in your local storage, the older ones are deleted
- [main] gdrive-activity/one-time-setup/num-of-local-backup-files/2
- [main] gdrive-activity/one-time-setup no google drive backups found but local backup exists.
- # Check if the backup belongs to your account by comparing
- # last 2 digits in the footer with the last 2 digits of your phone number
- # If it mismatches, raise exception, jid = jabber Id
- [WhatsApp Worker] BackupFooter/has-jid-user-mismatch/expected-jid-user-ends-with: 20 actual-jid-user: YourPhoneNumberAlongWithCountryCode
- [main] gdrive-activity/show-restore-for-local-backup
- [main] gdrive-activity/show-msgstore-downloading-view
- [main] gdrive-activity/msgstore-download/not performed since we are using local, success: true, now, restoring it.
- # Get keys from WhatsApp server based on number of backups
- # This key is same for multiple backups
- # But sometimes when a user starts from fresh that is without restoring the backup,
- # the key is changed, see in next logs
- # WhatsApp server might also rotate keys for the client after some period of time
- # The key is AES-GCM-256-bit key whose IV is stored in msgstore.db.crypt12
- backupencryption/getkeys/size 2 (backups=2)
- # Get cipher key from the key file with its Id
- # When msgstore.db.crypt12 is generated,
- # it stores Id of key in its header
- # This Id is also stored in the key file
- # to retrieve the key later for decryption
- # 2 function calls because of 2 backup files
- # Key can be same for both
- [WriterThread] xmpp/writer/write/get-cipher-key
- [WriterThread] xmpp/writer/write/get-cipher-key
- # Only the latest backup is restored
- [WhatsApp Worker] msgstore/restore/backupfiles msgstore.db.crypt12 (10485760)
- [WhatsApp Worker] BackupFile/verifyIntegrity/CRYPT12
- # Initial digest is md5 hash of an empty string
- [WhatsApp Worker] BackupFile/getFileDigestWithoutFooter/initial digest = d41d8cd98f00b204e9800998ecf8427e
- # Get file digest without footer, the last 20 bytes of backup is the footer
- [WhatsApp Worker] msgstore-integrity-checker/verify-integrity/actual-digest/ b90a162a06ce60baf7dd89301d2149d6
- [WhatsApp Worker] BackupFooter/verify-integrity/actual-digest/ b90a162a06ce60baf7dd89301d2149d6
- Expected digest is the md5 hash stored in footer
- [WhatsApp Worker] BackupFooter/verify-integrity/expected-digest/b90a162a06ce60baf7dd89301d2149d6
- [WhatsApp Worker] BackupFooter/verify-integrity/digest-matches/success
- [WhatsApp Worker] msgstore/restore/file-integrity-check/success
- [WhatsApp Worker] msgstore/restore/key CRYPT12
- [WhatsApp Worker] msgstore/restore/jid-mismatch/false
- [main] gdrive-activity/msg-restore-progress/100%
- # If md5 hash mismatches
- [WhatsApp Worker] BackupFooter/verify-integrity/actual-digest/ f1c5e3afc42867f10f4e9107faf15cd3
- [WhatsApp Worker] BackupFooter/verify-integrity/expected-digest/b90a162a06ce60baf7dd89301d2149d6
- [WhatsApp Worker] BackupFooter/verify-integrity/failed expected-digest:b90a162a06ce60baf7dd89301d2149d6 actual-digest:f1c5e3afc42867f10f4e9107faf15cd3
- [WhatsApp Worker] msgstore/restore/file-integrity-check/failed
- [WhatsApp Worker] msgstore/restore/key CRYPT12
- [WhatsApp Worker] msgstore/restore/error; exception=java.util.zip.ZipException: incorrect header check
- [main] gdrive-activity/after-msgstore-verified/failed/unrestorable-local-backup
- # If you start from fresh without restoring your backup, or
- # If you delete the key file from /data/data/com.whatsapp/files/key
- # Client requests new key from the server
- [WriterThread] xmpp/writer/write/create-cipher-key
- # No internet connection
- # If you delete the key file and try to make backup without going online
- [WhatsApp Worker] localbackupmanager/sendCreateBackupKeyIfNeeded/started
- [WhatsApp Worker] sendmethods/sendcreatecipherkey
- [WhatsApp Worker] localbackupmanager/backup/waiting-for-the-key
- [WhatsApp Worker] localbackupmanager/backup/backup-key-not-received
- [WhatsApp Worker] backupkey/getinfo/does-not-exist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement