So I have a parasite application installed on the phone that blocks the device from booting to bootloader and bunch of other stuff. It is also set as a device administartor thus it can't be uninstalled (deactivate administartor rights is also impossible). So to fix this problem I decompiled the APK of this app and changed the code so I can deactivate the admin rights. Unfortunately recompiled APK can not be installed over the existing application.
Adb error:
INSTALL_FAILED_UPDATE_INCOMPATIBLE
So is there a way to force install the app without uninstalling it? Or if my approach is wrong can you advice me on how to get rid of this annoying app.