Jump to content

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


354 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

    • Air Life: Aviation Tycoon +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Air Life: Aviation Tycoon By Alphaquest Games LTDA
      Bundle ID: com.alphaquest.airlife
      iTunes Store Link: https://apps.apple.com/us/app/air-life-aviation-tycoon/id6502298994?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.
      - Free In-App Purchases -> Toggle via iGMenu.


      Jailbreak required hack(s): [Mod Menu Hack] Air Life: Aviation Tycoon v1.2.2 +2++ Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Winner
        • Like
      • 14 replies
    • Catacomb Crawlers +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Catacomb Crawlers By Emeroth Fintech Studio SRL
      Bundle ID: com.Emeroth-Studios.Catacomb-Crawlers
      iTunes Store Link: https://apps.apple.com/us/app/catacomb-crawlers/id6502052776?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier


      Jailbreak required hack(s): [Mod Menu Hack] Catacomb Crawlers v1.023 +2 Cheats [ Damage & Defence ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Like
      • 15 replies
    • Pet Pal Paw +2++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Pet Pal Paw By Yidian Brighten Network Technology Co., Ltd.
      Bundle ID: com.widgetpet.triplematch3d
      iTunes Store Link: https://apps.apple.com/us/app/pet-pal-paw/id6474220984?uo=4

       


      🚀 Hack Features

      - Debug Menu -> Tap on Settings.


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] Pet Pal Paw v4.2 +2++ Cheats [ Debug Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Like
      • 4 replies
    • Magical Girl Dungeon +3 Jailed Cheats [ Damage ]
      Modded/Hacked App: Magical Girl Dungeon By Kenjirou Uesaka
      Bundle ID: com.KCG.MahoDungeon
      iTunes Store Link: https://apps.apple.com/us/app/magical-girl-dungeon/id6741759536?uo=4

       


      🤩 Hack Features

      - God Mode
      - Damage Multiplier
      -- No Ads
        • Informative
        • Winner
        • Like
      • 2 replies
    • Hungry Hearts Restaurant +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hungry Hearts Restaurant By GAGEX Co.,Ltd.
      Bundle ID: jp.co.gagex.rigel
      iTunes Store Link: https://apps.apple.com/us/app/hungry-hearts-restaurant/id6504782640?uo=4

       
       

      🤩 Hack Features

      - Unlimited Coins -> Spend some.
      - Unlimited Hearts -> Will not decrease.


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] Hungry Hearts Restaurant v1.0.7 +2 Cheats [ Unlimited Currencies ] - Free Jailbreak Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Like
      • 9 replies
    • Gordian Quest +6 Jailed Cheats [ Full Game Unlocked ]
      Modded/Hacked App: Gordian Quest By AETHER SKY OU
      Bundle ID: com.aethersky.com.gordianquest
      iTunes Store Link: https://apps.apple.com/us/app/gordian-quest/id6736658756?uo=4

       


      🤩 Hack Features

      - Add Currencies -> Pause the game and tap on Options.*
      - Add XP -> Pause the game and tap on Options.*
      - Add Skill Points -> Pause the game and tap on Options.*
      - Add Respec Points -> Pause the game and tap on Options.*
      - Auto Win -> Pause the game and tap on Options.*
      -- Full Game Unlocked

      * - Only 1 feature can be enabled at once.
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 14 replies
    • Secret Puzzle Society +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Secret Puzzle Society By Wildlife Studios, Inc
      Bundle ID: com.arizonags.puzzlesocietyalpha
      iTunes Store Link: https://apps.apple.com/us/app/secret-puzzle-society/id6449197556?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Clues -> Earn or spend some.
      - Unlimited Lives -> Earn or spend some.
      - Auto Win -> Use a move.


      Jailbreak required hack(s): [Mod Menu Hack] Secret Puzzle Society v1.6.3 +4 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 18 replies
    • SushiMon Defense +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: SushiMon Defense By Dreamplaygames Inc.
      Bundle ID: com.dreamplay.sushimonster.apple
      App Store Link: https://apps.apple.com/us/app/sushimon-defense/id6741675759?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Haha
        • Like
      • 6 replies
    • Tsuki's Odyssey +1 Jailed Cheat [ Unlimited Carrots ]
      Modded/Hacked App: Tsuki's Odyssey By HyperBeard Inc.
      Bundle ID: com.hyperbeard.odyssey
      iTunes Store Link: https://apps.apple.com/us/app/tsukis-odyssey/id1564146071
       

      Hack Features:
      - Unlimited Carrots -> Earn some.


      Jailbreak required hack(s): [Mod Menu Hack] Tsuki's Odyssey v1.2.61 +1 Cheat [ Unlimited Carrots ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 100 replies
    • Family Life! +3++ Jailed Cheats [ Cheat Menu ]
      Modded/Hacked App: Family Life! By SUPERSONIC STUDIOS LTD
      Bundle ID: com.xia.familylife
      iTunes Store Link: https://apps.apple.com/us/app/family-life/id6449919224?uo=4


      Hack Features:
      - Cheat Menu -> Head over to Settings and toggle the Privacy button.
      -- Life Pass Purchased
      -- No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Family Life! v1.0.32 +2++ Cheats [ Cheat Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 294 replies
    • RENT A HERO Z +2 Mods [ Damage + More ]
      Mod APK Game Name: RENT A HERO Z By LINE NEXT Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.linenext.rhz.aos

       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
        • Winner
        • Like
      • 1 reply
    • Undying Hero: Idle RPG +3 Mods [ Damage + More ]
      Mod APK Game Name: Undying Hero: Idle RPG By SUPERBOX Inc
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.superpixel.undyinghero

       

      🤩 Hack Features

      - Damage Multiplier
      - One-Hit Kill
      - Freeze Currencies
        • Haha
        • Thanks
        • Like
      • 0 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