隐藏桌面apk图标,launcher中有专门的方法shouldShowApp
--- a/sprd/packages/apps/Launcher3/src/com/android/launcher3/AppFilter.java
+++ b/sprd/packages/apps/Launcher3/src/com/android/launcher3/AppFilter.java
@@ -12,6 +12,12 @@ public class AppFilter implements ResourceBasedOverride {
}
public boolean shouldShowApp(ComponentName app) {
- return true;
+ //modify by luoyalong 20210830 for hide apk icon begin
+ if("com.sohu.inputmethod.sogou".equals(app.getPackageName()) || "org.chromium.browser".equals(app.getPackageName())){
+ return false;
+ }else{
+ return true;
+ }
+ //modify by luoyalong 20210830 for hide apk icon end
}
}