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)
| 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. |
no test coverage detected