code: protected static String getKernelVersion() {
          String errorMsg = "Exception while attempting to read kernel information";
          String defaultVersion = System.getProperty("os.version");
  
          BufferedReader br = null;
          try {
              File file = new File("/proc/version");
              if (!file.canRead()) {
                  return defaultVersion;
              }
  
              br = new BufferedReader(new FileReader(file));
              return br.readLine();
          } catch (Exception e) {
              Log.e(TAG, errorMsg, e);
          } finally {
              if (br != null) {
                  try {
                      br.close();
                  } catch (IOException ioe) {
                      Log.e(TAG, errorMsg, ioe);
                  }
              }
          }
  
          return defaultVersion;
      }
docs: Get the device's current kernel version, as a string. Attempts to read
  /proc/version, and falls back to the 'os.version' System Property.
  
  @return the device's current kernel version, as a string