INNER CODE UNIT · Java

exempt

tiann/FreeReflection · library/src/main/java/me/weishu/reflection/BootstrapClass.java:53

    public static boolean exempt(String... methods) {
        if (sVmRuntime == null || setHiddenApiExemptions == null) {
            return false;
        }

        try {
            setHiddenApiExemptions.invoke(sVmRuntime, new Object[]{methods});
            return true;
        } catch (Throwable e) {
            return false;
        }
    }

    /**
     * Make all hidden API exempted.
     *
     * @return true if success.
     */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…