There are a number of problems with this simple extension:
-
It doesn't work with Companion either because
android.permission.REQUEST_INSTALL_PACKAGES
is not declared in the companion app Manifest. -
The dangerous permission
android.permission.REQUEST_INSTALL_PACKAGESis generally not permitted by Google in the Play Store (see here). -
If the APK is not to be installed from the ASD, on Android < 11
READ_EXTERNAL_STORAGEmust be declared in the Manifest and ideally requested automatically by the app (extension). Both is not the case. -
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.