Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android developing: restrict user to only run and use my application

I'm developing android application for CAR usage and I need that in phone or tablet the driver can only run and use this application: No calling or running other app. Is that possible? If it is not, is there any way to restrict the user for example uninstallaing other apps and disabling the installation system and disabling the calling system?

Thanks in Advance,

like image 557
hamid Avatar asked Jun 17 '12 09:06

hamid


People also ask

Can Android developer set custom permissions to apps?

Apps can define their own custom permissions and request custom permissions from other apps by defining <uses-permission> elements. However, you should carefully assess whether it is necessary for your app to do so.

Can I restrict Android app permissions?

If you have Android 6.0 or later, you'll be able to easily block certain permissions to apps, or edit these permissions later if you change your mind. To block or manage your permissions, go to Settings > Apps > App Permissions. You can then choose “Calendar” or “Camera,” for example, and disable permissions.


1 Answers

I have done a similar app like this, which is in fact an in-cab entertainment system. I have also written a blog post about it, you can check it out here: http://arnab.ch/blog/2012/01/android-auto-updating-homescreen-application/.

This is a complex application and let me list out the relevant items for you:

  1. Your app should be a HomeScreen application (search google for how to create HomeScreen app for Android)
  2. It seems clear that you would have some control over the device, so you can ensure that no additional applications are installed.
  3. The homescreen can be dynamically enabled/disabled, check out KytePhone app to see what I meant. In short you would need some password to exit your HomeScreen app.
  4. If you want to silently uninstall/install any application, then you'd need root access, or you'd have to have a custom Android build where your app will have System privilege (might not be what you're looking for).

I hope I am able to give you some direction, if anything is not clear then let me know.

like image 79
Arnab Avatar answered Sep 27 '22 18:09

Arnab