I connected my Android device and used adb shell
and while I intended to uninstall the stock music player app I instead uninstalled com.android.providers.media
package using this command: pm uninstall -k --user 0 com.android.providers.media
. Now I would like to reinstall it back.
I tried downloading and installing the apk file but got INSTALL_FAILED_UPDATE_INCOMPATIBLE
error.
? .\adb.exe install com-android-providers-media-1580000075-39331427-4b5d0d066aef0e9e03a79b5dcd83005b.apk
adb: failed to install com-android-providers-media-1580000075-39331427-4b5d0d066aef0e9e03a79b5dcd83005b.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.android.providers.media signatures do not match the previously installed version; ignoring!]
So, what's the fastest and/or the easiest way to get it back? I guess because of using the k option (and from the error message I got while trying to install it from the apk file) that the package is already in the device and I can install it again easily.
--Update
I tried to completely uninstall the package but also that didn't work:
> adb uninstall com.android.providers.media
Failure [DELETE_FAILED_INTERNAL_ERROR]
adb install -r com_android_provider_media.apk
but gotINSTALL_FAILED_UPDATE_INCOMPATIBLE
error.