LSPosed/external
JingMatrix 6703b45350
Fix oat_hook for recent Android versions (#387)
We used to hook functions `OatHeader::GetKeyValueStore` and `OatHeader::GetKeyValueStoreSize` to clean the `dex2oat` trace introduced by LSPosed. However, in recent versions of Android, these two functions are no longer exported. Moreover, the `OatHeader` structure has changed, which now sets certain entries to have fixed length by padding zeros.

To address these two changes, we hook `OatHeader::ComputeChecksum` as an entrypoint (fallback), and then employ the header file of `OatHeader` copied from AOSP to precisely locate its fields. Using this strategy, we modify `key_value_store` in memory, depending on whether the entry `dex2oat-cmdline` is padded.
2025-08-09 07:36:44 +02:00
..
dobby@05a09ac680 Clear compilation warnings (#121) 2024-12-09 22:15:18 +01:00
fmt@93f03953af Update dependencies 2025-08-01 20:38:56 +02:00
lsplant@a0990196c2 Update dependencies 2025-08-01 20:38:56 +02:00
lsplt@e3db000352 Fix oat_hook for recent Android versions (#387) 2025-08-09 07:36:44 +02:00
xz-embedded@ae63ae3a36 Bump the submodule group with 3 updates (#145) 2025-01-03 14:06:28 +01:00
CMakeLists.txt Adapt to the restructure of lsplant 2025-03-07 07:27:43 +01:00