SHARE
TWEET

Re-enable NFC Smart Lock on Android

Nephiel Jan 14th, 2018 (edited) 1,859 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##############################################################
  2. ### How to re-enable NFC as a Smart Lock method on Android ###
  3.  
  4. Disclaimer: these steps describe a method that works for me as of Jan 14 2018. I cannot guarantee it will work for you, and it may result in loss of data. I will not be held responsible for any damages or losses that may result of following any part of these instructions.
  5.  
  6. Always make sure to keep backups of your important data!
  7.  
  8. ##############################################################
  9.  
  10. As root, edit /data/data/com.google.android.gms/shared_prefs/coffee_preferences.xml
  11.  
  12. Add the following lines between the <map> and </map> tags:
  13.  
  14.     <set name="nfc_trustlet_tech_codes">
  15.         <string>android.nfc.tech.NfcV</string>
  16.         <string>android.nfc.tech.NfcA</string>
  17.     </set>
  18.     <string name="auth_trust_agent_pref_trusted_nfc_Vb2tUD1p62CToOS9IXyywQS/T15GVEATDPtuKMoRPTQ=">{&quot;pr&quot;:0,&quot;id&quot;:&quot;Vb2tUD1p62CToOS9IXyywQS\/T15GVEATDPtuKMoRPTQ=&quot;,&quot;te&quot;:[&quot;android.nfc.tech.MifareUltralight&quot;,&quot;android.nfc.tech.NfcA&quot;],&quot;na&quot;:&quot;Test NFC Device&quot;}</string>
  19.  
  20. Save the file.
  21.  
  22. Now go to Security -> Smart Lock, there should be a device named "Test NFC Device" under Trusted Devices.
  23. You may have to force-stop Google Play Services to get the changes to apply. If not, reboot your device.
  24.  
  25. When you see the "Test NFC Device" under Trusted Devices, tap it, and add your own NFC device. If you see an empty white screen, reboot your device.
  26.  
  27. Once you have authorized your own NFC device, you must remove the test device. Do not keep the test device authorized, as it may pose a security risk.
  28.  
  29. If NFC Smart Unlock appears to be enabled but doesn't work after removing the test device, edit again coffee_preferences.xml and check if the tech.NfcV and tech.NfcA lines have been removed, if so, re-add them. Do not re-add the Test NFC device line.
  30.  
  31. Keep at least one NFC device authorized, or you will be unable to access NFC unlock again.
  32.  
  33. Good luck!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top