[EVO 4G Q&A, Help & Troubleshooting] Wayno-san:
Guys,

I need some help diagnosing a problem I'm having with Android Market. I've already re-flashed once to fix this issue and it came back so I want to figure out the root cause. The problem is that some applications will not install or update, and some I have no problem with. I'm stumped with why this is.

My hardware/Software: EVO 4G running MikFroyo 4.5 with Market v2.3.3 and Darktremor Apps2SD v2.7.5.2.

312MB free on internal, 21.3GB free on SD card, and 729MB free on SD card (a2sd).

Yesterday I was trying to update Google Maps, but I kept getting an "android installation error: package file invalid" after the file downloaded. I ended up updating the application using an apk file that someone uploaded, which worked fine.

Today, Vlingo is trying to update, but it won't even download; "download unsuccessful" briefly flashes on the screen and it goes right back to the "May apps" market screen. I've had similar issues with other files but unfortunately I have no other logs.

Here is a snippet of a log file that I captured using "aLogcat" during the Vlingo failure (I replaced some numbers with repeating characters because I think posting them might have been a security risk):

I/ActivityManager( 1178): Displayed activity com.android.vending/.AssetInfoActivity: 214 ms (total 214 ms)
D/dalvikvm( 4483): GC_EXPLICIT freed 2076 objects / 102776 bytes in 63ms
D/dalvikvm( 4483): GC_FOR_MALLOC freed 8844 objects / 590632 bytes in 56ms
I/installd( 471): free_cache(4086658) avail 312164352
D/dalvikvm( 4483): GC_EXPLICIT freed 18293 objects / 1062144 bytes in 73ms
D/vending ( 4483): [16] LocalAssetDatabase.notifyListener(): XXXXXXXXXXXXXXXXXXX / DOWNLOAD_PENDING
D/vending ( 4483): [42] AssetDownloader.downloadAndInstall(): Initiating Download for 1 applications.
I/vending ( 4483): [42] DownloadManagerUtil.enqueueDownload(): Enqueue for download com.android.vending.util.DownloadManagerUtil$Request@479703d8
D/vending ( 4483): [42] LocalAssetDatabase.notifyListener(): XXXXXXXXXXXXXXXXXXX / null
I/LSState ( 1178): EventReceiver:android.intent.action.NOTIFICATION_ADD
D/dalvikvm( 4483): GC_EXPLICIT freed 18983 objects / 768560 bytes in 127ms
D/vending ( 4483): [42] LocalAssetDatabase.notifyListener(): XXXXXXXXXXXXXXXXXXX / DOWNLOADING
D/dalvikvm( 4483): GC_EXPLICIT freed 12286 objects / 443752 bytes in 79ms
I/LSState ( 1178): EventReceiver:android.intent.action.NOTIFICATION_UPDATE
I/LSState ( 1178): EventReceiver:android.intent.action.NOTIFICATION_UPDATE
D/DownloadManager( 1675): download aborted - not enough free space in internal storage
D/dalvikvm( 4483): GC_EXPLICIT freed 6837 objects / 250320 bytes in 70ms
D/DownloadManager( 1675): notifyDownloadCompleted status: 498
D/dalvikvm( 4483): GC_EXPLICIT freed 6760 objects / 246488 bytes in 136ms
D/DownloadManager( 1675): isStatusError
D/DownloadManager( 1675): id: 162
D/DownloadManager( 1675): uri: http://android.clients.google.com/market/download/Download?assetId=XXXXXXXXXXXXXXXXXXX&userId=YYYYYYYYYYYYYYYYYY&deviceId=ZZZZZZZZZZZZZZZZZZZ
D/DownloadManager( 1675): mimeType: application/vnd.android.package-archive
D/dalvikvm( 1178): GC_FOR_MALLOC freed 41768 objects / 2060304 bytes in 248ms
W/vending ( 4483): [1] DownloadingAssetViewUpdater.updateView(): Asset com.vlingo.client is in downloading state, but download failed
D/vending ( 4483): [1] LocalAssetDatabase.notifyListener(): XXXXXXXXXXXXXXXXXXX / DOWNLOAD_FAILED
V/NotificationService( 1178): Charging for Hero ...
E/lights ( 1178): write ok string=1,len=1
E/lights ( 1178): write ok string=0,len=1
E/lights ( 1178): write ok string=0 0,len=3
E/lights ( 1178): write ok string=0,len=1
E/lights ( 1178): write ok string=0,len=1
E/lights ( 1178): write ok string=0 0,len=3
I/LSState ( 1178): EventReceiver:android.intent.action.NOTIFICATION_REMOVE
D/vending ( 4483): [43] DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): Got a download completed intent.
I/vending ( 4483): [43] DownloadManagerBroadcastReceiver.startNextDownload(): Found Paused URI null
I/vending ( 4483): [43] DownloadManagerBroadcastReceiver.startNextDownload(): No more paused downloads.
E/vending ( 4483): [43] DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): content://downloads/download/162 state is DOWNLOAD_FAILED
D/alogcat ( 4637): stopping ...
D/alogcat ( 4637): canceling periodic saves
V/alogcat ( 4637): started
V/alogcat ( 4637): resumed
D/alogcat ( 4637): starting ...
D/dalvikvm( 4637): GC_FOR_MALLOC freed 7185 objects / 435392 bytes in 40ms
D/dalvikvm( 4027): GC_EXPLICIT freed 3874 objects / 148080 bytes in 89ms
D/dalvikvm( 4025): GC_EXPLICIT freed 270 objects / 12704 bytes in 88ms
W/KeyCharacterMap( 4637): No keyboard for id 65540
W/KeyCharacterMap( 4637): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
V/alogcat ( 4637): save instance
V/alogcat ( 4637): paused
D/dalvikvm( 4637): GC_FOR_MALLOC freed 8053 objects / 556992 bytes in 40ms
I/ActivityManager( 1178): Displayed activity org.jtb.alogcat/.PrefsActivity: 387 ms (total 387 ms)
D/alogcat ( 4637): stopping ...
D/alogcat ( 4637): stopped
D/dalvikvm( 3445): GC_EXPLICIT freed 5559 objects / 421280 bytes in 91ms
D/dalvikvm( 4637): GC_EXTERNAL_ALLOC freed 1716 objects / 98696 bytes in 36ms
D/dalvikvm( 4637): GC_EXTERNAL_ALLOC freed 25 objects / 1224 bytes in 31ms
D/dalvikvm( 1584): GC_EXPLICIT freed 1750 objects / 95272 bytes in 125ms
W/KeyCharacterMap( 4637): No keyboard for id 65540
W/KeyCharacterMap( 4637): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/alogcat ( 4637): stopping ...
D/alogcat ( 4637): canceling periodic saves
V/alogcat ( 4637): started
V/alogcat ( 4637): resumed
D/alogcat ( 4637): starting ...
D/dalvikvm( 4637): GC_FOR_MALLOC freed 6249 objects / 362128 bytes in 42ms
W/KeyCharacterMap( 4637): No keyboard for id 65540
W/KeyCharacterMap( 4637): Using default keymap: /system/usr/keychars/qwerty.kcm.bin

Some of the things I've tried when this happens are:

1. Clearing the market cache,

2. Clearing the market data,

3. Clearing both the CACHE and DALVIK-CACHE using recovery (AmonRA 2.3)

4. Running "fix apk UID miscmatches" using recovery

5. Switching from 3G to WiFi and vise versa

I also noticed that sometimes I have problems restoring applications using Titanium Backup (failed install)... so perhaps this is not a Market issue.

I'm in no way an Android expert and I hope someone that's more knowledgeable than me can help me out because this is driving me nuts.

Thanks,

Wayno-san