fix(time): 系统应用直接放行,无需受时间管控
- 在 appCanRun 中优先判断系统应用并返回 true
This commit is contained in:
@@ -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/"'
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user