1.4.0530 修改主页,爱优读隐藏图标,更换壁纸
This commit is contained in:
1 parent
5d19b2abb6
commit
d48b8126c1
5 files changed
+63
-12
No files matched your search
@@ -32,6 +32,7 @@ import android.content.pm.LauncherActivityInfo;
|
||||
import android.content.pm.PackageInstaller;
|
||||
import android.content.pm.PackageInstaller.SessionInfo;
|
||||
import android.content.pm.ShortcutInfo;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.os.Process;
|
||||
import android.os.UserHandle;
|
||||
@@ -266,6 +267,25 @@ public class LoaderTask implements Runnable {
|
||||
this.add("com.android.soundrecorder");
|
||||
}};
|
||||
|
||||
/*爱优读需要隐藏的图标*/
|
||||
private static final HashSet<String> AiudHideApp = new HashSet<String>() {{
|
||||
this.add("com.android.email");
|
||||
this.add("com.android.soundrecorder");
|
||||
this.add("com.android.documentsui");
|
||||
this.add("com.mediatek.camera");
|
||||
this.add("com.aoleyun.browser");
|
||||
this.add("com.android.music");
|
||||
this.add("com.android.fmradio");
|
||||
this.add("com.android.gallery3d");
|
||||
this.add("com.android.calendar");
|
||||
this.add("com.android.calculator2");
|
||||
this.add("com.android.deskclock");
|
||||
this.add("com.android.contacts");
|
||||
this.add("com.android.mms");
|
||||
this.add("com.android.dialer");
|
||||
this.add("com.android.stk");
|
||||
}};
|
||||
|
||||
/**
|
||||
* 系统应用只显示这几个
|
||||
*/
|
||||
@@ -356,7 +376,18 @@ public class LoaderTask implements Runnable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ("Aiud_A8_ag_1095".equals(Build.MODEL)) {
|
||||
if (AiudHideApp.contains(app.getApplicationInfo().packageName)) {
|
||||
continue;
|
||||
}
|
||||
if ("com.aoleyun.sn".equals(app.getApplicationInfo().packageName) && "com.aoleyun.sn.activity.CleanupActivity".equals(app.getComponentName().getClassName())) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Log.e("verifyApplications", "AddApp: " + app.getApplicationInfo().packageName);
|
||||
Log.e("verifyApplications", "AddApp: " + app.getApplicationInfo().classLoaderName);
|
||||
InstallShortcutReceiver.PendingInstallShortcutInfo pendingInstallShortcutInfo = new InstallShortcutReceiver.PendingInstallShortcutInfo(app, context);
|
||||
added.add(pendingInstallShortcutInfo);
|
||||
installQueue.add(pendingInstallShortcutInfo.getItemInfo());
|
||||
|
||||
Reference in new issue
Block a user