Home
last modified time | relevance | path

Searched refs:apk (Results 1 – 25 of 149) sorted by relevance

123456

/frameworks/base/packages/CtsShim/
DAndroid.bp42 apk: "apk/arm/CtsShimPriv.apk",
45 apk: "apk/arm/CtsShimPriv.apk",
48 apk: "apk/x86/CtsShimPriv.apk",
51 apk: "apk/x86/CtsShimPriv.apk",
80 apk: "apk/arm/CtsShim.apk",
83 apk: "apk/arm/CtsShim.apk",
86 apk: "apk/x86/CtsShim.apk",
89 apk: "apk/x86/CtsShim.apk",
/frameworks/base/packages/CtsShim/build/
DREADME9 For local testing, build the apk and put them in the following folders.
13 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \
14 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/arm
15 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \
16 vendor/xts/gts-tests/hostsidetests/packagemanager/app/apk/arm/GtsShimPrivUpgrade.apk
17 $ cp $OUT/system/priv-app/CtsShimPrivUpgradeWrongSHA/CtsShimPrivUpgradeWrongSHA.apk \
18 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/arm
19 $ cp $OUT/system/priv-app/CtsShimPriv/CtsShimPriv.apk \
20 frameworks/base/packages/CtsShim/apk/arm
21 $ cp $OUT/system/app/CtsShim/CtsShim.apk \
[all …]
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java17 package android.util.apk;
19 import static android.util.apk.ApkSigningBlockUtils.CONTENT_DIGEST_VERITY_CHUNKED_SHA256;
20 import static android.util.apk.ApkSigningBlockUtils.compareSignatureAlgorithm;
21 import static android.util.apk.ApkSigningBlockUtils.getContentDigestAlgorithmJcaDigestAlgorithm;
22 import static android.util.apk.ApkSigningBlockUtils.getLengthPrefixedSlice;
23 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmContentDigestAlgorithm;
24 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmJcaKeyAlgorithm;
25 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmJcaSignatureAlgorithm;
26 import static android.util.apk.ApkSigningBlockUtils.isSupportedSignatureAlgorithm;
27 import static android.util.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray;
[all …]
DApkSignatureSchemeV3Verifier.java17 package android.util.apk;
19 import static android.util.apk.ApkSigningBlockUtils.CONTENT_DIGEST_VERITY_CHUNKED_SHA256;
20 import static android.util.apk.ApkSigningBlockUtils.compareSignatureAlgorithm;
21 import static android.util.apk.ApkSigningBlockUtils.getContentDigestAlgorithmJcaDigestAlgorithm;
22 import static android.util.apk.ApkSigningBlockUtils.getLengthPrefixedSlice;
23 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmContentDigestAlgorithm;
24 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmJcaKeyAlgorithm;
25 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmJcaSignatureAlgorithm;
26 import static android.util.apk.ApkSigningBlockUtils.isSupportedSignatureAlgorithm;
27 import static android.util.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray;
[all …]
DVerityBuilder.java17 package android.util.apk;
81 public static VerityResult generateApkVerityTree(@NonNull RandomAccessFile apk, in generateApkVerityTree() argument
84 return generateVerityTreeInternal(apk, bufferFactory, signatureInfo); in generateApkVerityTree()
88 private static VerityResult generateVerityTreeInternal(@NonNull RandomAccessFile apk, in generateVerityTreeInternal() argument
93 long dataSize = apk.length() - signingBlockSize; in generateVerityTreeInternal()
102 byte[] apkRootHash = generateVerityTreeInternal(apk, signatureInfo, DEFAULT_SALT, in generateVerityTreeInternal()
107 static void generateApkVerityFooter(@NonNull RandomAccessFile apk, in generateApkVerityFooter() argument
111 generateApkVerityHeader(footerOutput, apk.length(), DEFAULT_SALT); in generateApkVerityFooter()
134 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateFsVerityRootHash() argument
135 int[] levelOffset = calculateVerityLevelOffset(apk.length()); in generateFsVerityRootHash()
[all …]
DSourceStampVerifier.java17 package android.util.apk;
19 import static android.util.apk.ApkSigningBlockUtils.CONTENT_DIGEST_SHA256;
20 import static android.util.apk.ApkSigningBlockUtils.compareSignatureAlgorithm;
21 import static android.util.apk.ApkSigningBlockUtils.getLengthPrefixedSlice;
22 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmContentDigestAlgorithm;
23 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmJcaSignatureAlgorithm;
24 import static android.util.apk.ApkSigningBlockUtils.isSupportedSignatureAlgorithm;
25 import static android.util.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray;
26 import static android.util.apk.ApkSigningBlockUtils.verifyProofOfRotationStruct;
120 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify() argument
[all …]
DApkSignatureSchemeV4Verifier.java17 package android.util.apk;
19 import static android.util.apk.ApkSigningBlockUtils.CONTENT_DIGEST_VERITY_CHUNKED_SHA256;
20 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmJcaKeyAlgorithm;
21 import static android.util.apk.ApkSigningBlockUtils.getSignatureAlgorithmJcaSignatureAlgorithm;
22 import static android.util.apk.ApkSigningBlockUtils.isSupportedSignatureAlgorithm;
61 final File apk = new File(apkFile); in extractCertificates() local
63 apk.getAbsolutePath()); in extractCertificates()
86 final byte[] signedData = V4Signature.getSignedData(apk.length(), hashingInfo, in extractCertificates()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DArtStatsLogUtilsTest.java96 Path apk = null; in testProfileAndVdexDexMetadata() local
99 apk = zipFiles(".apk", DEX, NON_DEX, dexMetadataPath); in testProfileAndVdexDexMetadata()
113 apk.toString()); in testProfileAndVdexDexMetadata()
120 deleteSliently(apk); in testProfileAndVdexDexMetadata()
128 Path apk = null; in testProfileOnlyDexMetadata() local
131 apk = zipFiles(".apk", DEX, NON_DEX, dexMetadataPath); in testProfileOnlyDexMetadata()
145 apk.toString()); in testProfileOnlyDexMetadata()
152 deleteSliently(apk); in testProfileOnlyDexMetadata()
160 Path apk = null; in testVdexOnlyDexMetadata() local
163 apk = zipFiles(".apk", DEX, NON_DEX, dexMetadataPath); in testVdexOnlyDexMetadata()
[all …]
/frameworks/base/tools/aapt2/cmd/
DDump.cpp228 int DumpConfigsCommand::Dump(LoadedApk* apk) { in Dump() argument
229 ResourceTable* table = apk->GetResourceTable(); in Dump()
259 int DumpPackageNameCommand::Dump(LoadedApk* apk) { in Dump() argument
260 Maybe<std::string> package_name = GetPackageName(apk); in Dump()
269 int DumpStringsCommand::Dump(LoadedApk* apk) { in Dump() argument
270 ResourceTable* table = apk->GetResourceTable(); in Dump()
285 int DumpStyleParentCommand::Dump(LoadedApk* apk) { in Dump() argument
286 Maybe<std::string> package_name = GetPackageName(apk); in Dump()
292 const auto table = apk->GetResourceTable(); in Dump()
310 int DumpTableCommand::Dump(LoadedApk* apk) { in Dump() argument
[all …]
DDump.h46 Maybe<std::string> GetPackageName(LoadedApk* apk) { in GetPackageName() argument
47 xml::Element* manifest_el = apk->GetManifest()->root.get(); in GetPackageName()
62 virtual int Dump(LoadedApk* apk) = 0;
71 for (auto apk : args) { in Action() local
72 auto loaded_apk = LoadedApk::LoadApkFromPath(apk, diag_); in Action()
131 int Dump(LoadedApk* apk) override { in Dump() argument
132 return DumpManifest(apk, options_, GetPrinter(), GetDiagnostics()); in Dump()
146 int Dump(LoadedApk* apk) override;
156 int Dump(LoadedApk* apk) override;
166 int Dump(LoadedApk* apk) override { in Dump() argument
[all …]
DLink_test.cpp51 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local
52 ASSERT_THAT(apk, Ne(nullptr)); in TEST_F()
54 std::unique_ptr<io::IData> data = OpenFileAsData(apk.get(), "res/xml/test.xml"); in TEST_F()
56 AssertLoadXml(apk.get(), data.get(), &tree); in TEST_F()
79 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local
80 ASSERT_THAT(apk, Ne(nullptr)); in TEST_F()
82 std::unique_ptr<io::IData> data = OpenFileAsData(apk.get(), "res/xml/test.xml"); in TEST_F()
84 AssertLoadXml(apk.get(), data.get(), &tree); in TEST_F()
114 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local
115 ASSERT_THAT(apk, Ne(nullptr)); in TEST_F()
[all …]
DConvert.cpp263 int Convert(IAaptContext* context, LoadedApk* apk, IArchiveWriter* output_writer, in Convert() argument
268 serializer.reset(new BinaryApkSerializer(context, apk->GetSource(), table_flattener_options, in Convert()
271 serializer.reset(new ProtoApkSerializer(context, apk->GetSource())); in Convert()
273 context->GetDiagnostics()->Error(DiagMessage(apk->GetSource()) in Convert()
278 io::IFile* manifest = apk->GetFileCollection()->FindFile(kAndroidManifestPath); in Convert()
279 if (!serializer->SerializeXml(apk->GetManifest(), kAndroidManifestPath, true /*utf16*/, in Convert()
282 context->GetDiagnostics()->Error(DiagMessage(apk->GetSource()) in Convert()
287 if (apk->GetResourceTable() != nullptr) { in Convert()
289 auto converted_table = apk->GetResourceTable(); in Convert()
301 context->GetDiagnostics()->Error(DiagMessage(apk->GetSource()) in Convert()
[all …]
DOptimize.cpp131 int Run(std::unique_ptr<LoadedApk> apk) { in Run() argument
137 if (!filter.Consume(context_, apk->GetResourceTable())) { in Run()
144 if (!collapser.Consume(context_, apk->GetResourceTable())) { in Run()
149 if (!deduper.Consume(context_, apk->GetResourceTable())) { in Run()
156 if (!shortener.Consume(context_, apk->GetResourceTable())) { in Run()
180 splitter.SplitTable(apk->GetResourceTable()); in Run()
209 MultiApkGenerator generator{apk.get(), context_}; in Run()
221 if (!apk->WriteToArchive(context_, options_.table_flattener_options, writer.get())) { in Run()
350 bool ExtractAppDataFromManifest(OptimizeContext* context, const LoadedApk* apk, in ExtractAppDataFromManifest() argument
352 const xml::XmlResource* manifest = apk->GetManifest(); in ExtractAppDataFromManifest()
[all …]
/frameworks/base/libs/androidfw/tests/data/overlay/
Dbuild20 FRAMEWORK_RES_APK=${ANDROID_PRODUCT_OUT}/system/framework/framework-res.apk
23 aapt2 link -I $FRAMEWORK_RES_APK --manifest AndroidManifest.xml -o overlay.apk compiled.flata \
30 idmap2 create --target-apk-path overlayable/overlayable.apk \
31 --overlay-apk-path overlay/overlay.apk --idmap-path overlay/overlay.idmap
/frameworks/base/libs/androidfw/tests/data/basic/
Dbuild27 --split basic_hdpi-v4.apk:hdpi \
28 --split basic_xhdpi-v4.apk:xhdpi \
29 --split basic_xxhdpi-v4.apk:xxhdpi \
30 --split basic_de_fr.apk:de,fr \
31 -o basic.apk \
/frameworks/base/services/tests/PackageManagerServiceTests/host/
DAndroid.bp65 out: ["PackageManagerTestAppVersion3Invalid.apk"],
66 cmd: "mkdir -p $(genDir)/apk && unzip $(in) -d $(genDir)/apk" +
67 " && truncate -s 800 $(genDir)/apk/META-INF/CERT.RSA" +
68 " && $(location soong_zip) -o $(genDir)/temp.apk -L 0 -C $(genDir)/apk -D $(genDir)/apk" +
69 " && $(location zipalign) -f 4 $(genDir)/temp.apk $(out)",
/frameworks/base/libs/androidfw/tests/
DAssetManager2_bench.cpp41 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadAssets() local
43 assets.SetApkAssets({apk.get()}); in BM_AssetManagerLoadAssets()
64 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadFrameworkAssets() local
66 assets.SetApkAssets({apk.get()}); in BM_AssetManagerLoadFrameworkAssets()
132 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_AssetManagerGetBag() local
133 if (apk == nullptr) { in BM_AssetManagerGetBag()
139 assets.SetApkAssets({apk.get()}); in BM_AssetManagerGetBag()
184 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_AssetManagerGetResourceLocales() local
185 if (apk == nullptr) { in BM_AssetManagerGetResourceLocales()
191 assets.SetApkAssets({apk.get()}); in BM_AssetManagerGetResourceLocales()
[all …]
DTheme_bench.cpp31 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeApplyStyleFramework() local
32 if (apk == nullptr) { in BM_ThemeApplyStyleFramework()
38 assets.SetApkAssets({apk.get()}); in BM_ThemeApplyStyleFramework()
65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeGetAttribute() local
68 assets.SetApkAssets({apk.get()}); in BM_ThemeGetAttribute()
/frameworks/base/libs/androidfw/tests/data/loader/
Dbuild20 FRAMEWORK_RES_APK=${ANDROID_PRODUCT_OUT}/system/framework/framework-res.apk
24 aapt2 link -I $FRAMEWORK_RES_APK --manifest AndroidManifest.xml -o loader.apk compiled.flata
25 unzip loader.apk resources.arsc
26 rm loader.apk
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator_test.cpp59 MultiApkGeneratorWrapper(LoadedApk* apk, IAaptContext* context) in MultiApkGeneratorWrapper() argument
60 : MultiApkGenerator(apk, context) { in MultiApkGeneratorWrapper()
109 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F() local
115 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F()
117 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
136 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F() local
142 MultiApkGeneratorWrapper generator{&apk, ctx.get()};; in TEST_F()
144 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
161 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F() local
167 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DOriginalPackageMigrationTest.kt81 private fun runForApk(apk: String) { in runForApk()
82 preparer.pushApk(apk, Partition.SYSTEM) in runForApk()
85 assertCodePath(apk) in runForApk()
91 preparer.deleteApkFolders(Partition.SYSTEM, apk) in runForApk()
103 private fun assertCodePath(apk: String) { in assertCodePath()
105 .containsExactly(HostUtils.makePathForApk(apk, Partition.SYSTEM).parent.toString()) in assertCodePath()
/frameworks/base/services/tests/servicestests/assets/PackageSignaturesTest/xml/
DREADME8 apksigner sign --in ${OUT}/data/app/CtsPkgInstallTinyApp/CtsPkgInstallTinyApp.apk --out test.apk \
12 adb install test.apk
45 apksigner sign --in ${OUT}/data/app/CtsPkgInstallTinyApp/CtsPkgInstallTinyApp.apk --out test.apk \
50 apksigner sign --in ${OUT}/data/app/CtsPkgInstallTinyApp/CtsPkgInstallTinyApp.apk --out test.apk \
56 apksigner sign --in ${OUT}/data/app/CtsPkgInstallTinyApp/CtsPkgInstallTinyApp.apk --out test.apk \
/frameworks/base/libs/androidfw/tests/data/libclient/
Dbuild21 PATH_TO_LIB_ONE=../lib_one/lib_one.apk
22 PATH_TO_LIB_TWO=../lib_two/lib_two.apk
30 -F libclient.apk -f
/frameworks/base/.prebuilt_info/
Dprebuilt_info_packages_CtsShim_apk__x86_CtsShim_apk.asciipb5 source_file: "aosp_x86_64/CtsShim.apk"
7 dest_file: "packages/CtsShim/apk//x86/CtsShim.apk"
Dprebuilt_info_packages_CtsShim_apk__x86_CtsShimPriv_apk.asciipb5 source_file: "aosp_x86_64/CtsShimPriv.apk"
7 dest_file: "packages/CtsShim/apk//x86/CtsShimPriv.apk"

123456