Manipulate Your iphones Filesystem

an article added by: Mircea D. at 09022009


In: Root » Electronics and communication » Mobile Phones » Manipulate Your iphones Filesystem

French Spanish Portuguese Italian German Japanese Chinese Korean Russian Arabic

now that your iphone or ipod touch has been jailbroken and freed from the shackles of conformity, it’s time to learn how to navigate the iles and folders of its ile directory. Being able to ind your way around the iphone’s ilesystem is absolutely mandatory for mastering the full customization capability of your iphone or ipod touch.

If you’re familiar with the hierarchical storage system on hard drives, where iles are sorted into nested containers called folders or directories, then you’ll ind that underneath the glossy user interface, the iphone is no different. and if you’re familiar with the directory structure of Unix-like operating systems such as Linux, BsD, and Mac os X, you’ll have an even better sense of where things are stored on the iphone.

There are as many ways to look at iphone iles as there are ways to access any computer. Depending on what server software you install on the iphone, you can use FTp, hTTp, aFp (apple ile sharing), or techniques like the Unix scp (secure copy protocol). But most of these techniques use the wireless network connection on the iphone. But if you want to move iles the quickest, you can use a copy utility that works over the iphone’s UsB connection. The irst step of familiarizing yourself with the ile directory is to get good browsing software for your computer. Diskaid is an excellent choice. The user-friendly interface of this program makes it perfect for beginners. Yet the ability to modify iles and folders in the iphone’s ile directory makes this same program highly useful for even the most advanced hackers as well.

Access iphone Files from Your computer

As mentioned earlier, the ideal ile-management software for both Mac and pc is Diskaid, available from www.digidna.net/diskaid. it’s free, and it can be used with or without jailbreaking. once your ile-management software has been installed, start it up while the iphone is connected to your computer. Once the software is loaded, you’ll see the basic, “safe” media directory. The drop-down menu in the lower left will allow you to access the root directory, which has the guts of the device.

Understand the hierarchy

Try opening up each folder and taking a look around. however, be careful not to modify any of the iles until you know what they are, as you could do unnecessary damage to your phone. of the folders, the main ones to spend some time browsing through are Applications, System, and /var/mobile. Remember that your root directory, /, is the origin of the main folders.

An important lesson in iphone ile directory browsing is to understand folder path addresses. When you see the phrase /private/var/tmp, it will help you to know that this phrase actually means to look in your / (root) directory for the private folder. once you ind the private folder, open it to be greeted by another group of folders. Look down this list to ind the var folder, and open it up to see even more folders. Look through this new list to ind the tmp folder, and open it. You’ve now arrived at your destination. All the mysterious phrase /private/var/tmp was trying to say was to just look inside the tmp folder by following the path from /private, through var, and into tmp.

also note that in Unix, there is a feature called “symbolic links,” which is similar to aliases on Mac os X or shortcuts on Windows. on Unix ilesystems you can refer to the folder by any of its symbolic links, so /private/var and /var are effectively synonymous. in Diskaid these are symbolized by the “curved arrow” icon for directories.

Here are some brief explanations for each of the main folders in the Home or (root) directory.

/

This “slash” symbolizes the top of your ilesystem, the root directory, simply called “root.” pathnames (folder/directory paths) are symbolized with this forward slash, such as /var/mobile.

Applications

contains you guessed it applications. in addition to the stock iphone applications, some of the third-party applications that you may install will be placed in this folder. This is where you’ll typically go for such things as customizing application icons or even modifying the program code. User-installed applications from the app store will be installed in /var/mobile/Applications/.

Library

contains various preferences and frameworks, as well as the ringtone and wallpaper folders.

System

This is where a lot of the Mobile os X system iles can be found. The programs that customize your phone with custom graphics, carrier logos, and skins change many graphics iles in this folder.

bin

bin is short for binary, meaning simply a program you can run, usually command-line based. on an iphone, you’ll ind the various essential shell utilities and command-line programs here.

cores

This is where core dumps are stored. When a program crashes, the os sometimes writes a ile to disk showing the memory state of the program just before it crashed, for the purposes of debugging.

iphone hacks

dev

dev stands for device. in Unix, almost everything is treated as a ile from the programmer’s perspective the hard disk, network cards, and Bluetooth can all be accessed with iles such as /dev/disk0.

etc

a shortcut to /private/etc, the etc directory is traditionally where coniguration iles the text iles that deine settings for programs are stored.

private

contains a lot of important iles, including music, photos, and some email data.

sbin

This is the place for superuser binaries programs for system administration.

tmp

The tmp directory is where temporary iles used by programs are written. The expectation is that the contents of this directory are frequently deleted, like a “trash can.”

usr

usr is intended to be for shareable, read-only data. Folders such as /usr/sbin and /usr/bin contain additional commands, and /usr/lib contains libraries of software code shared by the whole system.

var

a shortcut to /private/var, var stands for variable and is intended to contain variable data, such as logs, news, mail spool iles and so on, which is constantly being modiied by various programs running on your system. on the iphone, it also happens to be the directory that contains much user data, originally in the /var/root directory but now stored in the /var/mobile directory.

/var/mobile

a lot of the iphone user’s personal data is stored here, including music, pictures, and more.

/var/root

Prior to irmware 1.1.3, user data was stored here. it has moved to /var/mobile. as you gain more experience navigating through your directory, you can begin using the other main ability offered by your browser software: modiication of iles and folders. Diskaid allows you to add, replace, or delete any ile or folder in your directory. These abilities open your iphone up to an all-new breed of customization options, from changing icons and backgrounds to modifying the iles that an application is based on.

legal disclaimer

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

related articles

1. Get Quality Support with iphone hacking
Although this article attempts to address as many issues as possible, it is still likely that you may encounter a completely new and unique situation with your iphone. Luckily, the internet is full of great resources that can help you determine a solution to the problem. The big problem is that iphone hacking is, by deinition, unoficial and mostly unauthorized. and even when hacking is tolerated, or even privately encouraged, it is unreasonable to expect a large corporation to support not only its own software, but the ...

2. Get the Most from iphone email free Yahoo push account
Sure, the iphone is a “computer in the palm of your hand.” But it lacks a few key features that desktops have. The iphone has a tiny keyboard, making it dificult to enter long URLs. Frustratingly, the iphone still lacks (as of this writing) copy-and-paste functionality, making the manipulation of URLs a key part of internet power suring a dificult task. and the iphone has resisted the urge to provide system-wide ilesystem access, preferring to keep data (pictures, videos, podcasts, and notes) in their own applicati...

3. Go beyond apples barebones SMS application
The Mobile sMs application that comes on the iphone is functional, but it lacks many of the text messaging features that people have grown used to on other phones. an initial lack of multiplerecipient texting was remedied in irmware Version 1.1.3, but some serious limitations remained. Multimedia Messaging service (MMs), also known as picture messaging, provided by every mobile carrier and supported by most camera phones, is completely missing from the iphone. There are other reasons the built-in sMs just doesn&r...

4. Enable MMS picture Messagingon Your iphone
A little change to your iphone’s messaging plan lets you send and receive MMs messages with swirlyMMs on jailbroken phones. The iphone does so many things quite well, making it all the more frustrating when the iphone fails to perform some normal task. Tethering, copy-and-paste, forwarding sMs...the list goes on. and sending and receiving MMs picture messages, just like on any normal phone, is another one of those frustrations. Some people don’t want to work around their phone’s inability to rece...

5. Use instant Messaging on Your iphone
Instant messaging is a very common and quick way for people to communicate. Many people “live” in their iM client. Most smartphones have third-party applications that enable you to use iM, and many if not most internet-connected phones have added aoL instant Messenger (aiM) support as a standard function. every Macintosh computer comes with the aiM-compatible ichat program, so the lack of ichat on the iphone was somewhat surprising. Thankfully, the iphone developer community has produced a number of solutions for thi...

6. Stream Music and Videos from Your computer to Your iphone
Although the iphone’s multigigabyte capacity allows a signiicant amount of media to be stored on it, it probably isn’t big enough to hold your entire collection of music and videos. To still be able to access your computer’s vast media collection, you will have to stream it over the internet. The good thing is that you can access your desktop computer anywhere in the world from your iphone, as long as you have internet access. Whether you use a Mac or pc, setting up a media stream from your computer is very easy—and free! ...

7. Read news rSS and Websites Quickly on Iphone
One of the most interesting evolutions over the last decade of the Web has been syndicated content. although not everyone is a “news junkie,” almost everyone has a daily ration of information that they need to get. however, the excessive load times experienced on even the fastest devices and networks can make accessing this content dificult. There are dozens of ways to get concise, cleanly formatted, and edited information to your device, and more app store apps are appearing all the time. This hack will cover a few of ...

8. How to Read eBooks on Your iphone
The term “e-book” in the general sense describes any method by which one could read something approximating a physical book (sequential chapters of text) on an electronic device (hence the “e”). The problem is that due to the vagaries of reader devices and the unproven inancial and security models, no single dominant e-book standard has emerged. (You can look at a laundry list of e-book formats here: http://en.wikipedia.org/wiki/comparison_of_e-book_formats.) Nonetheless, a number of workable standards have emerged. You may...

9. Take panoramas and nightshots with Your Builtin camera
The iphone’s built-in camera is unable to compete with dedicated cameras for image quality. however, you have it with you everywhere you go, and chances are good that you don’t carry your camera except to special events. Therefore, there are many times when you want to milk the last bit of image quality out of your camera. Two areas where you may want to enhance your iphone camera are: 1. Low light conditions (night shots) 2. Resolution and ield of view Resolution and Field of View enhancemen...