December 4, 2026
Your App Lock Guards the Launcher. The Statement Screen Has Its Own Door.
A deep link marked android:exported=”true” opened a fictional shop ledger’s statement without asking for the PIN. How one external test…

By Tanmay Joshi
4 min read
A deep link marked android:exported="true" opened a fictional shop ledger's statement without asking for the PIN. How one external test sorted five exported components into one finding, what it couldn't see, and a fix that leaves a single way in.
# ExampleKhata 2.7.0, release APK, decoded AndroidManifest.xml
# components with android:exported="true"
activity .MainActivity MAIN / LAUNCHER
activity .share.ReceiveImageActivity SEND image/*
activity .statement.StatementActivity VIEW examplekhata://statement
receiver .otp.SmsCodeReceiver permission=...auth.api.phone.permission.SEND
receiver .sync.RefreshReceiver (no permission)# ExampleKhata 2.7.0, release APK, decoded AndroidManifest.xml
# components with android:exported="true"
activity .MainActivity MAIN / LAUNCHER
activity .share.ReceiveImageActivity SEND image/*
activity .statement.StatementActivity VIEW examplekhata://statement
receiver .otp.SmsCodeReceiver permission=...auth.api.phone.permission.SEND
receiver .sync.RefreshReceiver (no permission)Five ways into the app from outside it. The PIN lock is on one of them.
None of this is real. ExampleKhata is a made-up credit ledger for kirana shops in Bengaluru, the kind that tracks who owes what and sends each customer a monthly statement. It has its own four-digit app lock, because the phone it runs on often sits on the counter, unlocked, while a helper rings up sales. The founder sent the release APK and a test account, and authorised the test in writing. Everything ran on an emulator.
Exported isn't a finding on its own
An exported component is one that something outside the app can start: another app, or a link. Some of them have to be. Without the launcher entry you can't open the app at all. So the list above is a list of candidates, and most of them should leave the report quietly.
MainActivity is the front door. It's meant to be exported, and it's where the app lock lives.
ReceiveImageActivity exists so a shopkeeper can share a photo of a paper bill into the app. It's exported on purpose. When I shared a test image into it on a cold start, it routed through MainActivity and asked for the PIN. That's the behaviour you want.
SmsCodeReceiver handles the login OTP. It's exported, but it requires a permission that only Google Play services can hold, so another app can't feed it a fake code. Fine.
RefreshReceiver was the one I expected trouble from. Exported, no permission, so any app on the phone can send it a broadcast. I sent it one with an invented status=PAID extra. The app ignored the extra, called the API, and redrew the ledger from what the server said. A stranger can make the app refresh. That went into the report as informational, with one line suggesting it be made non-exported anyway.
That leaves the statement screen.
One link, no PIN
$ adb shell am start -a android.intent.action.VIEW \
-d "examplekhata://statement?customer=c_1042"
Starting: Intent { act=android.intent.action.VIEW dat=examplekhata://statement?... }$ adb shell am start -a android.intent.action.VIEW \
-d "examplekhata://statement?customer=c_1042"
Starting: Intent { act=android.intent.action.VIEW dat=examplekhata://statement?... }The app opened on a fictional customer's statement, twelve months of credit entries down to the running balance. No PIN prompt. The lock screen never appeared, because the lock check runs in MainActivity and this intent never went near it.
adb is my way of proving it. It isn't what someone at the counter would use. The intent filter includes the BROWSABLE category, so the same link works from an ordinary web page opened in the phone's browser. Anyone holding the unlocked phone can open such a page, tap the link and read the ledger. No tools, no skill.
Then I checked how far it went. Scope first, then everything else: the founder had set up a second test account for exactly this, so I used its customer ID and nobody else's. This is the call the app made when the link opened:
GET /v1/statements/c_2201 HTTP/1.1
Host: api.example.com
Authorization: Bearer eyJ... (test account A)
HTTP/1.1 403 ForbiddenGET /v1/statements/c_2201 HTTP/1.1
Host: api.example.com
Authorization: Bearer eyJ... (test account A)
HTTP/1.1 403 ForbiddenGood. The API checks who owns the statement, so the link only opens customers the logged-in shop already has. The finding is the app lock, not the backend.
I rated it medium. It needs the phone in hand and already unlocked, which rules out anyone who isn't standing in the shop. But the people who do have that, a helper or a relative minding the counter, are exactly who the app lock was built for. The app makes a promise on its settings screen, and one link walks around it.
My guess at how it got there is a guess, so I'll label it. For apps targeting Android 12 or later, any component with an intent filter has to say android:exported explicitly or the build fails. Someone added the deep link for the "your statement is ready" notification, hit the build error, and typed true. It's the shortest fix, and it gets the release out the same night.
What this test didn't see
This was one APK on an emulator, looked at from the outside. I read the decoded manifest and the compiled app, launched intents and watched what came back. I didn't read the source code. I didn't try a rooted phone or a pile of OEM builds, and I wasn't standing at an actual shop counter, which is where the misuse would happen.
So there are gaps. If another screen handles the lock its own way, I'd only know it from behaviour. Whether the four-digit PIN can be guessed, or reset without the shop owner, is a separate question for a human tester with source access.
This is the kind of check the Android part of an automated test exists for. The coverage list on pentest99.com calls it "exported-component exposure". It reads the manifest and the binary, flags what's exported and verifies what it reports. It's not a human-led mobile assessment, and it won't judge whether your app lock design is sound. Spotting an exported screen that skips the lock is the part it can do.
One door, and a check behind every screen
The fix has two halves, and you need both.
First, give the app one exported entry for links. A small router activity receives examplekhata:// links and the shared images, checks the lock state, and only then starts the screen that was asked for. StatementActivity goes back to android:exported="false", and so does RefreshReceiver, which never needed to be public.
Second, stop treating the launcher as the only place the lock runs. Put the check in a base activity's onResume, or watch the app coming to the foreground at the process level, so a screen that's reached some other way still asks. Then a future deep link added by someone in a hurry fails safe instead of open.
To confirm it's fixed, run the same intent again. A non-exported activity gives you this instead of a statement:
java.lang.SecurityException: Permission Denial: starting Intent { ... }
not exported from uid 10187java.lang.SecurityException: Permission Denial: starting Intent { ... }
not exported from uid 10187And through the router, the link should land on the PIN screen first. Keep that adb line in your release checklist, because this tends to come back the next time someone adds a deep link.
On your own app: run apkanalyzer manifest print on the release APK and look for every exported="true". For each one, ask a single question. If a stranger starts it, does your lock screen appear?