Home
last modified time | relevance | path

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

1234567

/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs47 for (apk, idsig, name, roothash) in apks.tuples() { in main()
53 let ret = enable_verity(apk, idsig, name, roothash.as_deref())?; in main()
68 arg!(--apk ... in clap_command()
96 apk: P, in enable_verity()
103 let (data_device, apk_size) = if fs::metadata(&apk)?.file_type().is_block_device() { in enable_verity()
104 (apk.as_ref().to_path_buf(), util::blkgetsize64(apk.as_ref())?) in enable_verity()
106 let apk_size = fs::metadata(&apk)?.len(); in enable_verity()
108 bail!("The size of {:?} is not multiple of {}.", &apk, BLOCK_SIZE) in enable_verity()
112 &apk, 0, apk_size, /* direct_io */ true, /* writable */ false, in enable_verity()
197 fn prepare_inputs(test_dir: &Path, apk: &[u8], idsig: &[u8]) -> (PathBuf, PathBuf) { in prepare_inputs()
[all …]
/packages/modules/DnsResolver/
DTEST_MAPPING18 …{ "name": "resolv_integration_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.…
19 …{ "name": "resolv_gold_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android…
20 …{ "name": "resolv_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android…
21 …{ "name": "resolv_stress_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.andro…
22 …{ "name": "resolv_stats_test_utils_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.go…
/packages/modules/Connectivity/
DTEST_MAPPING274 …"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.a…
288 …"name": "CtsNetTestCasesMaxTargetSdk30[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.goo…
302 …"name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.goo…
316 …"name": "CtsNetTestCasesMaxTargetSdk33[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.goo…
332 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
376 …"name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android…
379 …"name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.a…
382 …"name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.a…
385 …"name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.…
393 …"name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.andro…
[all …]
/packages/modules/Virtualization/apkdmverity/testdata/
DREADME10 Build a random apk (Bluetooth.apk is chosen arbitrary)
13 $ cp $ANDROID_PRODUCT_OUT/system/app/Bluetooth.apk ./test.apk
18 $ apksigner sign --ks keystore ./test.apk
22 $ ls -l test.apk*
23 -rw-r----- 1 jiyong primarygroup 3888734 Jun 4 01:08 test.apk
24 -rw-r----- 1 jiyong primarygroup 39115 Jun 4 01:08 test.apk.idsig
/packages/modules/NetworkStack/
DTEST_MAPPING16 // This is used to verify NetworkStackRootTests with latest CaptivePortalLoginGoogle.apk
47 …"name": "NetworkStackTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.…
52 …"name": "NetworkStackRootTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.andr…
54 // This is used to verify NetworkStackRootTests with latest CaptivePortalLoginGoogle.apk
58 "name": "NetworkStackRootTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]"
/packages/apps/TV/tests/jank/
DREADME.md12 adb install -r ${OUT}/system/priv-app/LiveTv/LiveTv.apk
13 adb install -r ${OUT}/system/app/TVTestInput/TVTestInput.apk
14 adb install -r ${OUT}/testcases/TVJankTests/TVJankTests.apk
30 adb push ${OUT}/system/priv-app/LiveTv/LiveTv.apk /system/priv-app/LiveTv/LiveTv.apk
/packages/modules/Virtualization/vm/src/
Dcreate_idsig.rs26 apk: &Path, in command_create_idsig()
29 let apk_file = File::open(apk).with_context(|| format!("Failed to open {:?}", apk))?; in command_create_idsig()
42 .with_context(|| format!("Failed to create/update idsig for {:?}", apk))?; in command_create_idsig()
Drun.rs48 let apk = File::open(&config.apk).context("Failed to open APK file")?; in command_run_app() localVariable
51 Some(path) => parse_extra_apk_list(&config.apk, path)?, in command_run_app()
71 let apk_fd = ParcelFileDescriptor::new(apk); in command_run_app()
149 let payload_config_str = format!("{:?}!{:?}", config.apk, payload); in command_run_app()
168 apk: apk_fd.into(), in command_run_app()
218 let apk = find_empty_payload_apk_path()?; in command_run_microdroid() localVariable
219 println!("found path {}", apk.display()); in command_run_microdroid()
231 apk, in command_run_microdroid()
340 fn parse_extra_apk_list(apk: &Path, config_path: &str) -> Result<Vec<PathBuf>, Error> { in parse_extra_apk_list()
341 let mut archive = ZipArchive::new(File::open(apk)?)?; in parse_extra_apk_list()
/packages/modules/CaptivePortalLogin/
DTEST_MAPPING19 …"name": "CaptivePortalLoginTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.an…
29 …"name": "CaptivePortalLoginTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.an…
/packages/modules/Virtualization/microdroid_manager/src/
Dverify.rs63 apk: MAIN_APK_PATH, in verify_payload()
114 apk: extra_apk.to_str().unwrap(), in verify_payload()
242 fn get_cert_hash_from_apk(apk: &str, root_hash_trustful: bool) -> Result<[u8; 64]> { in get_cert_hash_from_apk()
246 verify(apk, current_sdk).context(MicrodroidError::PayloadVerificationFailed(format!(
248 apk
251 extract_signed_data(apk, current_sdk)
263 apk: &'a str, field
273 cmd.arg("--apk").arg(argument.apk).arg(argument.idsig).arg(argument.name); in run_apkdmverity()
Ddice.rs104 fn for_apk(apk: &ApkData) -> Self { in for_apk()
106 name: format!("apk:{}", apk.package_name), in for_apk()
107 version: apk.version_code, in for_apk()
108 code_hash: apk.root_hash.clone(), in for_apk()
109 authority_hash: apk.cert_hash.clone(), in for_apk()
/packages/apps/Car/systemlibs/tools/
Dgo_rotary.sh36 cp $ANDROID_PRODUCT_OUT/system/app/CarRotaryController/CarRotaryController.apk $TMP_OUTDIR
37 cp $ANDROID_PRODUCT_OUT/system/app/RotaryPlayground/RotaryPlayground.apk $TMP_OUTDIR
44 adb install -g $TMP_OUTDIR/CarRotaryController.apk
45 adb install -g $TMP_OUTDIR/RotaryPlayground.apk
/packages/modules/Virtualization/libs/apkverify/src/
Dv4.rs39 apk: R, in get_apk_digest()
43 let (signer, mut sections) = extract_signer_and_apk_sections(apk, current_sdk)?; in get_apk_digest()
151 mut apk: &mut R, in create()
158 let start = apk.stream_position()?; in create()
159 let size = apk.seek(SeekFrom::End(0))? as usize; in create()
160 apk.seek(SeekFrom::Start(start))?; in create()
166 let hash_tree = HashTree::from(&mut apk, size, salt, block_size, algorithm)?; in create()
179 apk.seek(SeekFrom::Start(start))?; in create()
181 get_apk_digest(apk, current_sdk, /*verify=*/ false)?; in create()
Dv3.rs77 let apk = File::open(apk_path.as_ref())?; in verify() localVariable
78 let (signer, mut sections) = extract_signer_and_apk_sections(apk, current_sdk)?; in verify()
84 let apk = File::open(apk_path.as_ref())?; in extract_signed_data() localVariable
85 let (signer, _) = extract_signer_and_apk_sections(apk, current_sdk)?; in extract_signed_data()
90 apk: R, in extract_signer_and_apk_sections()
93 let mut sections = ApkSections::new(apk)?; in extract_signer_and_apk_sections()
/packages/modules/AppSearch/apk/
DAndroid.bp20 name: "com.android.appsearch.apk.certificate",
21 certificate: "com.android.appsearch.apk",
25 name: "com.android.appsearch.apk",
30 certificate: ":com.android.appsearch.apk.certificate",
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideNetworkTestCase.java60 protected static void installPackage(TestInformation testInfo, String apk) in installPackage() argument
67 installer.addTestFileName(apk); in installPackage()
79 protected void installPackage(String apk) throws DeviceNotAvailableException, TargetSetupError { in installPackage() argument
80 installPackage(getTestInformation(), apk); in installPackage() local
/packages/apps/Settings/tests/unit/
DREADME12 The test apk then needs to be installed onto your test device. The apk's location will vary
15 "Copy: ${ANDROID_PRODUCT_OUT}/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk"
17 $ adb install -r ${ANDROID_PRODUCT_OUT}/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/verification/
DDexParserImpl.java61 for (File apk : apkList) { in getDexFilePaths()
62 try (ZipFile apkZipFile = new ZipFile(apk)) { in getDexFilePaths()
72 dexLists.put(apk, dexEntries); in getDexFilePaths()
74 throw new IOException(apk.getName() + " is not a valid DEX container file.", ex); in getDexFilePaths()
/packages/modules/Virtualization/microdroid/payload/src/com/android/virt/
DPayloadMetadata.java24 PayloadMetadataProtos.ApkPayload apk, in metadata() argument
29 .setApk(apk) in metadata()
34 public static PayloadMetadataProtos.ApkPayload apk(String name) { in apk() method in PayloadMetadata
/packages/modules/adb/fastdeploy/
DAndroid.bp74 "testdata/sample.apk",
95 "testdata/helloworld5.apk",
96 "testdata/helloworld7.apk",
97 "testdata/sample.apk",
/packages/apps/TV/
DREADME.md27 adb install -r ${OUT}/system/priv-app/LiveTv/LiveTv.apk
36 adb push ${OUT}/system/priv-app/LiveTv/LiveTv.apk /system/priv-app/LiveTv/LiveTv.apk
/packages/apps/Test/connectivity/PMC/
Dbuild_pmc.sh48 rm $APK_ROOT/"$APP_NAME".apk
77 adb shell rm -r /system/priv-app/$APP_NAME.apk
83 exec adb install -r $APP_NAME.apk "installing apk to previliged dir"
/packages/modules/Virtualization/libs/apkverify/tests/data/
DREADME.md3 ## .apk
25 …\x07\\x8c\\xc7\\x82\\x74\\x07\\x03\\xda\\x44\\xb4\\xd7\\xeb > tests/data/v3-only-with-stamp.apk.der
30 …erify --min-sdk-version 24 --print-certs-pem tests/data/v3-only-with-stamp.apk` to get the public …
34 …pk_digest](https://source.android.com/docs/security/features/apksigning/v4#apk-digest). They are g…
/packages/modules/Connectivity/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/
DHostsideNetworkPolicyTestCase.java70 protected static void installPackage(TestInformation testInfo, String apk) in installPackage() argument
77 installer.addTestFileName(apk); in installPackage()
89 protected void installPackage(String apk) throws DeviceNotAvailableException, TargetSetupError { in installPackage() argument
90 installPackage(getTestInformation(), apk); in installPackage() local
/packages/apps/Nfc/
DCleanSpec.mk51 $(call add-clean-step, rm -f $(PRODUCT_OUT)/system/app/Nfc.apk)
52 $(call add-clean-step, rm -f $(PRODUCT_OUT)/system/app/NfcGoogle.apk)

1234567