Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7865783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:11:25+00:00 2026-06-03T00:11:25+00:00

Background I am trying to write an application which works like described below. When

  • 0

Background

I am trying to write an application which works like described below.

  • When user start application it check if user have registered PIN on his device.
  • If user have registered PIN, application must show button "Continue with PIN".
  • When user press on button "Continue with PIN" system standard PIN dialog must appears.
    enter image description here
  • User enter his PIN and press "Continue" button.
  • After System must check if entered PIN is correct or no and continue working.

Searches

I have made some searches and found some articles on stackoverflow and other internet sources which say "There is no way to develop a new custom unlock mechanism on a non-rooted phone." or "I would be surprised if you could, because then you would be probably able to steal the pin code, and I don’t think anyone would want that.".

Also I have watched some video tutorials like Tutorial: Android Internals – Building a Custom ROM, Pt. 1 of 2 and Tutorial: Android Internals – Building a Custom ROM, Pt. 2 of 2.

EDITED

I have made some searches today and found a very interesting thing, I think I am on a right way to the solution, and I want to share my ideas with you. So looking in android sources I found an interesting files ChooseLockPassword.java (packages\apps\Settings\src\com\android\settings) and LockPatternUtils.java (*frameworks\base\core\java\com\android\internal\widget*) now I am interest in:

Question

How can I call LockPatternUtils class function from my code ? Or Why I cant see that function in Eclipse ?


Decision

So I think that the only way to get access to the Android system PIN dialog is to root the phone make some changes in the system files and use system PIN dialod


Question

  1. Can somebody provide me useful links about getting access to the system PIN dialog in the rooted phone.
  2. Am I on a right way and can I solve my problem in this way?
  3. If anybody encountered such problem please help me to solve.

Any Solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:11:27+00:00Added an answer on June 3, 2026 at 12:11 am

    Okay, I have solved this problem and now I want to share my solution with you.

    At first as I told I have android sources so I have made some changes in android sources to get access to the PIN and Pattern dialogs. And here they are:

    in ~\AndroidSources\pakages\apps\Settings\AndroidManifest.xml I have changed following lines of code

    <activity android:name="ConfirmLockPattern"
              android:exported="true"> // This line was added by me.
    </activity>
    
    <activity android:name="ConfirmLockPassword"
              android:exported="true" // This line was added by me.
              android:them="@android:style/Them.NoTitleBar">
    </activity>
    
    <activity android:name="ChooseLockPattern"
              android:exported="true" // This line was added by me.
              android:label="@string/lockpattern_change_lock_pattern_label">
    </activity>
    

    This modifications allow me to call “ConfirmLockPattern“, “ConfirmLockPassword” and “ChooseLockPattern” activities from my own application. After I compile android Source codes and launch system.img on my emulator.

    In my application I have write following functions in order to call “ConfirmLockPattern” or “ChooseLockPattern” activities:

    /**
     * Show PIN/Password confirmation dialog.
     */
    void ShowConfirmLockPINActivity() {
        CustomLog.i(TAG, "Show Confirm Lock PIN Activity");
        Intent intent = new Intent(Intent.ACTION_RUN);
        intent.setComponent(new ComponentName("com.android.settings",
            "com.android.settings.ConfirmLockPassword"));
        startActivityForResult(intent, mRequestCode);
    } /* ShowConfirmLockPINActivity() */
    
    /**
     * Show set PIN/Password dialog.
     */
    void ShowSetLockPINActivity() {
        CustomLog.i(TAG, "Show Set Lock PIN Activity");
        Intent intent = new Intent(Intent.ACTION_RUN);
        intent.setComponent(new ComponentName("com.android.settings",
            "com.android.settings.ChooseLockPassword"));
        startActivityForResult(intent, mRequestCode);
    } /* ShowSetLockPINActivity() */
    
    /**
     * Show Pattern Confirmation dialog.
     */
    void ShowSetLockPatternActivity() {
        CustomLog.i(TAG, "Show Set Lock Pattern Activity");
        Intent intent = new Intent(Intent.ACTION_RUN);
        intent.setComponent(new ComponentName("com.android.settings",
            "com.android.settings.ConfirmLockPattern"));
        startActivityForResult(intent, mRequestCode);
    } /* ShowSetLockPatternActivity() */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that mostly follows MVVM, which I am trying to
I'm developing an android application which uses background service. I have not had much
I am trying to write an iOS application which listens for TCP broadcasts and
I have a two-thread application: GUI, and some background work. I'm trying to send
i have a vb.net background and trying to learn c# syntax
Background I am trying to create a copy of a business object I have
Background : I have been trying to display a sentence with Bold and Italic
I am building a swing application. At some point, I have to start an
I'm trying to write a simple WPF application in C#. Coming from a primarily
I am trying to create an application in Android 2.2 which sends SMS to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.