How Pocket Detection Prevents Accidental Phone Touches
A phone in a pocket can experience many of the same things as a phone in your hand: movement, pressure against the screen, and occasional taps from fabric or other objects. Yet many phones can reduce accidental screen input while they are covered or tucked away. This behavior is often called pocket detection, pocket mode, or a similar name. It is not one universal feature with one fixed design. Phone makers can combine sensor readings, touchscreen data, device state, and software rules in different ways.