Hello Guys , today I'm gonna teach you pass code /pin protection bypass in android application. that is applied in android application to authenticate in application.
WHERE PIN PROTECTION IS APPLIED?
___________________________________________________________________________________________
BYPASS METHOD
CONDITION FOR BYPASSING:
_______________________________________________________________
METHOD:1
1.WHAT IS PIN PROTECTION AND WHY IS APPLIED?
_____________________________________________________________________ ____________
Pin
protection is 4 digit pin that implemented on android application
start/resume activity (on every start/resume activity first pin
activity started after supplying right pin user is authenticated).Pin
Protection is applied to secure the account from unauthorized use. For
Example: Someone finds your lost phone, or lost
your phone and if phone is unlocked. then without pin protection that person
access your any application and can do whatever he want.so pin
protection a new layer of security in which application ask 4 digit
pin to authenticate user.
___________________________________________________________________________________________
pin protection is applied on application login screen
. After inputting username and password pin protection is applied for future
use.IF user reopen the application then application only ask 4 digit pin
to login into application.
BYPASS METHOD
CONDITION FOR BYPASSING:
_______________________________________________________________
Application running on rooted device or application backup enabled
or application debug enabled
Among three of them if one condition is true pin protection
may be bypassed.
Application running on rooted device or application backup enabled
or application debug enabled
Among three of them if one condition is true pin protection
may be bypassed.
METHOD:1
1. If application back up enabled then you have to first
create application backup
adb backup -f
<backup-name.ab> <app-package-name>
2. after
creating backup extract this backup by android-backup-extractor tool that you
can download from given below link.
3.After extracting backup their application package
data shown like shared_prefs, database, file etc.
4. Go to
shared_prefs and see in which xml file there any pin protection check is
applied.
like
<string name=
"CLIENT_ONLY_PASSCODE"> </string>
<Boolean
name="has_user_entered_pin" value="false" />
etc.
HERE two scenario comes.
_______________________________________________________________________________
First Scenario:
a. sometime
application save all user details in plain text in shared_prefs like
token and pin.
so in
backup you see 4 digit pin in plain text and easily login into account .
Second
Scenario:
if an
application saving all data (like access token and pin in encrypted
format). then do same process that is given above and edit that xml
file in which pin_lock checks applied.
Simpy
remove the checks and save and restore the backup and you see app is opened
without pin.
METHOD:2:
1. if any
application running on rooted device then simply connect by adb and go to
/data/data/package_name -> shared_prefs and remove the pin lock protection
check from the xml file and save it .
reopen the
application . application is opened without pin.
METHOD:3:
if
application debug is enabled then connect device by adb and run command
adb shell
now run-as
<package_name> and remove the pin lock protection check from
the xml file and save it .
reopen the
application . application is opened without pin
Comments