Install unknown apps - "allow from this source"

M
MaikStrassmann
KWS SAAT SE

Hi!

A new day, a new question from my side.
We have set the feature control to allow installation from unknown sources.
Now we distribute a self-written app to the devices via the app policy.
However, when we start the app for the first time, we are still asked whether or not we want to allow the installation of unknown apps.

Is there any way to automatically "allow from this source"?

After a little searching in the forum, I had already tested the following commands.

enable_system_app app_name
afw_set_permission_grant_state app_name android.permission.REQUEST_INSTALL_PACKAGES allow
afw_set_permission_grant_state app_name android.permission.INSTALL_PACKAGES allow
afw_set_permission_grant_state app_name android.permission.RESTART_PACKAGES allow

Best regards and have a nice weekend!

3 years ago
SOTI MobiControl
ANSWERS
MD
Matt Dermody Diamond Contributor
3 years ago

Does your app download and install new versions to upgrade itself? If you have a self-written app and you are using SOTI to install app versions you technically don't need that behavior in your app since the EMM can take care of the upgrades for you.

If you still need this behavior however I think you are on the right track with the scripts that you found. Just to confirm before going any further, did you replace the "app_name" with your app's bundle ID/ package name before running those scripts? Also did you run the scripts after your app was installed?

R
Remy
3 years ago

Hi Matt,

Let's not go any further...

Can you perform the "procedure" with net.soti.mobicontrol.androidwork ?