Home
last modified time | relevance | path

Searched refs:manifest (Results 1 – 21 of 21) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/apk/
DApkUtilsTest.java64 ByteBuffer manifest = getAndroidManifest("original.apk"); in testGetMinSdkVersionFromBinaryAndroidManifest() local
65 assertEquals(23, ApkUtils.getMinSdkVersionFromBinaryAndroidManifest(manifest)); in testGetMinSdkVersionFromBinaryAndroidManifest()
70 ByteBuffer manifest = getAndroidManifest("original.apk"); in testGetDebuggableFromBinaryAndroidManifest() local
71 assertFalse(ApkUtils.getDebuggableFromBinaryAndroidManifest(manifest)); in testGetDebuggableFromBinaryAndroidManifest()
73 manifest = getAndroidManifest("debuggable-boolean.apk"); in testGetDebuggableFromBinaryAndroidManifest()
74 assertTrue(ApkUtils.getDebuggableFromBinaryAndroidManifest(manifest)); in testGetDebuggableFromBinaryAndroidManifest()
77 manifest = getAndroidManifest("debuggable-resource.apk"); in testGetDebuggableFromBinaryAndroidManifest()
79 ApkUtils.getDebuggableFromBinaryAndroidManifest(manifest); in testGetDebuggableFromBinaryAndroidManifest()
86 ByteBuffer manifest = getAndroidManifest("original.apk"); in testGetPackageNameFromBinaryAndroidManifest() local
89 ApkUtils.getPackageNameFromBinaryAndroidManifest(manifest)); in testGetPackageNameFromBinaryAndroidManifest()
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DSystemServiceCheckTest.kt43 manifest = """<?xml version="1.0" encoding="UTF-8"?> in SystemService OK, loaded from signature file()
80 manifest = """<?xml version="1.0" encoding="UTF-8"?> in SystemService OK, loaded from source()
115 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- no permission annotation()
143 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- can miss a permission with anyOf()
180 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService such that at least one permission must be defined with anyOf()
208 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- missing one permission with allOf()
245 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- must be system permission, not normal()
262 fun `Check SystemService -- missing manifest permissions`() { in Check SystemService -- missing manifest permissions()
286 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- missing manifest permissions()
293 fun `Invalid manifest`() { in Invalid manifest()
[all …]
/tools/treble/split/
DREADME.md7 the target, it shouldn't be in the split manifest. This smaller manifest can be
9 should be faster and smaller than a sync of a full manifest because it is
13 manifest from a full manifest using dependency information from the source tree
21 ### 1. Run a full build using a full manifest
37 # target that should be buildable from your split manifest.
45 # Create the split manifest using a sample config XML specific to aosp_arm64.
47 --manifest .repo/manifests/default.xml \
48 --split-manifest split_default.xml \
54 ### 3. Build using the split manifest
56 You should test that the split manifest created by the tool can be used to build
[all …]
Dmanifest_split_test.py62 manifest = ET.ElementTree(ET.fromstring(manifest_contents))
64 None, manifest, path_mappings=[])
284 manifest = manifest_split.update_manifest(
288 projects = manifest.getroot().findall('project')
Dmanifest_split.py161 def get_repo_projects(repo_list_file, manifest, path_mappings): argument
179 root = manifest.getroot()
421 def update_manifest(manifest, input_projects, remove_projects): argument
434 root = manifest.getroot()
438 return manifest
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java66 Manifest manifest = new Manifest(new ByteArrayInputStream(manifestEntry.read())); in signEmptyJar() local
67 assertEquals(3, manifest.getMainAttributes().size()); in signEmptyJar()
68 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signEmptyJar()
69 assertEquals("Me", manifest.getMainAttributes().getValue("Created-By")); in signEmptyJar()
70 assertEquals("Me", manifest.getMainAttributes().getValue("Built-By")); in signEmptyJar()
95 Manifest manifest = new Manifest(new ByteArrayInputStream(manifestEntry.read())); in signJarWithPrexistingSimpleTextFilePre18() local
96 assertEquals(3, manifest.getMainAttributes().size()); in signJarWithPrexistingSimpleTextFilePre18()
97 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signJarWithPrexistingSimpleTextFilePre18()
98 assertEquals("Merry", manifest.getMainAttributes().getValue("Built-By")); in signJarWithPrexistingSimpleTextFilePre18()
99 assertEquals("Christmas", manifest.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePre18()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationExtension.java86 private final Manifest manifest; field in ManifestGenerationExtension
129 manifest = new Manifest(); in ManifestGenerationExtension()
134 manifest.write(outBytes); in ManifestGenerationExtension()
189 manifest.clear(); in rebuildManifest()
191 manifest.read(new ByteArrayInputStream(manifestBytes)); in rebuildManifest()
195 Attributes mainAttributes = manifest.getMainAttributes(); in rebuildManifest()
221 Attributes mainAttributes = manifest.getMainAttributes(); in setMainAttribute()
/tools/trebuchet/
DAndroid.bp98 manifest: "trebuchet/analyzer/MANIFEST.mf",
110 manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
123 manifest: "trebuchet/startup-summarizer/MANIFEST.mf",
136 manifest: "trebuchet/traceutils/MANIFEST.mf",
148 manifest: "trebuchet/viewer/MANIFEST.mf",
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java249 OutputManifestFile manifest = in sign() local
254 signerConfigs, jarEntryDigestAlgorithm, apkSigningSchemeIds, createdBy, manifest); in sign()
274 OutputManifestFile manifest) in signManifest() argument
285 generateSignatureFile(apkSigningSchemeIds, digestAlgorithm, createdBy, manifest); in signManifest()
309 signatureJarEntries.add(Pair.of(V1SchemeConstants.MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest()
421 OutputManifestFile manifest) throws NoSuchAlgorithmException { in generateSignatureFile() argument
448 Base64.getEncoder().encodeToString(md.digest(manifest.contents))); in generateSignatureFile()
457 : manifest.individualSectionsContents.entrySet()) { in generateSignatureFile()
DV1SchemeVerifier.java175 ManifestParser manifest = new ManifestParser(manifestBytes); in parseManifest() local
176 ManifestParser.Section manifestMainSection = manifest.readSection(); in parseManifest()
177 List<ManifestParser.Section> manifestIndividualSections = manifest.readAllSections(); in parseManifest()
/tools/metalava/
DAndroid.bp31 manifest: "manifest.txt",
/tools/security/remote_provisioning/attestation_testing/
DAndroid.bp10 manifest: "AndroidManifest.xml",
/tools/test/connectivity/tools/
D.gitignore31 *.manifest
/tools/test/graphicsbenchmark/performance_tests/deviceside/
DAndroid.bp24 manifest: "AndroidManifest.xml",
/tools/test/connectivity/acts/
D.gitignore31 *.manifest
/tools/platform-compat/java/com/android/class2nonsdklist/
DAndroid.bp36 manifest: "class2nonsdklist.mf",
/tools/test/connectivity/acts_tests/
D.gitignore31 *.manifest
/tools/repohooks/
DREADME.md31 projects that are checked out via a single manifest.
40 These are the manifest-wide defaults and can be located in two places:
41 * `.repo/manifests/GLOBAL-PREUPLOAD.cfg`: The manifest git repo.
42 Simply check this in to the manifest git repo and you're done.
316 * We need to add `pylint` tool to the AOSP manifest and use that local copy
/tools/apksig/
DAndroid.bp51 manifest: "src/apksigner/apksigner.mf",
/tools/treble/hacksaw/
DREADME.md47 $ repo init -u https://android.googlesource.com/platform/manifest
/tools/tradefederation/prebuilts/filegroups/tradefed/
Dtradefed-test-framework.jar ... META-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...