Repository navigation
Support J715 Touch ID and SDDM fingerprint login #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 8 commits
06a361d
2f08443
66d56c7
57e1ca1
3d9195c
cbecf9f
716b0c9
267ee02
6658d80
3ea608a
cd2642b
9f48c58
6a61152
1e20d4c
97add39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,8 @@ if compatible apple,t8103 || compatible apple,t6000 || compatible apple,t6001; t | |
| echo unsupported:m1-family | ||
| exit 0 | ||
| elif ! compatible apple,t8112 && ! compatible apple,t6020 && ! compatible apple,t6021 && ! compatible apple,t8140 && | ||
| ! { compatible apple,t8122 && { compatible apple,j613 || compatible apple,j615; }; }; then | ||
| ! { compatible apple,t8122 && { compatible apple,j613 || compatible apple,j615; }; } && | ||
| ! { compatible apple,t8132 && compatible apple,j715; }; then | ||
| echo unsupported:board | ||
| exit 0 | ||
| fi | ||
|
|
@@ -68,15 +69,35 @@ calibration=apple/mesa_calibration.bin | |
| if [[ -r $sensor/firmware-name ]]; then | ||
| calibration=$(tr -d '\0' <"$sensor/firmware-name") | ||
| fi | ||
| if ! installed "$calibration" && { compatible apple,t8140 || ! can_extract extract-mesa-calibration; }; then | ||
| if ! installed "$calibration" && { compatible apple,t8140 || compatible apple,t8132 || ! can_extract extract-mesa-calibration; }; then | ||
| echo unsupported:no-calibration | ||
| exit 0 | ||
| fi | ||
| # A 130427-byte J715 FSC2 body worked on one reference Mac. | ||
| # Size rejects other-sized inputs, not another Mac's or forged data. | ||
| # Check every lookup candidate so a good copy cannot hide a malformed shadow. | ||
| if compatible apple,t8132; then | ||
| for directory in "$firmware" "$firmware/vendor" "$firmware/updates"; do | ||
| calibration_path=$directory/$calibration | ||
| if [[ -e $calibration_path || -L $calibration_path ]]; then | ||
| if [[ ! -f $calibration_path || ! -r $calibration_path ]] || [[ $(wc -c <"$calibration_path") != 130427 ]]; then | ||
| echo unsupported:invalid-calibration | ||
| exit 0 | ||
| fi | ||
| fi | ||
| done | ||
| fi | ||
| # The Neo's sensor key is rebuilt once the owner agrees, by touchid-root-key | ||
| # (Python), from the factory records asahi-installer leaves on the ESP. | ||
| if compatible apple,t8140 && ! installed apple/msrk-j700.bin && | ||
| { [[ ! -r $esp/asahi/all_firmware.tar.gz ]] || ! command -v "$python" >/dev/null; }; then | ||
| echo unsupported:no-root-key | ||
| exit 0 | ||
| fi | ||
| # J715 needs its own FDR MSRk and FSC2, not the Neo's reconstructed key or | ||
| # the older calibration an extractor can find in the system container. | ||
| if compatible apple,t8132 && ! installed apple/msrk-j715.bin; then | ||
| echo unsupported:no-root-key | ||
| exit 0 | ||
| fi | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed: eligibility now checks metadata for every present J715 key candidate, requiring a regular readable 10848-byte file and rejecting malformed shadows even beside a good copy. No private body is read. The new cases fail on the old helper; the calibration/key suite now passes 50 cases, including missing files, valid symlinks and unchanged non-J715 rules. Fixed in 1e20d4c. |
||
| echo available | ||
Uh oh!
There was an error while loading. Please reload this page.