Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.82k stars 2.99k forks source link

Cannot install java mods on Android #10275

Closed SanekGamer007 closed 1 month ago

SanekGamer007 commented 1 month ago

Platforms

Android

Build

be 25394

Issue

Cannot install any java mod using any method (import from file, github and mod browser all dont work) Android 14 heres screenshot Screenshot_20241018-150740_Mindustry BE worth to mention that logs dont contain anything useful.

Steps to reproduce

Import/Download any java mod.

Mods used

None

Save file

save.zip

(Crash) logs

No response

Submission

Matita008 commented 1 month ago

always add the logs

SanekGamer007 commented 1 month ago

always add the logs

okie dokie - last_log.txt

SanekGamer007 commented 1 month ago

i also have matlog so i can send logs from there if needed (not sure if it contains sensitive information though)

Anuken commented 1 month ago

This is a new "security feature" for Android. Mindustry already tries to work around it, but that seems to be failing on your device. The workaround is functional on my device. There's nothing I can do about it.

SanekGamer007 commented 1 month ago

is it maybe possible to allow the app to use shizuku or root as fallback in case this workaround fails? well atleast latest stable works fine...

Anuken commented 1 month ago

I have no idea what those are or how they would help. They do not sound like something an average user would have access to.

well atleast latest stable works fine...

Because it targets an older SDK, so the security measures don't apply. I cannot continue to use the older SDK target as it makes the app ineligible for app stores (and in the far future, installation).

alexytomi commented 1 month ago

I have no idea what those are or how they would help. They do not sound like something an average user would have access to.

well atleast latest stable works fine...

Because it targets an older SDK, so the security measures don't apply. I cannot continue to use the older SDK target as it makes the app ineligible for app stores (and in the far future, installation).

Shizuku is essentially an API apps can call to get adb permissions. It is available on the play store and fairly simple to setup. Some phones (particularly carrier locked ones) may have adb disabled for their phones however and are unable to use this.

Root is literally just root permissions like in normal linux distros.

Using shizuku as a fallback is likely to be very broken because for some phones, the command to "switch user",run-as, for the appropriate file permissions to work does so strangely and screws up the file permissions of the app, in some cases not allowing the app access to its own data and resources.

Anyone with experience using shizuku and terminal emulators like termux should already be able to grant mindustry proper permissions in that directory anyway, the "fix" being asked is too niche and for that niche, is redundant.

A game that asks for root permission is also extremely suspicious at first glance.

Not to mention these "workarounds" for android's security are intended for app developers, hence are likely to not be consistent.

SanekGamer007 commented 1 month ago

my "fix" was just the first thing that came to my mind also totally agree with alexytomi