feat: 允许应用通知并优化构建配置

This commit is contained in:
tongtong committed 2026-07-31 14:32:29 +08:00
1 parent 5074854c40
commit 268c7365b2
5 files changed
+12 -12

No files matched your search

@@ -650,6 +650,7 @@ public class HomeActivity extends BaseMvvmActivity<HomeViewModel, ActivityHomeBi
AdminManager.getInstance().setSystemBrowserDisabled(false);
AdminManager.getInstance().setMultiWindowDisabled(true);
AdminManager.getInstance().setVoiceAssistantButtonDisabled(true);
AdminManager.getInstance().setAllowAppNotification();
// AdminManager.getInstance().setRestoreFactoryDisabled(true);
AdminManager.getInstance().setDefaultLauncher("com.xwad.os", "com.xwad.os.activity.home.HomeActivity");
@@ -727,7 +728,7 @@ public class HomeActivity extends BaseMvvmActivity<HomeViewModel, ActivityHomeBi
//设置可信任应用列表
AdminManager.getInstance().removeSuperTrustListForHwSystemManger(AdminManager.getInstance().getSuperTrustListForHwSystemManger());
// TODO: 2026/1/13 有闪退但是没有报错信息
AdminManager.getInstance().setSuperTrustListForHwSystemManger(forceAppList);
// AdminManager.getInstance().setSuperTrustListForHwSystemManger(forceAppList);
Log.e(TAG, "setDisallowUninstall: getSuperTrustListForHwSystemManger = " + AdminManager.getInstance().getSuperTrustListForHwSystemManger());
// AdminManager.getInstance().addDisabledDeactivateMdmPackages(forceAppList);
Log.e(TAG, "setDisallowUninstall: getSerial: " + Utils.getSerial(this));
@@ -838,9 +838,9 @@ public class ControlManager {
public void setAppNotify(int status) {
Log.e(TAG, "setAppNotify: " + status);
if (status == 0) {
Log.e(TAG, "setAppNotify: setNotificationDisabled successful= " + AdminManager.getInstance().setDisallowAppNotification());
// Log.e(TAG, "setAppNotify: setNotificationDisabled successful= " + AdminManager.getInstance().setDisallowAppNotification());
} else {
Log.e(TAG, "setAppNotify: setNotificationDisabled successful = " + AdminManager.getInstance().setAllowAppNotification());
// Log.e(TAG, "setAppNotify: setNotificationDisabled successful = " + AdminManager.getInstance().setAllowAppNotification());
}
}
@@ -1818,6 +1818,7 @@ public class AdminManager {
public boolean setAllowAppNotification() {
Log.e(TAG, "setAllowAppNotification: ");
setNotificationDisabled(false);
return removeAllAllowNotificationApps();
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 848 KiB