开发者

android_getCpuFeatures crashes on Honeycomb

开发者 https://www.devze.com 2023-03-05 01:50 出处:网络
I have an NDK project that calls android_getCpuFeatures early on. This works 开发者_Go百科fine on all phones I tested, but on a Honeycomb tablet, it simply crashes (the Logcat doesn\'t have much infor

I have an NDK project that calls android_getCpuFeatures early on. This works 开发者_Go百科fine on all phones I tested, but on a Honeycomb tablet, it simply crashes (the Logcat doesn't have much information, other than that there was a hard crash).

This is with the r5b NDK, using the new, preferred way of getting the CPU features function in.


I think it's not the answer, but you can investigate it with the source code (cpu-features.c, cpu-features.h).

android_getCpuFeatures just checks the strings that is taken from /proc/cpuinfo, it seems ok on every Android kernel.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号