Skip to content

Commit

Permalink
Small fix about app check and process filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yqs112358 committed Aug 25, 2023
1 parent 959d028 commit 6f723d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.yqs112358.tombedappsmonitor"
minSdk 24
targetSdk 33
versionCode 4
versionName "0.1.3"
versionCode 5
versionName "0.1.4"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ public static Drawable getPackageAppIcon(String packageName) {
.getApplicationIcon(getPackageInfo(packageName).applicationInfo);
}

public static boolean isPackageName(String name) { return allPackageNames.contains(name); }
public static boolean isPackageName(String name) {
return !name.isEmpty() && allPackageNames.contains(name);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ProcessUtils {
= "ps -A | grep -E 'refrigerator|do_freezer|signal'";

// process name ignore list
private static final List<String> ignoreProcessesList = Arrays.asList("sh", "su");
private static final List<String> ignoreProcessesList = Arrays.asList("sh", "su", "ps", "ls", "grep", "bash", "logcat");

// process status map
private static final HashMap<String, ProcessAndAppInfo.Status> processStatusMap
Expand Down

0 comments on commit 6f723d0

Please sign in to comment.