Code sign in the iPhone 2.0

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.