MCPcopy Create free account
hub / github.com/cinit/TMoe / doFindClass

Method doFindClass

app/src/main/java/cc/ioctl/tmoe/util/dex/DexKit.java:101–115  ·  view source on GitHub ↗

Run the dex deobfuscation. This method may take a long time and should only be called in background thread. @param i the dex class index @return the target class object, null if the dex class is not found.

(int i)

Source from the content-addressed store, hash-verified

99 * @return the target class object, null if the dex class is not found.
100 */
101 @Nullable
102 public static Class<?> doFindClass(int i) {
103 Class<?> ret = Initiator.load(getOriginalClassNameForIndex(i));
104 if (ret != null) {
105 return ret;
106 }
107 DexMethodDescriptor m = getMethodDescFromCache(i);
108 if (m == null) {
109 m = doFindMethodDesc(i);
110 }
111 if (m == null) {
112 return null;
113 }
114 return Initiator.load(m.declaringClass);
115 }
116
117 /**
118 * Try to load the obfuscated method from deobfuscation cache. This method does not take much time and may be called

Callers 2

findThemeClassMethod · 0.95
prepareForMethod · 0.95

Calls 4

loadMethod · 0.95
doFindMethodDescMethod · 0.95

Tested by

no test coverage detected