APK Manager (yep, yet again)

Quick question, how do people even use APKManager?

Does anyone use the APKManager.command file to launch the script? Or do you use it directly from terminal/command line?

Anyway, moving forwards towards v3.0!

So first off, I think right now that I’m going to make my main focus on simply making it easier to update.

What does that even mean? Well, right now I’m in the process of breaking apart the main script into a few smaller ones (a single ~2500-3000+ line file is just a pain to work with) and adding a built-in auto-update script using git & github. In doing this, I’m also going to try and urge people to use Homebrew to install the required programs. The pre-compiled binaries will still be an option, but well, usually Homebrew updates them faster than I ever will, and Homebrew will compile binaries optimized for your specific computer system, so they should be smaller and faster too.

This has some pretty unique challenges though, I can’t simply offer to run the homebrew install script for users, since Homebrew requires the Xcode command lines tools, which must either be downloaded from within XCode 4.3.x, or separately from developer.apple.com.

I’ll post questions about all this for users when they come up. 😉

Anyway, I’ve also switched to an applescript app to launch the script directly, instead of needing a ‘Setup’ app, and then the .command file. This way you can drag the icon anywhere on your dock if you want, or even move the app to /Applications. Just one step towards making APK Manager at least a tiny bit “Mac-like.”

After that, yeah, I don’t really know. I think its pretty “functionally saturated” already, and trying to add major new features would just cause headaches.

Cheers everyone 🙂

ruminating on apk manager osx

So… I’ve spent a fair amount of time the past ten days or so working on APK Manager OS X again. And the irony is that I don’t really do any android application modding anymore. Yet I feel obligated to keep the script alive, since mac users so often go overlooked by the android community at large.

So some thoughts and questions where the project should go next…

  • I would very much like to include an automatic update function, to do away with the horribly messy process of always having to backup projects, manually copy over a new apk_manager directory, re-run setup, and then restore projects, etc.
  • I have basically no idea how to do this. Well, that’s not entirely true, I’ve been digging through the oh-my-zsh update scripts, and think I understand how they handle updates, but I’m very hesitant to just copy their code for a few reasons.
    1. They use git & github for their auto-updates, and I don’t want to force users of APK Manager to install git.
    2. Assuming I have no choice but to use git & github, how do I go about generating a release repo that isn’t littered with all my development files?
    3. And then how do I maintain it?
  • Is there any benefit to modularizing the entire script into multiple scripts for each main function?
  • How do I add comprehensive debugging options to the project? I’d love to implement something like this http://stackoverflow.com/questions/64786/error-handling-in-bash but then I’m forced to modularize, right?
  • Assuming I figure all of that out, how do I handle binary updates for optipng, pngcrush, sox, 7za, etc.? Can I use git submodules for them?

So ugh. I’m just totally at an impasse right now with APK Manager OS X. And of course, those questions don’t even answer the biggest of them all,

Should I even continue to maintain this with the overwhelming lack of interest? (there have been barely 1000 total downloads (1003 at the time of posting) over the ~7 months I’ve been working on it.)

APK Manager OS X v2.2.1!

Yeah… so I know I skipped posting a ton of updates (and yes, the screenshots are already outdated.)

So yeah… a lot of changes, first, I re-packaged the entire thing into a mac disk image (DMG) file since some users were reporting errors with extracting the zip file. I’ve also added the option to view java source for most apk or jar files, re-worked the ‘debug’ menu yet again, added another text/log viewing app for selection (Chocolat.) I also fixed a handful of bugs, re-worked the default apktool.jar symlink routine, and built-in the color choice selection into one script, to avoid potential version mismatches, etc. from continually shipping two script files simply for different text colors.

I’ve also updated a lot of the included binaries (optipng, pngcrush, sox, adb, etc.)

While I was at it (For v2.1), I moved all user settings, private keys/keystores, etc., to $HOME/.apkmanager directory, and created a migration script for users to preserver their settings and keys prior to upgrading to v2.1+

Anyway, onto the links!

EDIT: yeah, outdated already, please see APK Manager on: