MuntashirAkon / AppManager

A full-featured package manager and viewer for Android
https://muntashirakon.github.io/AppManager/
Other
4.36k stars 259 forks source link

Install old apps on Android 14 #1273

Closed Lenni-builder closed 4 months ago

Lenni-builder commented 4 months ago

Please check before submitting an issue

Describe a description of the new feature

You can't install an app with an target SDK lower than 23 on Android 14, both with the stock package installer and App Manager's installer.

Describe the solution you'd like

You might be able to add a workaround to App Manager's installer to allow installation of those older apps, since you can still install old apps through ADB with a special flag (adb install --bypass-low-target-sdk-block app.apk).

Describe alternatives you've considered

No response

Additional context

No response

drogga commented 4 months ago

It would definitely be nice to have some more options for the installer (even a custom command field), I haven't tried recently if it can install testOnly or downgrade with retaining data. In the meantime SAI can be used in Shizuku Mode (or Root - if possible) and that parameter can be added to the "Super Secret Settings" > "Custom install-create command" field. The only downside unfortunately is that it doesn't notify in any way whatsoever when the package installation is actually finished/completed and you have to guess and give it some time and monitor the installed apps the target to show up there. IDT that InstallerX or any other alternative can currently take advantage of this by default or with a toggle.

Edit [18th Jan. 2024] Apparently MT Manager v2.14.5 can now use --bypass-low-target-sdk-block.

MuntashirAkon commented 4 months ago

It would definitely be nice to have some more options for the installer (even a custom command field), I haven't tried recently if it can install testOnly or downgrade with retaining data.

App Manager has added those flags years ago.

App Manager does not yet support Android 14, because there are a lot of internal changes (even Google themselves struggled with this particular release), especially with handling multiple users (the migration was started back in the lollipop days but still isn't finished). New features will be released gradually as I review the new codebase. But first I am interested in fixing the bugs related to API changes.

MuntashirAkon commented 4 months ago

Duplicate of #1124

Lenni-builder commented 4 months ago

@MuntashirAkon #1124 doesn't seem to refer to Android 14 not being able to install old apps any more or did I overlook something?

MuntashirAkon commented 4 months ago

Internally, it's just an installer flag introduced in Android 14. So, it's covered by the mentioned issue. Note that marking an issue as duplicate does not always mean that the issue was created wrongfully. We accept that most people may not have an understanding of the internals of Android or App Manager to figure out whether they should create an issue or comment on an existing one. But I like to keep things tidy in my own way.