Closed lvqier closed 5 years ago
案例环境:MIUI10.3.5.0 (PFHCNXM) with 32bit App
样本 libdexfile.so 的 _ZN3art13DexFileLoader10OpenCommonEPKhjS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPKNS_10OatDexFileEbbPS9_NS3_10unique_ptrINS_16DexFileContainerENS3_14default_deleteISH_EEEEPNS0_12VerifyResultE 函数有 13 个参数: 但是 deviceutils.cpp 中的 new_nougat_open_memory/old_nougat_open_memory 函数中仅声明了8个参数:
导致App在完成第一次hook调用后Crash
从Android的源码看,确实应该是 13 个(1+12)参数:http://androidxref.com/9.0.0_r3/xref/art/libdexfile/dex/dex_file_loader.h#164
https://github.com/WrBug/DeveloperHelper 参考下这个的适配
还是有这个问题
案例环境:MIUI10.3.5.0 (PFHCNXM) with 32bit App
样本 libdexfile.so 的 _ZN3art13DexFileLoader10OpenCommonEPKhjS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPKNS_10OatDexFileEbbPS9_NS3_10unique_ptrINS_16DexFileContainerENS3_14default_deleteISH_EEEEPNS0_12VerifyResultE 函数有 13 个参数: 但是 deviceutils.cpp 中的 new_nougat_open_memory/old_nougat_open_memory 函数中仅声明了8个参数:
导致App在完成第一次hook调用后Crash