APKInstaller Extension

Using the APK Installer Extension

  1. Call the APK Installer Function
  • In the blocks editor, use the "call APKInstaller" block and provide the file path of the APK you want to install. This could be a path on your device, such as "/sdcard/filename.apk".

Permissions and File Path Important Notes

  • Permissions:

    • Ensure that your Android device allows the installation of apps from unknown sources. You can adjust this setting in your device's security or privacy settings.
  • File Path:

    • Double-check the file path you provide to the APK Installer. Make sure it points to the correct location of the APK file on your device.

Block:

Screenshot_2024-03-09_142817-removebg-preview

Unlock the full potential of the APK Installer extension with these seamless steps to effortlessly install APKs on your Android device. As the mastermind behind this ingenious tool, I've designed it with both developers and users in mind, ensuring a straightforward and efficient installation process.

Thank you! :rocket:

Download

com.riad.apkinstaller.aix (48.0 KB)

5 Likes

Nice work. Demo aia or video will be appreciated.

2 Likes

There are a number of problems with this simple extension:

  1. It doesn't work with Companion either because
    android.permission.REQUEST_INSTALL_PACKAGES
    is not declared in the companion app Manifest.

  2. The dangerous permission android.permission.REQUEST_INSTALL_PACKAGES is generally not permitted by Google in the Play Store (see here).

  3. If the APK is not to be installed from the ASD, on Android < 11 READ_EXTERNAL_STORAGE must be declared in the Manifest and ideally requested automatically by the app (extension). Both is not the case.

  4. On Android ≥ 11, non-media files not created by the app itself can no longer be accessed without using SAF.

So it should only work, if at all, if an APK is to be installed from the ASD. And at least one extension already exists for this.

3 Likes

Nice work. @Riad_Developer

1 Like