Android 10 App Installer with KIO4Install not working

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

2 Likes

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

1 Like

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 :smiley: and after completing the download do you use the activity starter to start the installation?

Tested on Android 10, not working (see the screenshot)

yes, as described here https://community.appybuilder.com/t/how-to-make-app-a-trusted-source-to-allow-app-installs-w-api26/17424/17

1 Like

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

1 Like

not working on android 9

1 Like

blocks - 2020-03-31T123820.504

@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

3 Likes

Yes, I confirm.

1 Like

@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.

Blocks

screenshot

Try adding GRANT_READ_URI_PERMISSION flag to intent.

1 Like

Yess, It worked :tada::heart_eyes::heart_eyes: Finally
Install Sucessful Both in assets and downloaded.
Problem in deleting file. Says file dosen’t exist.

Checked in Android 10

1 Like