+ Reply
Results 1 to 3 of 3
  1. #1
    What's Jailbreak?
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default SDK app and file reading permissions

    Hi,

    I wrote an App with the SDK that relies on reading files outside its own directory. It works perfectly with the simulator, so I bought the developer program - just to find out that it does not work on a real device with 2.1. :-(

    I'd at least like to use it myself, though, and maybe one time publish it on Cydia/Installer, so here's my question:

    What's the difference between Cydia/Installer apps and normal SDK apps that gives the former the right to access everything but blocks the latter from some dirs and files? I already tried to change the file permissions on my now-jailbroken device, but still I cannot access the desired files from my SDK app.

    Is there an easy way (preferredly without me having to install an additional toolchain) to just give my app the file reading possibilities I want it to have? Specifically, I want to access the calendar database. Could there even be a tricky way to achieve that without having to jailbreak the phone?

    Thanks,

    Christian

  2. #2
    iPhone? More like MyPhone
    Join Date
    Oct 2007
    Posts
    132
    Thanks
    2
    Thanked 18 Times in 15 Posts

    Install your app in /Applications
    Give your app "root" ownership
    You can then read any directory

    Apps installed in /private/var/mobile/Applications won't run with root credentials

  3. #3
    What's Jailbreak?
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Yeah, that did the trick, thanks.

    To all who might have similar few clues about how to do that as I had: If you are copying the app from the desktop using afp (with the desktop finder), you will have to set the executable bits of the actual executable in the .app directory and possibly give read permission to everyone before it can work. (In the Terminal, go to /Applications, then type "chmod -R a+r yourapp.app", "cd yourapp.app", "chmod a+x yourapp".) The program wil only show up in the springboard after you did a "respring" with BossPrefs or rebooted the iPhone.

Posting Permissions

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