API call to get processor architecture

后端 未结 8 2049
野的像风
野的像风 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 03:02

    You can also use android SDK, take a look on the Build class:

        /** The name of the instruction set (CPU type + ABI convention) of native code. */
        public static final String CPU_ABI = getString("ro.product.cpu.abi");
    
        /** The name of the second instruction set (CPU type + ABI convention) of native code. */
        public static final String CPU_ABI2 = getString("ro.product.cpu.abi2");
    

提交回复
热议问题