Welcome to iPadForums.net Guest - Click Here to Register

How to create your own app for jailbreak iPad

This is a discussion on How to create your own app for jailbreak iPad within the iPad Development forums, part of the iPad App Store category; I was trying to figure out how to start writing my own apps for a jailbreak iPad, so here is what I figured out so ...

Register with iPad Forums
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    iPF Novice
    Member #
    47468
    Join Date
    Apr 2011
    Posts
    78

    How to create your own app for jailbreak iPad

    I was trying to figure out how to start writing my own apps for a jailbreak iPad, so here is what I figured out so far.

    NOTE: This is all done on an iPad first generation 16GB WiFi with redsn0w jailbreak running iOS 4.3.2 and using my Windows XP PC to access it.

    NOTE: My understanding is that the steps below will allow you compile C, C++ or Objective C.

    HELPFUL LINKS:
    Theos/Getting Started - iPhone Development Wiki
    Chapter*1.*Makefiles
    IRC @ irc.saurik.com (channel #theos )

    STEP #1
    jailbreak your ipad

    STEP #2

    From Cydia you will need to install
    BigBoss Recommended Tools (id: bigbosshackertools)

    I think you can use MobileTerminal directly on the iPad, but personally I access the iPad from my PC. I use PSPad to edit my text files, then use WinSCP to upload the files to the iPad and then use PuTTY for command line access.
    To use WinSCP and PuTTY you will need to install OpenSSH from Cydia as well.

    STEP #3
    Install sdk version 3 (required for Theos to work properly). This is part of BigBos Recommended Tools. From command line type:
    installsdk3

    STEP #4
    Install PERL and THEOS
    1. Create a file at /etc/apt/sources.list.d/coredev.nl.list containing the following line:
      Code:
      deb http://coredev.nl/cydia iphone main
    2. Create a file at /etc/apt/sources.list.d/howett.net.list containing the following line:
      Code:
      deb http://nix.howett.net/theos ./
    3. As root, issue this command:
      Code:
      apt-get update
    4. Then this command:
      Code:
      apt-get install perl net.howett.theos
    NOTE: Steps #1 to #4 would only be performed once on your iPad and you should never have to do them again!

    COMMAND LINE TOOL EXAMPLE
    STEP #5
    Use New Instance Creator to create a NEW project. Type
    cd /var/theos/bin
    /var/theos/bin/nic.pl


    For this example we will make a Hello World command line tool

    Choose template: 4 (iphone/tool)
    Project Name: helloworld
    Package Name: com.memyself.helloworld
    Author Maintainer Name: me myself

    This should create a new directory (in your current working directory):
    /var/theos/bin/helloworld

    STEP #6
    Open the following file with your favorite text editor:
    /var/theos/bin/helloworld/main.mm

    Add
    printf("Hello World\n");
    on the line BEFORE
    return 0;
    and save the changes.

    STEP #7
    Run make to compile using the makefile by typing:
    /var/theos/bin/helloworld/make

    This should create a new directory (obj) with your compiled command line tool.

    STEP #8
    To run our fabulous Hello World command line tool type:
    /var/theos/bin/helloworld/obj/helloworld

    That's it!

    I just typed all this up from memory, so if you find a mistake let me know and I will fix it. Also, the #theos channel on IRC @ irc.saurik.com is where I got most of this info, so they are a good reference as well.


    GUI APPLICATION EXAMPLE
    Do Step #1 to Step #4 above if you have not done them already (they should only need to be done once, and then you won't have to do them ever again.)

    STEP #5
    Use New Instance Creator to create a NEW project. Type
    cd /var/theos/bin
    /var/theos/bin/nic.pl


    For this example we will use the default application "red screen" with icon on the springboard:

    Choose template: 1 (iphone/application)
    Project Name: redscreen
    Package Name: com.memyself.redscreen
    Author Maintainer Name: me myself

    This should create a new directory (in your current working directory):
    /var/theos/bin/redscreen

    STEP #6
    Run make package install to compile using the makefile and install the app by typing:
    /var/theos/bin/redscreen/make package install

    This should create appropriate application files and directories.

    STEP #7
    You now need to re-spring the spring board. You can do this by either re-booting your iPad, or you can run the uicache command as the mobile user (su mobile first then uicache).

    That's it! You should now have an application icon on the springboard called redscreen. Tap it and look at an amazing red screen!

    UNINSTALL (applies to application only, not to command line tool)
    If you need to uninstall your application, you would run dpkg -r packagename from command line, and then re-spring (reboot ipad or run uicache from mobile user):
    dpkg -r com.memyself.redscreen

    Again let me know if you find any issues!
    Last edited by jsherk; 05-05-2011 at 03:34 PM.
    redsn0w iPad 1 16GB WiFi v4.3.2
    Remove Background, VLC Media Player,
    Activator, Animate, Browser Changer,
    FakeClockUp, Icon Renamer,
    iFile,
    iSH****, OpenSSH

    [B]


  2. #2
    Super Moderator
    Member #
    14571
    Liked
    244 times
    Join Date
    Sep 2010
    Location
    Troon, Scotland
    Posts
    5,410
    Thanks for the info. We have a development section, so I'm moving the thread over there where hopefully it can get some good feedback and grow into a valuable resource for the site.
    13" MacBook Pro 8GB 2.7GHz i7 500GB | iPad3 4G 64GB 5.1.1 (stock) | iPad2 3G 64GB 5.0.1 (absinthe) | iPad1 3G 64GB 5.1.1 (redsn0w) |
    iPhone4S 64GB 5.0.1 (absinthe) | iPhone4 32GB 4.3.3 (jbme 3.0) | iPhone3G 16GB 3.1.3 (jbme 2.0) |
    iPod Classic 6G 160GB (stock) | AppleTV 2G 4.4.4 (seas0npass)


    If it ain't broke... Jailbreak it!
    Please review the hacking section rules and our main rules before posting!

  3. #3
    Super Moderator
    Member #
    7489
    Liked
    107 times
    Join Date
    Jun 2010
    Location
    Sacramento, California
    Posts
    15,007
    Yay! I am very glad.
    Marie ~


    64GB WiFi/3G iPad1 ~ JB with jailbreakme.com ~



    Forum Rules. Please Read.

    appleforums.net

  4. #4
    iPF Novice
    Member #
    47468
    Join Date
    Apr 2011
    Posts
    78
    I have just updated instructions above with how to create a sample gui application as well.
    redsn0w iPad 1 16GB WiFi v4.3.2
    Remove Background, VLC Media Player,
    Activator, Animate, Browser Changer,
    FakeClockUp, Icon Renamer,
    iFile,
    iSH****, OpenSSH

    [B]


Home | Forum | Active Topics | What's New

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. How to create DRM PDF or eBooks for iPad
    By tonuscdc in forum iPad General Discussions
    Replies: 4
    Last Post: 05-24-2011, 03:40 PM
  2. Create New Folder in PDF Expert on the iPad
    By jerliz in forum iPad General Discussions
    Replies: 2
    Last Post: 03-12-2011, 02:10 PM
  3. Create New Blog From IPad
    By Sidecar in forum iPad General Discussions
    Replies: 6
    Last Post: 01-01-2011, 06:25 AM
  4. iPad Used to Create Art, but not how you might expect...
    By pallentx in forum iPad General Discussions
    Replies: 3
    Last Post: 11-22-2010, 09:59 PM
  5. How do i create folders on Ipad
    By roses in forum iPad Help
    Replies: 4
    Last Post: 09-01-2010, 07:18 PM

Search tags for this page

bigboss recommended tools
,
create a jailbreak app
,
create ipad jailbreak app
,

create jailbreak apps

,
how to create a jailbreak
,

how to create a jailbreak app

,
how to create jailbreak app
,
how to create jailbreak apps
,
how to develop jailbreak apps
,
how to install your own ipad apps
,

how to make a jailbreak app

,
how to make jailbreak app
,

how to make jailbreak apps

,

how to make your own cydia app

,

how to make your own jailbreak

,
make jailbreak app
,
make your own app cydia
,
making jailbreak apps
,
theos cydia
,
theos jailbreak
Click on a term to search for related topics.

Tags for this Thread