casualsnek / waydroid_script

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !
GNU General Public License v3.0
1.49k stars 144 forks source link

Smart Dock MD5 mismatch #159

Open atirut-w opened 2 months ago

atirut-w commented 2 months ago

The script gets stuck in a loop trying to redownload and failing from MD5 mismatches.

$ sudo venv/bin/python3 main.py install smartdock
INFO: Downloading smartdock.apk now to /home/atirut/.cache/waydroid-script/downloads/smartdock.apk .....
14.7kiB [00:00, 21.6MiB/s]
WARN: md5 mismatches, redownloading now ....
14.7kiB [00:00, 23.3MiB/s]
WARN: md5 mismatches, redownloading now ....
sdutwsl commented 2 months ago

same issue in NixOS 23.11 KDE 5.27

WesleyVanNeck commented 2 months ago

i posted a fix https://github.com/casualsnek/waydroid_script/pull/161

viibhuGupta commented 1 month ago

i posted a fix #161

where is the solution bro

atirut-w commented 1 month ago

where is the solution bro

Brother, do yourself a service by clicking on the "Files Changed" tab.

kasi-x commented 1 month ago

I confirmed #161,#166 (#159) fix target url and enable us to save apk, but it doesn't work still. Because this apk is not extractable as a zip.

raceback (most recent call last):
  File "/home/user/waydroid_script/main.py", line 358, in <module>
    main()
  File "/home/user/waydroid_script/main.py", line 354, in main
    interact()
  File "/home/user/waydroid_script/main.py", line 256, in interact
    install_app(args)
  File "/home/user/waydroid_script/main.py", line 113, in install_app
    item.install()
  File "/home/user/waydroid_script/stuff/general.py", line 177, in install
    self.copy()
  File "/home/user/waydroid_script/stuff/smartdock.py", line 70, in copy
    self.extract_app_lib(os.path.join(self.copy_dir, self.partition, "priv-app/SmartDock/smartdock.apk"))
  File "/home/user/waydroid_script/stuff/general.py", line 105, in extract_app_lib
    with zipfile.ZipFile(apk_file_path, "r") as apk:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/zipfile/__init__.py", line 1349, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.12/zipfile/__init__.py", line 1416, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Screenshot from 2024-05-17 02-18-48 Screenshot from 2024-05-17 02-19-39