如何使用私有 API 更改 iPhone 的屏幕显示颜色?
How to change iPhone's Screen Display Color with Private APIs?
我看过很多关于相同内容的帖子,但所有帖子都已过时或不再有效。
我正在使用 iOS-Runtime-Headers,一切都设置得很好。但是它说我找不到设置iPhone的屏幕显示颜色的方法。只要我们有 iOS 9.3.1.
的 NightMode,私有 API 就应该可以做到这一点
是的,我知道如果我要使用任何私有 API,Apple 肯定会拒绝它。
你检查过 GammaThingy 项目了吗?
它的工作原理有点类似于 f.lux 和 NightShift,也许 GammaController 那里的代码可以帮助您实现您想要的
如果您有兴趣,您可能还想查看 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。
我看过很多关于相同内容的帖子,但所有帖子都已过时或不再有效。
我正在使用 iOS-Runtime-Headers,一切都设置得很好。但是它说我找不到设置iPhone的屏幕显示颜色的方法。只要我们有 iOS 9.3.1.
的 NightMode,私有 API 就应该可以做到这一点是的,我知道如果我要使用任何私有 API,Apple 肯定会拒绝它。
你检查过 GammaThingy 项目了吗?
它的工作原理有点类似于 f.lux 和 NightShift,也许 GammaController 那里的代码可以帮助您实现您想要的
如果您有兴趣,您可能还想查看 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。