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.53k stars 147 forks source link

Android 10 GApps has permission problems when installing some applications/games with OBBs #31

Open KingWaffleIII opened 2 years ago

KingWaffleIII commented 2 years ago

Due to a new feature in Android 11, applications must request full file permissions to install apps/games with OBBs. However, Play Store, which installed with the script, is intended for Android 10 and thus, doesn't request these new permissions. This version of Play Store works fine for applications without OBBs but when it tries to install apps that do, the download stops mid-way and reports "Can't download [APPNAME]":

image

Android 11 GApps are required to install these applications. The following image shows that on Android 11, there is separate permission for media and full file access. Google Play Store doesn't have access to the latter.

image

(Alchemy Stars here was installed with a third-party app store that did request full file permissions.)

KingWaffleIII commented 2 years ago

I think it would be best to have sources for both versions since Android 10 is still the official image given by Waydroid. Perhaps you could specify the needed version with a flag?

sudo python waydroid_script.py -g --android-ver 11?

casualsnek commented 2 years ago

We can automatically detect if image is android 10 or 11 by checking the init.rc path, or reading props :)

tg5hKVHPyX commented 2 years ago

It works for me on my android 10 phone using aurora store to install and update games with OBB. Have you tried using that?

KingWaffleIII commented 2 years ago

It works for me on my android 10 phone using aurora store to install and update games with OBB. Have you tried using that?

Android 10 should work fine in theory. The problem is Android 10 does not support ARM translation to x86, but Android 11 does. Android 10 does not support using apps and playing games that were built for ARM on an x86 machine, but Android 11 does. And it is Android 11 has this permission issue. So unfortunately, I cannot use Android 10.

KingWaffleIII commented 2 years ago

Any updates on this?

casualsnek commented 2 years ago

Any updates on this?

Not really, i was (am) quite busy on my college stuff for a few days, maybe i will work on it after ~2days !

KingWaffleIII commented 2 years ago

Any updates on this?

Not really, i was (am) quite busy on my college stuff for a few days, maybe i will work on it after ~2days !

Alright, it's no problem. Please take your time - I apologise for rushing you.