Android 查看当前手机的CPU ABI信息

 

 

命令:adb shell "getprop |grep cpu"

C:\Users\xxx>adb shell "getprop |grep cpu"
[ro.boot.cpuid]: [0xeb26d66d931ef9bf80d330f0400f9094483ad73d]
[ro.odm.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.odm.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.odm.product.cpu.abilist64]: [arm64-v8a]
[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]
[ro.vendor.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.vendor.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.vendor.product.cpu.abilist64]: [arm64-v8a]

 

在 data/system/packages.xml 文件中找到自己 app 的相关配置信息,这里有明确指出该去哪里加载 so 文件,以及 app 所运行的 CPU 架构,所以我们可以运行如下命令:

adb pull data/system/packages.xml .

 

 <package name="com.google.android.projection.gearhead" codePath="/data/app/~~FV82qDfEhM0XpjKROILrHg==/com.google.android.projection.gearhead-bwnJdmAtlEmiYdkVRTgsmg==" nativeLibraryPath="/data/app/~~FV82qDfEhM0XpjKROILrHg==/com.google.android.projection.gearhead-bwnJdmAtlEmiYdkVRTgsmg==/lib" primaryCpuAbi="arm64-v8a" publicFlags="940293829" privateFlags="-1945630456" ft="17a42122010" it="179ed47db60" ut="17a42122437" version="65612134" sharedUserId="10135" installer="com.android.vending" isOrphaned="true" installInitiator="com.android.vending">
      

 

 

参考:

https://www.cnblogs.com/dasusu/p/9857853.html

https://www.jianshu.com/p/f243117766f1

https://blog.csdn.net/weixin_40107510/article/details/78138874

 

posted @ 2021-07-14 13:56  行走的思想  阅读(2354)  评论(0编辑  收藏  举报