Android uses adb command to view CPU information

When using JNI programming in Android, different SO files need to be compiled to adapt to different models.

E.g:

Therefore, you need to check the CPU information of different models.

Use the ADB command to view the CPU information. The command is as follows:

1.
 adb shell  
2.
 cat  /proc/cpuinfo

The information viewed is as follows (note that only one device can be connected at a time):

The above is a Huawei model with a 64-bit CPU.

The above one is 32 bit

 

If the adb shell cannot be opened, you need to add the path of adb.exe to the environment variable path.

 

 If "This program cannot be started because AdbWinApi.dll is missing from the computer. Try reinstalling the program to resolve this problem.", you need to copy the AdbWinAPi.dll file to system32/sysWOW64 (depending on the system bitness)

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325890371&siteId=291194637