Use aapt to get the version code from an apk
/sdk/build-tools/21.1.2/aapt d badging /path/to/file.apk
Δ