Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

iphone privateapi - Does anybody know a way to add entitlement to iOS application for non jailbroken device?

Some background

  • iOS operation system has a "entitlement" notion . Generally speaking, it's a permission which is granted to an application. Other system services and apps can check for this permission to allow/deny execution of some functionality.

  • These entitlements should be specified in a provisioning profile.

  • System applications have a lot of different entitlements.

  • User application are limited to just couple of entitlements (like access to iCloud or something like that which can be configured on developer portal).

The question is: Does anybody know a way to add entitlements to user application for NON jailbroken device?

The overall idea is to add entitlements to developed app to gain more permissions to use system services.

Notes & Disclaimers

  • I know how to do this for jailbroken phone. However, it doesn't work on non jailbroken device.

  • I am aware that Apple will reject it. It won't go to AppStore.

  • The solution doesn't have to be a compile time solution (meaning, a way to modify a file). It could be a runtime solution - one application adding somehow entitlements to itself or to 3rd party app.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

No. Entitlements are contained within the application’s code signature. Changing them will, of course, break the signature, and stock iOS devices will not run code with a broken code signature. What you ask is not possible.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...