Giter Club home page Giter Club logo

watoi's Introduction

Whatsapp Android To iOS Importer

Migrate Whatsapp chats history from Android to iOS.

Caveats

  • Media files and shared locations are not imported (got placeholders instead)
  • Messages from contacts that changed ids (phone numbers) are not linked

Prerequisites

  • Mac with installed Xcode and iTunes
  • Decrypted msgstore.db from Android
  • Installed and activated Whatsapp on your iDevice
  • Whatsapp.ipa of the same version (google will help)

Step-by-step guide

  • Check that Whatsapp is activated on iDevice. You should see the list of group chats when you open the app. Most likely, there won't be any messages prior to moving to iOS. You can even send/receive a message or two to be sure that there is something to back up.

  • If you're on Mac OS 10.14 or later, enable full disk access for your terminal app.

  • Build the migration utility (I'll assume ~/Downloads folder):

    cd ~/Downloads
    git clone https://github.com/residentsummer/watoi
    cd watoi
    xcodebuild -project watoi.xcodeproj -target watoi
    
  • Create an unencrypted backup to local computer (not iCloud) with iTunes.

  • Find out the ID of the latest backup and export it into an env var for later use

    scripts/bedit.sh list-backups
    # total 0
    # drwxr-xr-x@   266 user  staff    8512 Nov 19 22:25 3105fe2b1e4688d54920d5b7eff3a06a71fd5957  # <= this is the latest
    # drwxr-xr-x  20781 user  staff  664992 Aug 16 14:19 e38ebede76a7801807fe98684fd6d0b7fc3e64ba
    
    export BACKUP_ID="put ID of the backup here"
    # For example (do not copy-paste the line below, your ID will be different!):
    # export BACKUP_ID=3105fe2b1e4688d54920d5b7eff3a06a71fd5957
    
  • Extract whatsapp's chat storage and backup important files

    export ORIGINALS="originals/$(date +%s)"
    mkdir -p $ORIGINALS
    scripts/bedit.sh extract-chats $BACKUP_ID $ORIGINALS/ChatStorage.sqlite
    scripts/bedit.sh extract-blob $BACKUP_ID Manifest.db $ORIGINALS/Manifest.db
    cp $ORIGINALS/ChatStorage.sqlite ./ChatStorage.sqlite
    
  • Extract the contents of Whatsapp.ipa (we'll need CoreData description files):

    cd ~/Downloads/watoi
    unzip ~/Downloads/WhatsApp_Messenger_x.y.z.ipa -d app
    
  • Run the migration:

    build/Release/watoi <path-to-msgstore.db> ./ChatStorage.sqlite app/Payload/WhatsApp.app/Frameworks/Core.framework/WhatsAppChat.momd
    
  • Replace database file inside the backup with the updated one:

    scripts/bedit.sh replace-chats $BACKUP_ID ./ChatStorage.sqlite
    
  • Restore the backup with iTunes

Troubleshooting

Gitter

watoi's People

Contributors

residentsummer avatar ludufre avatar felizolinha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.