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

求解决:低版本系统(低于android 8),导出trace时会有bad atrace打印,同样的apk在Android 8以上没有该问题,可以正常抓取trace;检查过apk,有正常插桩 #113

Open
hesheng1024-p opened this issue Oct 25, 2023 · 3 comments

Comments

@hesheng1024-p
Copy link

hesheng1024-p commented Oct 25, 2023

btrace版本:2.0.0
PC:iMac 13.5.2
jdk:Java 8
调试设备:Android 7.1.2 (Android 4.4 6.0.1谷歌手机也是类似的情况)

apk插桩成功,能够正常的抓取trace,但是stop tracing时,解析atrace失败
image
image

查看pb文件,也是不完整的
image

@hesheng1024-p hesheng1024-p changed the title 问题咨询:低版本系统,导出trace时会有bad atrace打印 问题咨询:低版本系统(低于android 8),导出trace时会有bad atrace打印 Oct 25, 2023
@zhuozp
Copy link

zhuozp commented Nov 15, 2023

@MinorPeng 解决了吗?

@hesheng1024-p
Copy link
Author

@MinorPeng 解决了吗?
还没有

@hesheng1024-p hesheng1024-p changed the title 问题咨询:低版本系统(低于android 8),导出trace时会有bad atrace打印 求解决:低版本系统(低于android 8),导出trace时会有bad atrace打印,同样的apk在Android 8以上没有该问题,可以正常抓取trace;检查过apk,有正常插桩 Feb 18, 2024
@hesheng1024-p
Copy link
Author

使用仓库中的demo也会出现类似的问题,app正常运行;
btrace版本:2.0.0
PC:iMac 13.5.2
jdk:Java 1.8.0
AGP version:4.1.0
Gradle Version:6.7.1
运行设备:TCL电视,Android 5.1.1

命令执行报错:
image

apk插桩信息和内置mapping:
image
image

download的atrace文件:
image

rhea-atrace.gz

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