Does jailbreaking break Pythonista out of the iOS sandbox?
jefflovejapan last edited by
I went away for vacation and forgot all about this — thanks a lot for the awesome (and timely) reply.
Dalorbi39 last edited by
I know this is a bit late but:
Should do the trick
alpinerunner last edited by
I'm a newbie to Python and iOS programming so use my advice at your own risk.
If you've jailbroken your phone and have installed iFile (search for it on Cydia), you can do two things that were crucial to me.
- Create symbolic links
If you create symbolic links, you can place the link inside the Pythonista sandbox and it will point elsewhere in the filesystem. These symbolic links will remain even after you restore a phone to its non jailbroken state.
- Change user priveleges for certain files.
I'm working on a jailbroken app that consolidates messages across multiple media. When jailbroken, I can access the sandboxes of other apps, but accessing the iOS AddressBook.db and sms.db is trickier. Using iFile, I changed the privileges on those files to "Read, Write, Execute" for everybody. Problem solved.
@alpinerunner I've been trying to change privaleges for files like the python2.7 folder to read, write, execute. Every time I reboot Pythonista, all of the privaleges then change back to their original state without changes.
Do you know how to fix this? Because I really want to have my Pythonista rooted so I can have my workflow improved.
@AtomBombed what method are you using to change the file permissions?
@Webmaster4o I have been using iFile, and tapping on the folder, and changing the group and permissions from there.
I've never jailbroken a device, mostly because of powerful apps like Pythonista. But isn't there something called
OpenSSHor something like that which will let you get a shell into your iOS device from a mac? If you use that, you could try
chmod -R <directory>. That might be more permanent. I have no idea.
There are Terminal "emulators" that I can get on Cydia (jailbreak store). Do you think those would work for SSHing into my own device right from there? Or does the connection need to be from a seperate computer?
No idea. Try it. Also do research on unix filesystems and how they work. I'm almost positive iOS is unix-based, which is also what powers Mac and Linux.
Yes. iOS is Unix-operated. There are things like Unix-handling files, and in the Pythonista documentation for modules (global module index) it says in the time module (or a module similar to that, I can't remember) that it operates and works with Unix clocks and stuff like that.
ywangd last edited by
@AtomBombed To ssh into a jailbroken device, you need install the OpenSSH server on the device first (via Cydia). Then you can ssh to the device from an iOS ssh app installed on the same device. I used to do that on earlier version of iOS. Many ssh apps are available. The one I used is called iSSH but has since demised. But there are many other, e.g. Serverauditor, Prompt2.
You can even ssh to it using just StaSh. The latest 0.6.3 version has a proper terminal emulation for ssh. So from stash, you can do
ssh --password SECRET root@localhost
If you haven't changed the password, the default password is