Home
last modified time | relevance | path

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

12345

/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs56 for (apk, idsig, name, roothash) in apks.tuples() { in main()
62 let ret = enable_verity(apk, idsig, name, roothash.as_deref())?; in main()
83 apk: P, in enable_verity()
90 let (data_device, apk_size) = if fs::metadata(&apk)?.file_type().is_block_device() { in enable_verity()
91 (apk.as_ref().to_path_buf(), util::blkgetsize64(apk.as_ref())?) in enable_verity()
93 let apk_size = fs::metadata(&apk)?.len(); in enable_verity()
95 bail!("The size of {:?} is not multiple of {}.", &apk, BLOCK_SIZE) in enable_verity()
98 loopdevice::attach(&apk, 0, apk_size, /*direct_io*/ true) in enable_verity()
177 fn prepare_inputs(test_dir: &Path, apk: &[u8], idsig: &[u8]) -> (PathBuf, PathBuf) { in prepare_inputs()
180 create_block_aligned_file(&apk_path, apk); in prepare_inputs()
[all …]
/packages/modules/Connectivity/
DTEST_MAPPING98 …"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.a…
109 …"name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.goo…
120 …"name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android…
123 …"name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.a…
126 …"name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.a…
129 …"name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.…
132 …"name": "traffic_controller_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.goog…
135 …"name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.andro…
141 …"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.a…
147 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
/packages/modules/DnsResolver/
DTEST_MAPPING11 …{ "name": "resolv_integration_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.…
12 …{ "name": "resolv_gold_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android…
13 …{ "name": "resolv_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android…
14 …{ "name": "resolv_stress_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.andro…
15 …{ "name": "resolv_stats_test_utils_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.go…
/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/Virtualization/microdroid/payload/
Dmk_payload.cc92 std::optional<ApkConfig> apk; member
143 DO(ParseJson(value["apk"], config.apk)); in ParseJson()
177 if (config.apk.has_value()) { in MakeMetadata()
178 auto* apk = metadata.mutable_apk(); in MakeMetadata() local
179 apk->set_name(config.apk->name); in MakeMetadata()
180 apk->set_payload_partition_name("microdroid-apk"); in MakeMetadata()
181 apk->set_idsig_partition_name("microdroid-apk-idsig"); in MakeMetadata()
254 if (config.apk.has_value()) { in MakePayload()
255 std::string apk_path = RelativeTo(config.apk->path, config.dirname); in MakePayload()
259 std::string idsig_path = RelativeTo(config.apk->idsig_path, config.dirname); in MakePayload()
DREADME.md55 "apk": {
57 "path": "/path/to/world.apk",
58 "idsigPath": "/path/to/world.apk.idsig",
/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()
Dmain.rs49 apk: PathBuf,
163 apk: PathBuf,
199 apk, in main()
215 &apk, in main()
249 Opt::CreateIdsig { apk, path } => command_create_idsig(service, &apk, &path), in main()
Drun.rs45 apk: &Path, in command_run_app()
60 let extra_apks = parse_extra_apk_list(apk, config_path)?; in command_run_app()
75 let apk_file = File::open(apk).context("Failed to open APK file")?; in command_run_app()
99 apk: apk_fd.into(), in command_run_app()
114 &format!("{:?}!{:?}", apk, config_path), in command_run_app()
248 fn parse_extra_apk_list(apk: &Path, config_path: &str) -> Result<Vec<String>, Error> { in parse_extra_apk_list()
249 let mut archive = ZipArchive::new(File::open(apk)?)?; in parse_extra_apk_list()
/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/NetworkStack/
DTEST_MAPPING35 …"name": "NetworkStackTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.…
40 …"name": "NetworkStackIntegrationTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.goog…
/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: out/target/product/shamu/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk"
17 $ adb install -r out/target/product/shamu/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk
/packages/modules/Virtualization/microdroid_manager/src/
Dmain.rs289 apk: &'a str, field
301 cmd.arg("--apk").arg(argument.apk).arg(argument.idsig).arg(argument.name); in run_apkdmverity()
344 apk: MAIN_APK_PATH, in verify_payload()
401 apk: extra_apks[i].to_str().unwrap(), in verify_payload()
514 fn get_public_key_from_apk(apk: &str, root_hash_trustful: bool) -> Result<Box<[u8]>> { in get_public_key_from_apk()
516 verify(apk).context(MicrodroidError::PayloadVerificationFailed(format!( in get_public_key_from_apk()
518 apk in get_public_key_from_apk()
521 get_public_key_der(apk) in get_public_key_from_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/adb/fastdeploy/
DAndroid.bp72 "testdata/sample.apk",
87 "testdata/helloworld5.apk",
88 "testdata/helloworld7.apk",
/packages/modules/Virtualization/libs/idsig/src/
Dapksigv4.rs166 mut apk: &mut R, in create()
172 let start = apk.stream_position()?; in create()
173 let size = apk.seek(SeekFrom::End(0))? as usize; in create()
174 apk.seek(SeekFrom::Start(start))?; in create()
180 let hash_tree = HashTree::from(&mut apk, size, salt, block_size, algorithm)?; in create()
/packages/modules/Virtualization/javalib/src/android/system/virtualmachine/
DVirtualMachine.java120 public final File apk; field in VirtualMachine.ExtraApkSpec
123 ExtraApkSpec(File apk, File idsig) { in ExtraApkSpec() argument
124 this.apk = apk; in ExtraApkSpec()
385 appConfig.apk, ParcelFileDescriptor.open(mIdsigFilePath, MODE_READ_WRITE)); in run()
389 ParcelFileDescriptor.open(extraApk.apk, MODE_READ_ONLY), in run()
/packages/modules/CaptivePortalLogin/
DTEST_MAPPING9 …"name": "CaptivePortalLoginTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.an…
/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)
/packages/apps/Contacts/tests/
DREADME3 Build and install Contacts.apk
5 Grant Contacts permissions to Contacts.apk
/packages/modules/StatsD/statsd/src/packages/
DPackageInfoListener.h32 virtual void notifyAppUpgrade(const int64_t& eventTimeNs, const std::string& apk,
36 virtual void notifyAppRemoved(const int64_t& eventTimeNs, const std::string& apk,
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/
DSdkSandboxLifecycleHostTest.java80 for (String apk : new String[]{CODE_APK, CODE_APK_2}) { in setUp()
81 if (!isPackageInstalled(apk)) { in setUp()
82 installPackage(apk, "-d"); in setUp()
/packages/providers/CalendarProvider/tests/
DEMMA_README85 adb push ${ANDROID_PRODUCT_OUT}/system/app/CalendarProvider.apk /system/app/
86 ##adb push ${ANDROID_PRODUCT_OUT}/data/app/CalendarProviderTests.apk /data/app/
87 adb push ${ANDROID_PRODUCT_OUT}/data/app/CtsProviderTestCases.apk /data/app/

12345