Changed: Add selinux context info to termux files info of debug output

This commit is contained in:
agnostic-apollo
2021-08-23 21:51:43 +05:00
parent f65f384acf
commit f97f07df3f
2 changed files with 3 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ public class TermuxFileUtils {
* @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 class TermuxFileUtils {
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 + "'")

View File

@@ -368,7 +368,7 @@ public class TermuxUtils {
* @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)