3

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.

Wain
  • 118,658
  • 15
  • 128
  • 151
Hemang
  • 26,840
  • 19
  • 119
  • 186

2 Answers2

1

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

arnoapp
  • 2,416
  • 4
  • 38
  • 70
1

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.

anthonya1999
  • 253
  • 3
  • 13