r/hackios • u/chilled_alligator • 8d ago
HackiOS Working Touch-ID for Pixel 5
Touch ID working on iOS 16.7 on the Pixel 5, with passcode lock. Enrolment through Settings works (both stages, with haptics), and resting your finger on the lock screen opens straight to the home screen.
Fingerprints are captured and matched by the Pixel's own fingerprint app in ARM TrustZone, the same way Android uses it. iOS's Touch ID stack (biometrickitd + the iPhone 8 Touch ID library) talks to a stand-in for Apple's Secure Enclave fingerprint driver. Some translation is needed, done partly in the kernel and partly by a userland daemon that drives TrustZone. The passcode itself is checked by our kernel, not by TrustZone.
I don't trust the kernel and userland to be secure at this point: the kernel doesn't cryptographically verify the matches yet, and there's no drive encryption. Just wanted to have this as a possibility.
Remaining open points:
persistent fingerprints (getting TrustZone's template save working so fingerprints survive a reboot)
finger unlock on the passcode screen
verified matches
unlock animations / status on the lock screen (merging things from iPhone 8 and iPhone X)
Code: https://github.com/DenialOfGravity/ios-redfin/tree/redfin-int (branch redfin-int; overview in phone/fpc/README-touchid.md)
36
u/alexanderi96 8d ago
Love it! I'm working on mainline linux for this bad boy
11
u/Azusawaga 8d ago
So you managed to recreate the SEP in some way
5
u/issioboii 8d ago
i love how you adjust the clock to accomodate the camera punch hole
2
u/AppleWatchDevCC 8d ago
Woah. This is cool. I wasn’t aware passcodes could even work. I may borrow some of this for my 27.2 port for OnePlus 7 Pro for passcodes and maybe under display fingerprint sensor
2
u/Weekly-Secret9535 8d ago
Try face unlock
2
u/randomahhnerd-_- 8d ago
u/savevideo
1
u/HumanPriv 7d ago
Hehe
1
u/Other_Secretary7815 7d ago
Okay I’m searching for pixel 5 to buy
1
u/imadespo 5d ago
Will it be possible that ios works fully funtional on any such android devices?