I do not want to launch with root, just as a common Android app, like other. I want to ask the user nicely and after that have the admin access and protection. Kaspersky is able to do it, so others should be able too.
What are the API calls here?
It is using the Device Administration APIs, you can read about it here:
http://developer.android.com/guide/topics/admin/device-admin.html
You can clone this eclipse project :
https://github.com/pedrolobito/DeviceAdminDemo
It's a fully working Android Device Admin App.
Related
Is it possible to use the android facebook API to see what apps (games) your friends are playing and is there a way to use that data for your own application?
To 'monitor' your friends, they need to install your app(on mobile) or/and give you the permission to do so. Also as far as my knowledge goes, there is no such api which tells which all apps a user is using... Not sure though.
Is there a way to enable, disable native android password screen pro-grammatically? I am asking this question because I saw the app SureLock which is capable of enabling and disabling android system password lock programmatically by user interaction without any root privileges. When ever user tries to go into system settings via SureLock app they have enabled native system password screen lock. App also works ics & jb systems without a problem.
Unless is there any alternative ways of implementing similar logic to design custom lock like system password lock.
Thanks.
You can use Device Administration API. There is a sample code comes with SDK. First you have to make sure that your application is run above API 2.2 Go to your SDK folder and then samples and then ApiDemos. You can import that project as a sample project. Then go to com.example.android.apis.app package and see the DeviceAdminSample.java class. That's what you looking for.
I believe you can use the KeyguardService to control that.
https://developer.android.com/reference/android/app/KeyguardManager.html
https://developer.android.com/reference/android/Manifest.permission.html#DISABLE_KEYGUARD
Use Device Admin APIs for Android, you can lock the device, reset and set password restriction also
How can I restrict the android application installed in device using the MDM? Guide me to solve the problem? Thanks in advance.
While I'm not sure what the Mass360 app does under the hood, there is a Device Admin API that became available in 2.2.
http://developer.android.com/guide/topics/admin/device-admin.html
You will either need to write your application with Root permissions enabled, which will allow you to control the device a little more, or you will have to do some trickery to register yourself with the device when applications are launched. I am not even sure if the latter is possible, so I would advise you look down the Root path. I am afraid I cannot post any code samples as I have not done this before.
The Settings on Android provides an option to add VPN manually.
Can this be done programmatically through some kind of an API?
I'm not looking for a way to connect to a VPN. I'm only concerned about configuring a VPN profile.
Please see this answer, it is not possible with the Android SDK.
This is not possible with Android SDK. However, some manufactures like
Motorola have their own flavor of android and in their SDK they have
made it possible.
See also this question -- Create VPN profile on Android. Briefly, we came to the conclusion that it's not only not possible with the Android SDK, but it's not possible even with a hacked SDK unless you have a rooted device (because the VPN profiles are stored via the system KeyStore, so you would need to be running as a system process to add / modify them).
However, there does appear to be a third-party VPN app that at least claims to do this without a rooted device, but it doesn't appear to be open-source and I can't vouch for it (see the comments here: http://code.google.com/p/android/issues/detail?id=8915).
I have developed the Google map application in android using Eclipse and AVD. Is it possible to run the application on device or I need any development certificate to install application on device (just like iPhone).
Kindly guide me so that I can test my application on my device.
You do not need a certificate you need a phone with debugging enabled. Read this article:
http://developer.android.com/guide/developing/device.html
After an successful installation of your app, you might want to read this article:
http://developer.android.com/guide/developing/tools/adb.html
Although you might want to ask at stackoverflow.com for programming related questions.