Jump to content
  • Sky
  • Mint
  • Azure
  • Indigo
  • Blueberry
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Pomegranate
  • Ruby Red
  • Orange
  • Banana
  • Apple
  • Emerald
  • Teal
  • Chocolate
  • Slate
  • Midnight
  • Maastricht
  • Charcoal
  • Matte Black

Android Tutorial How to add a Toast/Popup to your Android Mods!

26 posts in this topic

Recommended Posts


Today I will teach you how to add toasts to your mods :)


What is a toast?

- Toast is a pop-up message that shows your text when you open the game. There are 2 types of toasts, and I'm going to show you how to implement them :)




- Advanced  ApkTool

- Some Knowledge :D


Toast #1

- This toast only shows one line of text





const/4 v0, 0x1

const-string v1, "YOUR MESSAGE @ iOSGods.com"

invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

move-result-object v0

invoke-virtual {v0}, Landroid/widget/Toast;->show()V




Toast #2

- This toast creates a box that can be closed





new-instance v0, Landroid/app/AlertDialog$Builder;

invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

const-string v1, "Information"

invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

move-result-object v0

const-string v1, "YOUR MESSAGE @ www.iOSGods.com"

invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

move-result-object v0

const-string v1, "Visit US!"

const/4 v2, 0x0

invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

move-result-object v0

invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;



1. Download Advanced ApkTool and paste your .APK file inside '2-In' folder

2. Open Advanced ApkTool and type '2' to decompile your .APK file

3. Wait until it fully decompiles

4. The decompiled .APK is located inside '3-Out' folder

5. Go inside that folder and you should see your decompiled .APK in folder form

6. Go inside it and you will find a file named 'AndroidManifest.xml'

7. Open that file and locate to the place where it shows this

 <activity android:configChanges="locale|fontScale|keyboard|keyboardHidden|layoutDirection|mcc|mnc|navigation|orientation|screenLayout|screenSize|touchscreen|uiMode" android:label="@string/icon_label" android:launchMode="singleTop" android:multiprocess="false" android:name="com.gameloft.android.ANMP.GloftA8HM.MainActivity" android:screenOrientation="landscape">
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>

8. If you pay attention above  <action android:name="android.intent.action.MAIN"/> there is 'android:name="com.gameloft.android.ANMP.GloftA8HM.MainActivity" '

9. This is the place where the toast is going to be placed; Toasts are always located inside smali folder, so the folder location will be /smali/com/gameloft/android/ANMP/GloftA8HM/MainActivity.smali

10. So go inside the those folder and you will see 'MainActivity.smali', open that file

11. Now search (CTR+F) for this: onCreate  and you should find something like this '.method public onCreate(Landroid/os/Bundle;)V'

12. Now copy the toast code and paste it under '.locals'  (If you don't paste it under .locals it wont work)

13. Remember the first Toast #1 works for all kind of apps but the second Toast #2 only works for 'MainActivity.smali or [Game]Activity' files.

14. After pasting the code, you can change the message to whatever you want to; Message is located here:  const-string v1, "YOUR MESSAGE @ www.iOSGods.com"

13. Now save the file and head back to Advanced ApkTool and type '3' to recompile your .APK

14. Choose your .APK file (Type the number that shows before the name)

15. Then type '2' to recompile and sign the .APK

16. Wait until its fully recompiled and signed (the box will close)

17. You are done implementing the toast :)


Toast #1: Works for all kinds of games, mostly used in Unity Games

Toast #2: Only works with MainActivity types of games, usually the games that contain binary files




- @ZahirSher

  • Thanks 4
  • Upvote 7
  • Informative 1

Share this post

Link to post
Share on other sites

in case something is missing, you must add these packages to make a poppup toast.

import Android.widget.toast;

Duration of a toast also can be set up using these codes :

  • Upvote 2
  • Informative 1

Share this post

Link to post
Share on other sites

in case something is missing, you must add these packages to make a poppup toast.

import Android.widget.toast;
Duration of a toast also can be set up using these codes :


Thanks! Was looking for what's missing!

Share this post

Link to post
Share on other sites

in case something is missing, you must add these packages to make a poppup toast.

import Android.widget.toast;
Duration of a toast also can be set up using these codes :



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By darksoul
      Now, if you are getting an error after installing and following all the process mentioned above, it is because this game is following some safety net, and also looks for ADB being enabled. So, in a way to run fortnite battle royale, you have to pass the safety net and disable ADB. This is a modded and experimental APK with the Safety Net test skipped – this may mean your account gets banned so be careful! So use any of the throwaway accounts.
      This APK skips the Safety Net check and GPU/RAM check – Be extremely careful with this as it may crash or overheat your device, and your account may get banned   Download This APK doesn’t skip the Safety Net check or GPU/RAM check, so maybe safer: Download
    • By TheArmKing
      I used Virtual Xposed cuz i am on Android Oreo, You can also use other virtual Apps such as Parallel Space
    • By Sterling0x1
      Hidden Content
      React or reply to this topic to see the hidden content. More info
    • By Amyy
      A tutorial on how to hack most online games with WPE Pro. Currently tested with Avabel.
      Proxy Droid
      CCProxy (PC)
      WPE Pro (PC)
      1. Download WPE Pro and CCProxy 7.2 (version is important) to your PC. Google Search will help you find both.
      2. Have your rooted android and download ProxyDroid
      3. Open CCProxy, allow firewall and admin permission
      4. Open WPE Pro AS ADMIN and Attach to CCProxy
      5. On your Android, Open ProxyDroid and input the ip of your pc (local) and port for SOCKS (default is 1080)
      6. Open your game, and when you want to capture packets, press play in WPE, and send the packet (e.g. get hit by somthing or use a skill). You can modify packets in wpe for when they are next sent, you can stop packets from being sent (example the defense packet when u get hit in Avabel) and you can even send the same packet multiple times (e.g. attack packet to hit an enemy without actually doing anything)

      There are lots of possibilities. 
      Have fun hacking!
      Me: working on this with Avabel
      Me: Writing the tutorial
      Me: Finding which version of CCProxy is compatible
      My wife Charlene: Being amazingly beautiful and supportive in every way in almost everything i do and never giving up.
      Disclaimer: I didn't make CCProxy or WPE Pro, they are not my tools.
    • By AndnixSH
      Hello dear community,
      Today, i will teach you how to mod x86 libs. x86 is not that hard to understand because the instruction are almost the same as ARM. In this tutorial, i mod the game called The Sandbox 2.
      You don't really need to mod x86 at all since I never heard any problem with ARM translating to x86, and it's too hard to change instruction without code caving. Just wanna make tutorial lol
      Now let's start modding.
      In this tutorial, I'll show you how to mod The Sandbox Evolution very easy in x86.
      First of all, you need IDA PRO and Hex Workshop installed on your computer. If you already have them installed, go to next step
      Open the APK file with WinRar and extract the lib folder (In case you want to mod both x86 and ARM)
      Open the x86 .so file in IDA. You will see the dialog box similar to the following:

      In x86, you don't need to change anything. MetaPC is fine. Click OK to disassemble the lib file, and let it fully load. After that, press CTRL + F,  search "isElementUnlocked" and double click on the function to open it

      Remember the offset (9869E0) of first instruction. we need to use it later.
      Note: The offset will change each update.

      Open Hex Workshop or other hex editing program, and search the offset. I'm using Hex Workshop

      Here is the offset of isElementUnlocked

      The function isElementUnlocked is a boolean function, which means it can return true or false. If you want unlock everything, replace it with b8 01 00 00 00 c3, which will return true.
      True is:
      b8 01 00 00 00 (mov eax, 1) False is:
      b8 00 00 00 00 (mov eax, 0) And return is:
      c3 (retn)
      When you open the modded .so file in IDA, your modded instruction will look like:

      Isn't that easy?
      You can also do the same on hasBoughtPromoPack to unlock premium
      If you want to hack mana like 9999999, search getManaBalance and giveMana, and replace it with any values you want
      b8 7f 96 98 00 (mov eax, 9999999) c3 (ret) You can use online x86 Assembly to get raw hex
      Open the APK with WinRAR and replace the modded .so file. Re-sign the APK, install it and run the game.
      Tutorial updated (May 2018)
  • Recently Browsing   0 members

    No registered users viewing this page.

    • Administrator |
    • Global Moderator  |
    • Moderator  |
    • ViP Plus |
    • ViP |
    • Cheater  |
    • Modder  |
    • Novice Cheater |
    • Rookie Modder |
    • Contributor |
    • Senior Member |
    • Member |

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.