Using adb getprop
, I've found a few values that I think are pertinent, but I don't have any idea what an ARM64 device's value would like, much less an x86 one.
For my ARM device, the values are:
ro.product.cpu.abi armeabi-v7a
ro.product.cpu.abi2 armeabi
ro.product.cpu.abilist32 armeabi-v7a,armeabi
ro.product.cpu.abilist64
I though armabi-v8a
would mean ARM64, but Wikipedia says
most chips support 32-bit AArch32 for legacy applications
So, I'm wondering if an ARMv8 chip could possibly be loaded with 32-bit Android which would further complicate things
Is there any way I can determine my device architecture with adb
?
[ro.product.cpu.abi]: [arm64-v8a] [ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi] [ro.product.cpu.abilist32]: [armeabi-v7a,armeabi] [ro.product.cpu.abilist64]: [arm64-v8a]
I cannot check with an x86 device as I have none. But I'd say the picture is comparable: just check whetherabilist64
has a value. If so, it's a 64bit device, otherwise it's running in 32bit mode.