Partial implementation of PackageManager