Rename updatable-library to apex-library am: 1df9a1e8f5

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1954037

Change-Id: I559fecd56edbc4fcf1047bb8ab9ec029e515e17f
This commit is contained in:
Pedro Loureiro
2022-03-01 15:51:31 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 4 deletions

View File

@@ -849,8 +849,8 @@ public class SystemConfig {
XmlUtils.skipCurrentTag(parser);
}
} break;
case "updatable-library":
// "updatable-library" is meant to behave exactly like "library"
case "apex-library":
// "apex-library" is meant to behave exactly like "library"
case "library": {
if (allowLibs) {
String lname = parser.getAttributeValue(null, "name");

View File

@@ -354,13 +354,13 @@ public class SystemConfigTest {
/**
* Tests that readPermissions works correctly for a library using the new
* {@code updatable-library} tag.
* {@code apex-library} tag.
*/
@Test
public void readPermissions_allowLibs_parsesUpdatableLibrary() throws IOException {
String contents =
"<permissions>\n"
+ " <updatable-library \n"
+ " <apex-library \n"
+ " name=\"foo\"\n"
+ " file=\"foo.jar\"\n"
+ " on-bootclasspath-before=\"10\"\n"