def METHOD_NAME(crash_info):
  """Linkify Android Kernel or lkl stacktrace."""
  kernel_prefix = ''
  kernel_hash = ''
  if (environment.is_android_kernel() and
      not environment.is_android_cuttlefish() and
      (crash_info.found_android_kernel_crash or crash_info.is_kasan)):
    kernel_prefix, kernel_hash = \
      android_kernel.get_kernel_prefix_and_full_hash()
  elif (environment.is_lkl_job() and crash_info.is_lkl and
        crash_info.lkl_kernel_build_id):
    kernel_prefix, kernel_hash = \
      lkl_kernel.get_kernel_prefix_and_full_hash(crash_info.lkl_kernel_build_id)
  if kernel_prefix and kernel_hash:
    _linkify_android_kernel_stacktrace(crash_info, kernel_prefix, kernel_hash)