Skrooge
Rookie
Hey there! I'm pretty new to modding (only a few hours in). It's not as difficult as I expected it to be for the most part. The only part I'm struggling with is handling the smali files (for copying overlay menu UI and logic into an apk)
To start out simple I made a very simple program that closes the app after some time, so I know it works:

But I'm stuck on how to get the .smali files and .so to run. I believe I'm supposed to change some code in the main activity smali file (UnityPlayerActivity.smali) to invoke the smali class into running the code shown above. (I think the 2 main files I need to copy are MainActivity.smali and MainActivity$$ExternalSyntheticLambda0.smali. Not 100% sure yet I'll look into it)
It's probably a lot easier than I think and some help would be nice! This is the most difficult part for me because I've never hooked things before, but once I learn how to hook things properly; making an overlay with functionality will be much easier.
I don't think I need to change the manifest for this since the main activity will run it anyways. I'm asking for some help because most tutorials use a pre-made mod menu which makes things a bit more confusing in my opinion. Starting out with an extremely simple debug injection is much easier.
Another small thing I want to know, should I use Kotlin or Java? Most mod menus use Java, but both compile the same way it seems, so I don't think it matters much.
To start out simple I made a very simple program that closes the app after some time, so I know it works:

But I'm stuck on how to get the .smali files and .so to run. I believe I'm supposed to change some code in the main activity smali file (UnityPlayerActivity.smali) to invoke the smali class into running the code shown above. (I think the 2 main files I need to copy are MainActivity.smali and MainActivity$$ExternalSyntheticLambda0.smali. Not 100% sure yet I'll look into it)
It's probably a lot easier than I think and some help would be nice! This is the most difficult part for me because I've never hooked things before, but once I learn how to hook things properly; making an overlay with functionality will be much easier.
I don't think I need to change the manifest for this since the main activity will run it anyways. I'm asking for some help because most tutorials use a pre-made mod menu which makes things a bit more confusing in my opinion. Starting out with an extremely simple debug injection is much easier.
Another small thing I want to know, should I use Kotlin or Java? Most mod menus use Java, but both compile the same way it seems, so I don't think it matters much.

