Installation failed due to invalid APK file! - Android

19,079

Solution 1

I believe it is the rom you are running, I'm on a rom ported to the NS4G from Indirect. Here are his posts on XDA http://forum.xda-developers.com/search.php?searchid=51245494

I have the same problem as well. :/

Solution 2

If you are running latest Siyah Kernel with JB, you can install Extweaks-> Go to Misc Set ADB Binary Mode to DEVELOPMENT ADB ..

Share:
19,079
kousun12
Author by

kousun12

Updated on June 05, 2022

Comments

  • kousun12
    kousun12 almost 2 years

    So there were a couple of posts on this topic, but it looks like my log cat is totally different. Not sure what's going on. When I try to run on my device I get console log:

    [2012-07-17 14:50:56 - zrox] Uploading zrox.apk onto device '3134F748F94100EC'
    [2012-07-17 14:50:56 - zrox] Installing zrox.apk...
    [2012-07-17 14:50:57 - zrox] Installation failed due to invalid APK file!
    [2012-07-17 14:50:57 - zrox] Please check logcat output for more details.
    [2012-07-17 14:50:57 - zrox] Launch canceled!
    

    And Logcat:

    07-17 19:50:56.043: W/zipro(4533): Unable to open zip '/data/local/tmp/zrox.apk': Permission denied
    07-17 19:50:56.043: D/asset(4533): failed to open Zip archive '/data/local/tmp/zrox.apk'
    07-17 19:50:56.047: D/dalvikvm(252): WAIT_FOR_CONCURRENT_GC blocked 0ms
    07-17 19:50:56.047: W/PackageParser(4533): Unable to read AndroidManifest.xml of /data/local/tmp/zrox.apk
    07-17 19:50:56.047: W/PackageParser(4533): java.io.FileNotFoundException: AndroidManifest.xml
    07-17 19:50:56.047: W/PackageParser(4533):  at android.content.res.AssetManager.openXmlAssetNative(Native Method)
    07-17 19:50:56.047: W/PackageParser(4533):  at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
    07-17 19:50:56.047: W/PackageParser(4533):  at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455)
    07-17 19:50:56.047: W/PackageParser(4533):  at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:722)
    07-17 19:50:56.047: W/PackageParser(4533):  at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:169)
    07-17 19:50:56.047: W/PackageParser(4533):  at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110)
    07-17 19:50:56.047: W/PackageParser(4533):  at android.os.Binder.execTransact(Binder.java:367)
    07-17 19:50:56.047: W/PackageParser(4533):  at dalvik.system.NativeStart.run(Native Method)
    07-17 19:50:56.047: W/DefContainer(4533): Failed to parse package
    07-17 19:50:56.047: W/ActivityManager(252): No content provider found for permission revoke: file:///data/local/tmp/zrox.apk
    07-17 19:50:56.117: D/dalvikvm(252): GC_EXPLICIT freed 380K, 18% free 14176K/17159K, paused 4ms+6ms, total 70ms
    

    I just installed a rom on my Nexus S for android 4.1. It worked when I had 4.0.3 yesterday. I do have the 4.1 SDK installed in eclipse, and android:targetSdkVersion is set to 16. I have also run a clean on the project. Nothing. Any ideas?