DESCRIPTION:
AS you know already
that what is passcode protection and why it is applied ? And how it is bypassed
normally ?
When any passcode
protection is implemented first check any activity is exported or not ? Here
we only talking the scenario where no
activity is exported in application
PROCEDURE:
- Open Application after implementing passcode protection. You see that passcode activity is launched first
- Go to AndroidMainfest.xml file and check launch mode of passcode activity .
Launch mode is an
instruction for Android OS which specifies how the activity should be launched.It instructs how any new activity should be associated with the current task.
For more learn about
launch mode In application:
- Some developers don’t specify any launch mode for passcode activity so default launch mode for activity is standard means every time you launch that activity a new instance of that activity is created.
- Now check deep link of application in androidmainfest.xml file
What is Deep link?
Deep links are a
concept that help users navigate between the web and applications. They are
basically URLs which navigate users directly to the specific content in
applications.
A deep link is an
intent filter that allows users to directly enter a specific activity in your
Android app.
Deep linking, in a
general sense, involves linking to specific content within a website or app,
rather than to the homepage. Here we’re talking in particular about getting
specific elements of an app to show up in search results on a mobile device,
allowing users to open an app directly from a search results page. Note: Users
will only see this prompt if they have the particular app installed.
for more read about deep-links :
- Now run adb shell
- Am start -a am start -a android.intent.action.VIEW -d "deep-link of application"
- Run this every time , you noticed that every time a new instance Is created and a user can easily brute force the passcode protection by this method
As soon as possible i uploaded poc .
Mitigation:
Set the launch mode in activities of Application.
If any doubt please ping me on mail or comment here ⏫⏬

Comments