Hello all
I am having some trouble with SDK installing apps to my Android. I've tried to find many forums about my issue, but I've hit a brick wall every time. My rooted device is an LG Optimus C running Android 2.2 (ancient lol). My issue is that I'm getting the error: Failure [INSTALL_FAILED_DEXOPT] for every app I try to install. I've wiped the device twice and then found out that this error happens every time after I've installed a good amount of apps...which I read somewhere that this will happen because of not having enough space in Dalvik..or in the data area and won't allow the install to write anything else..correct me if I'm wrong on this I've also cleared all caches multiple times, including Dalvik.
I've also tried the work around where you try and skip that all together and put the app straight into /system /app. That came up with no resolution, even with the correct properties selected (read/write/execute etc). So now, I really have no other avenues left but to come here and ask.
Here is the Logcat results I get using adb install -r app.apk no matter what app it is. I will use tumblog.apk (compatible with device) for this example:
D/AndroidRuntime( 4201):
D/AndroidRuntime( 4201): >>>>>> AndroidRuntime START com.android.internal.os.Run
timeInit <<<<<<
I/AndroidRuntime( 4201): Heap size: -Xmx32m
D/AndroidRuntime( 4201): CheckJNI is OFF
D/AndroidRuntime( 4201): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 1356): No content provider found for:
W/ActivityManager( 1356): No content provider found for:
D/PackageParser( 1356): Scanning package: /data/app/vmdl-166230949.tmp
D/PackageManager( 1356): Scanning package com.luckydroid.tumblelog
E/PackageManager( 1356): Package com.luckydroid.tumblelog has mismatched uid: 10
060 on disk, 10061 in settings
I/PackageManager( 1356): Linking native library dir for /data/app/com.luckydroid
.tumblelog-1.apk
D/installd( 1256): DexInv: --- BEGIN '/data/app/com.luckydroid.tumblelog-1.apk'
---
D/dalvikvm( 4211): Zip inflate: partial write (will retry): (24536 of 32768)
E/dalvikvm( 4211): Zip inflate: write failed: No space left on device
W/dalvikvm( 4211): DexOptZ: extraction of classes.dex from /data/app/com.luckydr
oid.tumblelog-1.apk failed
W/installd( 1256): DexInv: --- END '/data/app/com.luckydroid.tumblelog-1.apk' --
- status=0xff00, process failed
E/installd( 1256): dexopt failed on '/data/dalvik-cache/[email protected]@com.luckydroid.
[email protected]' res = 65280
W/PackageManager( 1356): Package couldn't be installed in /data/app/com.luckydro
id.tumblelog-1.apk
D/AndroidRuntime( 4201): Shutting down VM
I/AndroidRuntime( 4201): NOTE: attach of thread 'Binder Thread #3' failed
D/jdwp ( 4201): adbd disconnected
I really have no clue what any of this means lol...pretty new to logcat. I am aware of the file name not matching the original name of the apk..shouldn't matter considering I've installed many apps with shortened names. Any help would be greatly appreciated! Thanks
EDIT: Looks like "E/dalvikvm( 4211): Zip inflate: write failed: No space left on device" is the problem. Not enough space in Dalvik. Still have no idea how to work around.
Bump
Is this not posted in the correct forum? I'm just guessing no one knows of a solution?
Çözüme Yakın
Sizin sorununuz apk~classes.dex~.smali dosyalarının içinde gereksiz kodları siliniz. "Ayrıca Facebook klasörünü bulup siliniz (her clasess.dex'te bulunmaz)" ayrıca kimi classes.dex boyutu 9MB iken yükleniyor bazı clasess.dex dosyaları ise 7,8*MB olunca yüklenmiyor. Tabikide kodlar içinde dexOpt= dex options ayarı vardır ama ben bulamadım sadece bunları biliyorum. Umarım çözüm bulan çıkar. TR
Related
Hi All!
After I had deodexed a stock (only rooted) XXJPQ rom, I tried to apply the 5 lockscreen mod on it. Seemed like everything was good... But when I had opened the "Internet", it force-closed immediately (nor factory reset didn't help).
So I had started to search the reason of this issue. After a while I figured out that the FCing of the Internet app was because of the "non-JPQ" framework.jar. So I took the JPQ's framework.jar and added a .smali file to its classes.dex what is neccesary for the extended power menu (com\android\internal\app\ShutdownThread.smali).
The result: working 5 lock screen mod with extended power menu on JPQ without crashing of the Internet app!
If interested, you can download it from here. Framework-res.apk and Settings.apk are stock themed files, so you can delete that lines from the batch... Actually, the relevant file is the framework.jar.
I'm with i5801DDJP(x)
I modified android.policy.jar and framework.jar for 5 Lock screen mod and reboot/recovery/download menu
The browser.apk doesnt force close on starting it.. but after some point it FC
Code:
17:12:09.294 Error AndroidRuntime 3931 FATAL EXCEPTION: http1
17:12:09.294 Error AndroidRuntime 3931 java.lang.NullPointerException
17:12:09.295 Error AndroidRuntime 3931 at android.net.http.CertificateChainValidator.doHandshakeAndValidateServerCertificates(CertificateChainValidator.java:194)
17:12:09.295 Error AndroidRuntime 3931 at android.net.http.HttpsConnection.openConnection(HttpsConnection.java:308)
17:12:09.295 Error AndroidRuntime 3931 at android.net.http.Connection.openHttpConnection(Connection.java:358)
17:12:09.295 Error AndroidRuntime 3931 at android.net.http.Connection.processRequests(Connection.java:219)
17:12:09.296 Error AndroidRuntime 3931 at android.net.http.ConnectionThread.run(ConnectionThread.java:113)
17:12:09.296 Warning ActivityManager 2840 Force finishing activity com.android.browser/.BrowserActivity
17:12:09.296 Verbose browser 3931 BrowserActivity.onPause: [email protected]
17:12:09.296 Info 2840 dumpmesg > /data/log/dumpstate_app_error.log
17:12:09.297 Info dumpstate 4040 begin
17:12:15.520 Debug VoldCmdListener 2545 asec list
17:12:16.940 Info dumpstate 4040 done
17:12:17.161 Info Launcher 2914 onResume(). mIsNewIntent : false
17:12:17.161 Info Launcher 2914 onResume() ended
17:12:17.265 Debug Launcher.Workspace 2914 WorkspaceDraw: Workspace drawWallpaperImage()
17:12:17.381 Warning Resources 2840 Converting to boolean: TypedValue{t=0x3/d=0x5253 "res/anim/accelerate_decelerate_interpolator.xml" a=1 r=0x10a0004}
17:12:17.705 Verbose browser 3931 BrowserActivity.onStop: [email protected]
17:12:17.815 Verbose browser 3931 BrowserActivity.onDestroy: [email protected]
17:12:17.815 Debug webviewglue 3931 nativeDestroy view: 0x108c18
can anyone read this logcat
Hi,
I'm trying to install the AOSP ICS launcher on my Galaxy S3 via adb install, but I'm getting a INSTALL_FAILED_DEXOPT error. The device logcat is as follows
Code:
D/AndroidRuntime( 5431):
D/AndroidRuntime( 5431): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 5431): CheckJNI is OFF
D/AndroidRuntime( 5431): setted country_code = France
D/AndroidRuntime( 5431): setted countryiso_code = FR
D/AndroidRuntime( 5431): setted sales_code = XEF
D/AndroidRuntime( 5431): readGMSProperty: start
D/AndroidRuntime( 5431): readGMSProperty: already setted!!
D/AndroidRuntime( 5431): readGMSProperty: end
D/LibQmg_native( 5431): register_android_app_LibQmg
D/AndroidRuntime( 5431): Calling main entry com.android.commands.pm.Pm
W/PackageManager( 2093): verifying app can be installed or not
I/ApplicationPolicy( 2093): isApplicationInstallationEnabled
D/dalvikvm( 2093): GC_CONCURRENT freed 7885K, 31% free 32346K/46791K, paused 2ms+6ms
D/dalvikvm( 2093): GC_CONCURRENT freed 1834K, 31% free 32555K/46791K, paused 3ms+5ms
E/PackageManager( 2093): Package XXX.XXXXXXX.XXXXXXXX has mismatched uid: 10130 on disk, 10131 in settings
I/PackageManager( 2093): Running dexopt on: XXX.XXXXXXX.XXXXXXXX
I/PackageManager( 2093): Linking native library dir for |XXXX|XXX|XXXXXXXXXXXXXXXXXXXXXX.XXX
W/dalvikvm( 5442): DexOptZ: zip archive '/data/app/com.android.launcher-1.apk' does not include classes.dex
W/installd( 1907): DexInv: --- END '/data/app/com.android.launcher-1.apk' --- status=0xff00, process failed
E/installd( 1907): dexopt failed on '/data/dalvik-cache/[email protected]@[email protected]' res = 65280
W/PackageManager( 2093): Package couldn't be installed in /data/app/com.android.launcher-1.apk
Is there something I'm doing wrongly?
Thanks.
Did you try direct install?
You can try to install the apk by directly putting it to your sdcard, see if similar error comes.
do you really need the aosp launcher? i would recommend you apex or nova from playstore, many possibilities to customize and easy installable
Sent from my GT-I9300 using xda premium
Yes I need it because I'm modifying certain parts of it. If Apex or Nova are open source they might be possibilities though.
psycoder said:
You can try to install the apk by directly putting it to your sdcard, see if similar error comes.
Click to expand...
Click to collapse
What do you mean by direct install? You mean putting the apk into my sdcard, and using some file manager to install it? I've tried that as well, it failed with an "application not installed" error.
why dont u push it to /system using some root explorer and then set permissions?
rebairo said:
why dont u push it to /system using some root explorer and then set permissions?
Click to expand...
Click to collapse
How would I do that? You mean adb push the apk file into /system without installing? What permissions would it require, and would it just replace the default launcher after that?
Thanks.
Edit: I tried pushing the apk and odex files into /system/app of my Desire Z running Mimicry 1.5.0 (since my S3 isn't rooted), where all my other system app apks are. I then chmod 644 the 2 files to match the others, and did a reboot, but nothing changed. Apex is still the default launcher, and I'm not sure how to change it.
Anyone? Thanks!
Hello, currently, one of our Galaxy 4.0 Players is stuck in a boot loop. I have been searching this site and a few others for over a month now for solutions and am stumped.
I have tried flashing several different US YP-G1 stock ROMs using both Heimdall and Odin, Terrasilent kernel, Steve's kernel, Icyfusion ROM, factory reset, wiping cache/dalvik.
Over a month ago, the device started randomly rebooting and showing the first time startup screen each time it rebooted like this. When it would have a random reboot however, it would get stuck in a boot loop and have to be restarted by holding the power button or pulling battery. Then after a couple weeks of that, it has since been stuck in a boot loop.
Interesting "dmesg" information that may or may not have anything to do with this are:
7.347889] init: SEC_DEVENC ***[/dev/block/mmcblk0p2][0]
7.352046] init: failed that mount s:'/dev/block/mmcblk0p2', t:'/data', f
7.362574] init: SEC_DEVENC ***[/dev/block/mmcblk0p2][0]
7.368081] init: failed that mount s:'/dev/block/mmcblk0p2', t:'/data', f
8.585066] mmc0: error -110 whilst initialising MMC card
8.655510] mmc1: new high speed SDHC card at address b368
I believe that the internal sdcard has died and have formatted the external one with the vfat and rfs partitions to act as the internal sdcard. But according to dmesg, it appears that perhaps mmcblk0p2 is trying to be mounted in the boot procedure before MMC1 is detected?
Any help is greatly appreciated and I will provide any more information as needed.
-Tony
"FATAL EXCEPTION IN SYSTEM PROCESS: ConnectivityThread"
update
Between flashing the international verions's bootloader, reflashing recovery rom, Terrasilent kernel and restoring a Nandroid backup from our other YP-G1, the mounting problems seem to be gone now.
However, there is still a bootloop problem which I believe has something to do with these logcat entries:
D/NativeDaemonConnector( 246): NativeDaemonConnector ::
D/NetdConnector( 246): run ::
D/NetdConnector( 246): listenToSocket ::
I/SystemServer( 246): Connectivity Service
W/dalvikvm( 246): threadid=17: thread exiting with uncaught exception (group=0x
40015578)
E/ ( 246): Dumpstate > /data/log/dumpstate_sys_error
V/ConnectivityService( 246): ConnectivityService starting up
E/ActivityThread( 246): Failed to find provider info for settings
E/AndroidRuntime( 246): *** FATAL EXCEPTION IN SYSTEM PROCESS: ConnectivityThre
ad
E/AndroidRuntime( 246): java.lang.NullPointerException
E/AndroidRuntime( 246): at android.provider.Settings$NameValueCache.getS
tring(Settings.java:664)
E/AndroidRuntime( 246): at android.provider.Settings$Secure.getString(Se
ttings.java:2209)
E/AndroidRuntime( 246): at com.android.server.ConnectivityService.<init>
(ConnectivityService.java:264)
E/AndroidRuntime( 246): at com.android.server.ConnectivityService.<init>
(ConnectivityService.java:61)
E/AndroidRuntime( 246): at com.android.server.ConnectivityService$Connec
tivityThread.run(ConnectivityService.java:229)
I/dumpstate( 277): begin
E/dumpstate( 277): Cannot get free space size. So, skip dumpstate.
When the problems first started before all the flashing, logcat also showed this fatal exception in ConnectivityThread
Hi all,
I work in a cell phone chipset company and I was trying to run CM10.1 on our device.
It looks like the kernel is working and adb is working as well.
But it just can't boot into idle screen. Attachment is the logcat.
Looks like dalvik thing or lot more other things...
Hoping someone give us a hand and provide some clues or hints. Thanks in advance!!
========================================================================
After check the permisson, logs look better but still stuck. Thanks to Kangie.
Any further ideas?
I'm not a CM Porting expert, but looking at the log it does seem to be choking when trying to initialise the dalvik cache.
I'd start with checking the perms on /cache/dalvik-cache.
01-04 18:54:05.310 E/dalvikvm( 824): Could not stat dex cache directory '/cache/dalvik-cache': Permission denied
01-04 18:54:05.310 I/dalvikvm( 824): Unable to open or create cache for /system/framework/core.jar (/cache/dalvik-cache/[email protected]@[email protected])
...
01-04 18:54:05.310 E/dalvikvm( 824): VM aborting
01-04 18:54:05.310 F/libc ( 824): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 824 (dexopt)
Anyway - Looks mostly like a perms issue. Check that, go from there.
Kangie said:
I'm not a CM Porting expert, but looking at the log it does seem to be choking when trying to initialise the dalvik cache.
I'd start with checking the perms on /cache/dalvik-cache.
Anyway - Looks mostly like a perms issue. Check that, go from there.
Click to expand...
Click to collapse
hi Kangie,
Thanks!! The log seems different when I modified the permissions.
And now the log is attached again. this is logcat_v2.
Any help woul;d be much appreciated~~:good:
On second thoughts: It does look like Vold (Volume Daemon) is crashing then..
01-06 17:49:22.140 W/MountService( 713): Thread android.server.ServerThread still waiting for MountService ready...
This happens over and over. My guess is that the android boot is being held up by this - It just keeps waiting for something that never happens. That's a good starting point. I'm not sure where to go from there and don't have a device - Back over to you for observations.
Hello everyone,
I own a OnePlus One 64GB, running CM11s stock rom + Xposed + Boeffla kernel 2.3 stable, rooted, unlocked bootloader, TWRP(2.8.5.1).
My issue came out of nowhere. Now, without any action of mine (really, at morning I took my OPO, and discovered all of this), I cannot:
- Install or update from Google Play
- Install or update from internal memory
- Install with command from pc "adb install "Path/to/apk"
- Restore app or app+data from titanium backup
In each one of these cases, I get the same error: "Insufficient Storage Space ..." (even in my windows console after adb install).
Of course I have plenty of space available.
Here is what I tried so far (you can find common "solutions" to this problem across the internet, but none worked for me):
- Wiping cache
- Wiping dalvik cache
- Fix permission via TWRP
- Delete cache and/or data of G.Play, Play services and google framework
- Delete cache and/or data of download manager (see why below)
- Manually setting the permission of data/local to 755 with "chmod" in terminal emulator (look red line in logcat: "permission revoke")
- Delete the folder "/data/app-lib/APPNAME" related to the apps which won't update
- Look for leftover .odex files (http://newton.cx/~peter/2013/07/fixing-erroneous-insufficient-storage-available-errors-on-android/)
- Searching around on the internet for hours...
This is a VERY COMMON issue, and there was never ONE solution. For different people/devices, one solution among the above has worked when the others don't. Still, in EACH CASE, the concerned person never knew what caused the problem, only assumptions from other forum posts, or after looking at logcats but not really understanding them and then do things without knowing why.
Of course, I wanna find a solution for my device, but I am also willing to provide the community with a dedicated solution. We don't know if there is one or multiple cause (at least this is what I can conclude from my personal research).
Now, I used Android device monitor to see what is happening on my device when I try to install or update any app (this is for the google play case, but for every other method, the error message is the same, only the path to the file is different):
Code:
03-06 18:37:52.966: D/Finsky(2167): [1] LightPurchaseFlowActivity.handleAppPermissionResult: Permissions accepted: com.appgenix.bizcal
03-06 18:37:52.966: D/Finsky(2167): [1] InstallerImpl.requestInstall: Request install of com.appgenix.bizcal v=201200 for single_install
03-06 18:37:52.976: D/Finsky(2167): [1] InstallerImpl.kick: Installer kick - starting com.appgenix.bizcal
03-06 18:37:53.216: I/qtaguid(2167): Failed write_ctrl(u 126) res=-1 errno=22
03-06 18:37:53.216: I/qtaguid(2167): Untagging socket 126 failed errno=-22
03-06 18:37:53.226: W/NetworkManagementSocketTagger(2167): untagSocket(126) failed with errno -22
03-06 18:37:53.646: I/Timeline(2167): Timeline: Activity_idle id: [email protected] time:576066
03-06 18:37:53.656: I/qtaguid(2167): Failed write_ctrl(u 126) res=-1 errno=22
03-06 18:37:53.656: I/qtaguid(2167): Untagging socket 126 failed errno=-22
03-06 18:37:53.656: W/NetworkManagementSocketTagger(2167): untagSocket(126) failed with errno -22
03-06 18:37:53.826: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from null to UNQUEUED.
03-06 18:37:53.826: D/Finsky(2167): [1] DownloadQueueImpl.add: Download com.appgenix.bizcal added to DownloadQueue
03-06 18:37:53.826: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from UNQUEUED to QUEUED.
03-06 18:37:53.826: I/installd(256): free_cache(2210712) avail 29941784576
03-06 18:37:53.856: D/Finsky(2167): [1] DownloadQueueImpl.startDownload: Download com.appgenix.bizcal starting
03-06 18:37:53.886: D/Finsky(2167): [130] 7.run: Enqueued com.appgenix.bizcal as content://downloads/my_downloads/13
03-06 18:37:53.896: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from QUEUED to DOWNLOADING.
03-06 18:37:53.896: D/Finsky(2167): [1] DownloadQueueImpl.onStart: com.appgenix.bizcal: onStart
03-06 18:37:53.926: I/DownloadManager(1799): Download 13 starting
03-06 18:37:53.956: D/Finsky(2167): [1] DownloadQueueImpl.notifyProgress: com.appgenix.bizcal: onProgress 0/-1 Status: 192.
03-06 18:37:54.996: D/MobileDataStateTracker(946): default: setPolicyDataEnable(enabled=true)
03-06 18:37:55.206: D/Finsky(2167): [1] DownloadQueueImpl.notifyProgress: com.appgenix.bizcal: onProgress 2210712/2210712 Status: 200.
03-06 18:37:55.236: I/DownloadManager(1799): Download 13 finished with status SUCCESS
03-06 18:37:55.276: D/Finsky(2167): [1] DownloadBroadcastReceiver.onReceive: Intent received at DownloadBroadcastReceiver
03-06 18:37:55.286: D/Finsky(2167): [1] DownloadImpl.setState: com.appgenix.bizcal from DOWNLOADING to SUCCESS.
03-06 18:37:55.286: D/Finsky(2167): [1] DownloadQueueImpl.onComplete: com.appgenix.bizcal: onComplete
03-06 18:37:55.286: D/Finsky(2167): [1] DownloadQueueImpl.remove: Download com.appgenix.bizcal removed from DownloadQueue
03-06 18:37:55.286: D/Finsky(2167): [1] InstallerTask.startApplyingPatch: Prepare to patch com.appgenix.bizcal from content://downloads/my_downloads/13
03-06 18:37:55.286: I/installd(256): free_cache(0) avail 29941768192
03-06 18:37:57.766: D/Finsky(2167): [1] 9.onPostExecute: Successfully applied patch to update com.appgenix.bizcal
03-06 18:37:57.766: D/Finsky(2167): [1] InstallerTask.startInstaller: Begin install of com.appgenix.bizcal
[COLOR="Red"]03-06 18:37:57.986: I/installd(256): free_cache(533725184) avail 29934342144
03-06 18:37:57.996: W/ActivityManager(946): No content provider found for permission revoke: file:///data/data/com.android.vending/cache/copies/com.appgenix.bizcal1571224167.apk
03-06 18:37:58.186: D/Finsky(2167): [147] 1.packageInstalled: Package install status for com.appgenix.bizcal is -4
03-06 18:37:58.256: W/Finsky(2167): [1] 4.installFailed: Install failure of com.appgenix.bizcal: -4 null
03-06 18:37:58.266: D/Finsky(2167): [1] InstallerTask.cancelCleanup: Cancel running installation of com.appgenix.bizcal[/COLOR]
03-06 18:38:02.486: W/InputMethodManagerService(946): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
: E/(): Device disconnected
(I colored lines where error occurs)
: I observed that when I update this app from G.Play, the download progress bar goes from 0% up to 16% every time, then show "installing...", and then the error message. I though it may be related to the google play cache or download manager. Same for others apps (but different %).
Here are some useful links I found while going through the internet (I'll add more tomorrow):
http://forum.cyanogenmod.org/topic/...tions-in-play-store-bug-cm-or-something-else/
I am willing to do tests, or anything else that could help for understanding where is this coming from. :good:
Thank you for reading this, and for help.
Cheers,
Debye
Insufficient storage available
I sure hope this thread devolops some results! I feel like I've read everything there is about this problem. Some apps update, some don't. Some apps install, some won't. Size of the app does not seem to matter. Some 40mb apps install, some 4mb apps return the 'insufficient storage' error. It just does't make any sense.
I've checked for .odex files (none). I've lost several of my favorite apps after reading I should delete them, then reinstall the new version. Now they won't install. I've searched for and deleted left over files by app and developer name. I've cleared all caches, including dalvik. I've scoured the /data/app-lib directory with brillo, to no avail. I can't upgrade Busybox; I can't upgrade Type Mail; I can't install SD Maid Pro unlock file. I'm no programmer, just a techie. Somebody, HELP ME!
Insufficient storage available
Well, I just bit the bullet and did a system restore. What a pain. Never did before but went smoothly. Redownloaded my apps with no failures and running better than ever. Still don't know what caused the problem though. Glad I keep my data backed up to cloud!
[email protected]