Use Android framework from console apps
<p>I have a feeling I know the answer to this question, but I figure I would see what SO had to say.</p>

<p>I'm hoping to create a console app that can take an .apk file and extract metadata (such as version name/version number). I'm able to use <code>PackageManager.getPackageArchiveInfo()</code> from my Android app just fine, but I'd need to be able to call it from the command line. However, the classes in the android.jar appear to just be stubs, so it doesn't end up working.</p>

<p>Does anyone know of a way to do that?</p>
