Thursday, January 7, 2016

Display ABI using "adb shell getprop ro.product.cpu.abi" command

Different Android handsets use different CPUs, which in turn support different instruction sets. Each combination of CPU and instruction sets has its own Application Binary Interface, or ABI. The ABI defines, with great precision, how an application's machine code is supposed to interact with the system at runtime.

~ reference:

To identify the android device is 32-bit or 64-bit 

Android is going to support 64-bit, but there are so many android devices, how do developer know current device is 32-bit  or 64-bit  ?

Let's begin from  this command:

adb shell getprop ro.product.cpu.abi

getprop is an android utility to retrieve a property via the android property service.

~ referene:

This video show how the command "adb shell getprop ro.product.cpu.abi" run on device and emulator.

List supported ABIs programmatically

No comments: