MohammadAG / NFCLockscreenoffEnabler

An Xposed Mod to ensure NFC remains enabled when the phone screen is off, or if you're at the lockscreen
Other
18 stars 16 forks source link

Support for stock Samsung Galaxy Note II (Android 4.1.2) #3

Closed sleavitt closed 11 years ago

sleavitt commented 11 years ago

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... :)

MohammadAG commented 11 years ago

Thanks, merged :)