Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to detect the ABI at runtime from within the Android VM?

I need to be able to detect in Java the ABI (armeabi, armeabi-v7a, x86 or mips) of a device at runtime. Is this possible ?

like image 816
Funky Oordvork Avatar asked Dec 20 '22 13:12

Funky Oordvork


1 Answers

Build.CPU_ABI is now deprecated.

Starting from API 21 You should use instead Build.SUPPORTED_ABIS.

Build.SUPPORTED_ABIS is an ordered list of ABIs supported by this device. The most preferred ABI is the first element in the list.

like image 73
Elhanan Mishraky Avatar answered Apr 06 '23 10:04

Elhanan Mishraky