【发布时间】:2021-07-03 05:09:08
【问题描述】:
检查清单中的 android 可调试属性是否为真。
<application android:allowBackup="true" android:debuggable="true" >
如何以编程方式获取可调试的属性值?
【问题讨论】:
-
应该类似于
boolean debuggable = (context.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) == ApplicationInfo.FLAG_DEBUGGABLE;。 -
谢谢@MikeM。你的答案是正确的!
标签: java android android-manifest