/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 25 import com.android.apksig.apk.ApkFormatException; 891 String apk = "v1-only-with-signed-attrs.apk"; in testV1SignedAttrs() local 893 verifyForMinSdkVersion(apk, AndroidSdkVersion.JELLY_BEAN_MR2), in testV1SignedAttrs() 895 assertVerified(verifyForMinSdkVersion(apk, AndroidSdkVersion.KITKAT)); in testV1SignedAttrs() 897 apk = "v1-only-with-signed-attrs-signerInfo1-good-signerInfo2-good.apk"; in testV1SignedAttrs() 899 verifyForMinSdkVersion(apk, AndroidSdkVersion.JELLY_BEAN_MR2), in testV1SignedAttrs() 901 assertVerified(verifyForMinSdkVersion(apk, AndroidSdkVersion.KITKAT)); in testV1SignedAttrs() 919 String apk = "v1-only-with-signed-attrs-missing-content-type.apk"; in testV1SignedAttrsMissingContentType() local 920 assertVerified(verifyForMaxSdkVersion(apk, AndroidSdkVersion.N - 1)); in testV1SignedAttrsMissingContentType() 921 assertVerificationFailure(verify(apk), Issue.JAR_SIG_VERIFY_EXCEPTION); in testV1SignedAttrsMissingContentType() [all …]
|
D | ApkSignerTest.java | 23 import com.android.apksig.apk.ApkFormatException; 24 import com.android.apksig.apk.ApkUtils; 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 26 import com.android.apksig.internal.apk.SignatureInfo; 27 import com.android.apksig.internal.apk.v2.V2SchemeSigner; 28 import com.android.apksig.internal.apk.v3.V3SchemeSigner; 676 String apk = "debuggable-boolean.apk"; in testDebuggableApk() local 680 sign(apk, new ApkSigner.Builder(signers)); in testDebuggableApk() 682 sign(apk, new ApkSigner.Builder(signers).setDebuggableApkPermitted(true)); in testDebuggableApk() 685 sign(apk, new ApkSigner.Builder(signers).setDebuggableApkPermitted(false)); in testDebuggableApk() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 19 import com.android.apksig.apk.ApkFormatException; 20 import com.android.apksig.apk.ApkUtils; 21 import com.android.apksig.internal.apk.AndroidBinXmlParser; 22 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 23 import com.android.apksig.internal.apk.v1.V1SchemeVerifier; 24 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 25 import com.android.apksig.internal.apk.SignatureAlgorithm; 26 import com.android.apksig.internal.apk.v2.V2SchemeVerifier; 27 import com.android.apksig.internal.apk.v3.V3SchemeVerifier; 116 DataSource apk; in verify() local [all …]
|
D | SigningCertificateLineage.java | 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.getLengthPrefixedSlice; 21 import com.android.apksig.apk.ApkFormatException; 22 import com.android.apksig.apk.ApkUtils; 23 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 24 import com.android.apksig.internal.apk.SignatureAlgorithm; 25 import com.android.apksig.internal.apk.SignatureInfo; 26 import com.android.apksig.internal.apk.v3.V3SchemeSigner; 27 import com.android.apksig.internal.apk.v3.V3SigningCertificateLineage; 28 import com.android.apksig.internal.apk.v3.V3SigningCertificateLineage.SigningCertificateNode; 174 DataSource apk = DataSources.asDataSource(f, 0, f.length()); in readFromApkFile() local [all …]
|
D | DefaultApkSignerEngine.java | 19 import com.android.apksig.apk.ApkFormatException; 20 import com.android.apksig.apk.ApkUtils; 21 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 22 import com.android.apksig.internal.apk.SignatureAlgorithm; 23 import com.android.apksig.internal.apk.v1.DigestAlgorithm; 24 import com.android.apksig.internal.apk.v1.V1SchemeSigner; 25 import com.android.apksig.internal.apk.v1.V1SchemeVerifier; 26 import com.android.apksig.internal.apk.v2.V2SchemeSigner; 27 import com.android.apksig.internal.apk.v3.V3SchemeSigner;
|
D | ApkSigner.java | 19 import com.android.apksig.apk.ApkFormatException; 20 import com.android.apksig.apk.ApkSigningBlockNotFoundException; 21 import com.android.apksig.apk.ApkUtils; 22 import com.android.apksig.apk.MinSdkVersionException; 744 DataSource apk, in getZipCentralDirectory() argument 751 ByteBuffer cd = apk.getByteBuffer(cdOffset, (int) cdSizeBytes); in getZipCentralDirectory()
|
/tools/test/graphicsbenchmark/performance_tests/helper/test/com/android/game/qualification/ |
D | GameCoreConfigurationXmlParserTest.java | 67 ApkInfo apk = config.getApkInfo().get(0); in testSingleApkInfo() local 68 assertEquals("foo", apk.getName()); in testSingleApkInfo() 69 assertEquals("foo.apk", apk.getFileName()); in testSingleApkInfo() 70 assertEquals("com.foo.test", apk.getPackageName()); in testSingleApkInfo() 71 assertEquals(null, apk.getActivityName()); in testSingleApkInfo() 72 assertEquals(null, apk.getScript()); in testSingleApkInfo() 73 assertEquals(10000, apk.getLoadTime()); in testSingleApkInfo() 74 assertEquals(10000, apk.getRunTime()); in testSingleApkInfo() 99 ApkInfo apk = apks.get(0); in testOptionalFields() local 100 assertEquals("foo", apk.getName()); in testOptionalFields() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 82 File apk = FileUtil.createTempFile("testapk", ".apk", mTmpDepDir); in testGetLocalPathForFilename_withVariable() local 83 File res = mPreparer.getLocalPathForFilename(mTestInfo, apk.getName()); in testGetLocalPathForFilename_withVariable() 86 assertEquals(apk.getAbsolutePath(), res.getAbsolutePath()); in testGetLocalPathForFilename_withVariable() 119 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName() local 120 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName() 157 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName_testsDir() local 158 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_testsDir() 171 File apk = mPreparer.getLocalPathForFilename(mTestInfo, "foo.apk"); in testGetLocalPathForFileName_inBuildKey() local 172 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_inBuildKey() 197 File apk = mPreparer.getLocalPathForFilename(mTestInfo, "suite-apk-installer.apk"); in testGetLocalPathForFileName_remoteZip() local [all …]
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 17 package com.android.apksig.apk; 19 import com.android.apksig.internal.apk.AndroidBinXmlParser; 20 import com.android.apksig.internal.apk.v1.V1SchemeVerifier; 52 public static ZipSections findZipSections(DataSource apk) in findZipSections() argument 55 ZipUtils.findZipEndOfCentralDirectoryRecord(apk); in findZipSections() 180 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() argument 208 ByteBuffer footer = apk.getByteBuffer(centralDirStartOffset - 24, 24); in findApkSigningBlock() 228 ByteBuffer apkSigBlock = apk.getByteBuffer(apkSigBlockOffset, 8); in findApkSigningBlock() 236 return new ApkSigningBlock(apkSigBlockOffset, apk.slice(apkSigBlockOffset, totalSize)); in findApkSigningBlock() 280 public static ByteBuffer getAndroidManifest(DataSource apk) in getAndroidManifest() argument [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 17 package com.android.apksig.internal.apk.v3; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.getLengthPrefixedSlice; 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray; 24 import com.android.apksig.apk.ApkFormatException; 25 import com.android.apksig.apk.ApkUtils; 26 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignatureNotFoundException; 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 29 import com.android.apksig.internal.apk.SignatureAlgorithm; 30 import com.android.apksig.internal.apk.SignatureInfo; [all …]
|
D | V3SchemeSigner.java | 17 package com.android.apksig.internal.apk.v3; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement; 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates; 23 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodePublicKey; 26 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 29 import com.android.apksig.internal.apk.SignatureAlgorithm;
|
D | V3SigningCertificateLineage.java | 17 package com.android.apksig.internal.apk.v3; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement; 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.getLengthPrefixedSlice; 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray; 24 import com.android.apksig.apk.ApkFormatException; 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 26 import com.android.apksig.internal.apk.SignatureAlgorithm;
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/ |
D | ApkAlignmentTest.java | 40 File apk = new File(mTemporaryFolder.getRoot(), "a.apk"); in soFilesUncompressedAndAligned() local 48 apk, in soFilesUncompressedAndAligned() 64 try (ZFile zf = new ZFile(apk)) { in soFilesUncompressedAndAligned() 97 File apk = new File(mTemporaryFolder.getRoot(), "b.apk"); in soFilesMergedFromZipsCanBeUncompressedAndAligned() local 101 apk, in soFilesMergedFromZipsCanBeUncompressedAndAligned() 117 try (ZFile zf = new ZFile(apk)) { in soFilesMergedFromZipsCanBeUncompressedAndAligned() 137 File apk = new File(mTemporaryFolder.getRoot(), "a.apk"); in soFilesUncompressedAndNotAligned() local 145 apk, in soFilesUncompressedAndNotAligned() 161 try (ZFile zf = new ZFile(apk)) { in soFilesUncompressedAndNotAligned() 194 File apk = new File(mTemporaryFolder.getRoot(), "b.apk"); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned() local [all …]
|
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/ |
D | GameQualificationTest.java | 59 for (ApkInfo apk : apks) { in data() 60 params.add(new Object[] { apk.getName(), apk }); in data() 80 private void startApp(ApkInfo apk) throws IntentFilter.MalformedMimeTypeException, IOException { in startApp() argument 85 mReport.begin(apk.getName()); in startApp() 86 Log.d(TAG, "Launching " + apk.getPackageName()); in startApp() 90 .getLaunchIntentForPackage(apk.getPackageName()); in startApp() 91 if (apk.getActivityName() != null) { in startApp() 92 intent.setClassName(apk.getPackageName(), apk.getActivityName()); in startApp()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 17 package com.android.apksig.internal.apk.v2; 20 import com.android.apksig.apk.ApkFormatException; 21 import com.android.apksig.apk.ApkUtils; 22 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 23 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 24 import com.android.apksig.internal.apk.SignatureAlgorithm; 25 import com.android.apksig.internal.apk.SignatureInfo; 92 DataSource apk, in verify() argument 103 ApkSigningBlockUtils.findSignature(apk, zipSections, in verify() 106 DataSource beforeApkSigningBlock = apk.slice(0, signatureInfo.apkSigningBlockOffset); in verify() [all …]
|
D | V2SchemeSigner.java | 17 package com.android.apksig.internal.apk.v2; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates; 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodePublicKey; 24 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 26 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 27 import com.android.apksig.internal.apk.SignatureAlgorithm;
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 17 package com.android.apksig.internal.apk.v1; 21 import com.android.apksig.apk.ApkFormatException; 22 import com.android.apksig.apk.ApkUtils; 107 DataSource apk, in verify() argument 122 List<CentralDirectoryRecord> cdRecords = parseZipCentralDirectory(apk, apkSections); in verify() 130 apk, in verify() 215 DataSource apk, in verify() argument 258 LocalFileRecord.getUncompressedData(apk, manifestEntry, cdStartOffset); in verify() 312 apk, cdStartOffset, minSdkVersion, maxSdkVersion); in verify() 366 apk, in verify() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BuildTestsZipUtilsTest.java | 69 File apk = new File(apkDir, "TestApk.apk"); in testGetApkFile_fromTestDir() local 70 apk.createNewFile(); in testGetApkFile_fromTestDir() 80 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir() 100 File apk = new File(apkDir, "TestApk.apk"); in testGetApkFile_fromTestDir_testCase() local 101 apk.createNewFile(); in testGetApkFile_fromTestDir_testCase() 111 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir_testCase() 131 File apk = new File(apkDir, "TestApk.apk"); in testGetApkFile_fromTestDir_differentModule_testCase() local 132 apk.createNewFile(); in testGetApkFile_fromTestDir_differentModule_testCase() 142 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir_differentModule_testCase()
|
/tools/test/graphicsbenchmark/dist/ |
D | README | 4 Usage: ./run_gamecore.sh [--all] [--apk-info=file] [--apk-dir=dir] 9 --apk-info=file An XML file describing the list of APKs for qualifications. 10 --apk-dir=dir Directory containing the APKs for qualifications. If --apk-info is 11 not specified and a file named 'apk-info.xml' exists in --apk-dir, 12 that file will be used as the apk-info.
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | help_sign.txt | 1 USAGE: apksigner sign [options] apk 51 --debuggable-apk-permitted Whether to permit signing android:debuggable="true" 213 $ apksigner sign --ks release.jks app.apk 217 $ apksigner sign --ks release.jks --in app.apk --out app-signed.apk 220 $ apksigner sign --key release.pk8 --cert release.x509.pem app.apk 223 $ apksigner sign --ks release.jks --next-signer --ks magic.jks app.apk 227 --provider-arg token.cfg --ks NONE --ks-type PKCS11 app.apk 232 $ apksigner sign --ks release.jks --pass-encoding ibm437 app.apk 236 $ apksigner sign --ks release.jks --pass-encoding utf-8 app.apk 240 --lineage /path/to/signing/history/lineage app.apk
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | InstallApkSetup.java | 89 for (File apk : mApkPaths) { in setUp() 90 if (!apk.exists()) { in setUp() 92 apk.getAbsolutePath()), device.getDeviceDescriptor()); in setUp() 94 Log.i(LOG_TAG, String.format("Installing %s on %s", apk.getName(), in setUp() 106 String result = device.installPackage(apk, true, mInstallArgs.toArray(new String[]{})); in setUp() 111 apk.getAbsolutePath(), device.getSerialNumber(), result), in setUp() 115 apk.getAbsolutePath(), device.getSerialNumber(), result)); in setUp()
|
/tools/test/graphicsbenchmark/ |
D | README | 17 --apk-info An XML file describing the list of APKs for qualifications. 18 --apk-dir Directory contains the APKs for qualifications. If --apk-info is not specified and a 19 file named 'apk-info.xml' exists in --apk-dir, that file will be used as the apk-info.
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/testtype/ |
D | GameQualificationHostsideController.java | 245 for (ApkInfo apk : mApks) { in run() 251 apk, in run() 255 collector.setApkInfo(apk); in run() 257 mGameCoreConfiguration.findCertificationRequirements(apk.getName())); in run() 260 … TestDescription identifier = new TestDescription(CLASS, t.getName() + "[" + apk.getName() + "]"); in run() 267 mGameCoreConfiguration.findCertificationRequirements(apk.getName()); in run()
|
/tools/trebuchet/trebuchet/startup-analyzer/ |
D | README.md | 139 …alvik-cache/arm/data@app@com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==@base.apk@classes.dex @ 0.026… 141 …/data@app@com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==@split_codegenerator.apk@classes.dex @ 0.017… 156 … /data/app/com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==/base.apk @ 0.482 ms 157 … /data/app/com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==/base.apk!classes2.dex @ 0.061 ms 158 … /data/app/com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==/base.apk!classes9.dex @ 0.054 ms 159 … /data/app/com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==/base.apk!classes3.dex @ 0.063 ms
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | LocalFileRecord.java | 124 DataSource apk, in getRecord() argument 128 apk, in getRecord() 142 DataSource apk, in getRecord() argument 163 header = apk.getByteBuffer(headerStartOffset, headerSizeWithName); in getRecord() 244 extra = apk.getByteBuffer( in getRecord() 267 ByteBuffer dataDescriptorPotentialSig = apk.getByteBuffer(dataEndOffset, 4); in getRecord()
|