Merge "Add getDeclaredShareLibraries() for role qualification checking."