mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +08:00
Changed: Add selinux context info to termux files info of debug output
This commit is contained in:
@@ -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 + "'")
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user