Private iOS API: Toggle mobile data programmatically

Use this snippet to toggle mobile (cellular) data on your device programmatically.

Snippet:

Required entitlements:

This requires com.apple.CommCenter.fine-grained entitlement on iOS 8.3+. Works without entitlement on iOS 8.1.2.

Download the example entitlement file from here: cellular.entitlements

Compatibility:

Confirmed working on jailbroken iOS 8.1.2iOS 8.4, iOS 9.0

Additional headers:

Download CTCellularDataPlan.h

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*