[Android Software Development] digitalhigh:
Greetings, and welcome to the home of a little set of utilities I'm calling "DroidShell".

What it is:

DroidShell is my attempt at bridging the gap between the various android utilities used for ROM modification and the Windows explorer system. It is a series of scripts that are automatically associated with .apk, .jar, and .iso files so that they are automatically decompiled on double-click or enter. Additionally, when a file is decompiled, a corresponding .dcp, dcf, or dci (decompiled package, decompiled framework, decompiled image) file is created, which allows for automatic recompiling, as well as optional cleanup, or resigning.

The goal of this project is pretty simple...to have all the tools needed for ROM work in one place, and have them easily accessible without having to have eighty command windows open or to have to go through a chain of commands to create a usable apk/jarfile.

Features:

One-shot setup. Extract the files, run install/installer.bat, and all of the necessary file associations and paths are created.

Batch terminal integration - provides integration for adb, fastboot, apktool, 7zip, zipalign, oat2dex, unpackbootimg, repackbootimg, baksmali and smali in windows command-line interface from path.

Automagic association with common android filetypes for decompilation.

Custom placeholder files - dcp, dcf, and dci - for packages, framework, and image files. Allows for automatic recompiling, and optional signing and cleanup of decompiled files.

Recompiled apks and jars are automatically repacked with modified files while excluding androidmanifest.xml, meaning signatures are unaffected.

For modifications requiring androidmanifest be changed, you can right-click a .dcp file to recompile with signature.

Auto-detection of framework-res file with prompting to install.

Popup dialogue boxes for errors and alerts.

(NEW) Right-click to decompile to java code. This cannot be recompiled, but is great for researching more complex mods. (Can also be invoked by using the command dj filename.apk)

(NEW) Support for sparse image system -> .img conversion.

(NEW) za command for zipaligning apk's.

(NEW)

Download:

https://github.com/d8ahazard/DroidShell/archive/master.zip

Source:

https://github.com/d8ahazard/DroidShell

Instructions...

You need the Java Runtime Environment (RE). Get it here.

Extract to a folder somewhere. Spaces in the path are probably not good. I put it in C:\DroidShell

Browse to the folder. Go into the install folder. Run installer.bat. (Installer needs admin priveleges. It will prompt for them, but in some cases, you may have to automatically run as admin)

Reboot.

You should now have shell integration. APKs, Jars, and .img files will automagically decompile.

It's late, I've been working on this all weekend...but it should be good to go. Please let me know if you have any thoughts. :D

CHANGELOG:

02.02.16 - v2.0

Update smali, baksmal to v. 2.1.1.

Add shell script for oat2dex (not implemented in context menus, just avaialable for now)

Update APKTool to latest version

Add dx.jar - for converting java classfiles to .dex (just available for now)

Add ext4 and ext2 tools - For manually unpacking images if needed. These are GUI based, not my work.

Add rimg2sdat - For converting .img to sparse (Not implemented yet)

Update sdat2img to latest version by xspirit, added python to installer as required.

Add zipalign function (Not implemented, can be called via "za filename.apk"

Add decompile to pure Java:
This utilizes a few tools to take apk's and jarfiles and decompile them to as close of an android package as we can get without having the actual source code. While we cannot at this time recompile these into apk's, it is very useful for analysis when trying to implement other mods. Like...really helpful. This one can be accessed by right-clicking a decompileable package and picking "decompile to java".

01.31.15 - v1.8
Added windows progress bar for file copies in system.img extraction.
Fixed some script errors.

01.29.15 - v1.7
Cleaned up installer, added more verbosity.
Better error checking in image extractor.
Add support for .list files, allowing double-click extraction of system.transfer.list and cm12-style image files.
Added custom language files for notepad++, allows syntax highlighting of .smali and logcat files.

01.27.15 -v1.6
Added support for system images. Requires installation of included OSFMount.
Added file associations for common plaintext android files to notepad++ if installed.
Converted several .bat files to .exe, allows for icons, inclusion of required files, and UAC prompting when needed.

01.26.15 - v1.5
Fixed fatfinger in APKtool detection causing error.

01.26.15 - v1.4
Added zipaligning
Added check to make sure apktool is present
Updated test-keys to latest AOSP version
Compiled batches to .exe with required files for AIO-packages
Fixed: Installer not always associating with files correctly.