INSTALL_FAILED_SHARED_USER_INCOMPATIBLE while using shared user id
Follow these steps to fix the INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
error:
- Remove the existing application (if it was already installed)
- Remove the
sharedUserId
from AndroidManifest.xml - Rebuild the application
- Reenter the
sharedUserId
to AndroidManifest.xml - Rebuild the application (one more time)
This means something about your app was not correctly uninstalled. This steps help to force uninstall from internal commands:
- Connect your phone to PC with usb
- From your shell launch:
$ adb shell
shell@android:/ $ su
shell@android:/ # pm list packages | grep <part of package>
package:com.android.providers.applications
package:com.android.providers.calendar
package:com.android.providers.contacts
package:com.android.providers.downloads
...
shell@android:/ # pm uninstall <package>
shell@android:/ # exit
shell@android:/ $ exit
$
Basically, you log into android shell, become superuser, find problematic packages, and uninstall it