kpwn / yalu102

incomplete iOS 10.2 jailbreak for 64 bit devices by qwertyoruiopz and marcograssi
Do What The F*ck You Want To Public License
1.77k stars 554 forks source link

[tvOS] patchfinder.o ? #142

Open oncheonche opened 7 years ago

oncheonche commented 7 years ago

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 ?

Mila432 commented 7 years ago

Project is armv7 you can't build it for iptv4

oncheonche commented 7 years ago

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

Mila432 commented 7 years ago

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

oncheonche commented 7 years ago

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 commented 7 years ago

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

oncheonche commented 7 years ago

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

oncheonche commented 7 years ago

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 commented 7 years ago

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

oncheonche commented 7 years ago

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 commented 7 years ago

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

oncheonche commented 7 years ago

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 commented 7 years ago

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

oncheonche commented 7 years ago

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 commented 7 years ago

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

oncheonche commented 7 years ago

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