add crc
This commit is contained in:
parent
99ecf178df
commit
3f521b5754
4 changed files with 277 additions and 5 deletions
|
|
@ -3,10 +3,10 @@ use apk_frauder::ZipFileWriter;
|
|||
use std::fs::File;
|
||||
|
||||
fn main() {
|
||||
/*
|
||||
let file = File::open("app-release.apk").expect("failed to open file");
|
||||
//let file = File::open("tst_64.zip").expect("failed to open file");
|
||||
let zip_file = ZipFileReader::new(file);
|
||||
/*
|
||||
//println!("{}", zip_file.get_file_names().join("\n"));
|
||||
for file in &zip_file.files {
|
||||
println!("{}", file.get_name());
|
||||
|
|
@ -34,9 +34,10 @@ fn main() {
|
|||
println!("Not signed whith scheme >= v2");
|
||||
}
|
||||
zip_file.check_holes();
|
||||
println!("{:#?}", zip_file.get_file_info("classes.dex"));
|
||||
*/
|
||||
println!("{:#?}", zip_file.get_file_info("classes.dex"));
|
||||
|
||||
/*
|
||||
let file = File::open("tst_64.zip").expect("failed to open file");
|
||||
let out_file = File::create("tst_64.out.zip").expect("failed to create file");
|
||||
let mut zip_file = ZipFileReader::new(file);
|
||||
|
|
@ -46,5 +47,6 @@ fn main() {
|
|||
out_file.insert_file_from_zip(f, &mut zip_file);
|
||||
}
|
||||
out_file.write_central_directory();
|
||||
*/
|
||||
//println!("{:#?}", zip_file.zip64_end_of_central_directory);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue