简体   繁体   中英

Android exit daydream mode

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.

If the service is owned by someone else ie 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 :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM