Skip to content

Commit

Permalink
Changed: Add selinux context info to termux files info of debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
agnostic-apollo committed Aug 23, 2021
1 parent f65f384 commit f97f07d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 + "'")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f97f07d

Please sign in to comment.