Merge "Allow app restrictions for uninstalled packages." into lmp-dev