File system in iOS

40 %
60 %
Information about File system in iOS
Education

Published on March 8, 2014

Author: purvikrana

Source: slideshare.net

File System in iOS Prepared By Pratik R Detroja 131060753005

File System Basics • The iOS file system is geared toward apps running on their own • To keep the system simple, users of iOS devices do not have direct access to the file system and apps are expected to follow this convention. • Every App Is an Island

Exceptions • Public system interfaces – Contacts – Calendars – Photo library • An App can use such public system interfaces provided that the user approves its access.

iOS Standard Directories • <Application_Home> /AppName .app – This is the bundle directory containing the app itself. • <Application_Home> /Documents/ – This directory is used to store critical user documents and app data files. • <Application_Home> /Documents/Inbox – Your app can read and delete files in this directory but cannot create new files or write to existing files.

iOS Standard Directories • <Application_Home> /Library/ – This directory is the top-level directory for files that are not user data files. – You can create custom subdirectories for files you want backed up but not exposed to the user. – Do not use this directory for user data files. • <Application_Home> /tmp/ – Use this directory to write temporary files that do not need to persist between launches of your app. – Your app should remove files from this directory when it determines they are no longer needed

Where You Should Put Your App’s Files • To prevent the syncing and backup processes on iOS devices from taking a long time, be selective about where you place files inside your app’s home directory. • Apps that store large files can slow down the process of backing up to iTunes or iCloud. • Put user data in the <Application_Home> /Documents/. User data is any data that cannot be recreated by your app, such as user documents and other user-generated content

Understanding SandBox

Understanding SandBox • The purpose of a sandbox is to limit the damage that a compromised app can cause to the system. • Sandboxes do not prevent attacks from happening to a particular app and it is still your responsibility to code defensively to prevent attacks. • For example, if your app does not validate user input and there is an exploitable buffer overflow in your input-handling code, an attacker could still hijack your app or cause it to crash. • The sandbox only prevents the hijacked app from affecting other apps and other parts of the system.

Reference • http://code.tutsplus.com/tutorials/data-persistence-and-sandboxing-onios--mobile-14078 – Auther : Bart Jacobs • https://developer.apple.com/library/ios/documentation/FileManagement/ Conceptual/FileSystemProgrammingGuide/Introduction/Introduction.html • https://developer.apple.com/library/mac/documentation/Security/Concept ual/AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html • https://developer.apple.com/library/ios/documentation/iPhone/Conceptua l/iPhoneOSProgrammingGuide/Introduction/Introduction.html

Thank You

Add a comment

Related presentations

Related pages

File System Basics - Apple Developer Tools

File System Basics. The file systems in OS X and iOS handle the persistent storage of data files, apps, and the files associated with the ...
Read more

iPhone File Transfer & iOS File System - iMazing

iOS File Transfer Transfer Files between iPhone, iPad or iPod and Macs and PCs. Via Wi-Fi for convenience – via USB for speed and dependability
Read more

File System Details - Apple Developer Tools

File System Details. This appendix includes information about the file systems supported by OS X and iOS. Supported File Systems. OS X supports ...
Read more

iphone - What filesystem does iOS use? - Ask Different

I can't find this information documented anywhere. What filesystem do iOS devices use? Did Apple stick with HFS+? Is it different between devices and iOS ...
Read more

Using the Cisco IOS File System - Cisco Systems, Inc

This chapter describes the Cisco IOS File System (IFS) feature, which provides a single interface to all the file systems available on your routing device ...
Read more

Working with the File System - Xamarin - Developer Center ...

Working with the File System. Using Xamarin.iOS to Access Files and Directories in iOS
Read more

ios - View the file system of iPad/iPhone to verify saved ...

I would like to be able to view the file system of my actual iPad/iPhone to verify that files are being written correctly. I can do this using the ...
Read more

Working with iPhone iOS 5 Filesystem Directories - Techotopia

It is sometimes easy to forget that iOS is an operating system much like that running on many other computers today. Given this fact, it should come as no ...
Read more

Using the Cisco IOS File System - Cisco Systems, Inc

Using the Cisco IOS File System Copying Files Using URLs FC-129 Cisco IOS Configuration Fundamentals Configuration Guide Copying Files Using URLs
Read more