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

Method loadClassFromCache

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

Try to load the obfuscated class from deobfuscation cache. This method does not take much time and may be called in main thread. @param i the dex class index @return null if the dex class is not in deobfuscation cache, otherwise the target class object.

(int i)

Source from the content-addressed store, hash-verified

80 * @return null if the dex class is not in deobfuscation cache, otherwise the target class object.
81 */
82 @Nullable
83 public static Class<?> loadClassFromCache(int i) {
84 Class<?> ret = Initiator.load(getOriginalClassNameForIndex(i));
85 if (ret != null) {
86 return ret;
87 }
88 DexMethodDescriptor m = getMethodDescFromCache(i);
89 if (m == null) {
90 return null;
91 }
92 return Initiator.load(m.declaringClass);
93 }
94
95 /**
96 * Run the dex deobfuscation. This method may take a long time and should only be called in background thread.

Callers 2

getThemeClassMethod · 0.95

Calls 3

loadMethod · 0.95

Tested by

no test coverage detected