How to stop an android framework service?

1,176 views
Skip to first unread message

tolemaC

unread,
Mar 25, 2010, 7:47:53 AM3/25/10
to android-platform
Hi,

I want to make changes in some applications at /data/app from an
script launch from "on property:propertyname=value" trigger

When I'm making this changes the PackageManagerService is running and
try to load the changes.

I think that I need to stop PackageManagerService, I can use "service"
command to see the framework services and check the services status,
but I don't found the way to "stop" and "start" these services.

Do you know some way to do it?
Any ideas?

I have try stopping and starting zygote but this restart the framework
and I don't want it.

Thanks in advance.

tolemaC

unread,
Mar 25, 2010, 8:19:09 AM3/25/10
to android-platform
Of course, I have to start the PackageManager service when the changes
has finished.

wls

unread,
Mar 26, 2010, 12:48:32 AM3/26/10
to android-...@googlegroups.com
Because AlarmManagerService holds wake_lock that belongs to
powerManager mechanism. the phone can not go into sleep.
How can I close Alarm Service and related applications that holds the
wakelock ?
i want to help !
thanks in advance!

在 2010-03-25四的 04:47 -0700,tolemaC写道:

wls

unread,
Mar 26, 2010, 12:40:22 AM3/26/10
to android-...@googlegroups.com
I want to close AlarmManagerServer and related app, for example
calendar and alarm and so on, How to do it ?
i try to comment the alarm server in the file
systemserver.java ,but have some troubles.

Do you know some way to do it?
Any ideas?
Thanks in Advance!

在 2010-03-25四的 05:19 -0700,tolemaC写道:

Christopher Tate

unread,
Mar 26, 2010, 8:05:06 PM3/26/10
to android-...@googlegroups.com
You can stop and relaunch the entire Android runtime from adb:

$ adb shell stop
$ adb shell start

--
chris tate
android framework engineer

> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
>
>

Dianne Hackborn

unread,
Mar 26, 2010, 9:24:58 PM3/26/10
to android-...@googlegroups.com
The alarm manager only holds it while sending the alarm broadcast.  Once the app is done (or it takes to long and times out), the alarm manager will receive the result and release the wake lock.

There is no need to make it stop holding the wake lock.  That would actually break the behavior here, which includes a guarantee by the alarm manager that it will keep the device awake for the application to receive the alarm notification.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Reply all
Reply to author
Forward
0 new messages