public static int getOpResIndex(int op) {
        // [0, 1....ANDROID_LAST, THANOX_BASE, ....]
        // [0, 1....3, 10001,...]
        int resIndex = op;
        if (op >= AppOpsManager._OP_THANOX_BASE) {
            resIndex = resIndex - _OP_THANOX_BASE + AppOpsManager._OP_ANDROID_LAST + 1;
        }
        return resIndex;
    }
Retrieve the permission associated with an operation, or null if there is not one.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/secure/ops/AppOpsManager.java