fedefernandez / MyAppList

Android application for create and view app lists
Apache License 2.0
64 stars 17 forks source link

Error Installing on Pixel 8 Pro #17

Open nikp79 opened 1 year ago

nikp79 commented 1 year ago

Hi, getting a failed install message when trying to install from F-Droid.

On latest Android 14

Screenshot_20231015-074545.png

fedefernandez commented 1 year ago

I'm sorry, but the app is no longer maintained. As I said, I hope someone could provide a better free alternative.

https://github.com/fedefernandez/MyAppList/issues/16#issuecomment-782014193

ildar commented 8 months ago

The error is actually this:

Failure [INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19]

I guess rebuilding for target SDK 23 isn't very hard. Any volunteers?

ptlambert commented 2 months ago

@ildar , @nikp79 ,

The list of behavior changes for Android 14 includes this note regarding a workaround for apps with targetSdkVersion < 23 :

https://developer.android.com/about/versions/14/behavior-changes-all#minimum-target-api-level

If you need to test an app targeting an older API level, use the following ADB command:

adb install --bypass-low-target-sdk-block FILENAME.apk

I just tested this on my phone running crDroid / Android 14 and it worked like a champ! Android will throw up a warning dialog on your phone that you'll need to answer, just click "Install anyway" and this time the installation will not be blocked.

@fedefernandez ,

Thank you for this utility! It's sweet and "simple" but it filled (and still fills) a great need. Hopefully someone can step in and pick up where you left off...

ptlambert commented 2 months ago

My previous success with the ADB install --bypass-low-target-sdk-block option, using the latest Android SDK Platform Tools version "35.0.2 (July 2024)", was on a Redmi Note 8 running the latest version of crDroid 10.7 / Android 14 ...

A few minutes ago I tried the same thing on a Samsung Galaxy Tab S2 running UNOFFICIAL LineageOS 21 / Android 14. On this device I was getting this error:

P:\platform-tools>adb install --bypass-low-target-sdk-block com.projectsexception.myapplist.open_16.apk
Performing Streamed Install
adb: failed to install com.projectsexception.myapplist.open_16.apk: Error: failed to write; splice failed: EINVAL (Invalid argument)

The solution was to disable Streamed Install with the --no-streaming option, like this:

P:\platform-tools>adb install --no-streaming --bypass-low-target-sdk-block com.projectsexception.myapplist.open_16.apk
Performing Push Install
com.projectsexception.myapplist.open_16.apk: 1 file pushed, 0 skipped. 129.9 MB/s (1718886 bytes in 0.013s)
Success

Android will still throw up a warning dialog; just look for the non-obvious "Install anyway" link (practically buried in the middle of that dialog).

Hope this helps!