android - <profileable> 在生产版本中是否安全?

为了使用 https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview,我们需要将 <profileable> 添加到 AndroidManifest。

<profileable
    android:shell="true"
    tools:targetApi="q" />

在生产版本中包含 <profileable> 是否安全?

回答1

为什么不将此清单节点与 debug 源集合并?

也可以将其从 release 源集中删除,效果相同。

这可能无法回答这个问题,但它使它无关紧要。

相似文章

随机推荐

最新文章