API call to get processor architecture

后端 未结 8 2029
野的像风
野的像风 2020-12-05 01:59

As part of my app I\'m using the NDK and was wondering if it\'s worth bundling x86 and mips binaries alongside the standard ARM binaries.

I figured the best way woul

8条回答
  •  北海茫月
    2020-12-05 02:50

    The values you are looking for are

    ro.product.cpu.abi

    and

    ro.product.cpu.abi2

    These can be got using internal api SystemProperties.get So you will have to use Reflection on SystemProperties.

    You could use the function getSystemProperty if you are not too keen on reflection. Check it here

提交回复
热议问题