jailbreak

get the bundle id of app from PID in ios

元气小坏坏 提交于 2019-12-30 05:23:28
问题 I am trying to get a list of all the background apps currently running on the iphone. I am able to do so but what I actually get is the a list of all the background app's PIDs. So I have two questions, First I am able to launch an app with its bundle id but not with its PID. Is launching an app with PID possible? Second Is there a way to access the apps bundle id if all i have is its PID? I understand this can be done on the mac with [[NSRunningApplication

iOS 6.x open command line on jailbreak

对着背影说爱祢 提交于 2019-12-28 03:03:55
问题 Before iOS 6.x, I used open package_id to open a app from command line on a iOS device. On iOS 6.x if i use this command SpringBoard crashes. Open is available from BigBoss and the author is Conrad Kramer. Is there an alternative or a fix for the open command from BigBoss? 回答1: Update: It looks like the original /usr/bin/open has been updated for iOS 6 on Cydia, so I recommend you try that first. Original Answer: I miss open , too! But, until it gets updated for iOS 6, you can just build your

Return a list of running background apps/processes in iOS

只愿长相守 提交于 2019-12-28 02:13:11
问题 I'm working on a jailbreak app, and want to send SIGKILL messages to specific apps that may be running on a user's device (with their permission, of course). Google is not turning up anything for me. Is there a plist or array that keeps track of running processes? Thanks for any help you all can give, you're wonderful! 回答1: Make a sysctl API and retrieve the kinfo_proc structure http://fxr.watson.org/fxr/source/sys/kinfo.h?v=DFBSD. This struct has information about running processes.You can

iphone run app as root

混江龙づ霸主 提交于 2019-12-24 18:45:41
问题 I am writing a gui wrapper for gcc for a jailbroken iphone, etc. and it is almost done. However, I get this output when it is run ld: can't open output file for writing : a.out, errno=1 collect2:ld return 1 exit status . I believe this has to do with the privelages the app runs with. I have tried the setuid trick in the cydia developer faq. Can anyone please help? EDIT this is the wrapper I am currently using: #!/usr/bin/bash dir=$(dirname "$0") exec "${dir}"/GUI\ GCC_ "$0" also I used chmod

Is there a path every app can write files in the jailbreak iPhone?

人盡茶涼 提交于 2019-12-24 17:02:07
问题 I should hook UIResponder of every app, including SpringBoard and any others. In the hooking, I will write something to the specified file. If I set the path to /var/mobile/Library/MyApp , recommended by Cydia, I found that only the SpringBoard and MyApp could write successfully. So is there a place every app can write and read? 回答1: I admit that I'm not 100% sure on this one, but my guess would be no, there is not a path that every app can writes files to on a jailbroken iPhone . Certainly,

Can we install any .deb/ .ipa file automatically on iPhone device?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 15:22:41
问题 I have one task to perform where I have to install one .ipa file on jailbroken iPhone devices. The project is related to jailbroken domain so any solution will work but the entire process should be automatic i.e. through coding only. I have found many solution to this but most of them ask to get the root access for app and this thing never worked for me. So is there any idea how to achieve that. Thanks in advance. 回答1: Take a look at the function MobileInstallationInstall You can find some

How to encrypt application from being cracked. - iphone

余生颓废 提交于 2019-12-24 09:27:16
问题 I just was looking at some of the cracked applications. I want to know how can we encrypt our application from being cracked so easily. I also saw a video tutorial to crack the application using a simple software. Is there any way to protect the paid app from crackers? Many Thanks, Nav 回答1: There are some expensive libraries to protect the app. But, in my opinion, since a pirated copy should not be treated as a lost sale, the price of such libraries it's not worth. edit: i just found

Restart Springboard without locking screen?

隐身守侯 提交于 2019-12-24 07:37:40
问题 Is there any way to restart the Springboard programmatically, but prevent the iPhone from turning on its screen lock following this? Have tried switching off the screen lock in Settings, but it'll still kick in after a Springboard restart. (The phone is jailbroken.) 回答1: As of iPhone OS 3.x , You can bypass the lock screen with notify_post("com.apple.language.changed") . This method no longer work in iOS 5.x because the system now checks whether the language is actually changed before

NSTask waitUntilExit hanging app on jailbroken iOS

本秂侑毒 提交于 2019-12-24 02:27:51
问题 So I've got NSTask to run a script which generates a list of something, into a txt, which I read from. But if I use my current code (below), the alert pops up before the NSTask is finished, thus resulting in a blank alert. I've tried waitUntilExit but that makes the button that invokes this action freeze, but the UI doesn't lock up itself. - (void) runSupported { stask = [[NSTask alloc] init]; [stask setLaunchPath:@"/bin/bash"]; NSString *script; script = [[[NSBundle mainBundle] bundlePath]

Jailbreak development using xcode

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 00:54:52
问题 I have been looking around for learning how xcode can be used for jailbreak development. I have Lion and jailbroken iPhone3G and xcode4.6 which doesnt support iPhone3G. I have installed ldid but have no idea how to use it. I have to make launch daemons, too, and attach them with my application. I have followed this tutorial for making a daemon but i got stuck in the setup for creating an open tool chain template in xcode. I followed every step but my xcode is not showing any template for open