Merge "Add permissions for AppFunctionManagerTest to Shell." into main