from hiddenApiBypass import HiddenApiBypass
jClass = java .lang .Class
jMethod = java .lang .reflect .Method
jField = java .lang .reflect .Field
jConstructor = java .lang .reflect .Constructor
Nullable [T ] = T | None
@noLowSDKSupport = This method doesn 't have fallback for android < 10
newInstance (clazz : jClass , initargs : List [object ]) - > Nullable [object ]
# Calls constructor with provided args and returns the instance
invoke (clazz : jClass , thiz : object , methodName : str , args : List [object ]) - > Nullable [object ]
# Invokes {methodName} method with provided args and returns the result
getDeclaredMethods (clazz : jClass ) - > Nullable [List [jMethod ]]
# Returns all declared methods of class
getDeclaredMethod (clazz : jClass , methodName : str , parameterTypes : List [jClass ]) - > Nullable [jMethod ]
# Returns {methodName} method with provided {parameterTypes}
getDeclaredConstructor (clazz : jClass , parameterTypes : List [jClass ]) - > Nullable [jConstructor ]
# Returns declared constructor with provided {parameterTypes}
@noLowSDKSupport
getInstanceFields (clazz : jClass ) - > Nullable [List [jField ]]
# Returns non-static fields of class
@noLowSDKSupport
getStaticFields (clazz : jClass ) - > Nullable [List [jField ]]
# Returns static fields of class
All methods of HiddenApiBypass is static