The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-15-2008, 02:48 AM
What's Jailbreak?
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 10-16-2008, 03:28 PM
iPhone? More like MyPhone
 
Join Date: Oct 2007
Posts: 111
Thanks: 2
Thanked 17 Times in 14 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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 10-17-2008, 07:28 AM
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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 07:15 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top