Prompting INSTALL_FAILED_INVALID_APK while debugging Flash Builder 4 mobile app on real device

Vivek picture Vivek · Jun 1, 2011 · Viewed 9k times · Source

I am trying to build a demo application to test how can i debug or launch my android application on real device.

I have Froyo Android, OSX laptop and Flash Builder 4 IDE.

I build a very simple application, please have a look on image below:

enter image description here

in this when user click on "Click Me" button an email and address will be display in bottom textArea. Application is working fine on Flash Builder 4 emulator but when i try to debug application on my device, it prompt me the error below:

Error occurred while installing the application: 1580 KB/s (6108444 bytes in 3.773s) pkg: /data/local/tmp/Runtime.apk Failure [INSTALL_FAILED_INVALID_APK]

or when i create .apk file and try to install it on my device, Again it says me "Error in installation".

Please guide me, how can i fix that issue.

Many Thanks

Answer

oxygenpt picture oxygenpt · Oct 8, 2013

I was having the same error.

Check your /data/local/tmp/Runtime.apk permissions. If it is 600 as root owner, it won't install. Try changing the shell binary. Adbd Insecure worked for me. Its default writing mode is 666, and then package manager can install the apk.

-rw-rw-rw- 1 root root *.apk [Adbd Insecure]
-rw------- 1 root root *.apk [Rom Root Shell]

Cheers