Question: What configuration files does
pm uninstall write to, is it
/data/system/users/0/package-restrictions.xml or both? Are there any additional files?
Note: This questions specifically concerns the behavior of
pm uninstall, not
pm disable. Furthermore, it concerns the behavior on unrooted devices.
Motivation: Uninstalling the wrong apps doing
pm uninstall can result in a soft-brick/boot loop. Therefore, reversing the effects of
pm uninstall can be the easiest way out of such problem, especially if other methods risk wiping data that needs to be rescued.