How to retrieve SoC model name of an android device?

5.4k views Asked by At

How to retrieve SoC model name of an android device? E.g. Qualcomm MSM 8974 HAMMERHEAD (Flattened Device Tree) for Nexus 5. (E.g. CPU-Z app shows this info.)

3

There are 3 answers

7
Tamas On BEST ANSWER

The file /proc/cpuinfo contains exactly this info.

1
zmarties On

There is no Android specific API that provides this info. The android CPU-Z app includes a piece of native code that finds this information.

If you want to do the same, you will need to provide your own such native code routine, though I suspect that you can probably find a routine to port in a number of open source repositories.

2
5p0ng3b0b On

Try getprop ro.board.platform or cat /sys/firmware/devicetree/base/compatible.