fix(time): 系统应用直接放行,无需受时间管控

- 在 appCanRun 中优先判断系统应用并返回 true
This commit is contained in:
tongtong committed 2026-08-24 10:48:43 +08:00
1 parent 265108252e
commit 0856c22ce8
2 files changed
+3 -2

No files matched your search

@@ -320,6 +320,7 @@ public class TimeManager {
* @return true 允许运行,false 触发拦截
*/
public boolean appCanRun(String pkg) {
if (ApkUtils.isSystemApp(mContext, pkg)) return true;
if (isPackageExempted(pkg)) return true;
if (mSnTimeControlInfo == null) return false;