Re: [android-developers] Uid mismatch

2011-03-03 Thread Dianne Hackborn
Oh so the problem isn't really the uid mismatch, but the failure installing? I guess something about your .apk is not compatible with Dalvik on that older version of the platform. I'm sorry I don't know enough about Dalvik to help any further than that. Well a quick Google search shows some othe

Re: [android-developers] Uid mismatch

2011-03-03 Thread Demetris
Hi Dianne, let me take this from the top: First I try to install the package using "adb install" and I get back the following error: Failure [INSTALL_FAILED_DEXOPT] The log during this failure is what I showed below - the mismatched uids and the failire to extract files out of the temporary

Re: [android-developers] Uid mismatch

2011-03-03 Thread Dianne Hackborn
If the package is completely uninstalled and it is still failing when installed, I would like to see the log from when it failing and the "adb shell dumpsys package" output after the failure. It sounds like all you attached was the log from after uninstalling the package, when there is no data abo

Re: [android-developers] Uid mismatch

2011-03-03 Thread Dianne Hackborn
Huh, that doesn't make any sense. Uninstalling will remove all traces of the app and any uids associated with it, so when you install again it will be fresh. Could you please post: (1) The output of logcat when you are uninstalling. (2) The output of "adb shell dumpsys package" after uninstallin

Re: [android-developers] Uid mismatch

2011-03-03 Thread Demetris
No problem Dianne I certainly understand and I still appreciate the help so far anyway. I am primarily working with 2.2 and 2.3 versions of the OS but there was a requirement to use these older phones for now so I need to dig in the ancient world a bit ;) I did uninstall and install the app

Re: [android-developers] Uid mismatch

2011-03-02 Thread Dianne Hackborn
1.6 is really old, so I am not going to be able to remember enough to help much off-hand. There may have been a bug in it that allowed uids to get re-assigned in certain bad situations. I can't help you with dalvik errors. I think what I would suggest at this point is to just uninstall the app a

Re: [android-developers] Uid mismatch

2011-03-02 Thread Demetris
No I didn't actually try to change the app from shared user to non-shared, it is a non-shared id app even though I am seeing 7 shared uids mentioned in the logging below. Not sure why but I didn't set any shared user uids. I am compiling and running this on a 1.6 Android phone and I do see the

Re: [android-developers] Uid mismatch

2011-03-02 Thread Dianne Hackborn
The uid is stored in data/system/packages.xml and of course the uid of the directory and files owned by the app. You can't touch any of these unless you are running a non-user build. Did you try to change the app between a shared user id and non-shared? If so, this will cause the problem; on old

[android-developers] Uid mismatch

2011-03-02 Thread kypriakos
It seems that the install failure of a particular apk may be attributed to mismatch uids. What causes such mismatches and is it possible to correct them without losing the user data - particularly in this case where only a certain app apk does that but the rest are fine. Where do these uids get st