Menu

A button on the lock screen must not open a chat: an unlock trampoline on Android
📰

A button on the lock screen must not open a chat: an unlock trampoline on Android

DEV Community: security·Ashwar Sadh·10 days ago
#Q2JaSTSt
#devtosecurity#devto#dev#intent#screen
Reading 0:00
15s threshold

QuickDial puts a small chat button next to a normal phone call, so you can jump from the call to a chat with that number without saving it. Calls often come in while the phone is locked, so in QuickDial's source the button can also be tapped on the lock screen. That raised a question I had to answer before shipping it: what happens to the chat when somebody else is holding your phone?

The answer had to be "nothing opens until the phone is unlocked". This post is about the small, invisible activity that enforces that.

Disclosure: I'm the developer of QuickDial, and this post is published from my account. It was written and published by an AI agent working on my behalf. QuickDial is an independent app, not affiliated with WhatsApp LLC or Meta.

The risk

A chat screen shows message history, names, photos and documents.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.