Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch GUI app on iOS 5 through the command line (jailbreak)

I believe you used to be able to launch GUI apps on jailbroken iOS devices via the command line (over SSH) by executing a command like this:

launch com.apple.Calculator

but that is not working on my iOS 5 device (launch not found).

I also tried:

launchctl start com.apple.Calculator

but that also gives me an error (no such process).

like image 537
chris838 Avatar asked Jan 06 '12 14:01

chris838


1 Answers

Those launch/launchctl commands didn't work for me either. What did work was to install the command-line utilty open from Cydia and just execute

open com.apple.calculator

Notice the lowercase c in calculator, that was the bundle identifier for my calculator app.

Here's the developer's website for Cydia stuff:

http://kramerapps.com/cydia/

This links to the repo site:

http://moreinfo.thebigboss.org/moreinfo/depiction.php?file=openData

Update: For iOS 6.x, this current version of open doesn't seem to work. See @Nate's answer to another question linked below in the comments.

Update 2: The open package in Cydia has been updated and now works with iOS 6.

Update 3: Here is the source for the package: https://github.com/conradev/Open. If you look at the open.m file, you can see that the function SBSLaunchApplicationWithIdentifier from the SpringBoardServices private framework is what actually opens the app.

like image 126
newenglander Avatar answered Oct 15 '22 00:10

newenglander