从Android M nexus 6上的设置启用/禁用权限后,应用程序被杀死 [英] Application is getting killed after enable/disable permissions from settings on Android M nexus 6

查看:439
本文介绍了从Android M nexus 6上的设置启用/禁用权限后,应用程序被杀死的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启用/禁用设置"->应用程序"->我的应用程序"->权限"中的权限后,应用程序将重新启动. Adb可以看到与权限相关的应用操作已更改...,

Application is restarting after enable/disble the permissions from Settings->apps->my app->Permissions. Adb can see Permission related app op changed... ,

08-31 14:30:29.480 I/ActivityManager( 8206): Displayed com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.ManagePermissionsActivity: +392ms

08-31 14:30:29.496 D/OpenGLRenderer(15990): endAllStagingAnimators on 0x9a60bd80 (ListView) with handle 0x97d4c1f0

08-31 14:30:30.477 D/audio_hw_primary( 7972): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2

08-31 14:30:30.522 D/AudioFlinger( 7972): mixer(0xb3ec0000) throttle end: throttle time(5)

08-31 14:30:31.298 I/ActivityManager( 8206): Killing 28808:com.sample.ui/u0a109 (adj 2): Permission related app op changed

推荐答案

如果您在后台运行后台进程或服务,则如果用户撤消了设置的权限,则该进程将重新启动.除非您的活动上下文与服务相关,否则这不会影响您的活动.GoogleIO 2015- https://中的发言人www.youtube.com/watch?v=f17qe9vZ8RM 确实说明了进程重启等.

If you have background process or services running in the background , then if user revokes permission from settings , the process gets restarted. This shouldn't affect your activity unless your activity context is tied to your service.The speaker in Google IO 2015-https://www.youtube.com/watch?v=f17qe9vZ8RM does tell about process restart ,etc....

这篇关于从Android M nexus 6上的设置启用/禁用权限后,应用程序被杀死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆