[XPERIA X8 Q&A, Help & Troubleshooting] NeveHanter:
At the start I want to mention I need to have access to some of 4.1 API features, so that I cannot use MiniCM9 or older.

The problem is that when I try to deploy any Eclipse project, or try to install it via

adb install

IDE throws:

[2013-02-18 20:41:21 - BasicGLSurfaceView] Installation failed due to invalid APK file!
[2013-02-18 20:41:21 - BasicGLSurfaceView] Please check logcat output for more details.
[2013-02-18 20:41:21 - BasicGLSurfaceView] Launch canceled!

And here is logcat snippet from my phone:

D/AndroidRuntime( 9226): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 9226): CheckJNI is OFF
D/dalvikvm( 9226): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 9226): Added shared lib libjavacore.so 0x0
D/dalvikvm( 1722): GC_EXPLICIT freed 87K, 34% free 6828K/10247K, paused 4ms+21ms, total 118ms
D/dalvikvm( 9226): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 9226): Added shared lib libnativehelper.so 0x0
I/ActivityManager( 1653): Process com.android.defcontainer (pid 9093) has died.
D/AndroidRuntime( 9226): Calling main entry com.android.commands.pm.Pm
I/ActivityManager( 1653): Start proc com.android.defcontainer for service com.android.defcontainer/.DefaultContainerService: pid=9236 uid=10027 gids={1015, 2001, 1028}
I/ActivityManager( 1653): Process com.google.android.gsf.login (pid 9156) has died.
E/Trace ( 9236): error opening trace file: No such file or directory (2)
W/zipro ( 9236): Unable to open zip '/data/local/tmp/BasicGLSurfaceView.apk': Permission denied
D/asset ( 9236): failed to open Zip archive '/data/local/tmp/BasicGLSurfaceView.apk'
W/PackageParser( 9236): Unable to read AndroidManifest.xml of /data/local/tmp/BasicGLSurfaceView.apk
W/PackageParser( 9236): java.io.FileNotFoundException: AndroidManifest.xml
W/PackageParser( 9236):	at android.content.res.AssetManager.openXmlAssetNative(Native Method)
W/PackageParser( 9236):	at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:521)
W/PackageParser( 9236):	at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:477)
W/PackageParser( 9236):	at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:749)
W/PackageParser( 9236):	at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:169)
W/PackageParser( 9236):	at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110)
W/PackageParser( 9236):	at android.os.Binder.execTransact(Binder.java:367)
W/PackageParser( 9236):	at dalvik.system.NativeStart.run(Native Method)
W/DefContainer( 9236): Failed to parse package
W/ActivityManager( 1653): No content provider found for permission revoke: file:///data/local/tmp/BasicGLSurfaceView.apk
D/dalvikvm( 1653): GC_EXPLICIT freed 149K, 36% free 18567K/28807K, paused 6ms+12ms, total 141ms
D/AndroidRuntime( 9226): Shutting down VM
D/dalvikvm( 9226): GC_CONCURRENT freed 125K, 77% free 478K/2048K, paused 1ms+1ms, total 8ms
D/dalvikvm( 9226): Debugger has detached; object registry had 1 entries

Changing permissions and owners didn't give or changed anything, it further says that there is no permissions to access APK file.

I think it is releated to kernel or ROM, so I want to ask if someone knows a solution or something to change in kernel/ROM sources to fix it up.

I use: MiniCM10-4.0.2-20130210-NIGHTLY-shakira ( on stable MiniCM10, problem also occur ) with kernel 2.6.32.60-nAa-jb-03.