Need help adding a toast message

Sbenny.com is trusted by 1,312,894 happy users since 2014.
Register

Status
Not open for further replies.

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
@Sbenny Tried following this tutorial to add a simple toast message for the first mod I'm uploading but I'm stuck on finding the "/name of the game/smali/com/unity3d/player/" path
Rich (BB code):
toast.png
I had a bit of a problem trying to figure out apktool so I'm kinda braindead at the moment and have no idea where else to look for the 'UnityPlayerNativeActivity.smali' file
 

xyummyx

Droidstein Lv8️⃣
Member for 5 years
1544066387457.png

Open this file in Notepad++ after you decompile it

Search for MAIN then the line above this would be your location.

Usually it would be like this....

1544066537139.png
 

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
Where do I paste the code?

I can't find .method protected onCreate(Landroid/os/Bundle;*) or .prologue
 

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
Yeah I'm going off that one
 

xyummyx

Droidstein Lv8️⃣
Member for 5 years
First you gotta locate the right file, then look for OnCreate then follow step 6
 

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
Where can I locate the correct file?

When I try to find it like in the tutorial it just shows this
 

Attachments

xyummyx

Droidstein Lv8️⃣
Member for 5 years
Go back to my first post. Paste your file location here.
 

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
I'm more brain dead than I thought lmao

What file location do you want me to paste?
 

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
@Sbenny Still having problems finding "UnityPlayerNativeActivity.smali"
 

kryo

APK Fanatic Lv5️⃣
Member for 7 years
you wont find it because your classes.dex is not complete. you would need to dump complete dex. looks like some protection in apk.
 

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
How would I go about getting passed the protection? The app is Cow Evolution by Tapps Games
 

kryo

APK Fanatic Lv5️⃣
Member for 7 years
i will check tonight if i can help
 

kryo

APK Fanatic Lv5️⃣
Member for 7 years
smali is actually complete, your toast location is here Screenshot
 

Timcanpy

Apprentice Lv2️⃣
Member for 5 years
Found it! Thank you so much!
 
Status
Not open for further replies.
Top