Skip to content

Instantly share code, notes, and snippets.

@cgarst
Last active July 12, 2016 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgarst/0b06cafc3cffcc13756ce922cd9f5f70 to your computer and use it in GitHub Desktop.
Save cgarst/0b06cafc3cffcc13756ce922cd9f5f70 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This script will return the Android Security Patch Level from a system.img image
# Requires android-simg2img from https://github.com/anestisb/android-simg2img
simg2img system.img system.raw.img
mount -o ro system.raw.img /mnt
grep security_patch /mnt/build.prop
umount /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment