Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何过滤掉compose内容 并且支持compose,此问题和#103一致 #120

Open
crowforkotlin opened this issue Sep 25, 2024 · 4 comments

Comments

@crowforkotlin
Copy link

crowforkotlin commented Sep 25, 2024

java -jar .\vm-protect-2023-07-08-0942.jar apk .\app-release.apk .\test.txt .\test.txt
Exception in thread "main" java.rmi.RemoteException: Error rule 0: class androidx.compose.* { ; }
at com.nmmedit.apkprotect.dex2c.filters.SimpleRules.parse(SimpleRules.java:74)
at com.nmmedit.protect.ApkMain.main(ApkMain.java:26)
at com.nmmedit.protect.Main.main(Main.java:24)

test.txt 内容为
class androidx.compose.* { ; }

@crowforkotlin crowforkotlin changed the title 加固后apk证书似乎损坏了 加固后apk签名校验不通过了 Sep 25, 2024
@crowforkotlin crowforkotlin changed the title 加固后apk签名校验不通过了 请问如何过滤掉compose内容 Sep 25, 2024
@crowforkotlin
Copy link
Author

改成class androidx.compose.*就好了
但是问题是 直接报错了,和 #103 一样的问题

@maoabc
Copy link
Owner

maoabc commented Sep 25, 2024

规则不是过滤规则,是转换规则。

@crowforkotlin
Copy link
Author

规则不是过滤规则,是转换规则。

好的,谢谢大佬

  1. 我目前理解convert.txt是转换规则,用于转换对应的类?

  2. README中提到了“无转换规则文件,则会转换dex里所有class里的方法”,但是第一次示例命令中包含了
    convert.txt 和 mapping.txt 这个是允许convert.txt支持的内容进行转换?那mapping的作用呢,映射?是指什么,不太理解。

  3. 另外我想问一下关于#103的问题有办法解决吗?我在用compose + apk加固的过程中也遇到了这个问题

@crowforkotlin crowforkotlin changed the title 请问如何过滤掉compose内容 请问如何过滤掉compose内容 并且支持compose,此问题和#103一致 Sep 25, 2024
@maoabc
Copy link
Owner

maoabc commented Sep 25, 2024

mapping.txt是proguard混淆生成的文件,用来还原混淆后的类名方法名。
具体不清楚,我没用过那东西,看报错好像是class版本不兼容。还有就是不要去处理开源库,纯粹给逆向者提供指令映射规则

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants