Open command use in tweak

Joined
Apr 24, 2011
Messages
16
Reaction score
0
Points
1
hi, I'm working on a tweak that will let the user open up the phone app. I'm using the Open command from cydia installed on the phone. in the code i have this:

Code:
-(void)phoneButtonPressed {
  system("su root | open com.apple.mobilephone");
}

when i run it on the phone and tap the button my phone freezes and i have to wait about a minute for it to respiring on its own. but when i run the same command over ssh it opens it perfectly.

any ideas on why its freezing and how i could fix it?

thanks, Will
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top