棋子 · 2020年02月24日

Mali Graphic Debugger can not work on Android 8.0

Mali Graphics Debugger from Arm Ltd.

Version: 5.1.0.8a0102de

i follow the step of documents about using mgd on unroot-devices

my phone is huawei P20 Mate 20 V10 and Oppo r15 , they are all android8.0+

when i startup the my app(with System.load libmgd.so ),MGD on PC do not trace anything

I check the log on phone , they show:

···

E/mgd_interceptor: (8352): SocketMessagePort: Unable to connect socket: Unable to connect socket: errno = 13
W/mgd_interceptor: (8352): GatorConnection: Not connected to gatord, the application will run normally but Streamline will not collect annotations. To collect annotations, please verify you are running gatord 5.22 or later and that SELinux is disabled.
E/mgd_interceptor: (8352): Interceptor: MGD failed to read the process whitelist file: No reason provided. (Does the file exist & have correct permissions?)
W/mgd_interceptor: (8352): Interceptor: MGD_HEADLESS_CONFIG_FILE not specified, falling back to '/sdcard/mgd-headless.conf'
E/mgd_interceptor: (8352): Interceptor: Headless config file specified was not found
E/mgd_interceptor: (8352): Interceptor: Unable to create message port - using null

···

anyone has idea to fix the socket permission error ?

1 个回答 得票排序 · 时间排序
极术小姐姐 · 2020年02月24日

Hi Ho2018,

Sorry for the slow reply on this one - this question got missed in our regular review of unanswered questions.

Applications compiled with android:targetSdkLevel >= 26 for Android 8.0 upwards will use a more restrictive security sandbox which blocks our interceptor's socket creation. We don't yet have a shipping fix, but as an interim workaround compile you Application with a manifest setting targetSdkLevel to 25 or lower.

Kind regards,

你的回答
关注数
1
收藏数
0
浏览数
2098
极术小姐姐
极术微信服务号
关注极术微信号
实时接收点赞提醒和评论通知
安谋科技学堂公众号
关注安谋科技学堂
实时获取安谋科技及 Arm 教学资源
安谋科技招聘公众号
关注安谋科技招聘
实时获取安谋科技中国职位信息