Android Kernel Version
How can I get the version of the Linux kernel in an Android application?
IdolonApr 08, 2019 What is Kernel Version in Android Phone? When we go to the setting and then click the about phone, Kernel version option is shown. I want to tell you that it is the version of your Kernel. Simply, the Kernel is a software which works in between our hardware and our applications or software. Suppose you installed a file sharing application, now it will seek access of your wifi or hotspot but. However, the kernel community can only make this promise for the code that is merged into the Linux kernel tree. Any code that is merged into a device's kernel that is not in the kernel.org releases is unknown and interactions with it can never be planned for, or even considered. The Linux kernel is an extremely important part of the software on nearly every Android device. This section describes Linux kernel development and release models (below), stable and long-term supported (LTS) kernels (including why all Android devices should use stable releases instead of cherry picking patches), kernel configuration and hardening, requirements for interfaces and the modular.
4 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 :
I found this information here : http://cb1991.blogspot.com/2011/03/android-code-to-get-kernel-version.html
Best python ide for windows. Our work actually officially supports it through the corporate app store but i have a very unsupportive manager (she hates change)who will expect too much of me before I'm ready to make any commitments if i ask for approval. Is there any version of Python that is Windows 7 compatible that will run standalone without requiring any sort of installer?I am using but some of the exercises suggest using the Interactive Shell (and I assume at some point I may outgrow the Web tool?)Thanks in advance for any advice. News about the dynamic, interpreted, interactive, object-oriented, extensible programming language PythonIf you are about to ask a 'how do I do this in python' question, please try, or the #python IRC channel on FreeNode.Please don't use URL shorteners. I'm new to Python (and an extreme novice with programming in general) starting to learn Python viaProblem is our work machines are heavily locked down and without admin privileges, we can't really install anything (we can download though). It's not that, im new to Python and a novice programmer in general (done light vba scripting in Excel, sql tweaking, etc.).
If you want the full Kernel version has shown in Android about phone, this is the file to parse:/proc/version
Here is an extract of Android source code that retrieves the actual kernel version string:
Invoke uname -r
and read its output from stdout
. It shouldn't be too complicated. The output is just the version number.
Assuming you write Java code (as far as I know Android Apps are written in Java), this might help you: http://www.java-tips.org/java-se-tips/java.lang/how-to-execute-a-command-from-code.html
If you are doing this from an app, this will give you the kernel version string:
Not the answer you're looking for? Browse other questions tagged androidlinuxversionkernel or ask your own question.
Is there a list of which kernel version comes in each Android AOSP version?
Or lets say, which version /proc/version would spit out.
Robert SiemerRobert Siemer1 Answer
Table compiled from:
Note: other “distributions” of Android might run different kernel versions.
Anyone is welcome to correct and expand this table. Please keep formatting.
OEMs tend to ship their major Android updates with a similar kernel to the one the device was initially released with. This is most likely to avoid hardware and driver incompatibility issues with a newer kernel. For example, a device that has been updated to run Android 8.0 Oreo but originally shipped with 6.0 Marshmallow may still be running Linux 3.18.x instead of Linux 4.10.x.
According to a 2017 article on XDA-Developers (shortened):
One aspect that has been up to the OEM is the Linux kernel version but this is changing with Android Oreo.
As long as the OEM was able to pass the certification tests that Google lays out, then they didn’t care what kernel version was used in a new device. This generally wasn’t an issue as most OEMs would use the same version of the kernel for that generation that other OEMs were using, as it is tied heavily to what the hardware drivers support. However, some had been falling through the cracks and this started to cause security issues. This is something that Google has been taking seriously lately so it makes sense that they would want to start mandating this.
Starting this year with smartphones which ship with Android Oreo, Google is requiring that all SoCs productized in 2017 must launch with kernel 4.4 or newer.
Currently existing devices that are upgraded to Android Oreo are only required to run kernel version 3.18 or newer, and will not have to be upgraded to support Project Treble.
More technical and recent information available directly from the AOSP website: https://source.android.com/devices/architecture/kernel/modular-kernels#core-kernel-requirements
protected by Community♦Oct 7 '17 at 21:36
Android Kernel Version 3.0.15 Download
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?