Creative Ways To Use Multiple Users?

You can uninstall apps temporarily with ADB at the user level. However there isn't a way to know whether certain apps will cause your phone to go wonky; you can do a mock uninstall on another user and see whether it's safe there.

The uninstall command is:

pm uninstall -k --user <int> <package name>

  • -k flag means keep the app data
  • --user flag takes an int, 0 is the main account AFAIK. You can know the user's assigned integer by checking your home directory path, for example the main user's home dir path is /storage/emulated/0

By temporary uninstall, I mean apps go back when you factory reset.

Also don't uninstall critical system components like SystemUI and Android System, I'm not sure how that'll affect other users.

P.S. I haven't tried this myself, the thought occurred to me when I tried Second Space in my Xiaomi phone and discovered that the apps uninstalled on the main "space" is back on the Second Space.

/r/Android Thread