Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kodi Android Updater error after selecting apk #273

Open
romanr opened this issue Jan 26, 2025 · 1 comment
Open

Kodi Android Updater error after selecting apk #273

romanr opened this issue Jan 26, 2025 · 1 comment

Comments

@romanr
Copy link

romanr commented Jan 26, 2025

A lot of users have this issue that appears and goes away seemingly at random.

You try to download update, select APK, it opens progress dialog and immediately closes with "Unknown error occurred"

What actually happens:

01-27 06:41:03.893 31377 30740 E Kodi    : 2025-01-27 06:41:03.893 T:30740   error <general>: script.kodi.android.update-1.3.7-downloadAPK, Failed! (http://mirrors.kodi.tv/nightlies/android/arm/Omega/kodi-20250124-90f4fac0-Omega-armeabi-v7a.apk) [Errno 1] Operation not permitted: '/storage/emulated/0/download/kodi-20250124-90f4fac0-Omega-armeabi-v7a.apk' ,Traceback (most recent call last):
01-27 06:41:03.893 31377 30740 E Kodi    :                                                      File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.kodi.android.update/default.py", line 213, in downloadAPK
01-27 06:41:03.893 31377 30740 E Kodi    :                                                        try: urllib.request.urlretrieve(url.rstrip('/'), dest, lambda nb, bs, fs: self.pbhook(nb, bs, fs, dia, start_time, fle))
01-27 06:41:03.893 31377 30740 E Kodi    :                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
01-27 06:41:03.893 31377 30740 E Kodi    :                                                      File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.12/lib/python3.12/urllib/request.py", line 250, in urlretrieve
01-27 06:41:03.893 31377 30740 E Kodi    :                                                        tfp = open(filename, 'wb')
01-27 06:41:03.893 31377 30740 E Kodi    :                                                              ^^^^^^^^^^^^^^^^^^^^
01-27 06:41:03.893 31377 30740 E Kodi    :                                                    PermissionError: [Errno 1] Operation not permitted: '/storage/emulated/0/download/kodi-20250124-90f4fac0-Omega-armeabi-v7a.apk'
01-27 06:41:03.893 31377 30740 E Kodi    :
^

let's see…

adb connect
adb shell
cd /storage/emulated/0/download
ls -al
total 67156
-rw-rw---- 1 root everybody 68760083 2024-12-21 23:47 kodi-20241220-ab0e10eb-master-armeabi-v7a.apk
  • I have 2025 0109 installed
  • trying to install 2025 0124.
  • yet error is because of old 2024 1220 in downloads folder, and
  • it appears that Kodi process, at least on Shield Pro, is not running under user who is member of 'everybody` group.

Important

Addon can not cleanup the old download by itself.

Maybe it shouldn't be requirement for download new one?
Looks like it eventually getting cleaned up by reboot or something.

ps -A |grep kodi
u0_a96        31377   3334 1795592 420360 0                   0 S org.xbmc.kodi

I could not find how to get other user info in adb.

and so, after I do successfully remove it;

rm kodi-20241220-ab0e10eb-master-armeabi-v7a.apk

the Kodi Android Updater works again!

@Lunatixz
Copy link
Owner

Thanks for the information, I'll make the necessary corrections and push an update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants