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

三星S7 6.0版本报错 #56

Open
frankgogoland opened this issue Jan 16, 2023 · 14 comments
Open

三星S7 6.0版本报错 #56

frankgogoland opened this issue Jan 16, 2023 · 14 comments

Comments

@frankgogoland
Copy link

01-16 21:53:05.381 12422-12730/? E/AndroidRuntime: FATAL EXCEPTION: ServiceStartArguments
java.lang.NoSuchFieldError: P
at com.baidu.location.c.f.c(Native Method)
at com.baidu.location.c.f.a(Native Method)
at com.baidu.location.b.b.f(Native Method)
at com.baidu.location.b.b.e(Native Method)
at com.baidu.location.b.b.a(Native Method)
at com.baidu.location.d.a.a(Native Method)
at com.baidu.location.d.a.a(Unknown Source)
at com.baidu.location.d.a$a.handleMessage(Native Method)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.os.HandlerThread.run(HandlerThread.java:61)

感觉是百度地图报错,没有保护的版本没有问题。麻烦作者看看,要不然会影响到方案的使用,谢谢。

@maoabc
Copy link
Owner

maoabc commented Jan 16, 2023

提供例子,或者缩小加固范围定位到它sdk的对应的类/方法

@frankgogoland
Copy link
Author

目前我只能用项目中的jar文件去处理,用AS无法编译,命令行也编译不了。JDK已经升级到9了。
Windows下有问题?我该提供你怎么样的例子呢?apk文件还是百度的sdk?

@maoabc
Copy link
Owner

maoabc commented Jan 17, 2023

编译好的jar版本太老,有不少bug,要用最新源码的。

@maoabc
Copy link
Owner

maoabc commented Jan 17, 2023

不同系统下环境问题我也不清楚,你按顺序先build arsc,zipflinger,apkprotect这些子模块,最后编译最上层的项目试试。

@maoabc
Copy link
Owner

maoabc commented Jan 17, 2023

早期版本有一些指令实现有bug,没正确处理异常以及边界条件处理有错误等等,需要编译最新源码。

@frankgogoland
Copy link
Author

感谢解答,我在试试别的环境,不知道您这边是linux还是mac下的。如果方便您给我一个新的jar吗?邮箱1223774014@qq.com,非常感谢。

@maoabc
Copy link
Owner

maoabc commented Jan 17, 2023

我上传了最新编译好的jar,你看看项目的releases

@maoabc
Copy link
Owner

maoabc commented Jan 17, 2023

我环境是Linux下,没其他系统上开发过,有的测试代码还依赖我本地文件,在尽量避免移除那些代码,但是没实际用其他系统开发所以很多地方测试不到。

@frankgogoland
Copy link
Author

还是会崩溃。是不是修改代码可以把baidu sdk给绕过去。或者把某些包名的给绕过?比如:com.baidu.location

@maoabc
Copy link
Owner

maoabc commented Jan 17, 2023

别加固百度sdk相关的类试试

@maoabc
Copy link
Owner

maoabc commented Jan 17, 2023

建议那些公开的sdk都别加固,别人容易通过加固前的字节码推测出opcode映射表

@frankgogoland
Copy link
Author

建议那些公开的sdk都别加固,别人容易通过加固前的字节码推测出opcode映射表

非常感谢,这个修改哪部分模块的代码呢?

@maoabc
Copy link
Owner

maoabc commented Jan 18, 2023

自定义ClassAndMethodFilter接口,或者使用已经实现的简单规则,命令行本事就支持规则文件

@frankgogoland
Copy link
Author

自定义ClassAndMethodFilter接口,或者使用已经实现的简单规则,命令行本事就支持规则文件
好的,我再熟悉一下这个项目,gradle现在能编译过了,我对java的配置环境真不熟悉,还得好好补一补课。感谢支持!

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