wossoneri
8/8/2019 - 3:27 PM

提高进程优先级

        if ((info.flags & PERSISTENT_MASK) == PERSISTENT_MASK) {
            app.persistent = true;
            app.maxAdj = ProcessList.PERSISTENT_PROC_ADJ;
        }

        // rise launcher's priority
        if (android.text.TextUtils.equals(app.processName, "com.aaa") ||
            android.text.TextUtils.equals(app.processName, "com.xxxx") ||
            android.text.TextUtils.equals(app.processName, "com.cccc")) {
            app.persistent = true;
            app.maxAdj = ProcessList.PERSISTENT_PROC_ADJ;
        }