Fix APK pre-gen for packaged apps (bug 976179)