I have an ipad jailbroken.
I need to write a program that can opens other file from other application.
ApplicationA is my app and I need to open a specific file in a folder called ApplicationB that is in var/mobile/applications
Is it possible on jailbroken device?
I'ms sure that is not possible in non-jailbrekon device for the sandbox.
Yeah, it's possible. You'll have to iterate through every folder in /var/mobile/applications/ to find the correct folder for the app that you're looking for. Then you can do whatever you want with that knowledge.
Related
is there a way to navigate inside the folder structure in iPad or iPhone, check what is inside of any app folder? I tried already xcode but can not identify the folders. Thanks...
You can't do it on a real device, but you can have a look on the simulator. Up until iOS 7 each iOS version maintains it's own set of apps under
Library/Application Support/iPhone Simulator/7.1/Applications/
followed by a cryptic number representing your app. Replace 7.1 with another iOS version. To display the Library folder in Finder, click Go from the Finder menu while holding down Option.
Since iOS 8 those locations have moved and are harder to find. See here: http://pinkstone.co.uk/where-is-the-documents-directory-for-the-ios-8-simulator/
Yes, you can use programs like "iExplorer" which let you navigate your device even without jailbroken devices. I often use it to check that my app is correctly creating files according to my coded file structure.
You can see only contents of Documents Directory on Simulator or device. If you want to see documents directory in device then you have to set UIFileSharingEnabled key to YES in your application's Info.plist file. Then you can see it via iTunes app in Mac os x.
There is not way to see bundle contents in application. Just you can see bundle contents in xcode.
Regards.
When I plug my iPhone into the computer can I access an apps folder structure that's on the phone? Either programatically or manually with a tool that doesn't involve jailbreaking.
Have you tried iExplorer? See if that satisfies your requirements.(It doesn't need the device to be jailbroken).
It cant be done without jailbreaking, you basically must create your app folder structure with xcode.
Applications like iPhone Explorer can show the contents for each installed iPhone application on Mac OS X (even on non-jailbroken devices) when iPhone is connected using USB-cable. I'm trying to do something similar, programmatically copy some files from my iPhone app's folder.
I have done some experiments with open-source frameworks/products built to use iTunes-framework, like iPhoneBrowser and MobileDevice Library. I can connect to iPhone, now the problem is how to enumerate Apps folder items? iPhoneBrowser or MobileDevice Library don't support or provide any easy way for that. Even when hardcoding my application path to iPhoneBrowser it still refuses to display the folder. iPhone Explorer can read the folder without any trouble on the very same device, so it is definitely possible.
Second problem is getting path to apps, on each device they have different path with some hash number folder names. How to 'decrypt' the paths so that I can access my app folder on every device?
the app enumerate use another protocol, you may find some in this https://github.com/phildrip/fruitstrap
I wrote a open source program that works on Windows, here is the github project url:
https://github.com/Moligaloo/iPhoneFS
It can access files on jailbroken iPhone/iPod/iPad (non-jailbroken devices files are limited accessible).
It can also enumerate apps on iDevice.
I like to access the device Library folder (not app's document directory). Actually i am trying to create one file in Device Library folder and want to access this file from another app. Any idea ?
You can't, apps in the iOS are sandboxed and can only write in there own environment. Also there is no library directory.
Finally now it is possible with app extension, but after 3 years :)
You can use the keychain if you really want data transfer between applications.
I developed an app for my own use.I want to use it on my ipodtouch.I jailbroke my device.But don't know how can i install my app in my device.Can any one give me proper instruction what should be the approach to do this?
Thanks in advance
You can connect to you iphone with WinSCP with username:root password:alpine or dottie. After that go to your Applications Folder on the device, make a new folder name (Whatever you want to call it).app then put all your files in that folder. Highlight them all, and set the permissions to 0755. Restart your phone. And thats it.
The standard way of putting applications on to devices is to sign up to the Apple Developer program.
I found this link specifically for jailbroken devices, but it seems a bit dated.