I need a kernel version from an Android device for use in a Python script. How can I get this value?
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