Using adb, I uninstalled some system apps on my device. Sadly, I uninstalled something important, and now the device is in a bootloop.
During boot there is a window of time which I'm able to login with adb. But when I try to reinstall the system apps:
adb shell cmd package install-existing --user 0 com.xyzname
I get this error:
Can't find service: package
I used to be able to run install/uninstall commands in this bootup window, but now the service 'package' isn't being started.
I tried looking up how to run services with adb, and I found some commands using am
, but nothing pertaining to specifically running 'package'.
I need to get service 'package' to run. Begging for help here.
adb shell pm install-existing --user 0 com.xyzname
. If that doesn't work either, you have to do a factory reset because I am assuming you don't have a custom recovery (which at least offers a way out in this case).