Obtainium icon indicating copy to clipboard operation
Obtainium copied to clipboard

Updating from apkpure fails for certain apps (others work):

Open ArnoldSmith86 opened this issue 1 year ago • 21 comments

Screenshot_20230716-110838_Obtainium.png

Screenshot_20230716-110852_Obtainium.png

What details do you need?

ArnoldSmith86 avatar Jul 16 '23 09:07 ArnoldSmith86

I'm able to install this with no issue. Could you try installing it manually without Obtainium?

ImranR98 avatar Jul 16 '23 15:07 ImranR98

Actually try it with this new release first: https://github.com/ImranR98/Obtainium/releases/tag/v0.13.18-beta

ImranR98 avatar Jul 16 '23 16:07 ImranR98

With new release: Screenshot_20230717-124911_Obtainium.png

ArnoldSmith86 avatar Jul 17 '23 10:07 ArnoldSmith86

After uninstalling first: Screenshot_20230717-125110_Obtainium.png

ArnoldSmith86 avatar Jul 17 '23 10:07 ArnoldSmith86

Installing using https://f-droid.org/en/packages/com.smartpack.packagemanager/ worked fine:

Screenshot_20230717-130210_Package Manager.png

Not sure how else to install XAPKs.

ArnoldSmith86 avatar Jul 17 '23 11:07 ArnoldSmith86

I wonder if that config apk is actually being installed by that app

1xFF avatar Jul 24 '23 04:07 1xFF

It lets me select what to install. I have no idea how all that xapk stuff works, though.

ArnoldSmith86 avatar Jul 25 '23 06:07 ArnoldSmith86

Not sure if this helps but:

:/data/local/tmp # cp /storage/emulated/0/Android/data/dev.imranr.obtainium/cache/com.agilexrobotics-523288793.xapk-dir/*apk .
:/data/local/tmp # ls -l
total 71180
-rw-r----- 1 root root      34735574 2023-08-16 10:39 com.agilexrobotics.apk
-rw-r----- 1 root root         45465 2023-08-16 10:39 config.ar.apk
-rw-r----- 1 root root      35960961 2023-08-16 10:39 config.arm64_v8a.apk
-rw-r----- 1 root root        192921 2023-08-16 10:39 config.de.apk
-rw-r----- 1 root root        225689 2023-08-16 10:39 config.en.apk
-rw-r----- 1 root root        323993 2023-08-16 10:39 config.es.apk
-rw-r----- 1 root root        201113 2023-08-16 10:39 config.fr.apk
-rw-r----- 1 root root         74137 2023-08-16 10:39 config.hi.apk
-rw-r----- 1 root root         41369 2023-08-16 10:39 config.in.apk
-rw-r----- 1 root root        168345 2023-08-16 10:39 config.it.apk
-rw-r----- 1 root root         78233 2023-08-16 10:39 config.ja.apk
-rw-r----- 1 root root         78233 2023-08-16 10:39 config.ko.apk
-rw-r----- 1 root root         37273 2023-08-16 10:39 config.my.apk
-rw-r----- 1 root root         78233 2023-08-16 10:39 config.pt.apk
-rw-r----- 1 root root         82329 2023-08-16 10:39 config.ru.apk
-rw-r----- 1 root root         33177 2023-08-16 10:39 config.th.apk
-rw-r----- 1 root root         33177 2023-08-16 10:39 config.tr.apk
-rw-r----- 1 root root         37273 2023-08-16 10:39 config.vi.apk
-rw-rw---- 1 root everybody   124926 2023-08-16 10:39 config.xhdpi.apk
-rw-r----- 1 root root        184729 2023-08-16 10:39 config.zh.apk
:/data/local/tmp # pm install *apk
Success

(Without moving to the temp dir, pm install told me that it couldn't access the file. Note that I can install other apps using Obtainium just fine. I'm not sure if maybe all xapk apps fail, though.)

ArnoldSmith86 avatar Aug 16 '23 08:08 ArnoldSmith86

Screenshot_20230916_224901.jpg

zen0bit avatar Sep 16 '23 22:09 zen0bit

@zen0bit That is caused by using a link with the mobile subdomain m.apkpure.com It should just be apkpure.com #543

1xFF avatar Sep 17 '23 03:09 1xFF

When I'm using the link without subdomain m, I get not found message when I want to add the app

YOGIAOGI avatar Sep 22 '23 13:09 YOGIAOGI

What's the full link you're trying to add?

1xFF avatar Sep 23 '23 20:09 1xFF

That's the link.

https://apkpure.com/pl/douyin/com.ss.android.ugc.aweme

I found out that, when I tried to add call of duty warzone mobile, it worked, but download process was stuck at 0%

YOGIAOGI avatar Sep 23 '23 21:09 YOGIAOGI

It's the /pl/ - will fix in the next release (not the main issue though).

ImranR98 avatar Sep 23 '23 21:09 ImranR98

This got a lot better with recent releases BTW. I don't get errors anymore but every now and then an update renders an app useless. It's still installed but apparently missing some of its split apks. It's still installed but usually doesn't get past its splash screen.

Most of the time updates work fine now though.

ArnoldSmith86 avatar Dec 30 '23 01:12 ArnoldSmith86

This got a lot better with recent releases BTW. I don't get errors anymore but every now and then an update renders an app useless. It's still installed but apparently missing some of its split apks. It's still installed but usually doesn't get past its splash screen.

Most of the time updates work fine now though.

I noticed that this happens because APKPure usually distributes an APK or XAPK, and when a XAPK is uploaded, Obtanium won't be able to install the app correctly. This issue has been open for a lot of time, is this going to get fixed or there is no known solution?

BitSleek avatar Dec 30 '23 11:12 BitSleek

https://apkpure.com/discord-talk-chat-hang-out/com.discord 210.10 broke my app again.

Fixed by manually downloading apk from https://www.apkmirror.com/apk/discord-inc/discord-chat-for-gamers/discord-chat-for-gamers-210-10-stable-release/discord-talk-chat-hang-out-210-10-stable-android-apk-download/ (apkpure.com seems to be down) to /data/local/tmp and using pm install:

:/data/local/tmp # unzip /sdcard/Download/com.discord_210.10_-_Stable-210010_4arch_4dpi_20lang_4dd1f8eb07d9593d231c151823f28841_apk>
Archive:  /sdcard/Download/com.discord_210.10_-_Stable-210010_4arch_4dpi_20lang_4dd1f8eb07d9593d231c151823f28841_apkmirror.com.apkm
  inflating: split_config.en.apk
  [...]
  inflating: split_config.arm64_v8a.apk
:/data/local/tmp # ls -l
total 295916
-rw-r--r-- 1 root root       58 2024-01-05 13:56 APKM_installer.url
drwxr-xr-x 2 root root     4096 2024-01-05 13:56 META-INF
-rw-r--r-- 1 root root 63800600 2024-01-05 13:56 base.apk
-rw-r--r-- 1 root root     7656 2024-01-05 13:54 discord
-rw-r--r-- 1 root root     8976 2024-01-05 13:56 icon.png
-rw-r--r-- 1 root root     1107 2024-01-05 13:56 info.json
-rw-r--r-- 1 root root    29081 2024-01-05 13:56 split_config.ar.apk
-rw-r--r-- 1 root root 48818414 2024-01-05 13:56 split_config.arm64_v8a.apk
-rw-r--r-- 1 root root 34359684 2024-01-05 13:56 split_config.armeabi_v7a.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.bn.apk
-rw-r--r-- 1 root root    29081 2024-01-05 13:56 split_config.de.apk
-rw-r--r-- 1 root root    49561 2024-01-05 13:56 split_config.en.apk
-rw-r--r-- 1 root root    37273 2024-01-05 13:56 split_config.es.apk
-rw-r--r-- 1 root root    37273 2024-01-05 13:56 split_config.fr.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.gu.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.hi.apk
-rw-r--r-- 1 root root    29081 2024-01-05 13:56 split_config.in.apk
-rw-r--r-- 1 root root    29081 2024-01-05 13:56 split_config.it.apk
-rw-r--r-- 1 root root    29081 2024-01-05 13:56 split_config.ja.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.kn.apk
-rw-r--r-- 1 root root  9052915 2024-01-05 13:56 split_config.mdpi.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.mr.apk
-rw-r--r-- 1 root root    29081 2024-01-05 13:56 split_config.ms.apk
-rw-r--r-- 1 root root    29081 2024-01-05 13:56 split_config.nl.apk
-rw-r--r-- 1 root root    37273 2024-01-05 13:56 split_config.pt.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.ru.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.ta.apk
-rw-r--r-- 1 root root    33177 2024-01-05 13:56 split_config.te.apk
-rw-r--r-- 1 root root 51832620 2024-01-05 13:56 split_config.x86.apk
-rw-r--r-- 1 root root 54024205 2024-01-05 13:56 split_config.x86_64.apk
-rw-r--r-- 1 root root 10245096 2024-01-05 13:56 split_config.xhdpi.apk
-rw-r--r-- 1 root root 14907795 2024-01-05 13:56 split_config.xxhdpi.apk
-rw-r--r-- 1 root root 15034840 2024-01-05 13:56 split_config.xxxhdpi.apk
-rw-r--r-- 1 root root    45465 2024-01-05 13:56 split_config.zh.apk
:/data/local/tmp # rm split_config.armeabi_v7a.apk split_config.x86.apk split_config.x86_64.apk
:/data/local/tmp # pm install *apk
Success

ArnoldSmith86 avatar Jan 04 '24 18:01 ArnoldSmith86

Can confirm, trying to install the MediaMarkt Deutschland and Saturn apps, crash immediately on start..

AGuyNamedJens avatar Aug 01 '24 08:08 AGuyNamedJens

I tried with a few apps with apks format and even on different devices and it doesn't work for any such app. It always says "unable to parse apk (incompatible or partial download)". For example, https://apkpure.net/de/netflix/com.netflix.mediaclient .

Screenshot_20240901-121835_Obtainium

Senliast avatar Sep 01 '24 10:09 Senliast

And when installing APKs from uptodown for example, the same happens. So i think Obtainium has generally a problem with installing APKs / XAPK.

Senliast avatar Sep 01 '24 10:09 Senliast