hey wanna see something kinda interesting? this was the entire fix to the iPhone Antennagate in 2010. 20 bytes.
For context, back in 2010 when the iPhone 4 came out, people noticed you could grip the phone in a certain way and the signal bars would plummet from 5 to, like, 2.
A few weeks later, they published a letter admitting fault, blaming a bad formula. apple.com/newsroom/2010/…
The letter was shared around and clowned upon () but nobody really looked into what the formula between 4.0 and the patch in 4.0.1
I downloaded both firmwares and started poking around. In the CoreTelephony framework, I found a promising looking binary: CommCenter. Looking at the strings gave me a pretty good sense that this is where the bar formula was.
The actual calculation is dead simple. When converting signal strength to bars, CommCenter loads each threshold from memory and compares until it finds the right range.
This code is not the problem...
...this is. This is the lookup table. When you convert the bytes to actual dBm values, you get:
-115, -111, -107, -103, and -99
(the closer to zero, the better the signal)
For example, here you need -107 or better signal to see 3 bars.
When you plot this onto a chart, you can see how the values are kinda screwed up since the values are really optimistic. Most of the time, you would see 4-5 bars. But when you gripped it, since the falloff is so sharp, you’d see a catastrophic drop from 5 to 2 bars.
In 4.0.1, they changed these values to be way smoother.
Mapped onto a chart, you can see that it takes a lot to drop from 5 to 0 bars. It’s harder to see 5 bars, but it’s harder to plummet bars.
So there ya go. 20 bytes.
This has concluded a Tech Thread. Back to shitposting.
oh also in 4.0.1 they changed the height of the lower bars to be taller lmao
• • •
Missing some Tweet in this thread? You can try to
force a refresh
Nobody asked for this, but I just signed up for instance with @StateFarm and I already have some strong thoughts and feelings about their app design.
This is an impromptu design critique because I cannot turn this part of my brain off. This is a curse.
This is the first mostly negative design critique, so I'm gonna lay out a ground rule: I won't dock points for what could be considered an artistic choice. For example…
No: "These aren't SF Symbols so this is wrong"
Fair game: "This form field transition is dog shit"
Just so we're all on the same page, here's what onboarding looks like in real time: