How to prevent an application from being uninstalled [duplicate] - android

This question already has answers here:
Uninstallation password
(3 answers)
Closed 9 years ago.
I have requirement in my Project i.e prevent application uninstall using password.is it possible, if yes could you suggest how it is.

May this Help you
I think the closest thing to what your looking for is the Device Administration feature introduced in 2.2.
Once the application is registered as a Device Administrator, it can't be uninstalled unless its unregistered. This will prevent the app from being uninstalled.
While the Device Admin API doesn't allow for password protection of this particular feature, you can password protect your application to prevent someone from tampering with the Device Admin features in the app.
OR:
You can make your application as System Application.. But for that you need to Root your Device first....

No, this is not possible on Android for security reasons.

Related

How to have only one app on an android device? [duplicate]

This question already has answers here:
Kiosk mode in Android
(11 answers)
Closed 7 years ago.
Is there a way to hide all apps installed on the device and make only one app available to the user? In a way that the app automatically starts as soon as the screen is unlocked?
What I basically want to do is to have a device that's dedicated to the use of a single app. Can this somehow be accomplished? What options are available?
Since this app won't be distributed through google play or any other official channel, any even undocumented hacks would be an option. Any advise is welcome.
The only way that I think this can be implemented is by creating an custom launcher and include your app inside that launcher.

How to detect if my app was uninstalled? [duplicate]

This question already has an answer here:
Is it possible to intercept app uninstall?
(1 answer)
Closed 8 years ago.
I understand that this question has been asked a number of times. But I would like to know if I can open a webpage after my app is uninstalled.
Before you say no, Please note that there are some apps like apus launcher which can detect when their app is uninstalled and can open a webpage after uninstall.
Thanks a lot
Not sure about Apus Launcher's uninstall bahavior, but this provides a pretty definitive no to your question...
'The package that is being installed does not receive this Intent.'
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REMOVED
Just installed Apus Launcher, ran it, and then uninstalled it. As I expected, it doesn't put up any webpage after uninstall - I fear you have been misinformed.
(Apus is however doing some clever things, such as placing an overlay around the chooser dialog to encourage you to choose Apus if your system has multiple apps capable of handling a particular intent).
I notice that there are multiple Apus produced apps - if you have multiple of these installed, then it's very possible to write two apps that each detect the other app being uninstalled - but not the case that any one of the apps can detect its own uninstallation.

How to restrict APK not to Uninstall from "Android Devices" [duplicate]

This question already has answers here:
How to prevent an application from being uninstalled?
(2 answers)
Closed 9 years ago.
I have developed Android Application and even I installed into the Devices. But how to prevent the application/apk not to uninstall by the others/user of the Device.
Regards
Anand
You CAN'T.
Until your application is a part of Framework, user of your application can uninstall the app and this is right of user.
Although you can track the uninstallation of app by implementing Device Admin API

Install Apk only once [duplicate]

This question already has an answer here:
To protect the apk
(1 answer)
Closed 9 years ago.
I want to make my android app apk to be install only once and it should not run on other device if it is copied from first device.Is it possible to do this in android?
Thanks in advance.
No, it is not possible. Apps can be installed and removed as many times the users want them to. Also our code comes into control only after our application gets installed. Hence we cannot determine whether we are getting installed or removed.
You don't have any way to do that if you want your user to be able to install the application
A possible workaround would be to test the DeviceID, and allow the app to proceed only if the DeviceID has been authorized.
Obviously you would have to manage this in your code, and that could become quite cumbersome if you need to authorize numerous devices. Plus I am not sure every device has a DeviceID
see Is there a unique Android device ID? for more information about this
and even take a look at licensing
Its not possible in android ,By using application signature you can't install same signature app if a same signature app is already there.but you can't restrict it to getting installed in other devices.
Just think about it. The application doesn't know whether it is installed already or not.
If you are using an web based application, then assign a value to the database after the installation. (This value should only be known by the device inserting the value at database)
So when your application open next time on another device check the value and prohibit the user. This is the way you can block it.

How to install an application on android device that no one can remove it from settings [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is it possible to prevent user from uninstalling application in Android?
Thanks in advance for paying attention on this problem...!!
Is this possible to install an application that no one can uninstall it. I just mean that by going
setting --> Apps --> Manage Applications --> by selecting an app and click on UnInstall.
I want that If I install an application in a device, then no one can uninstall it.
Yes, it's possible. You just have to write/modify your own custom rom. If you're in a large corporation/organization. Your corporation/organization may want to have its own rom for its own employees' company-owned phones.
Or if you're in the consumer space, the other option is to convince a cell phone carrier to make your app a default one (and to prevent the user from uninstalling it). This is not a technical challenge. It's just a commercial one. Be prepared to pay them lots of money to have you installed by default on their phones.
And be prepared for some serious backlash in your ratings in the Google Play/Market. Two years ago, I was incredibly frustrated at having the NASCAR application on my phone, that I couldn't uninstall (despite the fact that I couldn't care less about NASCAR), and of course, I wasn't the only one. The app's rating went down to 1 star because of this and created lots of ill-will towards NASCAR.

Categories

Resources