JakeWoki / parent-guard

Automatically exported from code.google.com/p/parent-guard
0 stars 0 forks source link

PGC0301 identify input pattern password #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
find out how to input and identify pattern password

Original issue reported on code.google.com by marshima...@gmail.com on 19 Oct 2011 at 3:00

GoogleCodeExporter commented 9 years ago
There is no API provided by android SDK. The system build-in Settings provides 
such functionality for screen lock in Settings -> Location & Security -> Change 
Screen Lock.

After tracking the Android source code, I found they create a custom view to do 
this. So follow this idea.

frameworks/base/core/java/com/android/internal/widget/LockPatternView.java
packages/apps/Settings/src/com/android/settings/ChooseLockPattern.java

Original comment by marshima...@gmail.com on 20 Oct 2011 at 4:35

GoogleCodeExporter commented 9 years ago
I was looking at this right here: 
http://developer.android.com/guide/topics/admin/device-admin.html

It's the admin interface to android I think this may be a better solution but I 
will look at both. 

Original comment by drew.mor...@gmail.com on 20 Oct 2011 at 4:59

GoogleCodeExporter commented 9 years ago
That works on android 2.2 and after, but we are working on android 1.5.  The 
device admin also uses the internal view class LockPatternView, but it can not 
be customized by showing the label and icon of the application being locked by 
use.

When we lock the application being launched by user, we need to tell the user 
what we do (lock the application), and what we need the user do (input the 
pattern password).

I think building a custom view is also a good way to reach the internal part, 
as well as understand View class a little bit more.

Original comment by marshima...@gmail.com on 20 Oct 2011 at 5:22

GoogleCodeExporter commented 9 years ago
This was done already by someone else, just taking it off of the issues list.

Original comment by drew.mor...@gmail.com on 15 Nov 2011 at 11:16