Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iykex/d8d4423988a18f37b520d8ee522a8a2b to your computer and use it in GitHub Desktop.
Save iykex/d8d4423988a18f37b520d8ee522a8a2b to your computer and use it in GitHub Desktop.
command for checking kernel version of android in linux terminal
  • Code :
dd if=zImage-dtb bs=1 skip=$(LC_ALL=C od -Ad -x -w2 zImage-dtb | grep 8b1f | cut -d ' ' -f1 | head -1) | zgrep -a 'Linux version'

zImage-dtb or Image is the kernel(binary).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment