1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[TUTORIAL] How to modify .swf file from Android flash games

Discussion in 'Tutorials' started by iAndroHackerDK, Apr 14, 2015.

  1. iAndroHackerDK

    iAndroHackerDK Advanced Member

    Joined:
    Apr 13, 2015
    Messages:
    63
    Likes Received:
    59
    [​IMG]


    Hi guys

    So today i will teach you how to mod .swf file for CSI Hidden Crimesfor Android. The flash games was build with Adobe flash professional and the programming language is C++. You don't need to learn C++. You don't need any programming experience. you just need some basic knowledge to know on how to return a value to 999,999 or any values you want to input. example

    Code:
    public function getgreenCash() : int
    {
    return 999999;
    }
    this code means it return green cash to 999,999 and it never change or reduce.

    Install SWF decompiler
    There are many SWF decompiler softwares on the internet. if you don't know which one, just download and installJPEXS Free Flash Decompiler

    You can download other softwares if you want

    https://www.google.com/search?q=flash+decompile&ie=utf-8&oe=utf-8

    Take out the .APK file from your device
    Download any back APK apps from Playstore that can backup installed APK file on your device. Just backupCSI Hidden CrimesAPK file on your SDcard and transfer it to your computer

    Or you can download the .APK file here:Download APK file

    I used X-plore to copy APK file to my computer on Bluestacks

    [​IMG]


    Open .APK file using Winrar and take out the .SWF file

    You can download .SWF file and skip this step:Download .SWF file
    Right click on the APK file, Click on "Properties"



    [​IMG]

    You will see this window. Click on "Change..."

    [​IMG]

    You will see the window "How do you want to open this type of file (.apk)?". Click on "More options" and click on "Look for another app on this PC"

    [​IMG]
    Go to the path where Winrar is installed and click "Open". Default location isLocal Disk (C:)->Program Files->Winrar

    [​IMG]

    After that, click "OK"

    Open the .APK file -> Open "assets" folder and copy the "HiddenCrimesANdroidProd.swf"file to your computer

    [​IMG]

    Modding .SWF file

    Open the "HiddenCrimesANdroidProd.swf"file and the program will start. Note, i'm usingJPEXS Free Flash Decompilerso i hope this tutorial is also useful for other SWF decompiler softwares. click on "Tools" -> "Text Search"

    [​IMG]

    Search the text "get energyCount", "get coins" or "get greenCash" and click OK.

    [​IMG]

    Let the program decompiling the .SWF file and it should take 15 seconds to finish decompiling (depending on your computer CPU speed). After decompile, you will see this window. Double click on "com.hiddenobject.story.vo.GameProfileVO"

    [​IMG]

    Now you will see the codes. Find the functions named "energyCount", "coins" and "greenCash" and the code should look like this

    Code:
    public function getgreenCash() : int
    {
      returngetAllCurrencyType("GreenCash").value;
    }
    
    public function getcoins() : Number
    {
    returnearnedCoins + boughtCoins;
    }
    
    public functionget energyCount() : int
    {
    return_energyCount;
    }
    
    Click on "Edit" button below.

    [​IMG]

    If you don't have PlayerGlobal library installed in your computer, you will see this message.

    [​IMG]


    [​IMG]

    Click "OK" to download PlayerGlobal library from adobe website or you can download it here:DOWNLOAD PLAYERGLOBAL .swc. After you download it, put the.swcfile into "C:\Users\<your name>\AppData\Roaming\JPEXS\FFDec\flashlib\"

    [​IMG]

    Click on "Edit" button below again, you will see the warning message and click "OK" and now you will be able to edit the code

    Change them all to return 999999; like this. DON'T ever forget the ";" at the end of "999999", otherwise the game won't work.

    Code:
    public function getgreenCash() : int
    {
    return 999999;
    }
    public function getcoins() : Number
    {
    return 999999;
    }
    public function get energyCount() : int
    {
    return 999999;
    }
    
    [​IMG]

    Save the .SWF file

    After you modified the code, click on "Save" button below and the code will be saved.

    [​IMG]

    Now click on "File" -> "Save" and it will save modified codes in .SWF file.

    [​IMG]

    Replace the modded .SWF file inside the .APK file

    Open the.APKfile with Winrar, open "assets" folder and replace modded.SWFfile inside.

    [​IMG]

    Sign the APK file using any APK tools

    Now you have to sign the.APKfile using any APK tools, otherwise the APK won't install on your device.

    I'm using APK-Multi-Tool to sign an.APKfile

    [​IMG]

    Result and proof

    So here is the result. Energy, coins and cash are 999,999

    [​IMG]

    Download modded APK

    You can download the modded APK here



    Credits:
    iAndroHackerDK
     
    biga143, LPH, Pr0GramZ and 2 others like this.
  2. Pr0GramZ

    Pr0GramZ Advanced Member

    Joined:
    Dec 23, 2014
    Messages:
    85
    Likes Received:
    32
    Nice tutorial bro I was going to make some tuts but I just haven't had time with work. Very well done
     
  3. LPH

    LPH Advanced Member

    Joined:
    Feb 15, 2015
    Messages:
    47
    Likes Received:
    36
    Thank you so much! I tried it and it works. Could you name any other games that have .swf files? If so, how can I tell if they do without having to download the apk and finding it?
     
  4. biga143

    biga143 Advanced Member

    Joined:
    Sep 16, 2015
    Messages:
    51
    Likes Received:
    13
    awts this great.. hehehe im going to download only modded whahahaha i love this game, if i play this game to facebook so we are same all 999.999 or just for android only?
     
  5. Kuchiki

    Kuchiki Member

    Joined:
    Oct 22, 2015
    Messages:
    24
    Likes Received:
    4
    Nah, this is so simple..
    I will give it a try and post my mod later.
     
  6. TabsTabs

    TabsTabs New Member

    Joined:
    May 18, 2016
    Messages:
    3
    Likes Received:
    0
    is this work in any android games ?
     
  7. RaReMoDzV7

    RaReMoDzV7 New Member

    Joined:
    Sep 24, 2016
    Messages:
    3
    Likes Received:
    0
    No only with games that have .SWF!
     
Loading...
  • About Us

    Android Republic - Android Game Hacks - Offering only the most advanced and exclusive android hacks, protections like Xigncode are easily bypassed by our team.

    Exclusive Android hacks, android protections cracked, only the best available games, here you will find only the best games such as Kritika, Summoners War, Raven, Dragon Striker, Avabel, Evil Bane, 7knights and seven knights, Darkness Reborn, Soul Seeker all fully hacked and waiting for you! easy xigncode and dxshield bypass too!, way better than alpha gamers or alphagamers no need for booster or root, simple the best android cheat apk available.