How can I get the Android kernel version via adb (or via the Python command)?

I need a kernel version from an Android device for use in a Python script. How can I get this value?

+6
source share
1 answer

You can use the following command:

adb shell cat /proc/version 

For my phone I received the following output:

 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 
+18
source

All Articles