Skip to content

Instantly share code, notes, and snippets.

@pinetum
Created April 1, 2018 12:58
Show Gist options
  • Save pinetum/c7c933bc534f66cf11d3db37e58d9c29 to your computer and use it in GitHub Desktop.
Save pinetum/c7c933bc534f66cf11d3db37e58d9c29 to your computer and use it in GitHub Desktop.
change mi6 nfc id
#!/system/bin/sh
su -c "
echo \"enter /system/etc\" &&\
cd /system/etc &&\
echo \"mount /system rw\" &&\
mount -o rw,remount /system &&\
echo \"patch nfc id\" &&\
sed -i -e 's/33, 04, 01, 02, 03, 04,/33, 04, AA, AA, AA, AA,/g' libnfc-nxp.conf &&\
echo \"mount /system ro\" &&\
mount -o ro,remount /system &&\
echo \"restart nfc\" &&\
svc nfc disable &&\
sleep 5 &&\
svc nfc enable &&\
echo \"done!\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment