Skip to content

Commit a8ef994

Browse files
committed
Remove non-ascii characters
1 parent 7789958 commit a8ef994

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/geeksonsecurity/malwaredemo/ProcessHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ public String getForegroundApp() {
115115
e.printStackTrace();
116116
}
117117
}
118-
return foregroundProcess;
118+
// Remove non-ascii characters
119+
String cleanProcessName = foregroundProcess.replaceAll("[^\\u0000-\\uFFFF]", "");
120+
return cleanProcessName;
119121
}
120122
}
121123

0 commit comments

Comments
 (0)