I've added support for Samsung TecTiles, which appear to be IsoDep NFC tags. NFCLockscreenoffEnabler now recognizes and adds them to the authorized tags list.
I've reworked the way android.os.UserHandle is pulled in so that NFCLockscreenoffEnable will work with devices running less than Android API 17 (Android 4.2). I don't have an Android 4.2 or higher device to test my changes with, but I think it will do the trick. Based on the way I'm retrieving the class, I think it's appropriate to pass UserHandle and not UserHandle.class in the call to findAndHookMethod().
I've been testing this with my Samsung Galaxy Note II (Verizon SCH-I605), but none of this is actually specific to this device; I just couldn't come up with a better subject for this pull request... :)
I've added support for Samsung TecTiles, which appear to be IsoDep NFC tags. NFCLockscreenoffEnabler now recognizes and adds them to the authorized tags list.
I've reworked the way android.os.UserHandle is pulled in so that NFCLockscreenoffEnable will work with devices running less than Android API 17 (Android 4.2). I don't have an Android 4.2 or higher device to test my changes with, but I think it will do the trick. Based on the way I'm retrieving the class, I think it's appropriate to pass UserHandle and not UserHandle.class in the call to findAndHookMethod().
I've been testing this with my Samsung Galaxy Note II (Verizon SCH-I605), but none of this is actually specific to this device; I just couldn't come up with a better subject for this pull request... :)