code sign in iphone 2.0

來源:互聯網
上載者:User

iphone 2.0 firmware 需要CHECK每個應用程式的簽名,如果不通過,就會自動KILL.由於校正機製做到了核心中很多地方,簡單的給核心打補丁很難解決.

1. codesign利用apple sdk的工具進行self-sign
mac$ export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate mac$ codesign -fs "CertificateName" ProgramName
參考下述APPLE文檔如何建立自我簽署憑證.
http://developer.apple.com/documentatio … ion_2.html

2. ldid
在你的IPHONE上用Cydia安裝ldid, 然後運行
ldid -S programname

[自己找到xcode的編譯目錄build/Release-iphoneos目錄 將程式包用WinSCP之類的工具傳到iphone的Applications目錄
然後做數位簽章:
  1.需要先在iphone安裝ldid,命令列:  apt-get install ldid
  2.然後簽名,命令列:  ldid -S YouProgramName
你的程式就可以拷出來安裝到其他破解的2.0的iphone上了]

3.sysctl

我在機器上試了1和2都沒有作用,只有這種可以讓我的程式運行,不過這個是有其他影響的,不過可以很容易恢複,或者簡單重啟就行了.
取消codesign check:
sysctl -w security.mac.proc_enforce=0
sysctl -w security.mac.vnode_enforce=0
恢複codesign check:
sysctl -w security.mac.proc_enforce=1
sysctl -w security.mac.vnode_enforce=1

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.