Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
Discuss [iPhone SDK] Running SDK compiled apps without a certificate at the iPhone Developer Exchange - Hackint0sh.org; Well, i've gotten pretty "far", sort of. Creating a faux 1.2 root on the iPhone ...
  1. #21
    Newbie Array

    Join Date
    Mar 2008
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Well, i've gotten pretty "far", sort of. Creating a faux 1.2 root on the iPhone and instructing dyld to load libraries and framework from this path. This is practically what Shirk has also done, and we get the same results. The problem is this:

    Referenced from: /System/Library/Frameworks/Foundation.framework/Foundation
    Expected in: /var/root/Aspen/Library/Frameworks/CoreFoundation.framework/CoreFoundation

    What happens is that 1.1.4 dyld can't load the 1.2 Foundation framework, and thus reverts back to 1.1.4, which in turn is totally different symbol-wise from 1.2, and therefore shuts down. Eg, it doesn't find the 1.1.4 symbols defined in Foundation in the new frameworks. When trying to force dyld to only load 1.2 Foundation, it spits out something like "Unknown required load command: 0x800000F". I'm not entirely sure, since resources on dyld are scarce, but i would guess this means that the 1.2 dyld supports some new load commands that 1.1.4 dyld doesn't understand. Getting through this hassle would probably require patching the frameworks to allow 1.1.4 dyld to load them. I spent alot of time in a hex editor trying to figure out what to patch, but right now, for me at least, this is nearly impossible, since i haven't been able to find any detailed specifications for the frameworks binary structure, or an ARM dissasembler, both would make everything a lot easier. I know the theoretical structure of the frameworks and libraries (Apple has this documented on ADC under mach-o binary format), but this doesn't really translate into actual code for the different load commands, so i'm stuck at looking at hex code i haven't got a clue to what means.

    On the subject of tutorials, i would love to do that, but until we have an actual tap-and-the-SDK-compiled-app-just-runs solution it's not much fun.

    If you wan't to mess around and help, here's a few pointers:

    Create a copy of the 1.2 frameworks and other files on the iPhone, these files are found in the Aspen-1.2 SDK. I put mine under /var/FauxRoot.

    Instruct dyld to use these libraries and frameworks when loading an application. You can do this at runtime by using the env command, like this:

    env DYLD_ROOT_PATH=/var/FauxRoot /Applications/Some1.2App.app/Some1.2app

    But as i said, this isn't much fun yet, since we need to either patch up the frameworks, or figure out how to use the 1.2 dyld under 1.1.4. I did try using the new dyld to load the frameworks, but it simply refuses to run, i guess that it is in some way incompatible to the 1.1.4 kernel.

    Anyone sitting around with a reference sheet for ARM6 binary code?


  2. #22
    Advanced Array

    Join Date
    Feb 2008
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default And another step..

    nfotx: looks like a got another one..

    I'm now using two scripts to setup and leave my 1.2 environment. They just consist of a few export and unset directives but they got me past my last error.

    My settings so far:

    export DYLD_FRAMEWORK_PATH=/var/root/Aspen/System/Library
    export DYLD_LIBRARY_PATH=/var/root/Aspen/usr/lib:/var/root/Aspen/System/Library
    export DYLD_FORCE_FLAT_NAMESPACE=yes

    Adding System/Library to DYLD_LIBRARY_PATH solved the need to create symlinks for all dylib's contained in the frameworks.
    What I got was this:
    Code:
    # cd Aspen 
    # source set_paths.sh 
    # /tmp/hello2.app/hello2 
    dyld: Symbol not found: __dealloc
      Referenced from: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
      Expected in: flat namespace
    
    zsh: trace trap  /tmp/hello2.app/hello2
    #
    So I tried to export my own version of __dealloc (which seem to be called _dealloc in 1.1.4) by adding this to my code:
    Code:
    void dealloc()
    {
      return;
    }
    After this I'm left without relocation errors but the app still terminates with a:
    Code:
    zsh: bus error /tmp/hello2.app/hello2
    #
    Still way to go.. but where progressing
    iPhone week 49 FW 2.0.0 DevTeam
    BL 4.6 Geohot unlocked -> BL 3.6
    1.1.2ootb -> 1.1.1 -> 1.1.2 -> 1.1.3 soft -> stuck in recovery -> 1.1.1 -> 1.1.2 -> ziphone ->1.1.4 -> Pwned -> 1.1.4 -> Pwned 2.0
    Carrier: Yes Epuls - Germany
    Calls in/out : Yes
    SMS in/out : Yes
    Voicemail SMS: Yes
    WIFI: Yes
    EDGE/GPRS: Yes
    Youtube: Yes
    Working tether-DNS: Yes

    See the little "thumbs up" on the left? CLICK IT!

  3. #23
    Newbie Array

    Join Date
    Mar 2008
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I can't be of much use but i'd love to see this project go somewhere.
    I went in to the apple shop and bought a iPod touch expressly to do development work, but the people in the shop never mentioned that there isn't a developer program in the UK yet (nor that there's a waiting list for the US programme)
    kerwank!

  4. #24
    Newbie Array

    Join Date
    Mar 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by sugokuGENKI View Post
    but the people in the shop never mentioned that there isn't a developer program in the UK yet (nor that there's a waiting list for the US programme)
    Why would clerks in a consumer store know anything about development?

  5. #25
    Newbie Array

    Join Date
    Mar 2008
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by Cone View Post
    Why would clerks in a consumer store know anything about development?
    yeah, dumb me,.


 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Get source code from compiled apps?
    By tharkay in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 07-05-2010, 04:01 PM
  2. Submit iphone apps to the appstore compiled in a hackintosh?
    By dipswitch in forum AppStore Software
    Replies: 3
    Last Post: 07-26-2009, 10:39 PM
  3. [iPhone SDK] Apps Work w/o Certificate on 2.0 + Pwnage
    By elpopo in forum iPhone Developer Exchange
    Replies: 39
    Last Post: 04-17-2009, 02:52 PM
  4. Replies: 15
    Last Post: 02-28-2009, 01:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 07:15 PM.
twitter, follow us!