Question Payload loader for iOS?

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by ElijahZAwesome, May 21, 2018.

  1. Lil_SpazJoekp

    Lil_SpazJoekp Advanced Member

    Newcomer
    1
    Apr 11, 2018
    United States
    Yes read the thread. Right now it only works on a jailbroken device iOS 10+. My iOS 9.3.5 did not work for me. It might work for you; need more people to test it.
     
  2. naddel81

    naddel81 GBAtemp Advanced Maniac

    Member
    5
    Dec 14, 2009
    United States
    does not everybody have a spare android phone lying around?

    FWIW you only need to "kick-start" SX OS every once in a while. sleep mode works fine!
     
    Last edited by naddel81, Jun 26, 2018
    OllieD likes this.
  3. JustBrandonT

    JustBrandonT Member

    Newcomer
    2
    Mar 11, 2018
    Canada
    How do you want to choose the payload? From where? Currently as long as you compile it with a file called "payload.bin" and "intermezzo.bin", it'll use that. If not, then it'll use the built in one. If you want to be able to "choose" a payload, I need to know from where..
     
  4. ConorsFlying

    ConorsFlying Newbie

    Newcomer
    1
    Jun 21, 2018
    Australia
    ios 11

    — Posts automatically merged - Please don't double post! —

    How possible would it to load a payload from somewhere on the phone? Like how the PC versions of the playload injectors let you browse for a payload.
     
    Last edited by ConorsFlying, Jun 27, 2018
  5. ConorsFlying

    ConorsFlying Newbie

    Newcomer
    1
    Jun 21, 2018
    Australia
    @JustBrandonT
    or is there some why it could just look for a "payload.bin" at the root of the phone or something like that?
     
  6. unafilsyntax

    unafilsyntax Newbie

    Newcomer
    1
    Jun 21, 2018
    United States
    Never compiled an ipa before and suspected there would be an option within the app or ability to put the payload somewhere on the device for the app to search maybe somewhere like /var/mobile/Documents/payloadFolder. I can try to compile but I don't have a mac. Looking to use SX OS payload. If someone could kindly compile an ipa using the payload from Team Xecuter's site for 10.3.3, that would be greatly appreciated. About to order the cable today, probably will get the one that isn't powered as I saw it should work by spamming the reload button.
     
    Last edited by unafilsyntax, Jun 27, 2018
  7. Lil_SpazJoekp

    Lil_SpazJoekp Advanced Member

    Newcomer
    1
    Apr 11, 2018
    United States
    I was asking the exact version. iOS 11.0? iOS 11.4? I’m asking because if you do not have a jailbreakable version this will not work.
     
  8. Milad407

    Milad407 Newbie

    Newcomer
    1
    Jun 14, 2018
    Denmark
    DropBox or HTTP? Unless it’s too much work, i understand you are using your spare time. :yayswitch:
     
    ConorsFlying likes this.
  9. matias3ds

    matias3ds GBAtemp Fan

    Member
    3
    Oct 25, 2017
    Argentina
    Used to love iPhone until I saw the all screen vivo apex and oppo find X ,, now that’s a phone with cutting edge technology also they lack of wireless charging
     
  10. matias3ds
    This message by matias3ds has been removed from public view by Joe88, Jun 28, 2018, Reason: Double post.
    Jun 27, 2018
  11. ConorsFlying

    ConorsFlying Newbie

    Newcomer
    1
    Jun 21, 2018
    Australia
    I'm on 11.3.1, I'm aware there isn't a jailbreak currently. I'm hoping that Electra iOS thing eventually comes out. (I'm going to europe for 6 moths and was not planning on bringing a computer and was hoping I could bring a ipa for 11.3.1 (specifically for SX OS) for when I can use it).
    I've been trying to learn how to compile the ipa myself but I keep having the "IOTypes.h file not found" issue.
    I have added the
    "#if __LP64__
    typedef un..." thing immediatly after "#include <MacTypes.h>" in the OSTypes file. Honestly have no idea what I'm doing haha

    I am having the error in the darwin_usb.h file (in libusb)
     
    Last edited by ConorsFlying, Jun 28, 2018
  12. revamp

    revamp Newbie

    Newcomer
    1
    Jun 24, 2018
    United States
    I've tried this on ios 12 beta ip x, it cant detect my switch even though i tried to plug in and out many times and the switch is on rcm mode and seems that this app is not working for me.. or maybe i missed something
     
  13. Zyvyn

    Zyvyn GBAtemp Maniac

    Member
    4
    Aug 9, 2017
    United States
    either jailbroken or use filza escaped which is filza for non jailbroken devices it can be found on tweakbox and a few other places
     
  14. Lil_SpazJoekp

    Lil_SpazJoekp Advanced Member

    Newcomer
    1
    Apr 11, 2018
    United States
    Okay I think I know what’s going wrong, follow these steps in Xcode:
    1. Click on the project file in the project navigator on the left.
    2. On the ‘General’ page make sure the ‘Deployment Target’ is set to your current iOS version.
    3. Go to the ‘Build Settings’ page.
    4. In the search box type: ‘Architectures’.
    5. Under the first section that pops up, find ‘Base SDK’ and change it to iOS.
    6. Also make sure the ‘Supported Architectures’ option is set to iOS.
    7. Open terminal.
    8. Run these commands:
      1. Code:
        sudo cp -r /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/IOKit.framework
      2. Code:
        sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern
      3. Side note: if you are using Xcode beta then you need to change
        Code:
        xcode.app
        to
        Code:
        xcode-beta.app
    9. Add this code to the OSTypes.h file in
      Code:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern
      1. Code:
        #if __LP64__
        typedef unsigned int UInt32;
        #else
        typedef unsigned long UInt32;
        #endif
        
        
        #if __LP64__
        typedef signed int SInt32;
        #else
        typedef signed long SInt32;
        #endif
      2. You might have to copy the file to the desktop add it the copy it back. It’s what I had to do.
    10. Now find the Play button on the menu top bar to the far left, go two buttons to the right and click it and choose ‘libusb -> Generic iOS Device’
    11. Hit ‘⌘+B’ to build ‘libusb’
    12. Finally, switch it back to: ‘iOSNXLauncher -> (your device, e.g., “Joel’s iPhone”)’ and hit run.
    It should build and run on your iPhone without any Xcode errors. Let me know if you need more help.
     
    ConorsFlying likes this.
  15. JustBrandonT

    JustBrandonT Member

    Newcomer
    2
    Mar 11, 2018
    Canada
    I will add the file browser this weekend. iOS 9 and up has UIDocumentPicker and UIDocumentBrowser that lets you browse files on the system (files app, ibooks, etc).. I can also add dropbox or something else as well.
     
    Milad407, revamp and ConorsFlying like this.
  16. gamer4lif3

    gamer4lif3 GBAtemp Fan

    Member
    3
    Dec 31, 2015
    United States
    Looks like somebody is making this from jailbreak reddit.

     
  17. urherenow

    urherenow GBAtemp Psycho!

    Member
    8
    Mar 8, 2009
    United States
    Japan
    EDIT: nevermind. I misread something...
     
    Last edited by urherenow, Jul 9, 2018
  18. stewacide

    stewacide Member

    Newcomer
    1
    Jun 22, 2018
    Canada
    Damn, I'm on 11.4 I haven't had a reason to jailbreak in years before this; didn't think it'd be possible.
     
  19. mologie

    mologie Member

    Newcomer
    1
    Jul 8, 2018
    Germany
    Hi gents, /r/jailbreak linked me to this thread. We've been working on the same problem in the past few weeks and with the iOS 11.3.1 jailbreak release I could finally complete and test mine. I'll post a write-up on my blog and link to it in this thread soon-ish.

    @JustBrandonT I gave your PoC a try on my iPad with iOS 11.3.1, but found that it simply crashes the device while nothing happens on the Switch's end, so there may still be room for collaboration to create one implementation that works on all iOS versions. Ideally I'd aim to support iOS 9 to iOS 11, as these seem to be the most common jailbroken iOS versions out there that can be supported with reasonable effort.
     
    Denitorious likes this.
  20. Coldtrain6989XD

    Coldtrain6989XD Newbie

    Newcomer
    1
    Jul 9, 2018
    United States
    Or you could just build a retroarch emulator from their source code if they allow it and create the ios version from there. all you would have to do to allow it on ur ios device is go to settings / General / profile to allow it on non jailbroken or broken devices but building that app to work with apple's swift code is hard to create an profile to allow it because you would also have to create a certificate to allow it to be signed. Anybody get what i'm saying ?
     
  21. coned_miro

    coned_miro Member

    Newcomer
    1
    Nov 28, 2016
    United States

    Are you hosting your code base anywhere like GitHub? I feel this could totally rock a mini filza-esque file browser now that coolstar dropped the jailbreak, it would just have to be implemented - and I'd like to help if you'll have it!

    Also, are you just using a generic USB-C to Lightning adapter? I'll need to pick one up
     
    Last edited by coned_miro, Jul 9, 2018
  22. Denitorious

    Denitorious Newbie

    Newcomer
    1
    Jun 26, 2018
    Germany
    11.3.1 has been jailbroken now as well, many on 9 have upgraded to it as well. I’d prioritize 11.x, anything below is also great for the ones that need it.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice