Why does Disabled android app has an option "Force Stop"? - android

I see the description of "Disable" and "Force Stop" operations on Android devices for apps as:
Force stop will temporarily stop the app from running in the background. The app will start running again as soon as you open it next time whereas Disable will close the application from the phone and you will not be able to use the application again unless you enable it again from settings
But why do disabled apps have an option "Force Stop"? They should not be running as per above definition and there should be nothing to stop.
That behaviour is even observed after a phone restart.
Moreover, "Force Stop" is not available for all disabled apps.

Related

How to allow periodic SyncAdapter to run when app is in 'force stopped' state

I have created a sample app here: https://github.com/lukewo/AndroidSyncApp
Is there a way to allow the SyncAdapter to run after the app has been put into a force stopped state or is this not possible due to the new limitations android has introduced?
Should I be using the WorkManager instead?
If your app is in "force stopped" state, this implies that the user has manually "force stopped" the app. In this state, Android will not launch the app for any reason. Only the user can launch the app again (manually), returning it to to normal state.
Basically, the user is telling Android that he doesn't want your app running any more unless he explicitly launches it.

Auto run android app fails because reboot disabled all "third party" applications

I can't seem to find anything on this, but I'm trying to get an application to run right away once an android device has finished booting up. the problem is that when i hold the power button, then tap "Reboot", i get a message saying
"Reboot System
Do you wish to reboot the system? This will disable all third party applications you have installed"
So the options are cancel and ok. But I don't want to disable all third party applications because my application should automatically start when the device is rebooted. Does anybody have any idea why this is happening and how i should prevent my application from being disabled on reboot?

How to keep my app service keep running even if app is closed from task manager in MI phone

My app has background service which keep on running even if app is killed from the task manager but when I have tested my app on MI(xiaomi) phone it kills my app service when I close the app from task manager and my service keep on running and work perfectly on all devices except MI even if I kill my app from task manager.
So how to keep my service running in background even when the app is killed from the task manager?
MIUI has a built-in Security app. In the Security app there is a 'Autostart' section, where the user can configure which app can and which app can't run on startup. Your application is disabled default. You need to enable your app and also enable permission manager from permission section.
You should select release build variant from android studio because MI has disabled debugging mode.

Disable or Remove Force Stop in manage applications

Did quite some research but not able to get details on disabling FORCE STOP for the application.
While on GOOGLE play there are some applications like KASPERSKY PARENTAL CONTROL , Quick HEAL etc...who disable Force STOP.
Any clue about how to do this ?
Any help will be useful
Depends on ODM if they has some sort of business agreement they change in Android Setting app code and disable Force Stop button for those packages . Of course it has to pass CTS as well.Well i remember disabling Uninstall button for one app.
If the processor gets eaten up, disabling "Force stop" will mean a user can only uninstall the app from Google Play or Device Settings (only if Device Admin is disabled)to free up running processes as well as potential memory leakage. Mobile security solutions by default will in general adhere to disabling "Force stop" for one good reason - malware could indeed "Force stop" the virus engine, rendering the Android device vulnerable to infection.
Also, if "Force stop" or "uninstall" is disabled the security app will ask for "Device admin" (used mainly in enterprise security) - a user can deactivate Device Administration by > Settings > Security > Device Administration - uncheck box. Once this is done, you can then "Force Stop" or "Uninstall" the app as normal from Settings or the Play Store. :)
For s4 go to setting then slide right to 'more' and then hit 'Application manager' And then slide to see what apps are running or stopped. Simple.. dont need to restore your phone guys. ..

Android: Prevent users from launching apps or using the OS

Is it possible to have an application run on a device in such a way that it is the only application that can ever run and also prevent the user from using the operating system at all? Tapping on the Home key or Back button would not exit the application and allow the user to have access to anything. If the device boots up, only this application would run.
This would be desirable in situations where devices are installed at a business for point of sales purpose or possibly where the device acts like a terminal in public places.
You can achieve what you're describing by writing your app to replace the home screen (Launcher). From there, you control what other apps will run.
The Android SDK has a working Launcher project you can start from.
Be careful to allow some method of running a more powerful app (even if it's just enabling ADB access) -- otherwise you could leave your device in a state of needing a factory reset before it can be modified.
Yes, you can override the back and home button behaviour.
Start app, override all buttons, and the user cant exit the app, evil, but should work in your scenario.
info here

Categories

Resources