Merge "Adds caller check to getAllPackages()" into pi-dev