Skip to content

Commit c5d4b20

Browse files
committed
TerminalShell (Android): ignore proot
1 parent b152b38 commit c5d4b20

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/detection/terminalshell/terminalshell_linux.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ static pid_t getShellInfo(FFShellResult* result, pid_t pid)
5757
ffStrbufEqualS(&result->processName, "flashfetch") ||
5858
ffStrbufContainS(&result->processName, "debug") ||
5959
ffStrbufContainS(&result->processName, "not-found") ||
60+
#ifdef __ANDROID__
61+
ffStrbufEqualS(&result->processName, "proot") ||
62+
#endif
6063
ffStrbufEndsWithS(&result->processName, ".sh")
6164
)
6265
{
@@ -105,6 +108,9 @@ static pid_t getTerminalInfo(FFTerminalResult* result, pid_t pid)
105108
ffStrbufEqualS(&result->processName, "login") ||
106109
ffStrbufEqualS(&result->processName, "clifm") || // https://github.com/leo-arch/clifm/issues/289
107110
ffStrbufEqualS(&result->processName, "chezmoi") || // #762
111+
#ifdef __ANDROID__
112+
ffStrbufEqualS(&result->processName, "proot") ||
113+
#endif
108114
#ifdef __linux__
109115
ffStrbufStartsWithS(&result->processName, "flatpak-") || // #707
110116
#endif

0 commit comments

Comments
 (0)