mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +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.
|
* @param context The context for operations.
|
||||||
* @return Returns the markdown {@link String}.
|
* @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);
|
Context termuxPackageContext = TermuxUtils.getTermuxPackageContext(context);
|
||||||
if (termuxPackageContext == null) return null;
|
if (termuxPackageContext == null) return null;
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ public class TermuxFileUtils {
|
|||||||
StringBuilder statScript = new StringBuilder();
|
StringBuilder statScript = new StringBuilder();
|
||||||
statScript
|
statScript
|
||||||
.append("echo 'ls info:'\n")
|
.append("echo 'ls info:'\n")
|
||||||
.append("/system/bin/ls -lhd")
|
.append("/system/bin/ls -lhdZ")
|
||||||
.append(" '/data/data'")
|
.append(" '/data/data'")
|
||||||
.append(" '/data/user/0'")
|
.append(" '/data/user/0'")
|
||||||
.append(" '" + TermuxConstants.TERMUX_INTERNAL_PRIVATE_APP_DATA_DIR_PATH + "'")
|
.append(" '" + TermuxConstants.TERMUX_INTERNAL_PRIVATE_APP_DATA_DIR_PATH + "'")
|
||||||
|
@@ -368,7 +368,7 @@ public class TermuxUtils {
|
|||||||
* @return Returns the markdown {@link String}.
|
* @return Returns the markdown {@link String}.
|
||||||
*/
|
*/
|
||||||
public static String getTermuxDebugMarkdownString(@NonNull final Context context) {
|
public static String getTermuxDebugMarkdownString(@NonNull final Context context) {
|
||||||
String statInfo = TermuxFileUtils.getTermuxFilesDirStatMarkdownString(context);
|
String statInfo = TermuxFileUtils.getTermuxFilesStatMarkdownString(context);
|
||||||
String logcatInfo = getLogcatDumpMarkdownString(context);
|
String logcatInfo = getLogcatDumpMarkdownString(context);
|
||||||
|
|
||||||
if (statInfo != null && logcatInfo != null)
|
if (statInfo != null && logcatInfo != null)
|
||||||
|
Reference in New Issue
Block a user