Tencent / Hardcoder

Hardcoder is a solution which allows Android APP and Android System to communicate with each other directly, solving the problem that Android APP could only use system standard API rather than the hardware resource of system.
Other
2.16k stars 203 forks source link

startPerformance error disconnect #32

Open YangJ0829 opened 4 years ago

YangJ0829 commented 4 years ago

我自己新建一个DEMO工程,初始化代码拷贝于testapp,并保持与testapp包名一致:com.tencent.mm.hardcoder.testapp 但是初始化的时候有error输出: com.tencent.mm.hardcoder.testapp E/HARDCODER: [localsocket.h,loop:198]"loop, recv error, fd:61, ret:0, errno:0" com.tencent.mm.hardcoder.testapp E/HARDCODER: [client.h,recvEvent:161]"LocalsocketClient recvEvent EVENT_ERROR: uid:0, path:(null), fd:61. Reconnect now." 然而Hardcoder-master\testapp运行正常,请问这是什么情况?

SophiaGuo commented 4 years ago

运行正常的意思是?init失败只是没有使用Hardcoder。

YangJ0829 commented 4 years ago

运行正常的意思是?init失败只是没有使用Hardcoder。

Hardcoder-master\testapp可以正常运行在oppo手机中,并且startPerformance等相关操作都有效果。但是我自己新建一个工程导入aar并且保持包名与testapp一致,但是执行initHardCoder却报上一个issues的错误,manufacture和cert均从testapp拷贝。我不明白

SophiaGuo commented 4 years ago

initHardcoder和checkPermission的回调都成功了吗?