IPhone2.0 firmware needs to check each applicationProgramIf the signature fails, it will be automatically killed. Because the Verification Mechanism achieves many aspects in the kernel, it is difficult to simply patch the kernel.
1. codesign uses Apple SDK tools for self-sign
Mac $ export codesign_allocate =/developer/platforms/iphoneos. Platform/developer/usr/bin/codesign_allocate Mac $ codesign-Fs "certificatename" programname
Refer to the following Apple documentation for how to create a self-signed certificate.
Http://developer.apple.com/documentatio... Ion_2.html
2.Ldid
In yourIPhoneInstall with cydiaLdidAnd then run
Ldid-S programname
[Find the xcode compilation directory build/release-iphoneos directory and upload the package to the applications directory of the iPhone using tools such as winscp.
Then make a digital signature:
1. Install ldid on the iPhone first. Command Line: APT-Get install ldid
2. Sign the file and run the command: ldid-s youprogramname.
Your program can be copied out and installed to the iPhone of another cracked 2.0]
3. sysctl
I tried both 1 and 2 on the machine and it didn't work. Only in this way can I run the program, but this has other effects, but it can be easily recovered, or simply restart.
Cancel codesign check:
Sysctl-W security. Mac. proc_enforce = 0
Sysctl-W security. Mac. vnode_enforce = 0
Restore codesign check:
Sysctl-W security. Mac. proc_enforce = 1
Sysctl-W security. Mac. vnode_enforce = 1