Reputation: 4567
How can you programmatically exit the daydream mode?
It seems that daydream apps run as a modified service: http://developer.android.com/reference/android/service/dreams/DreamService.html So would I need to implement task killing like functionality or can I use some intent?
Thanks in advance.
Upvotes: 1
Views: 1273
Reputation: 6564
If the service is owned by someone else i.e running with another Linux User ID (and hence on a difference Linux process), then i am afraid you can't terminate it unless you have root permission. Remember: Android system implements the principle of least privilege
. So, you can't touch someone else's service component. Having said that, if you do have root permission, then you can kill any service if you could somehow figure out it's process id.
Sorry can't be of much help than this :)
Upvotes: 1