Jump to content
xXL3g3ndXx

A beginner's guide to brave frontier modding with IDA Pro [PICS]

Recommended Posts


 I would need help for non-rooted devices (will test out later) if it is possible to just paste back the libgame.so into the .apk file through WinRaR and installing it. Any experts please help out with this section. If signing of the apk needs to be done, there are tutorials that you can find around here or on google, stay tuned!

For non-rooted devices, the people will have to sign the apk first.

Those are the steps I do when signing the apk.

 

1.All you have to do once you have done what you want with the libgame.so, move it into the apk using WinRAR.

2.Extract the AndroidMulitiool folder into your C:Disk (http://www.mediafire.com/download/7px0d9i51cv5boc/AndroidMultitool_3.3.zip)

3.Copy/ Move the .apk with the modified libgame.so into the files section of the AndroidMultitool (not needed but recommended)

4.Make sure the .apk doesn't have any spaces in the name of it. (Eg: BraveFrontierMod.apk)

5.Go back to the AndroidMultitool folder and run the AndroidMultitool.exe.

6.Go to Signing and click on the ellipses [...] and go to the location of your .apk with the modified libgame.so (C:\AndroidMultitool\Files ; if you moved it to the files section as recommended.)

7.Click sign. 

8.Go to your C:\AndroidMultitools\Signed_apk and you should see name_signed.apk (Eg: BraveFrontierMod_signed.apk)

9.Rename it to whatever you like.

10. Move it to your device, install, and play.

  • Upvote 3

Share this post


Link to post
Share on other sites

Instruction to do nothing is a NOP ( No Operation ) HEX C0 46 or you can put 00 to make a byte not do anything.

 

like this

[ 01 20 ] MOVS R0, #1

[ C0 46 ]NOP

 

or 

[ 01 20 ] MOVS R0, #1

[ 00 00 ]

 

Instead of repeating code or use other weird looking stuff its better to use those two alternatives.

  • Upvote 3

Share this post


Link to post
Share on other sites

Introduction

Starting as a legit player, I have been playing Brave Frontier for around 2 months. After that I got bored of the game and decided what exploits could be done to this game to get more fun out of it. Initially, I leeched off damage hacks and stats of my units. This made the game fun but there was never a mod that gave me exactly what I wanted, thus, I started to learn how to mod the game myself through tutorials.

 

Learning ARM from scratch has been quite a challenge for me even with some programming knowledge. As I have seen motivated people wanting to learn how to mod as well as the lack of tutorials of how to get started, I decided to write this guide to help people out as well as get help from people that will eventually surpass me.

 

While I started from scratch, I have been trying to tinker around with IDA Pro and might use some rather advanced terms, please notify me if you do not understand anything so I can make the tutorial easier to understand.

 

TL;DR

  1. Started Legit
  2. Got bored
  3. Leeched hacks
  4. Hacks not what I want
  5. Learnt to make own mod
  6. Now want to teach others how to mod

Required Tools

·         IDA Pro 6.1

·         HxD

·         WinRaR for extracting the apk file

·         ARM to ASM Converter

 

Optional Tools

Here are some extra files that are good for your reading reference/ modding reference

·         Original 1.1.6 Brave Frontier Global libgame.so

·         Book on ARM

 

the IDA Pro 6.1 link and Original 1.1.6 Brave Frontier Global libgame.so is the same could u fix it please :) 

BTW thanks for your guide

Share this post


Link to post
Share on other sites

For non-rooted devices, the people will have to sign the apk first.

Those are the steps I do when signing the apk.

 

1.All you have to do once you have done what you want with the libgame.so, move it into the apk using WinRAR.

2.Extract the AndroidMulitiool folder into your C:Disk (http://www.mediafire.com/download/7px0d9i51cv5boc/AndroidMultitool_3.3.zip)

3.Copy/ Move the .apk with the modified libgame.so into the files section of the AndroidMultitool (not needed but recommended)

4.Make sure the .apk doesn't have any spaces in the name of it. (Eg: BraveFrontierMod.apk)

5.Go back to the AndroidMultitool folder and run the AndroidMultitool.exe.

6.Go to Signing and click on the ellipses [...] and go to the location of your .apk with the modified libgame.so (C:\AndroidMultitool\Files ; if you moved it to the files section as recommended.)

7.Click sign. 

8.Go to your C:\AndroidMultitools\Signed_apk and you should see name_signed.apk (Eg: BraveFrontierMod_signed.apk)

9.Rename it to whatever you like.

10. Move it to your device, install, and play.

Hi Optimum! Thanks for the guide! I will add it in later on when I get home!

 

Instruction to do nothing is a NOP ( No Operation ) HEX C0 46 or you can put 00 to make a byte not do anything.

 

like this

[ 01 20 ] MOVS R0, #1

[ C0 46 ]NOP

 

or 

[ 01 20 ] MOVS R0, #1

[ 00 00 ]

 

Instead of repeating code or use other weird looking stuff its better to use those two alternatives.

Hey Anon, Thanks for this tip! Didn't know you could do that (obviously i'm still new) :x Will add that into the guide.

 

the IDA Pro 6.1 link and Original 1.1.6 Brave Frontier Global libgame.so is the same could u fix it please :)

BTW thanks for your guide

I've fixed the link, hope you are able to mod the game yourself! :)

Share this post


Link to post
Share on other sites

Hi Optimum! Thanks for the guide! I will add it in later on when I get home!

 

Hey Anon, Thanks for this tip! Didn't know you could do that (obviously i'm still new) :x Will add that into the guide.

 

I've fixed the link, hope you are able to mod the game yourself! :)

i'm trying right now :)

btw i have some idea but don't know it possible or not cause i really don't know much about the code

hope some one contact me and give me answer :)

here my email : filesabes@yahoo.com.vn

Share this post


Link to post
Share on other sites

Can we use this to get specific units as mission rewards? Like you always get metal gods for a certain mission that you set?

Share this post


Link to post
Share on other sites

Can we use this to get specific units as mission rewards? Like you always get metal gods for a certain mission that you set?

 

I believe that is possible if you can find the correct function :)

Share this post


Link to post
Share on other sites

Really? Think you could help? I don't think I'm capable of doing that just yet lol

Share this post


Link to post
Share on other sites

lol, I can only try. I'm new into these modding stuff too. Just want to help others that are motivated enough to start. Hopefully we can start up a modding community for brave frontier in gg.net and have some exclusives :D

Share this post


Link to post
Share on other sites

This is going to be really helpful, Thanks!

Share this post


Link to post
Share on other sites

New here HUEHUE. Can anybody tell me what is the keyword for ZEL and KARMA? I can't seem to find the right one.

 

Thanks!

 

EDIT:

 

I found the right one. Thanks anyways XD

Share this post


Link to post
Share on other sites

optional rooted device :

you can edit libgame.so right away at you device,

just download Hex Editor app at playstore, then edit libgame.so with it

 

well you still need ida pro at pc for knowing the address of its function that you wanna edit   

Share this post


Link to post
Share on other sites

Can we use this to get specific units as mission rewards? Like you always get metal gods for a certain mission that you set?

 

I also looking at this.

 

Hopefully there is a way.

New here HUEHUE. Can anybody tell me what is the keyword for ZEL and KARMA? I can't seem to find the right one.

 

Thanks!

 

EDIT:

 

I found the right one. Thanks anyways XD

 

Had you successfully changed the amount of zel and karma it drops ?

Share this post


Link to post
Share on other sites

I also looking at this.

 

Hopefully there is a way.

 

Had you successfully changed the amount of zel and karma it drops ?

 

Yep!

I've already changed the amount of zel and karma, Monster HP, Monster Attack, Arena Attack, and Monster Def.

Now I'm trying to find the right function for the Honor Points, the Monster IDs and their Capture Rates as well but I think the Capture Rates are server sided? I THINK.

 

I've already modded BF Japan and Global. I'm having problems with BF Korea hahaha that game has more codes than the other two.

Share this post


Link to post
Share on other sites

as I can make one similar for IOS version
I would be helpful if you could help me and other forums
have not helped me and I think this forum is expected and serves its user

 

Share this post


Link to post
Share on other sites

What do i have to do for edit monster's HP in Survey Office and Karl in Reseach Lab???

Share this post


Link to post
Share on other sites

Thanks a lot for this tutorial I really appreciate it, does anyone know if theres another application similar to this arm asm converter ? The one provided doesn't seem to work, it often doesn't show the equivalent hex code of the instruction provided.

EDIT: It seems it's not possible to multiply the value in a register directly thats why the converter wouldn't work. I did however find this site.
Although my smartphone is rooted I can't find the library file anywhere, any suggestions ?

Never mind I used Root Explorer. I am currently trying to figure out if it's possible to create a custom code cave which I can jump to and do my stuff then jump back. 

Edited by aspras

Share this post


Link to post
Share on other sites

Hi, mind to make a tutorial for puzzle trooper?  A gumi game too. By the way, what is the computer language used in .SO file ?  i cannot understand the language, pls help

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 RazarX
      Hello admins, can you help me? Im using GG on Mobile Legends, but im disconnecting in the game after i changed the value of damage? what can i do to not disconnect ingame? Thank you.
×