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

  • Home
  • SEARCH
  • 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 8833973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:54:40+00:00 2026-06-14T08:54:40+00:00

Since api lvl 17 airplane mode setting was moved from Settings.System to Settings.Global Problem

  • 0

Since api lvl 17 airplane mode setting was moved from Settings.System to Settings.Global

Problem is that now i can’t switch setting anymore. API description is that those settings are read only. Did anyone manage to find a way to change it?

Pre API lvl 17 code that worked:

Settings.System.putInt(context.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 1);

API lvl 17 code that I tried and doesn’t work :

Settings.Global.putInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, setMode);

It throws exception (documentation says it should throw silent log error):

11-14 13:39:51.649: E/AndroidRuntime(3509): java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS

but I have this permission in manifest :

<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />

If anyone knows a way to solve this that would be awesome!!

  • 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-14T08:54:41+00:00Added an answer on June 14, 2026 at 8:54 am

    WRITE_SECURE_SETTINGS is a signature|system permission, which can only be held by apps that are signed with the firmware’s signing key or reside on the system partition. Hence, while you can ask for it, you cannot hold it.

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

Sidebar

Related Questions

Since you can call the the Soundcloud API via XHR (because of the CORS
I'm creating a C api that hides some functionality in a DLL file. Since
In my application I am trying to retreve data from server using api.Since I
I have an object passed from an API call. Now I tried to send
Android's WebView has this saveWebArchive method since API level 11: http://developer.android.com/ . It can
Since File API will enable access to the content of local files it is
since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic
UPDATE: Facebook's API has changed a lot since this question was posted. This question
I was quite familiar with the V2 api, but it's been a while since
I'm developing a twitter messaging utility using Twitter API (twitterizer). But since I'm within

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.