Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically install/uninstall an application from within another application

Tags:

android

I am developing an Android device management service.

One of the functions for this is specifying what apps should be installed on registered devices of the service.

The scenario is that a manager will upload an enterprise app to the service for use on his employees' Android devices.

He then asks the service to deploy the app. The service communicates with a pre-installed app on the devices. This app downloads the enterprise app then installs it without any confirmation from the user.

Another requirement of this is that the user is prevented from installing or un-installing applications themselves.

I have been looking at the android.app.admin package but the policy functionality seems limited. I have also discovered that it is possible to donwnload an APK then fire an intent to install it. However this needs confirmation from the user.

In short, is it possible to install an Android application from within another application without any confirmation from the user whatsoever?

like image 328
Nick Avatar asked Apr 13 '11 17:04

Nick


People also ask

How do I remove an app from edge?

Uninstall an app in Microsoft EdgeOpen Microsoft Edge and go to edge://apps. Select Details on the card of the application you wish to uninstall. Scroll down and choose Uninstall. Confirm if you also want to clear data from the associated origin and select Remove.

Why do my apps install randomly?

First of all, open Settings > Security on your Android device. Now under the Security section, turn Off the Unknown sources option which says “Allow installation of apps from unknown sources“. Next, simply tap on the OK button to confirm the changes.

Can users choose to install the app permanently?

In a standard Android user environment, the user doesn't have write access to the /system partition and thus, installing or uninstalling system apps directly isn't possible.


1 Answers

No. Actually, Android is designed to prevent the scenario you're describing. Bunching together several of your bullet points:
* Apps are installed without user interaction
* These apps are chosen not by the device user, but by a remote "manager"
* User has no ability to uninstall said apps
* User has no ability to install any other apps

There's no technical difference between this and malware.

However, there is an alternative, called Google Apps Device Policy for Android, which allows the Administrator to (from the page):

Require that you have a PIN or password on your device.
Require a complex password on your device.
Require a screen lock for idle timeout on your mobile device.
Wipe a lost or stolen device.

Additionally, this application gives you the ability to remotely:
Reset PIN
Ring Device
Lock Device
Locate your device

It also has facilities for remote wiping a device.

like image 75
Alexander Lucas Avatar answered Sep 28 '22 09:09

Alexander Lucas