@NonNull
    public Privilege getFrameworkPrivilege() {
        try {
            int value = mService.getFrameworkPrivilege();
            return (value >= 0 && value <= 3) ? Privilege.values()[value + 1] : Privilege.FRAMEWORK_PRIVILEGE_UNKNOWN;
        } catch (RemoteException e) {
            throw new ServiceException(e);
        }
    }
Get the Xposed framework privilege of current implementation.

@return Framework privilege
@throws ServiceException If the service is dead or an error occurred
android/third_party/libxposed/service/src/main/java/io/github/libxposed/service/XposedService.java