Jump to content

[Android] LibInjector (Write Mods To An App At Runtime)


351 posts in this topic

Recommended Posts

Posted
On 7/4/2018 at 11:40 AM, TheArmKing said:

 

Alright so now that main activity goes under /androidinject right. And Also i noticed that its written /lib/libil2cpp.so but under /lib there is no il2cpp.so, there are folders like armv7 and x86 so should it be /lib/armv7/il2cpp.so

No, the path is relative to the phone's internal data, not to the apk and  it's correct.

On 7/4/2018 at 1:47 AM, AlphaSpark said:

@Sbenny@TheArmKing I built the missing file (MainActivity) from the source. Gonna have to put it on pastebin >>> https://pastebin.com/NDt798RY

So kind of you, thank you so much!

Posted
Just now, Sbenny said:

No, the path is relative to the phone's internal data, not to the apk and  it's correct.

Ah cool. I will try it with the main activity now

Posted (edited)

We're close. 

 

On my side, the game launches, but I can easily notice from the logs that something went wrong as it didn't inject anything.

 

java.io.FileNotFoundException: /data/app-lib/com.example/libexample.so: open failed: EACCES (Permission denied)

 

It looks like the game doesn't have the required permissions to write to that path, (I replaced the folder and the file name in the example above, but the path is correct) so the game simply runs without injecting into the lib.

 

Once again, thanks to @AlphaSpark for his help which helped us a lot. Hopefully we'll soon make this script work properly!

Updated by Sbenny
Posted
On 7/5/2018 at 8:25 PM, Sbenny said:

We're close. 

 

On my side, the game launches, but I can easily notice from the logs that something went wrong as it didn't inject anything.

 

java.io.FileNotFoundException: /data/app-lib/com.example/libexample.so: open failed: EACCES (Permission denied)

 

It looks like the game doesn't have the required permissions to write to that path, (I replaced the folder and the file name in the example above, but the path is correct) so the game simply runs without injecting into the lib.

 

Once again, thanks to @AlphaSpark for his help which helped us a lot. Hopefully we'll soon make this script work properly!

Try adding this to manifest.xml:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

 

Probably useless, but hey.

Posted
10 hours ago, Ted2 said:

Try adding this to manifest.xml:


<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

 

Probably useless, but hey.

most games have that in the manifest tho

Posted
On 7/7/2018 at 10:43 PM, Ted2 said:

Try adding this to manifest.xml:


<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

 

Probably useless, but hey.

Thanks for the help, but I spent over 48 hours try to find a solution and this has been one of the first ideas I had, unfortunately it didn't work. (the concept is right, as WRITE_EXTERNAL_STORAGE gives the app permissions to write also in the Internal Storage, as soon as the files you're dealing with are app's internal files, but unfortunately this doesn't seem to fix the issue for some reasons)

 

I guess the smali code is lacking some kind of permissions check before executing the commands which probably caused the issue I experienced.

Posted
4 minutes ago, Sbenny said:

Thanks for the help, but I spent over 48 hours try to find a solution and this has been one of the first ideas I had, unfortunately it didn't work. (the concept is right, as WRITE_EXTERNAL_STORAGE gives the app permissions to write also in the Internal Storage, as soon as the files you're dealing with are app's internal files, but unfortunately this doesn't seem to fix the issue for some reasons)

 

I guess the smali code is lacking some kind of permissions check before executing the commands which probably caused the issue I experienced.

The thing is, you shouldn't be able to access data folder without root. HOWEVER if you access it from your own app, you shoul be able to. His code, is pasted inside the original app, so it SHOULD work. But f*** knows why it doesn't. I've tried it too, with my own code. But without any luck.

  • Like 1
Posted

I'm glad to see many people interested in this thread, hopefully the author will "enlighten" us soon as it looks like I'm not the only one having issues :)

 

Thanks for the help, @Ted2 and good luck!

Posted
21 minutes ago, Sbenny said:

I'm glad to see many people interested in this thread, hopefully the author will "enlighten" us soon as it looks like I'm not the only one having issues :)

 

Thanks for the help, @Ted2 and good luck!

He said he had to fix it to me, but he never said if he was gonna fix it or when he will :p

  • Like 1

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
  • Our picks

    • Undercity: Creature Survival v0.39 [+2 Jailed Cheats]
      Modded/Hacked App: Undercity: Creature Survival By 1N1
      Bundle ID: com.onenone.undercity
      App Store Link: https://apps.apple.com/us/app/undercity-creature-survival/id6744991966?uo=4


      🤩 Hack Features

      - Never Die
      - Add Currency
      • 3 replies
    • Undercity: Creature Survival v0.39 [+2 Cheats]
      Modded/Hacked App: Undercity: Creature Survival By 1N1
      Bundle ID: com.onenone.undercity
      App Store Link: https://apps.apple.com/us/app/undercity-creature-survival/id6744991966?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
      • 4 replies
    • Domino Dreams™ v1.42.4 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4



      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]

      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task

      - Ticket Free Max [ Linked With Stars ] LvL Cost

      - Undo Max [ Linked With Stars ] 

      - Gold Card Max [ Linked With Stars ] 

      - Chapter Next [ Play LvL Quit & Win ]

      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]

      - Auto Win LvL [ Play LvL Move Anything ] 

      - Bonus Mod LvL [ ON-OFF ] 

      - Spin Free [ Need One Point only Open Play LvL ]
      • 11 replies
    • Domino Dreams™ v1.42.4 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4


      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]
      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task
      - Ticket Free Max [ Linked With Stars ] LvL Cost
      - Undo Max [ Linked With Stars ] 
      - Gold Card Max [ Linked With Stars ] 
      - Chapter Next [ Play LvL Quit & Win ]
      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]
      - Auto Win LvL [ Play LvL Move Anything ] 
      - Bonus Mod LvL [ ON-OFF ] 
      - Spin Free [ Need One Point only Open Play LvL ]
        • Agree
      • 20 replies
    • What Duck v1.0.9 [ +6 Cheats ] Currency Max
      Modded/Hacked App: What Duck By Nexelon inc.
      Bundle ID: com.nexelon.duckwars
      App Store Link: https://apps.apple.com/us/app/what-duck/id6744432301?uo=4

      🤩 Hack Features

      - ADS No [ Rewards Free ]

      - Currency

      - Resources

      - Battle Coins

      - Energy

      - Free Pass [ Claim Unlimited ]
      • 4 replies
    • What Duck v1.0.9 [ +6 Jailed ] Currency Max
      Modded/Hacked App: What Duck By Nexelon inc.
      Bundle ID: com.nexelon.duckwars
      App Store Link: https://apps.apple.com/us/app/what-duck/id6744432301?uo=4


      🤩 Hack Features

      - ADS No [ Rewards Free ]

      - Currency

      - Resources

      - Battle Coins

      - Energy

      - Free Pass [ Claim Unlimited ]
      • 2 replies
    • Hungry Shark Evolution v12.8.3 [ +9 Cheats ] Never Die
      Modded/Hacked App: Hungry Shark Evolution By Ubisoft
      Bundle ID: com.fgol.HungrySharkEvolution
      iTunes Store Link: https://apps.apple.com/us/app/hungry-shark-evolution/id535500008?uo=4



      Hack Features:

      - ADS NO

      - Gems Unlimited 

      - Coins Unlimited 

      - Health [ Auto Drain OFF ]

      - Booster Freeze 

      - Speed Hack 

      - Wall Break [ Only For Small Shark ]

      - Score Multi 

      - Invincible [ After Respawn ] Never Die
        • Agree
        • Winner
        • Like
      • 65 replies
    • Lucky Offense v1.4.3 [ +2 Cheats ] Battle Coins
      Modded/Hacked App: Lucky Offense By Crater Co., Ltd.
      Bundle ID: com.percent.ios.luckyrolling
      iTunes Store Link: https://apps.apple.com/us/app/lucky-offense/id6511224968?uo=4


      🤩 Hack Features

      - Battle Coins
      - ATK
      - ATK Range
      - ATK Speed

      ATK Linked Enemy
        • Like
      • 75 replies
    • Cryptogram Word Brain Puzzle v2.8.1 [ +4 Cheats ] Auto Win
      Modded/Hacked App: Cryptogram: Word Brain Puzzle By Joyteractive Limited
      Bundle ID: com.puzzle.cryptogram
      iTunes Store Link: https://apps.apple.com/us/app/cryptogram-word-brain-puzzle/id1644099880?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Lives
      - Hint Max 
      - Auto Win [ Put Any Word ]
      - No ADS


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content

      Download Hack
        • Like
      • 10 replies
    • Cryptogram Word Brain Puzzle v2.8.1 [ +4 Jailed ] Auto Win
      Modded/Hacked App: Cryptogram: Word Brain Puzzle By Joyteractive Limited
      Bundle ID: com.puzzle.cryptogram
      iTunes Store Link: https://apps.apple.com/us/app/cryptogram-word-brain-puzzle/id1644099880?uo=4

       

       

      Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      Hack Features

      - Lives
      - Hint Max 
      - Auto Win [ Put Any Word ]
      - No ADS


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 9 replies
    • Adventure Bay - Farm Games v1.41.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 17 replies
    • Adventure Bay - Farm Games v1.41.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 23 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines