Merge "Add pkg visibility checks to all hibernation APIs"