Merge "Add testAPI to get adopted shell permissions." into sc-dev