Resolved How to implement bash into a app?

Discussion in 'iOS Programming' started by nightwalker21, Jul 4, 2014.

  1. nightwalker21, Jul 4, 2014
    Last edited: Jul 13, 2014

    nightwalker21 macrumors newbie

    nightwalker21

    Joined:
    Jul 27, 2011
    Location:
    USA
    #1
    I'm working on a app called HideMyX which hides the IntelliScreenX icon. But I'm trying to figure out how to implement bash into my app.
    I know about system() but it's not working or I'm doing something wrong my code is in the attachment.
    I'm using Theos not Xcode just let you guy's know.
    So make sure anything you tell me can be used with Theos please?
     

    Attached Files:

  2. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #2
  3. nightwalker21 thread starter macrumors newbie

    nightwalker21

    Joined:
    Jul 27, 2011
    Location:
    USA
    #3
    Well for one I need it to have super user(su) permissions so the app can do what it was designed for.
     
  4. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #4
    I'm not sure what the app is designed to do and don't know about the Super User permission does, but every app on a non-jailbroken device runs in a sandbox.

    As far as I know, if your app need to get outside the sandbox, you're going to have problems.

    You can look in the APIs and see if the functionality you want is there, but Apple is very restrictive with permissions.
     
  5. nightwalker21 thread starter macrumors newbie

    nightwalker21

    Joined:
    Jul 27, 2011
    Location:
    USA
    #5
    I'm not developing for the AppStore I'm developing for Cydia
     
  6. nightwalker21 thread starter macrumors newbie

    nightwalker21

    Joined:
    Jul 27, 2011
    Location:
    USA
    #6
    Someone helped me out you put setuid(0); in the main.m
     

Share This Page