Closed dtiziano closed 2 years ago
tried the same as above on samsung with Android 6.0.1
The installation of Whatsapp Legacy works.
But when main.py tries to copy the data (line 79)
shutil.copyfile('tmp\\apps\\com.whatsapp\\db\\msgstore.db','out\\android.db')
it still fails, returning
No such file or directory: 'tmp\\apps\\com.whatsapp\\db\\msgstore.db'
since tmp\apps\com.whatsapp only contains the following folders
and the file
as explained here we need a newer apk version.
substituted the apk as in the link.
by first using the script from this repo with the flags -ra
and the apk as above, I could successfully install an older legacy apk on android EMUI 9.1.0. without facing the downgrade problem anymore
This version of WhatsApp seems to work (as a an App), and also allows the main file of this repo to work, as when reinstalling the same APK, no downgrade error is thrown anymore.
This still doesn't resolve the problem, that the data I get from the backup (whatsapp.ab) is around 47Bytes in size, and does basically not contain anything of what I need.
@mukulkadel can you say something about which android device and which android version you are running?
Update: using an emulator I was able to extract the files with the following commands
bin/adb pull -a /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Databases/msgstore.db.crypt14
bin/adb root
bin/adb pull -a /data/data/com.whatsapp
bin/adb unroot
... here some infos to use the emulator
Close by #12
hello, can you please explain how do i basically do the fix? i also have the msgstore error but im not that great at android and stuff so i could really use some help
Have a look at the infos in the updated readme in my pull request, I explain every step
Tiziano Di Pietro Eidg. Dipl. Masch. Ing. ETH
On 6 May 2022, at 11:03, spydafx @.***> wrote:
hello, can you please explain how do i basically do the fix? i also have the msgstore error but im not that great at android and stuff so i could really use some help
— Reply to this email directly, view it on GitHub https://github.com/mukulkadel/mwatoi/issues/11#issuecomment-1119406613, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2P6OVVOE6AMMXJB76556DVITN6ZANCNFSM5U6WRW3Q. You are receiving this because you modified the open/close state.
https://github.com/dtiziano/mwatoi/tree/c1be20b70380c42e573a7359f560de2135428472
On 6 May 2022, at 11:03, spydafx @.***> wrote:
hello, can you please explain how do i basically do the fix? i also have the msgstore error but im not that great at android and stuff so i could really use some help
— Reply to this email directly, view it on GitHub https://github.com/mukulkadel/mwatoi/issues/11#issuecomment-1119406613, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2P6OVVOE6AMMXJB76556DVITN6ZANCNFSM5U6WRW3Q. You are receiving this because you modified the open/close state.
im stuck at step 7 i dont understand, i cant do bin command in the terminal (cmd in windows)
If on windows, of course bin\adb.exe ...
Tiziano Di Pietro Eidg. Dipl. Masch. Ing. ETH
via ca’ di sopra 10 CH-6597 Agarone
@.*** +41 75 414 48 80
On 6 May 2022, at 11:25, spydafx @.***> wrote:
im stuck at step 7 i dont understand, i cant do bin command in the terminal (cmd in windows)
— Reply to this email directly, view it on GitHub https://github.com/mukulkadel/mwatoi/issues/11#issuecomment-1119424898, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2P6ORDET5DBBHOFH4E4JDVITQSHANCNFSM5U6WRW3Q. You are receiving this because you modified the open/close state.
C:\Users\pc2\Desktop\mwatoi-master\bin>adb.exe pull -a /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Databases/msgstore.db.crypt14 adb: error: failed to get feature set: more than one device/emulator
If your android phone is connected, disconnect it from the computer. If not, then you have more than one local emulator running.
On 6 May 2022, at 11:30, spydafx @.***> wrote:
C:\Users\pc2\Desktop\mwatoi-master\bin>adb.exe pull -a /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Databases/msgstore.db.crypt14 adb: error: failed to get feature set: more than one device/emulator
— Reply to this email directly, view it on GitHub https://github.com/mukulkadel/mwatoi/issues/11#issuecomment-1119428595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2P6OUQOONQHA3X32I3RO3VITRB3ANCNFSM5U6WRW3Q. You are receiving this because you modified the open/close state.
on EMUI 9.1.0 it fails to install the legacy whatsapp. "verify app USB" is disabled
when running the code at lines 52-54 in main.py
print('Installing WhatsApp 2.11.431.') os.system('bin\\adb.exe install -d -r bin\\LegacyWhatsApp.apk') print('Installation complete!')
the following error is thrown in adb.exe, but this is not catched by main.py and does not stop it from to continuuing adb: failed to install bin\LegacyWhatsApp.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
it results that when main.py tries to copy the data (line 79)
shutil.copyfile('tmp\\apps\\com.whatsapp\\db\\msgstore.db','out\\android.db')
the source location is not found, throwing the following error:Traceback (most recent call last): File "C:\Users\Tiziano\Downloads\mwatoi-master\mwatoi-master\main.py", line 79, in <module> shutil.copyfile('tmp\\apps\\com.whatsapp\\db\\msgstore.db','out\\android.db') File "C:\Users\Tiziano\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 254, in copyfile with open(src, 'rb') as fsrc: FileNotFoundError: [Errno 2] No such file or directory: 'tmp\\apps\\com.whatsapp\\db\\msgstore.db'
here attached the complete cmd output: `C:\Users\Tiziano\Downloads\mwatoi-master\mwatoi-master>python main.py
WhatsApp android to ios transferrer
Please connect your Android device with USB Debugging enabled: cannot connect to daemon at tcp:5037: cannot connect to 127.0.0.1:5037: No connection could be made because the target machine actively refused it. (10061)
Android device connected!
Please backup all your whatsapp chats before proceeding.
Do you want to continue?[y/n]: y
Starting backup process. Creating tmp directory. Uninstalling current apk. Success Installing WhatsApp 2.11.431. Performing Streamed Install adb: failed to install bin\LegacyWhatsApp.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE] Installation complete! Backing up data.
Note: Please don't enter any password.
WARNING: adb backup is deprecated and may be removed in a future release Now unlock your device and confirm the backup operation... Extracting tmp\whatsapp.ab file. Creating out directory. Copying android db Traceback (most recent call last): File "C:\Users\Tiziano\Downloads\mwatoi-master\mwatoi-master\main.py", line 79, in
shutil.copyfile('tmp\apps\com.whatsapp\db\msgstore.db','out\android.db')
File "C:\Users\Tiziano\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'tmp\apps\com.whatsapp\db\msgstore.db'`