Last active
July 12, 2016 15:20
-
-
Save cgarst/0b06cafc3cffcc13756ce922cd9f5f70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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