Skip to content
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

[tvOS] patchfinder.o ? #142

Open
onchehuh opened this Issue Jan 28, 2017 · 15 comments

Comments

Projects
None yet
5 participants
@onchehuh
Copy link

onchehuh commented Jan 28, 2017

I extracted IOKit Framework from tvOS 10.0.1 OTA Update and placed it in the SDK
I'm having this build error :

File too small (length=16) file /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.1.sdk/System/Library/Frameworks/IOKit.framework/IOKit for architecture arm64

Any idea ?

@onchehuh onchehuh changed the title [tvOS] File too small (length=16) for architecture arm64for architecture arm64 [tvOS] File too small (length=16) for architecture arm64 Jan 28, 2017

@Mila432

This comment has been minimized.

Copy link
Contributor

Mila432 commented Jan 28, 2017

Project is armv7 you can't build it for iptv4

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 28, 2017

Changed it, but here the problem seems to be related with tvOS IOKit, isn't it ?

@Mila432

This comment has been minimized.

Copy link
Contributor

Mila432 commented Jan 28, 2017

maybe it is , but you have other problems which will not allow you to compile it with the current code

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 28, 2017

Okay and when changing to armv7, I'm getting this
file too small (length=16) file '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.1.sdk/System/Library/Frameworks//IOKit.framework/IOKit' for architecture armv7
which is the same error.
I think my IOKit is not the good one, but I have to find IOKit.tbd for tvOS.

@nerdtron123

This comment has been minimized.

Copy link

nerdtron123 commented Jan 28, 2017

Use the IOKit headers for iPhone or w/e, see if those work..

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 28, 2017

That's what I tried just before, here's the output :
building for tvOS, but linking against dylib built for iOS (/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.1.sdk/System/Library/Frameworks//IOKit.framework/IOKit.tbd). file '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.1.sdk/System/Library/Frameworks//IOKit.framework/IOKit.tbd' for architecture armv7

@onchehuh onchehuh changed the title [tvOS] File too small (length=16) for architecture arm64 [tvOS] problem with arch (armv7 / arm64) Jan 28, 2017

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 28, 2017

I changed the tbd file platform from ios to tvos, it fails with
URGENT: building for tvOS, but linking in object file (/Users/Edgar/yalu102/yalu102/patchfinder64.o) built for iOS. Note: This will be an error in the future.
Obvious since this is built already.
ignoring file /Users/Edgar/yalu102/yalu102/iokitmig64.o, file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x0C 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked (armv7): /Users/Edgar/yalu102/yalu102/iokitmig64.o
And it fails on many parts of the framework saying missing required architecture armv7 in file

@semvoigt

This comment has been minimized.

Copy link

semvoigt commented Jan 29, 2017

Use the headers I reverse engineered. check it out at https://wizardos.stackstorage.com/index.php/s/70DaU1wueOaCX6F

The project is out of date, but the IOKit headers are not.
Donate: https://paypal.me/20162017

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 29, 2017

Thanks, I'm still getting issues with built libraries
ld: warning: text-based stub file /Users/xxx/Downloads/yalu102/yalu102/IOKit.tbd and library file /Users/xxx/Downloads/yalu102/yalu102/IOKit.tbd are out of sync. Falling back to library file for linking. ld: warning: -no_pie ignored for arm64 ld: warning: URGENT: building for tvOS, but linking in object file (/Users/xxx/Downloads/yalu102/yalu102/iokitmig64.o) built for iOS. Note: This will be an error in the future. ld: warning: ignoring file /Users/xxx/Downloads/yalu102/yalu102/patchfinder64.o, file was built for armv7 which is not the architecture being linked (arm64): /Users/xxx/Downloads/yalu102/yalu102/patchfinder64.o Undefined symbols for architecture arm64: "_set_text_exec", referenced from: _exploit in jailbreak.o "_set_prelink_exec", referenced from: _exploit in jailbreak.o "_find_register_value", referenced from: _exploit in jailbreak.o "_uref", referenced from: _exploit in jailbreak.o "_find_gPhysBase", referenced from: _exploit in jailbreak.o "_find_kernel_pmap", referenced from: _exploit in jailbreak.o "_set_dump", referenced from: _exploit in jailbreak.o "_get_data_for_mode", referenced from: _exploit in jailbreak.o "_text_exec_base", referenced from: _exploit in jailbreak.o ld: symbol(s) not found for architecture arm64

or with armv7

pastebin

@Mila432

This comment has been minimized.

Copy link
Contributor

Mila432 commented Jan 29, 2017

cant you read?

Project is armv7 you can't build it for iptv4

you wont even come close to compile until @kpwn releases an arm64 version of his patchfinder

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 29, 2017

I know this, and I'm just trying to see if he is going to release it or not, as the issue is still open without news from him

@Derewith

This comment has been minimized.

Copy link

Derewith commented Jan 29, 2017

@onchehuh so you can't build it for tvOS right?

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 29, 2017

No it's not possible since @kpwn's private libraries are not available on this OS for now.
But perhaps that if we show activity on that device ...

@Derewith

This comment has been minimized.

Copy link

Derewith commented Jan 29, 2017

@onchehuh it will be awesome to jailbreak tvOS.
Deam @kpwn we must irc on that

@onchehuh

This comment has been minimized.

Copy link
Author

onchehuh commented Jan 29, 2017

Would be very useful, force picture in picture, build little web servers, support unsupported controllers .....

@onchehuh onchehuh changed the title [tvOS] problem with arch (armv7 / arm64) [tvOS] patchfinder.o ? Jan 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.