Prevent User to Uninstall Package

RS
Randy, Saputra Bronze Contributor
PT. SATYA AMARTA PRIMA

Hello everyone,

Back in the days when we used MC Studio to upload APK, we have option to prevent user uninstall the APK, but now since we can straight upload APK to Mobicontrol, i can't find that option anymore.

Anyone know where to check that option if we straight upload APK to Mobicontrol?

Thanks & regards,

Randy Saputra

4 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
4 years ago

As you want one or more options different from the default , you have to use MC Studio as before.

MB
Marcus Breitenthaler Platinum Contributor
4 years ago (edited 4 years ago)

Hi Randy,

are your Device Full Work managed Devices?

You can try in the Profiles the Option - Profile -> Featur Control -> Securety -> "Allow Uninstallation of Managed Applications

" and Deactivate them. Mobi 15.2.6 t works with Wok Managed Devices.
J
JCMOD@SOTI Platinum Contributor
4 years ago (edited 4 years ago)

Hi Randy,

Thank you for posting in SOTI Central.

By default the packages should not be removable, but as suggested by Marcus above. You could potentially allow to uninstall via the "Allow Uninstallation of Managed Applications" Feature Control.

Please mark the relevant post as the solution if the query is resolved. Also, feel free to reach out if you need clarification or have any questions.

Regards,

RS
Randy, Saputra Bronze Contributor
4 years ago

Hi everyone, orry for late reply, i tested the solution, but unfortunately that feature only work for Apps that we installed from Google Play Store. Apps from package still can be deleted.

For now i use Mc Studio to prevent user to delete the apps.

J
JCMOD@SOTI Platinum Contributor
4 years ago

Hi Randy,

I just performed testing and can reproduce the issue, I'll now endeavor to investigate the issue further and reply back here in due course.

Regards,

RS
Randy, Saputra Bronze Contributor
4 years ago

Thanks Support, looking forward to hearing update from you.

Regards,

Randy 

MD
Matt Dermody Diamond Contributor
4 years ago

These are fully managed corporate owned devices? If so, you could restrict the end user access to Settings with a Lockdown profile so that they couldnt even get to the option to delete the apps. 

RC
Raymond Chan Diamond Contributor
4 years ago (edited 4 years ago)

Hi Randy,

On Android-Enterprise running AE device agent v14.2 or later, you can use the script command

    afw_prevent_uninstall   app_bundleID   enable 

to diallow a specific apps deployed with .pcg package from being uninstalled by device end-user.   Please note that this settings can be affected if you toggle the "Disallow-Managed-App-Uninstallation" feature-control option that affects all managed apps.

RS
Randy, Saputra Bronze Contributor
4 years ago (edited 4 years ago)

Hi Raymond,

Yep i tested it already, i tried to uninstall the APK from MC studio, and it can't be uninstall. The apps stand still on the device.

May i know why you suggest me to stick to this method? Some client would be ask for faster method (upload APK directly to Mobicontrol).

Thanks,

Randy Saputra

RC
Raymond Chan Diamond Contributor
4 years ago

Drag-and-drop a single apk directly is faster, but is useful only when no special option, script or file-group/directory-structure is needed.  Until all the rich features offered by MC Studio have been migrated to the web-console interface,  there is always added values provided by this legacy tool except when you are handling the simplest case of one single apk with all default options.

MD
Matt Dermody Diamond Contributor
4 years ago

I'll second what RC said re. capabilities around direct APK uploads relative to the options in Package builder. As a mac user I really hope to see the ability to create more advanced server based packages including scripting and file delivery and other advanced options in future versions of MC. Ad Hoc package creation is much needed. 

J
JCMOD@SOTI Platinum Contributor
4 years ago

Hi Randy,

A quick update regarding this discussion post, I'm waiting on our Product Management Team to clarify an aspect of our API. We introduced an improved API call for v15.3 which includes additional parameters when you upload an APK directly via API.

I will get back to you in due course. Also to reiterate, as explained above there isn't a way at the moment and is expected behavior.

Regards,

RS
Randy, Saputra Bronze Contributor
4 years ago

Hi Support,

Sorry late reply, regarding this, my conclusion :

1. upload APK package from MC Studio

2. if APK uploaded directly to MC, we must send script as Raymond mentioned (afw_prevent_uninstall   app_bundleID   enable)

Hope the feature to disable uninstallation package available in new version of SOTI soon.

Thanks & regards,

Randy Saputra

RS
Rafael Schäfer Diamond Contributor
4 years ago

Hi Randy, 

if you are using google managed playstore, you can upload the apk to the private section and then use the already described feature in feature control profile (uncheck 

Then it should work without MC Studio.

Similar Discussions