新增debug日志控制,方便调出日志用于分析问题

This commit is contained in:
zlzw 2023-03-09 10:26:10 +08:00
parent 0726c5dc1c
commit 88ea48b6ca

View File

@ -150,7 +150,11 @@ public class LogUtil {
public static void shareFile(Context context) { public static void shareFile(Context context) {
if(true){ try {
if (!new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "pdlive.debug").exists()) {
return;
}
} catch (Exception e) {
return; return;
} }
if (PermissionChecker.checkCallingOrSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) { if (PermissionChecker.checkCallingOrSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) {