Download an APK to App-Specific Directory (ASD) and install it without permissions

That depends on how you use the extension. If you use the Download component, the permission will be requested automatically. If you put the APK in the assets (and copy it to ASD), no permission is required at all.

2 Likes

See here:

1 Like

Here is an APK for testing with 2 methods: installAPK.apk (5.1 MB)

  1. download via extension to ASD (no WRITE permission)
  2. download via Web component to ASD (needs WRITE perm.)

You can set your own download URL and apkName (e.g.: myApp.apk).

Blocks

1 Like

Here is an new version of the extension.
I added a Download method (thanks to @vknow360 for support!) with that you can download an APK (or whatever file you like) to the App-Specific Directory (ASD) and install it (without WRITE / READ permissions):
de.bodymindpower.InstallAPK.aix (9.0 KB)

I also followed the naming conventions, which @Taifun pointed out.

grafik

Example:

2 Likes

keep up the good work!

Excellent!

thank you…
please also edit your first post in this thread and replace your old version with the new one…

Taifun

1 Like

Ok, but as I said, it is not an update, but a new version because the package name has been changed.

1 Like

Any difference between both? :sweat_smile:

Yes, I changed the packageName (→ …InstallAPK.aix):

and see above:

So it is not an update, but a new version.

1 Like

I am noob
Will it ask for permission request install package

From what to what?

For me:
When we release new version , we update older one or we update when we release new version. :slightly_smiling_face:

1 Like

You may have to allow to “install unknown apps from this source”:

grafik

Yes, you’re actually right. But if I delete the old version and replace it with the new one, users may be confused because they assume that the new version updates the old one (which is not possible because of the new packageName).

1 Like

please add the apk size and download progress in a control block

like firebase storage upload feature

@bodymindpower How we will check if the download is completed or not?? So we could run a function like install apk after the download is complete

You can see when the download is finished at the top:

grafik

and you can also use these blocks:

2 Likes

moving msg from private msg to forum since thread has reopened .


if i do a simple thing like this
blocks

the url is a apk compiled url you get from kodular when you click export apk in kodular .
so you may need to create another to test as they expire

but this is the error i get

i have a galaxy s9 plus running android 10

Hi! I have an issue with this extension. When I try to use it I have the following error message:

Runtime error
Failed resolution of: Landroid/support/v4/content/FileProvider;

I have the same issue running in Android 7, Android 8 and Android 9.

Thanks to who can help me.

Regards, Sebastián