This commit is contained in:
topjohnwu 2023-06-16 01:40:05 -07:00 committed by John Wu
parent a9c89cbbbb
commit 8abcccc262

View File

@ -79,9 +79,9 @@ pub fn read_certificate(fd: RawFd, version: i32) -> Vec<u8> {
comment.foreach_props(|k, v| { comment.foreach_props(|k, v| {
if k == "versionCode" { if k == "versionCode" {
apk_ver = v.trim().parse::<i32>().unwrap_or(0); apk_ver = v.trim().parse::<i32>().unwrap_or(0);
true
} else {
false false
} else {
true
} }
}); });
if version > apk_ver { if version > apk_ver {