top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Cleanly shutdown or kill Android services

0 votes
23 views

I'm looking for the equivalent of a rc0.d script to take down Android in a clean way so that it can be restarted. In my usecase, Android is running within a jailed chroot for reasons I can't go into great detail about. However, I would like the ability to essentially kill all of the Android services and relaunch on command.
I cannot/will not be using the standard Android dialogs for much and don't want to use the power-off dialog or anything.
I have done some searches and they've all lead me to the ShutdownThread.java file which sends the INTENT_SHUTDOWN to stop a couple of services and then either reboots or shuts down the phone. I only want the first part with no action taken on the device itself (not that it would do much in my case anyway)..

posted Jun 25, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Similar Questions
+1 vote

There are some apps out there for android that can improve mobile/tablet performance by killing the applications that run in background. How to do that?

0 votes

Is there a way to postpone a system service (for example Alarm Manager) that are started by system server after the ACTION_BOOT_COMPLETED has been sent?

+3 votes

I want to know if there is a way to some settings to be used by framework services such as ActivityManagerService of WindowManagerService like apps can do with preferences. They should be able to store some of their variables into some persistent storage and read them at bootup.

Currently, I found only the xml files in res/res folder but this is editable only at compile time.

+2 votes

Is there linq or something similar for java to develop apps for android. To get selective entries from database or from a collection? Thanks in advance.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...