Smart Dock MD5 mismatch #159

Open
opened 2024-04-23 11:52:25 -04:00 by atirutw · 8 comments
atirutw commented 2024-04-23 11:52:25 -04:00 (Migrated from github.com)

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 ....
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 2024-05-02 06:59:39 -04:00 (Migrated from github.com)

same issue in NixOS 23.11 KDE 5.27

same issue in NixOS 23.11 KDE 5.27
WesleyVanNeck commented 2024-05-02 08:10:50 -04:00 (Migrated from github.com)
i posted a fix https://github.com/casualsnek/waydroid_script/pull/161
vibhuxyz commented 2024-05-11 18:50:09 -04:00 (Migrated from github.com)

i posted a fix #161

where is the solution bro

> i posted a fix #161 where is the solution bro
atirutw commented 2024-05-12 12:36:20 -04:00 (Migrated from github.com)

where is the solution bro

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

> where is the solution bro Brother, do yourself a service by clicking on the "Files Changed" tab.
kasi-x commented 2024-05-16 13:22:08 -04:00 (Migrated from github.com)

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

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. ```python 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](https://github.com/casualsnek/waydroid_script/assets/149961262/a07dd198-b404-47cd-887f-89cd64a54fe0) ![Screenshot from 2024-05-17 02-19-39](https://github.com/casualsnek/waydroid_script/assets/149961262/a35fa012-7a1d-45e0-a413-aff64b3e8315)
MLSci commented 2024-08-26 22:25:35 -04:00 (Migrated from github.com)

The issue persists in Build # lineage_waydroid_x86_64-userdebug 11 RQ3A.211001.001 105 test-keys

The issue persists in `Build # lineage_waydroid_x86_64-userdebug 11 RQ3A.211001.001 105 test-keys`
SaltSouls commented 2024-12-03 21:49:06 -05:00 (Migrated from github.com)

Hate to necro this, but this bug seems to still be here.

Hate to necro this, but this bug seems to still be here.
CwalkPinoy commented 2024-12-04 14:36:28 -05:00 (Migrated from github.com)

having this bug, too. ubuntu 24 lts.

having this bug, too. ubuntu 24 lts.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wbruno/waydroid_script#159