Skip to content

Instantly share code, notes, and snippets.

@atoa
Created May 3, 2013 10:45
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 atoa/5508448 to your computer and use it in GitHub Desktop.
Save atoa/5508448 to your computer and use it in GitHub Desktop.
find unlock code Samsung Infuse (possibly other SGS variants). Execute from android shell (e.g. terminal or adb shell)
dd if=/efs/root/afs/settings/nv_data.bin skip=8 count=4 2>/dev/null | strings | \
grep -v '^0\{8\}$' | (grep '^[0-9]\{8\}' || echo 'ERROR - Unlock code not found' >&2 ) | \
sed -e 's/^\([0-9]\{8\}$\)/UNLOCK CODE: \1/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment