/packages/modules/Virtualization/apkdmverity/src/ |
D | main.rs | 47 for (apk, idsig, name, roothash) in apks.tuples() { in main() 53 let ret = enable_verity(apk, idsig, name, roothash.as_deref())?; in main() 97 idsig: P, in enable_verity() 122 let sig = V4Signature::from_idsig_path(&idsig)?; in enable_verity() 129 &idsig, offset, size, /* direct_io */ false, /* writable */ false, in enable_verity() 148 .context(format!("Merkle tree in {:?} is not compatible with dm-verity", &idsig))?; in enable_verity() 197 fn prepare_inputs(test_dir: &Path, apk: &[u8], idsig: &[u8]) -> (PathBuf, PathBuf) { in prepare_inputs() 201 create_block_aligned_file(&idsig_path, idsig); in prepare_inputs() 205 fn run_test(apk: &[u8], idsig: &[u8], name: &str, check: fn(TestContext)) { in run_test() 206 run_test_with_hash(apk, idsig, name, None, check); in run_test() [all …]
|
/packages/modules/Virtualization/vm/src/ |
D | run.rs | 69 let idsig = File::create(&config.idsig).context("Failed to create idsig file")?; in command_run_app() localVariable 72 let idsig_fd = ParcelFileDescriptor::new(idsig); in command_run_app() 75 let idsig = File::open(&config.idsig).context("Failed to open idsig file")?; in command_run_app() localVariable 76 let idsig_fd = ParcelFileDescriptor::new(idsig); in command_run_app() 169 idsig: idsig_fd.into(), in command_run_app() 222 let idsig = work_dir.join("apk.idsig"); in command_run_microdroid() localVariable 223 println!("apk.idsig path: {}", idsig.display()); in command_run_microdroid() 232 idsig, in command_run_microdroid()
|
D | create_idsig.rs | 27 idsig: &Path, in command_create_idsig() 35 .open(idsig) in command_create_idsig() 36 .with_context(|| format!("Failed to create/open {:?}", idsig))?; in command_create_idsig()
|
D | main.rs | 188 idsig: PathBuf, field
|
/packages/modules/Virtualization/compos/composd/src/ |
D | instance_starter.rs | 71 idsig: PathBuf, field 83 let idsig = instance_root_path.join(IDSIG_FILE); in new() localVariable 91 idsig, in new() 114 let _ignored1 = fs::remove_file(&self.idsig); in start_new_instance() 148 &self.idsig, in start_vm()
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | verify.rs | 64 idsig: MAIN_APK_IDSIG_PATH, in verify_payload() 94 .map(|idsig| { in verify_payload() 95 get_apk_root_hash_from_idsig(idsig).expect("Can't find root hash from extra idsig") in verify_payload() 115 idsig: extra_idsigs[i].to_str().unwrap(), in verify_payload() 264 idsig: &'a str, field 273 cmd.arg("--apk").arg(argument.apk).arg(argument.idsig).arg(argument.name); in run_apkdmverity()
|
/packages/modules/Virtualization/demo_native/ |
D | main.cpp | 151 ScopedFileDescriptor idsig = OR_RETURN(open_file(path, O_CREAT | O_RDWR)); in create_or_update_idsig_file() local 152 ScopedAStatus ret = service.createOrUpdateIdsigFile(main_apk, idsig); in create_or_update_idsig_file() 156 return idsig; in create_or_update_idsig_file() 188 ScopedFileDescriptor idsig = in create_vm_config() local 204 app_config.idsig = std::move(idsig); in create_vm_config()
|
/packages/modules/Virtualization/apkdmverity/testdata/ |
D | README | 20 Check that the idsig file is created. 24 -rw-r----- 1 jiyong primarygroup 39115 Jun 4 01:08 test.apk.idsig
|
/packages/modules/Virtualization/compos/common/ |
D | compos_client.rs | 77 idsig: &Path, 95 let idsig_fd = prepare_idsig(service, &apk_fd, idsig)?; 133 idsig: Some(idsig_fd),
|
/packages/modules/Virtualization/virtualizationmanager/src/ |
D | aidl.rs | 902 let idsig_file = clone_file(config.idsig.as_ref().unwrap())?; in load_app_config() 1748 let idsig = tempfile::tempfile().unwrap(); in test_create_or_update_idsig_file_empty_apk() localVariable 1752 &ParcelFileDescriptor::new(idsig), in test_create_or_update_idsig_file_empty_apk() 1762 let idsig = tempfile::tempfile().unwrap(); in test_create_or_update_idsig_dir_instead_of_file_for_apk() localVariable 1766 &ParcelFileDescriptor::new(idsig), in test_create_or_update_idsig_dir_instead_of_file_for_apk() 1781 let idsig = tempfile::tempfile().unwrap(); in test_create_or_update_idsig_does_not_crash_dir_on_ext4() localVariable 1785 &ParcelFileDescriptor::new(idsig), in test_create_or_update_idsig_does_not_crash_dir_on_ext4() 1797 let mut idsig = tempfile::tempfile().unwrap(); in test_create_or_update_idsig_does_not_update_if_already_valid() localVariable 1801 &ParcelFileDescriptor::new(idsig.try_clone()?), in test_create_or_update_idsig_does_not_update_if_already_valid() 1803 let modified_orig = idsig.metadata()?.modified()?; in test_create_or_update_idsig_does_not_update_if_already_valid() [all …]
|
/packages/modules/Virtualization/compos/verify/ |
D | verify.rs | 96 let idsig = instance_dir.join(IDSIG_FILE); in try_main() localVariable 122 &idsig, in try_main()
|
/packages/modules/Virtualization/apkdmverity/ |
D | Android.bp | 54 "testdata/*.idsig",
|
/packages/modules/Virtualization/virtualizationservice/aidl/android/system/virtualizationservice/ |
D | VirtualMachineAppConfig.aidl | 33 ParcelFileDescriptor idsig;
|
/packages/modules/Virtualization/java/framework/src/android/system/virtualmachine/ |
D | VirtualMachine.java | 403 public final File idsig; field in VirtualMachine.ExtraApkSpec 405 ExtraApkSpec(File apk, File idsig) { in ExtraApkSpec() argument 407 this.idsig = idsig; in ExtraApkSpec() 1153 extraApk.idsig.createNewFile(); in run() 1238 ParcelFileDescriptor.open(extraApk.idsig, MODE_READ_WRITE)); in createIdSigsAndUpdateConfig() 1242 appConfig.idsig = ParcelFileDescriptor.open(mIdsigFilePath, MODE_READ_ONLY); in createIdSigsAndUpdateConfig() 1245 extraIdsigs.add(ParcelFileDescriptor.open(extraApk.idsig, MODE_READ_ONLY)); in createIdSigsAndUpdateConfig()
|
/packages/modules/Virtualization/microdroid/payload/ |
D | README.md | 20 * partition n+1, n+2: APK payload and its idsig
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | v4.rs | 125 let idsig = fs::File::open(idsig_path).context("Cannot find idsig file")?; in from_idsig_path() localVariable 126 Self::from_idsig(idsig) in from_idsig_path()
|
/packages/modules/Virtualization/service_vm/demo_apk/ |
D | README.md | 44 $TEST_ROOT/VmAttestationDemoApp.apk.idsig \
|
/packages/modules/Virtualization/docs/ |
D | getting_started.md | 110 apk.idsig path: /data/local/tmp/microdroid/7CI6QtktSluD3OZgv/apk.idsig
|
/packages/modules/Virtualization/microdroid/ |
D | README.md | 108 $TEST_ROOT/MyApp.apk.idsig \
|