We have non rooted Droid Razr Maxx which we use for development. The device is shared between two of us and we both have been debugging/installing from eclipse directly without any errors. We do uninstall the previous version (as prompted) and reinstall the same. On one of the installation attempts today, we got the "Installation error: INSTALL_FAILED_UID_CHANGED" error.
Console in Eclipse shows the following message:
[2014-01-02 16:34:05 - xxxAppNamexxx] Installing xxxAppNamexxx.apk...
[2014-01-02 16:34:08 - xxxAppNamexxx] Installation error: INSTALL_FAILED_UID_CHANGED
[2014-01-02 16:34:08 - xxxAppNamexxx] Please check logcat output for more details.
[2014-01-02 16:34:08 - xxxAppNamexxx] Launch canceled!
Logcat shows the following message:
01-02 16:34:21.031: W/ActivityManager(467): No content provider found for permission revoke: file:///data/local/tmp/xxxAppNamexxx.apk
01-02 16:34:21.070: W/ActivityManager(467): No content provider found for permission revoke: file:///data/local/tmp/xxxAppNamexxx.apk
01-02 16:34:21.961: W/ActivityManager(467): Permission denied: checkComponentPermission() owningUid=10110
01-02 16:34:21.961: W/ActivityManager(467): Permission denied: checkComponentPermission() owningUid=10110
01-02 16:34:22.539: W/PackageManager(467): Package couldn't be installed in /data/app/com.halinc.halc2c.xxxAppNamexxx-1.apk
The directory /data when viewed using a file manager in a non-rooted phone is empty.This is catch 22 as the solutions provided seem to suggest either rooting the phone(Change /data/local Permissions) or doing a factory reset(Installation error: INSTALL_FAILED_UID_CHANGED). We are looking for some less painful solutions.