Sorry for delay, sent
Had the same problem with the permssions but I donât use KIO4Install
my solution for direct downloading and installing:
- install APK Editor Studio
- open (decompile) your apk
- goto Open Contents
- find your AndroidManifest.xml and open it with your favourite editor
- add
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
underneath the other permissions - add android:requestLegacyExternalStorage=âtrueâ to the application tag
- change to Target SDK 28 or 29 in the Manifest window
- save your apk
Thatâs what worked on my problem, now I can download AND install new updates on my Android 10 device. BTW, I donât upload to Play Store.
It only works with default package name
I have updated the com.KIO4_install_v2.aix version, it works for me on Android 9.
In Android 10 I have not tested it.
You can download and try com.KIO4_install_v2.aix from:
http://kio4.com/appinventor/244_extension_instalar_app.htm
Instead of provide 2 extensions⌠Why dont you create just one extension and make there android version checks?
It would be much easier for people to use then your extension.
Ty and after completing the download do you use the activity starter to start the installation?
yes, as described here https://community.appybuilder.com/t/how-to-make-app-a-trusted-source-to-allow-app-installs-w-api26/17424/17
i am very new here .
how do i setup for scoped storage for android 10 and eventually 11
can a link be added this has to have been asked
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.
It is com.KIO4_Install_v3.aix
http://kio4.com/appinventor/244_extension_instalar_app.htm
Edit: goto message 34
@vardandevelopersassociati I moved your anwer into the correct threadâŚ
did you use the latest version 3 of the extension, see here?
Taifun
@gleminem1 @vardandevelopersassociati
Are you using your own package name as the error message in the image looks familiar.
If so try with default package name
i have changed my custom package name ,if i change again it to default i will find other issue
I Tested This Latest Version V3
Itâs working on
Realme 5 Pro Android 10
Huawei Nova 3i Android 9.1
Updated
Infinix Smart 4 Android 9.0
Huawei P8Lite Android 5.0.1
Yes, I confirm.
@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)
So check this especially on Android 9 and 10.
Try adding GRANT_READ_URI_PERMISSION
flag to intent.
Yess, It worked Finally
Install Sucessful Both in assets and downloaded.
Problem in deleting file. Says file dosenât exist.
Checked in Android 10