Results 1 to 4 of 4
Discuss Copying Files to iPhone System Folders? at the iPhone Developer Exchange - Hackint0sh.org; Hi there. I am developing for Jailbroken iPhone. I need to write(copy) a file to ...
  1. #1
    Rookie Array

    Join Date
    Jan 2009
    Posts
    14
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Copying Files to iPhone System Folders?

    Hi there.
    I am developing for Jailbroken iPhone. I need to write(copy) a file to iPhone System Folders (/Library/LaunchDaemons) to which only ROOT has write access. How can i write a file to such folders through my Code. I know i can use NSFileManager's copyItemAtPath:toPath method to copy the file, but i cant write as i dont have permission to write on such folders.

    Any Suggestions??



  2. #2
    Board Hero Array

    Join Date
    Nov 2007
    Location
    Mustang Ridge, Texas, United States
    Posts
    1,169
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    65

    Default

    well the way it sounds is you should be able to write to those folders on the device since jailbroken apps are mostly ran as root so u should have no issues

    have u tried it?
    Get the latest info for NoAccSplash Here
    Currently it should work on iOS 4.x - 6.x
    If you'd like to help extend its functionality, the source is also available.

  3. #3
    Rookie Array

    Join Date
    Jan 2009
    Posts
    14
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by truehybridx View Post
    well the way it sounds is you should be able to write to those folders on the device since jailbroken apps are mostly ran as root so u should have no issues

    have u tried it?
    Who told you that?? Even the jailbroken apps (downloaded and installed through Cydia) are run as "mobile" and are not allowed to write to the folders to whom only root has write permissions.

    If you SSH and then install your app to iPhone, then you are root and you can write to system folders, but that is because you are SSHing as root.

  4. #4
    Board Hero Array

    Join Date
    Nov 2007
    Location
    Mustang Ridge, Texas, United States
    Posts
    1,169
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    65

    Default

    considering i just checked the ownership of all my jailbroken apps installed by cydia and the all say root.

    the only thing that uses mobile is itunes and appstore so they can keep the official apps sandboxed
    Get the latest info for NoAccSplash Here
    Currently it should work on iOS 4.x - 6.x
    If you'd like to help extend its functionality, the source is also available.

 

 

Similar Threads

  1. How to write files to specific iPhone folders?
    By Moonshine79 in forum General
    Replies: 0
    Last Post: 07-26-2008, 05:12 PM
  2. [iPhuc] copying files/folders ?
    By geircito in forum Tools
    Replies: 2
    Last Post: 01-10-2008, 01:34 PM
  3. HELP!! Troubles with copying files to iPhone via SSH!
    By local_punisher in forum General
    Replies: 0
    Last Post: 11-12-2007, 01:02 PM
  4. Copying files to and from the iPhone...
    By boris55 in forum General
    Replies: 0
    Last Post: 09-29-2007, 10:19 AM
  5. Copying files FROM iPhone
    By bagoffrog in forum General
    Replies: 2
    Last Post: 08-17-2007, 03:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 07:58 AM.
twitter, follow us!