MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / findJavaClass

Function findJavaClass

Il2cppHook/_Ufunc.js:7559–7578  ·  view source on GitHub ↗
(className = "com.unity3d.player.UnityPlayerActivity")

Source from the content-addressed store, hash-verified

7557Object.defineProperty(exports, "__esModule", { value: true });
7558const classLoader_1 = require("./classLoader");
7559const findJavaClass = (className = "com.unity3d.player.UnityPlayerActivity") => {
7560 let boolLoader = true;
7561 Java.perform(() => {
7562 (0, classLoader_1.iterClassLoader)(function (loader) {
7563 if (loader) {
7564 try {
7565 let clazz = loader.loadClass(className);
7566 if (clazz)
7567 boolLoader = false;
7568 Java.choose(className, {
7569 onMatch: function (clazz) {
7570 LOGD('[*] onMatch : \n\t' + clazz.toString() + " at " + loader.toString());
7571 }, onComplete: function () { }
7572 });
7573 }
7574 catch { }
7575 }
7576 }, false);
7577 });
7578};
7579const showAllClassesMethods = () => {
7580 Java.perform(function () {
7581 Java.enumerateLoadedClasses({

Callers

nothing calls this directly

Calls 4

performMethod · 0.80
chooseMethod · 0.80
LOGDFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected