Comments (5)
Hi, @residentsummer,
I'm sorry for not answering earlier. Thank you for the link to the guide, I'll try that once I have some time for this project again.
I'll close this issue as obviously there's no problem with your code.
Thanks again for all your efforts you put in this!
All the best!
from watoi.
Just a quick update in case someone reads this... I used another tool to extract the ChatStorage.sqlite from the backup. In addition I had to change the path to the file WhatsAppChat.momd (within folder "Payload" there's another folder for version 2.17.42 named "WhatsApp.app" in which the file is contained). But when I now run the program I receive an error:
xxxxx:watoi xxxxx$ build/Release/watoi /Downloads/msgstore.db /Downloads/watoi/ChatStorage.sqlite app/Payload/WhatsApp.app/WhatsAppChat.momd
2017-08-19 18:51:36.620 watoi[890:35828] unable to open database file
2017-08-19 18:51:36.620 watoi[890:35828] Android store loaded
CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///Downloads/watoi/ChatStorage.sqlite options:{
NSSQLitePragmasOption = {
"journal_mode" = DELETE;
};
} ... returned error Error Domain=NSCocoaErrorDomain Code=512 "The file couldn’t be saved." UserInfo={reason=Failed to create file; code = 2} with userInfo dictionary {
reason = "Failed to create file; code = 2";
}
2017-08-19 18:51:36.730 watoi[890:35828] CoreData loaded
2017-08-19 18:51:36.730 watoi[890:35828] unable to open database file
Abort trap: 6
Any hints how to get rid of that?
Thanks and best regards
from watoi.
Hi, @oecher!
From your last message:
$ build/Release/watoi /Downloads/msgstore.db /Downloads/watoi/ChatStorage.sqlite app/Payload/WhatsApp.app/WhatsAppChat.momd
2017-08-19 18:51:36.620 watoi[890:35828] unable to open database file
If this is indeed the command you've typed, than the mistake is pretty easy to fix. You've specified wrong paths to the database files. It should be like this (note the ~
in front of Downloads folder):
$ build/Release/watoi ~/Downloads/msgstore.db ~/Downloads/watoi/ChatStorage.sqlite app/Payload/WhatsApp.app/WhatsAppChat.momd
Regarding the missing Manifest.db
- it's a new backup format, introduced in iOS 10. Since you have an older iOS, there is an .mbdb
file instead. But it's not a problem - just try one of the existing tools (like the one you've used to extract ChatStorage.sqlite) to replace the database file after import is done.
Hope this helps!
from watoi.
Hi, @residentsummer,
Thank you very much! This helped a lot and the migration ran successfully. Now that I’ve come so far I realised that I can’t figure out what to do to replace the old ChatStorage.sqlite in the backup with the new one...
I found two Python scripts to convert a .mbdb to a .csv and vice versa but I don’t understand where I have to put the updated ChatStorage.sqlite in order to include it in my existing backup.
Following your instructions a new folder /ab/01234567890 seems to be created within the backup (btw: where does /ab/ come from? And does the Manifest.db in your example not have to be adapted?). Do I have to create such a folder as well manually? Or do I rename my new ChatStorage.sqlite to the fileID I found for ChatStorage.sqlite in Manifest.mbdb and replace the file in the backup? That’s currently my best guess…
Thanks and best regards!
from watoi.
@oecher if it's still relevant, you can try to follow this guide on modifying iOS 9 backups.
Feel free to close this issue if your problem is solved.
from watoi.
Related Issues (20)
- New WhatsApp version errors HOT 6
- Can this program be made working with encrypted iOS backups? HOT 1
- I have windows 10 and Android device to transfer the data to iPhone HOT 1
- stuck at ld: unknown option: -target HOT 1
- unable to open database file HOT 2
- Basic tutorial please, thank you so so much (: HOT 6
- is it possible to use this amazing trick on windows ? HOT 1
- Partially transferred Messages HOT 2
- bedit.sh operation not permitted HOT 3
- Migration only was successfully completed for groups HOT 1
- trying to make a simple whatsapp filter. HOT 1
- NSInvalidArgumentException key cannot be nil HOT 2
- aborting due to "no such table: legacy_available_messages_view" HOT 11
- I dont have a macbook. Is there any chance on linux or windows to run this program HOT 1
- Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSDictionaryM setObject:forKey:]: key cannot be nil' HOT 5
- Need help with migration HOT 3
- Does this still work? HOT 1
- no such table: legacy_available_messages_view HOT 2
- This NSPersistentStoreCoordinator has no persistent stores (corrupt file). It cannot perform a save operation. HOT 1
- Official migration from Android to iPhone is now available HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watoi.