Snippets of code suggest that the new iPhone could have a screen with a 1,125 x 2,436 resolution. Compare that against the existing iPhone 7 ( 1334 x 750), and it illustrates the jump in pixels; over three times the resolution of the "Retina' iPhone 4. If this does happen, it would also bring iPhone screens closer in line with its biggest rival, Samsung's Galaxy S8 and its 2,960 x 1,400 display.

The Home button may live on, but not as we know it. Inside the leaked firmware, there's a value for whether a device has a Home button or not: for this new mystery device, a "0" means it does not, while other code unearthed suggest that a "home indicator" is how Apple will tag its virtual home button of the future -- one that might not always appear when using the entire screen, like watching video or playing games. A tap-to-wake feature, already found on the Apple Watch, is also likely to make an appearance.

There's also a lot of new references to facial expression detection pic.twitter.com/8PsPVj1QqU — Guilherme Rambo (@_inside) August 1, 2017

While we've already heard about an infra-red based face unlock function, Apple appears to be adding even deeper functions to it front-facing sensors. An array of facial expression tags suggest that cameras could be registering your mouth positioning, while elsewhere "attention detection" suggests the iPhone will know if you're focused elsewhere. (Samsung and other Android phone makers attempted to do this with eye detection years ago, but it was heavily dependent on decent lighting to ensure phones could see your eyes.)

The company's augmented reality efforts (its next big thing) will be bolstered by new functions, including a "face anchor" that will presumably help with those face-changing filters we're all familiar with... and hopefully something a little more meatier later down the line. It rounds out a pretty interesting glimpse of what might be going on inside Apple's next phone -- even if the company doesn't like how it all came to light.