//判断当前应用是否是debug状态
public static boolean isApkInDebug(Context context) {
try {
ApplicationInfo info = context.getApplicationInfo();
return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
} catch (Exception e) {
return false;
}
}
直接来 代码!
Android 中判断 当前是 debug 还是release
最新推荐文章于 2024-05-15 07:24:14 发布