Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要具有 Android 操作系统的设备的内核版本才能在 Python 脚本中使用。我怎样才能得到这个值?
您可以使用以下命令:
adb shell cat /proc/version
对于我的手机,我收到以下输出:
Linux version 2.6.35.7-g3cc95e3 (peter@boris) (gcc version 4.4.3 (GCC) ) #3 PREEMPT Thu Aug 18 14:34:17 EDT 2011