Skip to content

Instantly share code, notes, and snippets.

@areee
Last active July 12, 2019 04:57
Show Gist options
  • Save areee/3b6080da2eeeca6ed0f941c16161865d to your computer and use it in GitHub Desktop.
Save areee/3b6080da2eeeca6ed0f941c16161865d to your computer and use it in GitHub Desktop.
How to restore your WhatsApp chat history in LineageOS 14.1 (Android 7.1.2)

LineageOS 14.1 + WhatsApp: how to restore a chat history (WORKING)

  • Works at least with Samsung Galaxy S III phone (tested with LineageOS 14.1 alias Android 7.1.2)

  • A keyword: enable the following WhatsApp permission beforehand (before you launch the WhatsApp app for the first time):

    • Contacts
    • External Storage
    • (Possibly also SMS)
  • Please note that you log out of your Google Account before starting the restoring process

  • The factory reset via TWRP does not really reset the user's personal partition in the phone memory, so the sdcard/WhatsApp/Databases folder can still be found in the phone's memory even after resetting

  • I took two WhatsApp backups in advance

    • renamed msgstore.db.crypt12 to msgstore.db.crypt12.bak
    • renamed an older backup file msgstore-YYYY-MM-DD.1.db.crypt12 to msgstore.db.crypt12
  • I also looked at the guideline on the WhatsApp website

EDIT July 12th 2019: It's not necessary to log out the Google Account. I have tested that this process works also without it. The most important thing is to enable the permissions above before starting the restoring process.

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