[英]Service blocks intents with BOOT_COMPLETED action
While booting, my Presitio phone starts some system service which blocks intents with BOOT_COMPLETED action. 在启动时,我的Presitio手机会启动一些系统服务,该服务会通过BOOT_COMPLETED操作阻止意图。 Logcat contains a lot of messages like
Logcat包含很多消息,例如
I/ActivityManagerAR( 518): remove Intent=Intent { act=android.intent.action.BOOT_COMPLETED flg=0x8000010 (has extras) } receiver=ResolveInfo{26aaaec8 com.idea.backup.smscontacts/.Receiver m=0x108000} for User App
I / ActivityManagerAR(518):删除用户的Intent = Intent {act = android.intent.action.BOOT_COMPLETED flg = 0x8000010(有其他功能)} receiver = ResolveInfo {26aaaec8 com.idea.backup.smscontacts / .Receiver m = 0x108000}应用程式
How could I understand, which service makes these messages? 我怎么知道,哪个服务发出这些消息?
Update. 更新。 Well, it seems some manufacturer's component locks BOOT_COMPLETED.
好吧,似乎有些制造商的组件锁定了BOOT_COMPLETED。 Executing
执行中
am broadcast -a android.intent.action.BOOT_COMPLETED com.company.app
广播-android.intent.action.BOOT_COMPLETED com.company.app
(package name here just for example), goes to messages (此处仅以包名称为例),转到消息
D/ActivityManager( 518): send broadcast: android.intent.action.BOOT_COMPLETED, skip package: com.company.app
D / ActivityManager(518):发送广播:android.intent.action.BOOT_COMPLETED, 跳过包:com.company.app
D/BroadcastQueue( 518): Add broadcastBroadcastRecord{3c6dabd4 u0 android.intent.action.BOOT_COMPLETED} into (background/order), now header = BroadcastRecord{3c6dabd4 u0 android.intent.action.BOOT_COMPLETED}, size = 1
D / BroadcastQueue(518):在(背景/顺序)中添加broadcastBroadcastRecord {3c6dabd4 u0 android.intent.action.BOOT_COMPLETED},现在标头= BroadcastRecord {3c6dabd4 u0 android.intent.action.BOOT_COMPLETED},大小= 1
D/BroadcastQueue( 518): Finished with ordered broadcast BroadcastRecord{3c6dabd4 u0 android.intent.action.BOOT_COMPLETED}, [background], remain = 0
D / BroadcastQueue(518):以有序广播BroadcastRecord {3c6dabd4 u0 android.intent.action.BOOT_COMPLETED}完成,[背景],保持= 0
This is known problem, autostart not works on some models. 这是一个已知的问题,自动启动不适用于某些型号。 There are related posts on SO:
有关SO的相关文章:
Android BOOT_COMPLETED event not starting service Android BOOT_COMPLETED事件未启动服务
Autostart (BOOT_COMPLETED) does not work on the Nomi tablet 自动启动(BOOT_COMPLETED)在Nomi平板电脑上不起作用
I suppose this behavior has relation to Android Device Administration concept. 我想这种行为与Android设备管理的概念有关。
So the actual problem is how to locate and disable that component. 因此,实际的问题是如何找到和禁用该组件。
日志消息似乎是从ActivityManager
生成的(PID = 518)(尽管可能是假的),并且接收者来自com.idea.backup.smscontacts
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.