I have already posted this on Reddit, but I might reach a better audience here.
I "uninstalled" Google Play Games using this guide by XDA. Now I need to reinstall it. This is the command, how I should be able to reinstall the app:
adb shell cmd package install-existing <name of package>. But there is one problem: My phone is on Android Lollipop, and the command doesn't exist there. I manually tried to install the apk back, with adb and with the normal package installer. The Settings app always says something like "Not installed for user" (translated from another language).
So I have 2 questions:
- In which Android version was this command introduced?
- How can I get this app back?
PS: I have root access, but would prefer a non-rooted solution.
cmdcommand, it might be worth trying
adb shell "cmd package compile --reset com.google.android.play.games". Also, though I doubt it works it cannot hurt:
pm enable --user 0 <pkg>,
pm unhide --user 0 <pkg>.
adb shell cmd package install-existing <name of package>can reinstall an uninstalled system app for the current user. But, when I tried it in my Android 7.0 smartphone, it showed an error that the command
install-existingcould not be found. Can this command be modified to get some result?
pm enable --user 0worked for me! thanks!
cmd package install-existinginside adb shell worked