Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8854481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:53:26+00:00 2026-06-14T13:53:26+00:00

I am trying to toggle on/off airplane mode in IOS 5.1 using private frameworks.

  • 0

I am trying to toggle on/off airplane mode in IOS 5.1 using private frameworks.

In AppSupport.framework, RadiosPreferences has a property to get/set the airplane mode and set the value

./AppSupport.framework/RadiosPreferences.h:

@property BOOL airplaneMode;

./AppSupport.framework/RadiosPreferences.h:

- (void)setAirplaneMode:(BOOL)arg1;

How can I use these methods? Do I need to use dlsym somehow to create an object and call the methods? Can someone help me with sample code or ways to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:53:27+00:00Added an answer on June 14, 2026 at 1:53 pm

    As jrtc27 describes in his answer (and I mentioned here), you need to grant your app a special entitlement in order to successfully change the airplaneMode property.

    Here’s a sample entitlements.xml file to add to your project:

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>com.apple.SystemConfiguration.SCDynamicStore-write-access</key>
        <true/>
        <key>com.apple.SystemConfiguration.SCPreferences-write-access</key>
        <array>
            <string>com.apple.radios.plist</string>
        </array>
    </dict>
    </plist>
    

    com.apple.radios.plist is the file where the airplane mode preference is actually stored, so that’s what you need write access to.

    No, you don’t need to use dlopen or dlsym to access this API. You can add the AppSupport framework to your project directly (with the exception that AppSupport.framework is stored on your Mac under the PrivateFrameworks folder). Then, just instantiate a RadiosPreferences object, and use it normally. The entitlement is the important part.

    For your code, first use class-dump, or class-dump-z, to generate the RadiosPreferences.h file, and add it to your project. Then:

    #import "RadiosPreferences.h"
    

    and do

    RadiosPreferences* preferences = [[RadiosPreferences alloc] init];
    preferences.airplaneMode = YES;  // or NO
    [preferences synchronize];
    [preferences release];           // obviously, if you're not using ARC
    

    I’ve only tested this for a jailbroken app. I’m not sure if it’s possible to acquire this entitlement if the device isn’t jailbroken (see Victor Ronin’s comment). But, if this is a jailbreak app, make sure you remember to sign your executable with the entitlements file. I normally sign jailbreak apps with ldid, so if my entitlements file is entitlements.xml, then after building in Xcode without code signing, I would execute

    ldid -Sentitlements.xml $BUILD_DIR/MyAppName.app/MyAppName
    

    Here’s Saurik’s page on code signing, and entitlements

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make an on/off toggle button using a checkbox input type
I'm trying to toggle the contents of a span tag on and off using
I'm trying to toggle caps lock on/off when the two shift buttons are held
I'm trying to submit a Rails form with AJAX. I have some toggle on/off
I'm trying to toggle an element based on the viewport and scrolling. By using
Without using Javascript, is there a way to make a CSS property toggle on
Hi I'm trying to use a toggle() with a callback for on/off: instantMsgTabOptions.click(function() {
I'm trying to make labels toggle on and off when their respective inputs are
So I am trying to create a drop down menu using .hover() and .toggle().
I have some divs that I'm trying to toggle on and off. I'm running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.