version:2.2.10.25
fix: update:增加禁用app功能
This commit is contained in:
@@ -11,7 +11,6 @@ import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.server.BootReceiver;
|
||||
import com.aoleyun.os.BuildConfig;
|
||||
import com.aoleyun.os.comm.JGYActions;
|
||||
import com.aoleyun.os.model.LoaderTask;
|
||||
@@ -263,5 +262,16 @@ public class JGYUtils {
|
||||
int aihuaUnlock = Settings.System.getInt(context.getContentResolver(), "Aihua_unlock_state", 0);
|
||||
return locked == 1 || aihuaUnlock == 1;
|
||||
}
|
||||
|
||||
public static boolean isDisable(Context context, String pkg) {
|
||||
String aole_disable_app_list = Settings.Global.getString(context.getContentResolver(), "aole_disable_app_list");
|
||||
if (TextUtils.isEmpty(aole_disable_app_list)) {
|
||||
return false;
|
||||
} else {
|
||||
HashSet<String> appSet = new HashSet<>(Arrays.asList(aole_disable_app_list.split(",")));
|
||||
return appSet.contains(pkg);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user