Aefyr / SAI

Android split APKs installer
GNU General Public License v3.0
2.48k stars 251 forks source link

Error when opening file from Download manager notification #216

Closed Martin5001 closed 3 years ago

Martin5001 commented 3 years ago

If I download an APK and then tap the Android Download manager notification, it correctly opens SAI but when I tap install, it fails with this error:

com.aefyr.sai.model.filedescriptor.ContentUriFileDescriptor$BadContentProviderException: DISPLAY_NAME column is null at com.aefyr.sai.model.filedescriptor.ContentUriFileDescriptor.name(ContentUriFileDescriptor.java:30) at com.aefyr.sai.model.apksource.DefaultApkSource.getApkLocalPath(DefaultApkSource.java:47) at com.aefyr.sai.model.apksource.FilterApkSource.getApkLocalPath(FilterApkSource.java:60) at com.aefyr.sai.model.apksource.FilterApkSource.nextApk(FilterApkSource.java:28) at com.aefyr.sai.installer2.impl.rootless.RootlessSaiPackageInstaller.install(RootlessSaiPackageInstaller.java:93) at com.aefyr.sai.installer2.impl.rootless.RootlessSaiPackageInstaller.lambda$enqueueSession$0$RootlessSaiPackageInstaller(RootlessSaiPackageInstaller.java:70) at com.aefyr.sai.installer2.impl.rootless.-$$Lambda$RootlessSaiPackageInstaller$ivyAcunEgIkYlu_dB2vN6MOWZPU.run(Unknown Source:6) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:459) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)

Android 9, Samsung Galaxy J7

github-actions[bot] commented 3 years ago

This issue hasn't had any activity for the last 60 days and will be automatically closed in 7 days from now

phanirithvij commented 2 years ago

Others (including me) had this issue too, https://stackoverflow.com/q/70770717/8608146 A possible solution maybe? https://stackoverflow.com/a/70625570/8608146

cc: @Aefyr

LittleFreak commented 1 year ago

Let me guess, you also get a Error popup SAI" "DISPLAY_NAME column is null, when you try to install something with SAI externally, right; but when you select the APK within SAI, it just works fine.?

Then again... This App hasn't been updated since Feb 2021, so I guess its discontinued.