The call to bypassHiddenAPIReflectionRestrictions() must be made before trying to reflect hidden or non-sdk APIs. Reflection will be used for accessing hidden (@hide) APIs by Termux and its plugins later. https://github.com/LSPosed/AndroidHiddenApiBypass https://developer.android.com/guide/app-compatibility/restrictions-non-sdk-interfaces