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
[tools/codesign][tvOS][Jailbreak] Fake sign kodi-topshelf + fix crash on start on Unc0verTV #18335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to do an if [ -f .../kodi-topshelf ], or encase it in a tvos platform check? Does ldid error if file doesn't exist?
Other comment would be around hardcoding Kodi in the filename. I can't remember if you can change topshelf app name, but I assume you can
You are right, I will add the I will check. |
1cf23a7
to
4dc25fd
Compare
Looks good to me |
4dc25fd
to
1efef96
Compare
cf5339c
to
eaab3d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with that, looks good
Cool 😉 Thank you for your help. |
Jenkins build this please |
eaab3d1
to
1d48fb4
Compare
This file is no more generated by Xcode since version 9.3
1d48fb4
to
93f7ac6
Compare
Hi, I finally create a "PostBuild" script for TopShelf in order to fake sign it if needed. I find this approach cleaner because we do not pollute main Codesign file with tvOS topShelf specific stuff. Also, I added some code in order to fake-sign all Mach-O files. This step fix an issue where Unc0verTV users have Kodi crashing on start. Sorry for the code changes... |
93f7ac6
to
005ef8b
Compare
Fake-signing kodi-topshelf binary is needed to have Kodi Top Shelf feature working on jailbroken devices. Fake-signing all other Mach-O files is needed to have Kodi working on Unc0verTV jailbroken devices. (But it's not needed on checkra1n devices...)
005ef8b
to
e217bd2
Compare
Thank you both for your help with this PR. |
Description
This PR is related to this one: #18315 (more precisely is a missing part of this one...)
I noticed that the top-shelf binary also need to be fake signed in order to work on jailbroken Apple TV.
Also, Kodi is completely broken on Unc0verTV jailbroken devices, because we need to fake-sign ALL binaries (including frameworks, dylib, ...)
Motivation and Context
dpkg -i
).How Has This Been Tested?
On my jailbroken Apple TV 4K.
dpkg -i
--> OkAlso tested by @BTopbas on an Unc0verTV Apple TV 4K device.
User impact
Screenshots (if appropriate):
Types of change
Checklist: