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.
- 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
- Can somebody provide me useful links about getting access to the system PIN dialog in the rooted phone.
- Am I on a right way and can I solve my problem in this way?
- If anybody encountered such problem please help me to solve.
Any Solutions?