This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-02-21 20:14:34 +01:00
parent f9e8362671
commit 07ec7998dc
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
6 changed files with 13 additions and 266 deletions

View file

@ -1,9 +1,7 @@
use std::fs::File;
use std::path::PathBuf;
use androscalpel::{Apk, IdMethod};
use patcher::code_analysis::CFG;
use androscalpel::{Apk, IdMethod, MethodCFG};
use clap::Parser;
@ -27,7 +25,6 @@ fn main() {
} else {
class.direct_methods.get(&mid).unwrap()
};
let code = method.code.as_ref().unwrap();
let cfg = CFG::new(code.ins_size.into(), &mid.proto, &code.insns).unwrap();
print!("{}", cfg.to_dot(&mid.__str__()));
let cfg = MethodCFG::new(method).unwrap();
print!("{}", cfg.to_dot(true));
}