[toolkit][tutorial][linux]apk munky-rench

mike the inkman

Senior Member
Feb 24, 2012
64
54
0
Houston
APK MUNKY-RENCH
FOR LINUX
\
A minimal dependency toolkit


WINDOWS IS TERRIBLE
Everybody knows it. Linux is a better platform for developers. No matter how much you themers hate it, it's true. You can't compile android from source in Adobe Photoshop. Linux Distros are built with developers in mind.

Well, what about those of us that aren't developers yet? Linux is hard, right?

Right!

Linux CAN be hard coming from Windows, where everything is all pretty and you just click away on your GUI. Setting up a build environment on Mint was a huge pain when I first made the switch. No install wizard, no tech support, no hope. While Linux can be very powerful, simple tasks like decompiling apps can be a killer. Gotta love that terminal.

Well, Apk munky-rench is here to help fix all that. As I was learning all these steps, I remember wishing that all the kits were a little more educational and the tutorials were a little more functional. So instead of just fighting my way through the learning process and leaving the rest of you to suffer, I have decided to build something that is part tool, part tutorial. Now you can enjoy a little functionality without having to fight with dependencies, and hopefully learn something along the way.

APK MUNKY-RENCH

SUPPORTS SAMSUNG DEVICES THROUGH ONBOARD HEIMDALL!!!


FEATURES
At initial release, apk munky-rench features the following:
  1. Unzip Apk
  2. Zip APK
  3. Install Frameworks
  4. Decompile Apk
  5. Compile Apk
  6. Sign Apk
  7. Zipalign Apk
  8. Compile System Apk
  9. ADB Install
  10. ADB Push/Pull
  11. Fastboot Flash Recovery
  12. Heimdall Flash Recovery
  13. Flashable Zip Generator
  14. Lollipop Compatibility
  15. Brief Explanations of Features


Version 1.1 fixed broken menu option and updated to apktool 2.0 RC4

As time goes on, I will be adding more features and more tutorial functionality. Munky-rench is dependent only upon a proper installation of JAVA. All other tools are onboard.

INSTRUCTIONS
Download v1.1 from MEGA and extract, or visit my git to download a zip or clone (recommended, as I plan to add quite a bit of functionality). Run the munky-rench script. It should all be pretty straightforward from there. but post any questions here, and I will be happy to help. Also, feel free to suggest features or submit pull requests.


If you need a windows kit, markbencze has an updated one here.



CREDIT
Brut.all for apktool
The lovely folks over at signapk.jar
The zipalign team
Glass Echidna for Heimdall
markbencze for motivation
and absolutely anyone else who would like some credit.
The script is mine, the tools are not.
Remember to thank all the devs
And Google.
Heck, send Sergey a letter with your regards.​
 
Last edited:

DCOCH13

Senior Member
Mar 12, 2013
344
196
0
munford
Can I use this on my note 2? Or does it have to be executed on PC? I have an apk that I want to try and resign. I'm a total noon when it comes to all this compile, decompile, sign apk and all. Thanks
 

mike the inkman

Senior Member
Feb 24, 2012
64
54
0
Houston
Can I use this on my note 2? Or does it have to be executed on PC? I have an apk that I want to try and resign. I'm a total noon when it comes to all this compile, decompile, sign apk and all. Thanks
Has to be run on linux PC. It is a bash script with included apktool, signapk, and zipalign. If they ever release an apktool that works natively on android, I will build a similar .sh script, but for now, as far as I know, PC is the only way to compile apks
 

mike the inkman

Senior Member
Feb 24, 2012
64
54
0
Houston
Now supporting ADB Push/Pull, Fastboot Flash Recovery, Heimdall Flash Recovery, and a Flashable zip generator that generates a flashable zip to test system apps AND another zip to flash the original apps back if you bootloop -- and gives you the option to push them to your sd. I will be expanding the fastboot and heimdall features eventually, and adding some kitchen features if I find the time, as well as making it more functional as a tutorial for noobs.
 

Rahul³™

Member
Oct 26, 2014
14
8
0
Much top kit for decompile of apps in linux machine! Everything works out of the box much well, with no install of extra software! Much thanks for well tool.:thumbup:

Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
 

mike the inkman

Senior Member
Feb 24, 2012
64
54
0
Houston
Much top kit for decompile of apps in linux machine! Everything works out of the box much well, with no install of extra software! Much thanks for well tool.:thumbup:

Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Thanks, I just wanted to automate some of the features that we need all the time for themes and mods, and I remember how much of a pain initial setup of environment can be with linux, so I wanted to eliminate alot of those dependencies and extra steps. With this kit, you just put it in your file system (I keep mine in my ~/android folder), and it works. No adding anythint to path or weird errors.
 
  • Like
Reactions: Rahul³™

Wolf Tatoo

Member
Dec 1, 2014
48
12
0
apktool for Android does Exist !!!

Has to be run on linux PC. It is a bash script with included apktool, signapk, and zipalign. If they ever release an apktool that works natively on android, I will build a similar .sh script, but for now, as far as I know, PC is the only way to compile apks
APKTool.apk for ANDROID does Exist for years my friend
 
  • Like
Reactions: mike the inkman

Rahul³™

Member
Oct 26, 2014
14
8
0
Yes, native apktool has exist for years, also not update for years. It top idea for mek, but it take 10 minutes to compile just so can see many errors. Decompile with pc much weller, and top fast!

Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
 

mike the inkman

Senior Member
Feb 24, 2012
64
54
0
Houston
Yes, native apktool has exist for years, also not update for years. It top idea for mek, but it take 10 minutes to compile just so can see many errors. Decompile with pc much weller, and top fast!

Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Yeah. It would be nice if I could get it to work. It would be convenient for minor smali and xml stuff.
 
  • Like
Reactions: Rahul³™

mike the inkman

Senior Member
Feb 24, 2012
64
54
0
Houston
Yes, but good for at least to have a top well kit for easy apk modding in linux OS. Much thanks for share with Xda community!

Sent from Marican Bacon Cannogen fone running initial build of TurbanCMRom
Thanks man. I figure if I make something useful for myself, it isn't going to hurt me to add a couple more features I normally wouldn't use and share with the community. I have gotten a lot of help from these forums since my first android device, and it's just cool to give something back.
 
  • Like
Reactions: Rahul³™

PunchUp

Senior Member
Sep 18, 2013
4,282
2,879
0
Great tool! There are so many for Windows and I had been searching a good Linux alternative for ages.
Just one query. Am I doing something wrong or 99 doesn't exit? It shows me the options for 11 instead

Keep up the good work :)
 
  • Like
Reactions: mike the inkman