确定与服务关联的意图过滤器

Determine intent filters associated with a service

我们从 Android 应用程序(所有 class 和方法引用)中删除了一个 SDK 并将其推送到 Play 商店,但忘记从清单中删除它的声明:

    <service android:name="com.radiumone.emitter.location.LocationService"/>

今天我们通过 Crittercism 发生了一次崩溃,但在尝试加载此服务的回归测试中没有发生。我的研究表明,唯一可能发生这种情况的方法是默认导出服务,并且只有在服务包含 intent-filters 时才会发生这种情况。这是真的吗?如果是,我如何找到与服务关联的意图过滤器?我在 AndroidManifest.xml 中找不到任何内容;我还应该看哪里?

Is this true

在未修改的应用程序中,是的。

how do I find the intent-filters associated with a service?

它们将是清单中 <service> 元素的子元素。如果您的元素如问题中所示,则您没有 <intent-filter> 元素,并且您的服务未导出。

I can't find any contained in my AndroidManifest.xml; where else should I look?

没有别的地方可以看。

Today we have one crash through Crittercism that didn't happen in regression testing in which an attempt is made to load this service.

您可能希望提出一个单独的 Stack Overflow 问题,在其中提供有关崩溃的更多详细信息,以尝试获得我们的帮助,以确认您认为其他人正在尝试启动或绑定到您的服务。也许您误解了结果。