Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change iPhone's Screen Display Color with Private APIs?

I have seen so many posts regarding the same but all are outdated or not working anymore.

I am using iOS-Runtime-Headers and everything is just nicely setup. But it said that I can't find out the method in which I can set iPhone's screen display color. This should be possible with private APIs as long as, we've NightMode from iOS 9.3.1.

And yes, I am aware that if I will be using any private APIs, Apple will surely reject it.

like image 222
Hemang Avatar asked Dec 18 '25 05:12

Hemang


2 Answers

Have you check out the GammaThingy project out?

It works a bit similar to f.lux and NightShift and maybe the code of the GammaController there can help you achieve what you want

like image 74
arnoapp Avatar answered Dec 20 '25 23:12

arnoapp


You may also want to check out GoodNight, which is based off of GammaThingy, but a little bit more "polished". The reason why you cannot find the methods in the dumped headers is because the entire app uses C functions, NOT Objective-C methods. Specifically, it uses the private IOMobileFramebuffer framework (IOMobileFramebufferSetGammaTable is the main function used). I have put together a rather extensive disassembly of it here if you are interested.

like image 36
anthonya1999 Avatar answered Dec 20 '25 21:12

anthonya1999