Access to content of classes
How to get to the methods and attributes of the classes
Last updated
How to get to the methods and attributes of the classes
Last updated
**** NOTE: BLOG MOVED TO https://cmrodriguez.me/ ****
Whenever we work with Java we have four scopes available applicable to a class, method or attribute. The following table shows what each scope means.
+ : accessible blank : not accessible
As an example a private method can only be invoked by the class or instance that owns the method (if it is not static, just by an instance).
The static methods and objects can be used from a Frida script independently of the scope modifier, as shown in the following example:
In order to use the attributes and methods of an instance, we need to create an instance by calling its constructor. Frida acts like in the case of the static methods and attributes:
Class
Package
Subclass (same pkg)
Subclass (diff pkg)
World
public
+
+
+
+
+
protected
+
+
+
+
no modifier
+
+
+
private
+