public class LogUtils {
/**
* @param context
* @return
* @author zhouqiang
* @date 2016-8-3
*/
public static boolean isApkDebugable(Context context) {
try {
ApplicationInfo info= context.getApplicationInfo();
return (info.flags&ApplicationInfo.FLAG_DEBUGGABLE)!=0;
} catch (Exception e) {
}
return false;
}
}
//———————————————————————–
在application 中 debuggable属性可以强制定义debug状态