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 8409933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:02:56+00:00 2026-06-10T00:02:56+00:00

GSEventSetBacklightLevel(BrightnessSlider.value); [[UIApplication sharedApplication] setBacklightLevel:BrightnessSlider.value]; iOS UIScreen has brightness property. Setting it to a different

  • 0
GSEventSetBacklightLevel(BrightnessSlider.value); 

[[UIApplication sharedApplication] setBacklightLevel:BrightnessSlider.value];

iOS UIScreen has brightness property. Setting it to a different value updates screen brightness. But after lock / unlock screen brightness is restored to whatever brightness is set in iOS Settings.

Must I make a call to save the setting? Is there a sync call or something?

This is a jailbreak development,No “sandbox”。

  • 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-10T00:02:57+00:00Added an answer on June 10, 2026 at 12:02 am

    The UIApplication setBacklightLevel: call is indeed temporary.

    However, if you look at the code to toggle (change) brightness level in SBSettings, that is a permanent setting. I do still think that any change in brightness is also affected by whether or not the user has the Settings -> Brightness -> Auto-Brightness feature turned on. Auto-Brightness will dynamically adjust the screen brightness.

    Take a look at this page. Scroll to the bottom to see this link.

    As you can see, a permanent brightness change is achieved by writing the new brightness level to the com.apple.springboard.plist file:

        NSMutableDictionary* Prefs = [NSMutableDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.apple.springboard.plist"];
    
        if(Prefs != nil)
        {
            NSLog(@"Prefs != nil\n");
            float CurrentBacklight1 = [[Prefs objectForKey:@"SBBacklightLevel"] floatValue];
            float CurrentBacklight2 = [[Prefs objectForKey:@"SBBacklightLevel2"] floatValue];
            NSNumber* Number = [NSNumber numberWithFloat:CurrentBacklight];
    
            if(CurrentBacklight2 > 0)
            {
                NSLog(@"CurrentBacklight2 = %f\n", CurrentBacklight2);
                [Prefs setObject:Number forKey:@"SBBacklightLevel2"];
            }
            if(CurrentBacklight1 > 0)
            {
                NSLog(@"CurrentBacklight1 = %f\n", CurrentBacklight1);
                [Prefs setObject:Number forKey:@"SBBacklightLevel"];
            }
            [Prefs writeToFile:@"/var/mobile/Library/Preferences/com.apple.springboard.plist" atomically:YES];
        }
    

    which contains the values that you are seeing SpringBoard revert to. And, then the change is also applied temporarily with the code you’re using:

    [[UIApplication sharedApplication] setBacklightLevel:BrightnessSlider.value];
    

    The combination of these two changes should get you what you want.

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

Sidebar

Related Questions

I was working on my app recently and wanted to change the brightness of
This is how I set the brightness programmatically, but if I lock and then

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.