android_getCpuFeatures crashes on Honeycomb
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.
精彩评论