I have updated the extension, I have not tested it on all versions, but I think it should work on Android, 5, 6, 7, 8 and 9. On Android 10 it doesn’t work.
@juananton1991 This issue is because apps on newer Android versions must use a File Provider in AndroidManifest.xml.
By this error, I’m assuming you’re using intent.setDataAndType(FileProvider.getUriForFile(context, Uri.fromFile(file).getAuthority(), file), "application/vnd.android.package-archive") which I just tried and got the same exact error.
I recommend to switch over to the PackageInstaller since it will work for Android 5+. Although I have tried this already, I didn’t get errors, but the APK didn’t install.
Maybe some would like to test this APK to install an APK (testAPK.apk , 3MB / AI2) (which is in the assets or can be downloaded from Google Drive and is copied into the ASD).
(ASD = app-specific directory) installAPK.apk (7.9 MB)
Because it tries to delete all files (also from the folder /Download). But if you haven’t downloaded from GDrive, this file doesn’t exist. So no problem. Its only to simplify testing.