Fix DexParser method initialization#478
Fix DexParser method initialization#478wangwillian0 wants to merge 3 commits intoJingMatrix:masterfrom
Conversation
This reverts partially commit c622d0f. In my test device (Pixel 6, Android 16 qpr2, KernelSU), calling twice LSPosed daemon results a detection based on `mount_id` values. In `com.reveny.nativecheck` 7.6.1, it is named as `Detected Magic Mount`. Of course, this namning is incorrect and misleading. Whatever, see JingMatrix/NeoZygisk#39 for details of this detection point.
|
Please provide examplar apps to show that you are solving some issue. |
|
So far I’ve seen only a few projects that use the Modern API and also use DexParser directly for obfuscated code, but judging by the fix it’s making, it seems to be correct — after all, there really are initialization issues. To test it, the only way is by creating a POC. One app I know that uses the Modern API is PlayStrong, but it has a problem with this LSPosed that causes issues with the service bridge. I haven’t investigated the issue deeply though. PlayStrong is closed-source and only works with the official LSPosed (a private version called IT). |
|
Nobody needs a closed source PlayStrong. My open-source project TEESimulator can help getting STRONG integrity. From this block, I don't see why would @wangwillian0 remove It is surely introducing a bug. |
|
Alright, first: I mentioned PlayStrong only as an example of an app that uses the Modern API — I wasn’t saying it should be used. Sorry if it somehow sounded offensive toward open-source code. Second, in |
|
No worry, I wasn't being offended. My tone was a bit aggressive, sorry for causing the mis-understanding. Oh, you were right, I missed the |
|
Hi @JingMatrix. It's basically what @Dev4Mod said. The second bug is more pronounced, you can see that |
|
@wangwillian0 Thanks for reporting this bug. Given the low quality of the original Java class, I decide to refactor it into Kotlin. Your fix for array length is correct, but the |
The logic of the Kotlin code looks the same as this PR, so I don't think this code was wrong, but nice to have the Kotlin rewrite. Thanks for handling the issue! |
Ah, yeah, you were right, I overlooked it. Sorry for that. |
These bugs make the DexParser to not fill all the methods correctly, introducing unwanted nulls.