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

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

View File

@@ -69,8 +69,8 @@ android {
official {
flavorDimensions "default"
versionCode 99
versionName "3.5.8"
versionCode 100
versionName "3.5.9"
applicationId "com.fuying.sn"
buildConfigField "String", "ROOT_URL", '"https://as.fuyingy.com/android/"'

View File

@@ -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;