Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the version of the Linux kernel using Android?

How can I get the version of the Linux kernel in an Android application?

like image 461
chaitanya Avatar asked Mar 08 '11 15:03

chaitanya


1 Answers

Not 100% sure, but I think calling "uname -r" would require root access. There is anyways a less dirty way to do this, which is :

System.getProperty("os.version");

I found this information here : http://cb1991.blogspot.com/2011/03/android-code-to-get-kernel-version.html

like image 197
havchr Avatar answered Sep 30 '22 20:09

havchr