From f97f07df3f89aeb3c0d05a0141416d1c2ca835d7 Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Mon, 23 Aug 2021 21:51:43 +0500 Subject: [PATCH] Changed: Add selinux context info to termux files info of debug output --- .../src/main/java/com/termux/shared/file/TermuxFileUtils.java | 4 ++-- .../src/main/java/com/termux/shared/termux/TermuxUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/termux-shared/src/main/java/com/termux/shared/file/TermuxFileUtils.java b/termux-shared/src/main/java/com/termux/shared/file/TermuxFileUtils.java index f7df0b9d19..67d5e4e8f4 100644 --- a/termux-shared/src/main/java/com/termux/shared/file/TermuxFileUtils.java +++ b/termux-shared/src/main/java/com/termux/shared/file/TermuxFileUtils.java @@ -230,7 +230,7 @@ public static Error isTermuxFilesDirectoryAccessible(@NonNull final Context cont * @param context The context for operations. * @return Returns the markdown {@link String}. */ - public static String getTermuxFilesDirStatMarkdownString(@NonNull final Context context) { + public static String getTermuxFilesStatMarkdownString(@NonNull final Context context) { Context termuxPackageContext = TermuxUtils.getTermuxPackageContext(context); if (termuxPackageContext == null) return null; @@ -241,7 +241,7 @@ public static String getTermuxFilesDirStatMarkdownString(@NonNull final Context StringBuilder statScript = new StringBuilder(); statScript .append("echo 'ls info:'\n") - .append("/system/bin/ls -lhd") + .append("/system/bin/ls -lhdZ") .append(" '/data/data'") .append(" '/data/user/0'") .append(" '" + TermuxConstants.TERMUX_INTERNAL_PRIVATE_APP_DATA_DIR_PATH + "'") diff --git a/termux-shared/src/main/java/com/termux/shared/termux/TermuxUtils.java b/termux-shared/src/main/java/com/termux/shared/termux/TermuxUtils.java index d401061ad5..62fa7864f7 100644 --- a/termux-shared/src/main/java/com/termux/shared/termux/TermuxUtils.java +++ b/termux-shared/src/main/java/com/termux/shared/termux/TermuxUtils.java @@ -368,7 +368,7 @@ public static String geAPTInfoMarkdownString(@NonNull final Context context) { * @return Returns the markdown {@link String}. */ public static String getTermuxDebugMarkdownString(@NonNull final Context context) { - String statInfo = TermuxFileUtils.getTermuxFilesDirStatMarkdownString(context); + String statInfo = TermuxFileUtils.getTermuxFilesStatMarkdownString(context); String logcatInfo = getLogcatDumpMarkdownString(context); if (statInfo != null && logcatInfo != null)