Killing apps via shell leaves app in status bar? - Android Software/Hacking General [Developers Only]

First, a little about my device and it's intended usage.
I am using a Dell Streak 7 running 2.2 (FroYo), the device has been rooted, no other major mods.
I am using this device as a replacement for my headunit in my car. While I am aware that 2.2 has removed the ability to have "task killer" apps - that is not what I am attempting to do.
I am using Tasker to kill applications via shell using the kill PID command under various conditions (ie, when the car is turned off).
The issue is that if I issue the shell command to kill an application that has a listener service in the task bar (ie Pandora, Sirius, Trapster) the app does shut down but the icon stays in the taskbar and will continue to send and receive data.
Is there a second task to kill? Am I killing the app wrong? Help!

clear cache data and then kill the app maybe not sure!

We talked about this on the tasker group but I'm not sure if anyone ever found a solution, and I don't use it so I never looked into it much. But from what I can tell, killing them that way often acts like pressing the back button. In fact, once I installed Cyanogen 6 which had the "long press the back button to kill apps" feature, it acted exactly the same way. Some apps would respawn but be one screen back from where they were.
Anyway, like I said, I don't know if anyone figured it out, but I always wanted to try killing it 2-3 times in a row to see if that does anything. Other than that, you might look on the tasker google group to see if anyone found a solution. Search for "kill", there have been several threads there.

Thanks! I'll follow that group.

Related

Rooting Cause More Processes to Run?

After rooting my phone and removing the ATT bloatware, I noticed that my Advanced Task Killer (Free) program lists more programs running in the background than before? Lots of programs that never popped up when the phone was stock now are showing up in the Task Killer program as running? Is this right? Did something screw up? If I kill all those processes the only ones that consistently comes back are HandCent SMS and Clock.
I've been noticing the default messaging app and clock open up a lot, and sometimes other apps too, like ESPN ScoreCenter, Facebook, etc. are opening up by themselves. Does anyone have any idea why this is happening?
I've noticed that my GPS kicks on every once in awhile too randomly. Usually when I can tell something's running in the background.
If you turn off Background Data in Settings>Accounts and Sync, it stops it almost in its entirety, but you have to turn it on to access the Market. My guess is it's just the programs collecting or sending data regarding use of the program, or with the clock (and possibly other programs) updating itself.
I can see the logic in that some apps need to update, but I never saw these same apps exhibit this behavior before I rooted. ie) Apps running themselves and showing up in my Advanced Task Killer program and now I have to kill them where before I never knew they were there in the first place. No changes to my phone except root. Are these based on the General Sync Settings options like Background Data or AutoSync? I just don't like the idea of all these apps running when I never started them in the first place.
I think you just didn't see them before... rooting isnt going to make apps randomly start doing things they didnt do before.
This needs to be in the gerenral section as well.
it shouldnt cause more to run :/
Sorry if this post is in the wrong section. But yeah, I know those apps that are popping up now weren't there before. I'm sure I didn't miss seeing them as I have all the settings for Advanced Task Killer program set the same in terms of security levels.
Are you saying that rooting my phone made the apps show up now (as in they were just hidden to the OS/program prior to rooting)?
eh
Well The same thing used to happen to me on my HTC desire so it must just be Android (maybe has to do with the build) or just Android in general. I would get stuff like settings and such in the task managers as well etc, exactly to what you guys are describing. They were not really used or needed programs so ending the tasks was no problem. No clue, but this is not only on this device
And yes my HTC DESIRE was rooted as well
Moved to General.

gps bug?

Dont know if anyone else has noticed this but has happened to me a couple of times now. If I start up an app that uses gps i.e speed test then when I quit out of the app the gps symbol remains in the notification bar flashing. I dont know how to get rid of it and have to reboot my phone. Any ideas guys?
Is it possible that your app is still running in the background even after you quit? Some apps do that.May explain why gps is still running.
Sent from my Nexus S using XDA App
Hi. Yeah thats a possibility and have been thinking it through. Take for instance speed test, it has no exit key so you have to quit out of it by either clicking back or home. Maybe that is where the bug lies and its nothing to do with my nexus.
One other question I have if you could help me out is about multitasking. Say if I hit the home button when an app is running it still runs in the background. How long does it do this for with out resorting to using an task killer or similar?
Cheers
rob77 said:
Dont know if anyone else has noticed this but has happened to me a couple of times now. If I start up an app that uses gps i.e speed test then when I quit out of the app the gps symbol remains in the notification bar flashing. I dont know how to get rid of it and have to reboot my phone. Any ideas guys?
Click to expand...
Click to collapse
This problem is not unique to the Nexus S. I actually haven't seen it on the NS (yet), but I see it routinely on my SGS i9000.
You should be able to easily get rid of it by just turning on and off the GPS with the Power Control Widget. No need to reboot. Turning on and off Location Services in Settings screens for the phone should also do it for you.
Thanks ill try turning it off using the location settings next time it happens. I did try with the widget but when i turned it back on it returned and was still there.
rob77 said:
Hi. Yeah thats a possibility and have been thinking it through. Take for instance speed test, it has no exit key so you have to quit out of it by either clicking back or home. Maybe that is where the bug lies and its nothing to do with my nexus.
One other question I have if you could help me out is about multitasking. Say if I hit the home button when an app is running it still runs in the background. How long does it do this for with out resorting to using an task killer or similar?
Cheers
Click to expand...
Click to collapse
From my VERY limited experience, some apps stop running as soon as you press home screen (e.g. website/forum apps), some you need to specifically exit the app (if there is an exit option), and then there are others that stay running until you force stop it. Seems like it depends on the design (or mis-design) of the app.
You can view what apps are still currently running under Manage Apps. You can also manually stop those processes there if need be.
Hope this helps.
Thanks. I've tried looking under manage apps/running apps before but the task I think the gps bug is coming from is never listed in there. Infact not a great deal gets listed in the standard gingerbread applications settings. Games that I know are still running in the background dont get listed either for some reason.

[Q] Random Restarts - Completely stock..

Hey guys,
Got my phone about 3 weeks ago, and have been reading and debating on which ROM to install. Throughout this time I downloaded my alarm clock, pandora, Zedge, and smart keyboard pro. All this was done day one.
On Sunday while trying to perform a google search, every time i hit the "go" button the browser closed. After the 5th time i restarted the phone. Then I let it get up and running.. great, used it, no problems. Set the phone down, half hour later or so it restarts all on it's own. Great...
Then monday night, I wake up to the phone restarting again, randomly. The bootup sound woke me up. All of a sudden yesterday, the phone reboots all the f***ing time, like 5 times while I was at work. Last night it did it again. This morning while getting ready for work, again, when I was driving to work, again, walking out of the parking lot to my office, I get a text, read the text, put the phone back in my pocket, restarts again!
Anybody know what the hell is going on? I did a google search and this problem seems rare, but it's happening so f***ing much.
There also appears to be no task manager on this Phone stock, whereas any other phone you can hold the Home button and see a list of all running services. (thanks for that retarded call HTC) So I can't tell whats running, or kill apps/services 1 by 1 to see what helps..
I am taking this phone back to the store today, question is, do I replace it with another Inspire, or a different device...
I would replace it with another inspire because at this point at&t doesnt have an android device with the rom support that the inspire/desire has.
GTIVRon said:
Hey guys,
Got my phone about 3 weeks ago, and have been reading and debating on which ROM to install. Throughout this time I downloaded my alarm clock, pandora, Zedge, and smart keyboard pro. All this was done day one.
On Sunday while trying to perform a google search, every time i hit the "go" button the browser closed. After the 5th time i restarted the phone. Then I let it get up and running.. great, used it, no problems. Set the phone down, half hour later or so it restarts all on it's own. Great...
Then monday night, I wake up to the phone restarting again, randomly. The bootup sound woke me up. All of a sudden yesterday, the phone reboots all the f***ing time, like 5 times while I was at work. Last night it did it again. This morning while getting ready for work, again, when I was driving to work, again, walking out of the parking lot to my office, I get a text, read the text, put the phone back in my pocket, restarts again!
Anybody know what the hell is going on? I did a google search and this problem seems rare, but it's happening so f***ing much.
There also appears to be no task manager on this Phone stock, whereas any other phone you can hold the Home button and see a list of all running services. (thanks for that retarded call HTC) So I can't tell whats running, or kill apps/services 1 by 1 to see what helps..
I am taking this phone back to the store today, question is, do I replace it with another Inspire, or a different device...
Click to expand...
Click to collapse
You got a lemon. Get a replacement.
Though I'm not running stock, from what I recall, pressing and holding the home button did pop up the list of tasks. I know it does for me now, running the gingerbread based Rom I'm running atm.
It is also available by pulling down the notification bar.
Like I said, I think you got a bad phone.
Inspired Ace 1.0.1¦ XDA Premium
I will go make an exchange then..
Thanks!
Also, stock, holding the home button and pulling down taskbar thing shows recently used apps. Not a task manager of any kind.
GTIVRon said:
I will go make an exchange then..
Thanks!
Also, stock, holding the home button and pulling down taskbar thing shows recently used apps. Not a task manager of any kind.
Click to expand...
Click to collapse
My understanding of "task manager" type of functionality in Android IS recently used apps. It pops up a list of of the last several things you used. Since Android isn't multi-windowed, that's really all you can do anyway.
If by switching tasks you mean going to another task and having it be in the same state as you left it (ie on the same web page you were looking at in the browser before you switched to another activity), that's dependent on the way you move away from an app... Whether you push the back key (which "closes" down and "resets" the apps state, or if you just push home to select another activity, which keeps the apps state as it exists at the time of switching.
Unless I'm missing something...
Inspired Ace 1.0.1¦ XDA Premium
By task manager i mean, on my captivate, when I held down the home button I got a list of recently used apps, and a button to go into Task Manager, much like CTRL ALT DEL on a computer, then task manager. It showed a list of all currently running processes, both foreground and background, and the option to stop/close any of the services or apps.
GTIVRon said:
By task manager i mean, on my captivate, when I held down the home button I got a list of recently used apps, and a button to go into Task Manager, much like CTRL ALT DEL on a computer, then task manager. It showed a list of all currently running processes, both foreground and background, and the option to stop/close any of the services or apps.
Click to expand...
Click to collapse
Well, I had a captivate, though it's been awhile, and I had forgotten about that.
You can do essentially the same thing though, there's just not a direct button to go to the manage apps area of settings that has the running apps/services list that you're referring to.
My guess is that it could be by design that this button is absent, as for the most part, as it isn't good practice to be killing apps and services in Android as one would in windows.
Removing that direct path to that level of app management eliminates the temptation for common users to be indiscriminately "closing" stuff when it doesn't work the same way on an Android phone as it does on a desktop OS.
I consider myself a power user, but I rarely go to the list of apps for purposes of termination. It's more of a special occasion, when I suspect an app is misbehaving.
Inspired Ace 1.0.1¦ XDA Premium

How to keep Apps running in the Background?

Hi everyone, ever since the update, my apps stop running in the background when I close the app. Example: I don't get Whatsapp notifications anymore unless I open the app and keep it open. If I close all open apps, I will no longer receive any of the notifications for any of them.
I went into the battery settings disabled battery saver mode but that didn't do anything.
I would appreciate any help you could provide.
DominionChamber said:
Hi everyone, ever since the update, my apps stop running in the background when I close the app. Example: I don't get Whatsapp notifications anymore unless I open the app and keep it open. If I close all open apps, I will no longer receive any of the notifications for any of them.
I went into the battery settings disabled battery saver mode but that didn't do anything.
I would appreciate any help you could provide.
Click to expand...
Click to collapse
It's apparently one of the issues with the latest OTA update, where closing all running apps will terminate the background processes associated with the apps closed. Prior to the update and the Close All button being added to the recent apps list, I don't think it had this problem (I don't use Whatsapp, but my Skype and Discord notifications still come through even if I don't have them on my recent apps list).
This is a little frustrating. Noticed that I wasn't getting any notifications from tasker, pushover, textra, hangouts, inbox and etc.
Also noticed that pushover will not update unless it is off of wifi. All my other devices receive notifications on this wifi. IE nothing blocked.
I have had to open all the programs that I want to receive notifications from, open. Not the best work around.
J
I noticed that on occasion there will be small text under the new button that says "long press to set up apps that could run in the background" I do it but it doesn't seem to do anything, maybe free up some of the RAM but that's about it. I'm wondering if there is a bug and if it's supposed to show something.
Has anyone else tried the long press?
As of now all I do is keep a folder on the desktop labeled background apps. It helps big time when I accidentally tap the close all button. But my solution as of now is to keep things open that don't seem to work in the background. I've been experimenting with what works and it seems like in some recent app updates they begin to work without being open. I know for sure that facebook and now facebook messenger work without being open, as well as some google services. I have a memory clearer app that I use when I'm not using my phone so it clears whatever it can without killing the apps. But that's what I have as of now, trial and error to figure out what I need to leave open and what I can close. And I strongly recommend the folder, I have had many times where I accidentally close everything and forget what I had to leave open.
It's a bummer though, I just bought the phone and then this update came out. Kinda kills the excitement of getting a new awesome phone if I have to deal with this frustration :/ Other than that, it's definately a nice step up from a Samsung S4.
Jmoore4 said:
I noticed that on occasion there will be small text under the new button that says "long press to set up apps that could run in the background" I do it but it doesn't seem to do anything, maybe free up some of the RAM but that's about it. I'm wondering if there is a bug and if it's supposed to show something.
Has anyone else tried the long press?
As of now all I do is keep a folder on the desktop labeled background apps. It helps big time when I accidentally tap the close all button. But my solution as of now is to keep things open that don't seem to work in the background. I've been experimenting with what works and it seems like in some recent app updates they begin to work without being open. I know for sure that facebook and now facebook messenger work without being open, as well as some google services. I have a memory clearer app that I use when I'm not using my phone so it clears whatever it can without killing the apps. But that's what I have as of now, trial and error to figure out what I need to leave open and what I can close. And I strongly recommend the folder, I have had many times where I accidentally close everything and forget what I had to leave open.
It's a bummer though, I just bought the phone and then this update came out. Kinda kills the excitement of getting a new awesome phone if I have to deal with this frustration :/ Other than that, it's definately a nice step up from a Samsung S4.
Click to expand...
Click to collapse
does it misbehave after rebooting? or all the time?
sensorsweep said:
does it misbehave after rebooting? or all the time?
Click to expand...
Click to collapse
Misbehave as in not show anything after a long press?
Yes, nothing happens anytime I try it. After reboot, the first time I pull up the running apps is when I get the prompt. After the first long press after a reboot, the prompt is gone. If I have an app open and then I do the long press, I am taken back to the desktop, but no matter what I try, nothing seems to happen after the long press other than being taken back to the desktop if I had an app open.
I have the same issue, I thought it was a Internet connection issue (see my thread) but after digging deeper realised my background apps werent running after closing them and the long press option does nothing.
I have the same problem. Any solution?
MatisasB said:
I have the same problem. Any solution?
Click to expand...
Click to collapse
I've just installed the new update and it looks like the issues I had with background apps closing when clearing all apps has been fixed. I've got no apps running in the foreground yet can see Whatsapp, Fitbit, etc still running and I'm receiving notifications for them.

Question Permissions Issues

I like to stop background data and set battery use to restricted for most of my apps.
I spent about 10 minutes yesterday going through every app and turning off background data and setting the battery use to restricted, but after a reboot, everything is back to default, including apps I've previously enabled to install other apps (Google chrome, mixplorer, sai, etc)
Any ideas?
Here is something that I do to achieve a similar result. I use the app Ice Box to freeze many of my apps that I want to restrict. This temporarily disables them, but keeps their data. This cuts down on battery usage, background CPU/RAM usage, and notifications. Whenever you want to use one of those apps, you can just tap the icebox icon and it will show a panel of all of you frozen apps and you can just tap an app to open it. It does offer the ability to put shortcuts of the frozen apps in your launcher to make it easier to access them.
If you are rooted it is simple to set up. If you are not rooted, you can still use it with ADB permissions (works well with Shuzuku too), but you need to reissue the adb command anytime your phone it rebooted. Shizuku makes this step a bit easier.
synesthete said:
Here is something that I do to achieve a similar result. I use the app Ice Box to freeze many of my apps that I want to restrict. This temporarily disables them, but keeps their data. This cuts down on battery usage, background CPU/RAM usage, and notifications. Whenever you want to use one of those apps, you can just tap the icebox icon and it will show a panel of all of you frozen apps and you can just tap an app to open it. It does offer the ability to put shortcuts of the frozen apps in your launcher to make it easier to access them.
If you are rooted it is simple to set up. If you are not rooted, you can still use it with ADB permissions (works well with Shuzuku too), but you need to reissue the adb command anytime your phone it rebooted. Shizuku makes this step a bit easier.
Click to expand...
Click to collapse
Thanks @synesthete, but my use is different. I've used SDMaid and other apps to freeze apps for years, but that's not what I'm after.
For instance, I don't think Google Chrome needs to have background data when I'm not actively using it. I also think that there's no need for it to have "optimized" battery setting if I only want it running when I want to use it. There are a lot of apps that fall into this category that I'd like to be in control of.
So in short, I want to disable background data and set it's battery use to "restricted", which works right up until I restart my phone.
I hope this isn't some new "intended behavior", that'll suck.
Battery life is part of my concern - apps that are on the "restricted" list don't use as much battery, and I couldn't care less if I get notifications from most of them, but I still want to use them.
Background data is more privacy-concern. I don't think most of my apps need to call home and tell them what I've done in their app since last time it called home. My invoicing program for instance. I need that info synced, but when *I* choose for it to sync, not 14 times in the middle of the night when I'm not using the phone.
Psychlone said:
Thanks @synesthete, but my use is different. I've used SDMaid and other apps to freeze apps for years, but that's not what I'm after.
For instance, I don't think Google Chrome needs to have background data when I'm not actively using it. I also think that there's no need for it to have "optimized" battery setting if I only want it running when I want to use it. There are a lot of apps that fall into this category that I'd like to be in control of.
So in short, I want to disable background data and set it's battery use to "restricted", which works right up until I restart my phone.
I hope this isn't some new "intended behavior", that'll suck.
Battery life is part of my concern - apps that are on the "restricted" list don't use as much battery, and I couldn't care less if I get notifications from most of them, but I still want to use them.
Background data is more privacy-concern. I don't think most of my apps need to call home and tell them what I've done in their app since last time it called home. My invoicing program for instance. I need that info synced, but when *I* choose for it to sync, not 14 times in the middle of the night when I'm not using the phone.
Click to expand...
Click to collapse
Yeah I understand your reasoning and I agree that many apps like that do not need background data or to even run run in the background. I suppose some people use web-apps/PWAs and push notifications in their browsers, but it seems that background data should be an opt-in setting for many apps.
It is very strange that those settings are resetting after reboot. I just tested it out with Chrome and Chrome Beta and the restricted setting survived a reboot.
synesthete said:
Yeah I understand your reasoning and I agree that many apps like that do not need background data or to even run run in the background. I suppose some people use web-apps/PWAs and push notifications in their browsers, but it seems that background data should be an opt-in setting for many apps.
It is very strange that those settings are resetting after reboot. I just tested it out with Chrome and Chrome Beta and the restricted setting survived a reboot.
Click to expand...
Click to collapse
Damn, ok, at least I know there's something wrong with specifically MY setup.
Hopefully someone will chime in with a reason and a fix.
Thank you for checking it out on yours and giving me input!!
I hate to double-post, but it's been a couple days and I was hoping that someone with experience in what my issues is would chime in.
tl;dr the initial post:
I set specific apps to restrict background data and set the battery use to restricted.
After a phone restart, the settings are back to default, including any 'disable over' and other permissions. My changes do not persist after a reboot.

Categories

Resources