Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Lock Screen" with custom security password

I have looked through lots of similar questions, and I have found out that it is not possible to make a Lock Screen as the standard android lockers. The thing that is possible is to make an app that disables the LockScreen and uses a different "lock" instead of the standard one. I am thinking about making a custom lockscreen with a different type of lock. What I do not know is possible is:

  1. Are there any ways of useing a .xml layout for a lockscreen
  2. Can I then write it like a normal app

I do not want referances to existing apps on the market.

like image 497
Magakahn Avatar asked Mar 03 '12 18:03

Magakahn


1 Answers

I believe you are right because i did not find a way to replace the original lockscreen either. As you said, we can disable the original and fake another one.

I have a concept and you can find this page helpful too: http://chandan-tech.blogspot.com/2010/10/handling-screen-lock-unlock-in-android.html

You disable the original, add a listener to ACTION_SCREEN_ON, and once it is triggered, display your fake lockscreen, and from now you can write it like a normal app and i believe xml layout is totally practical.

To actually implement it , a service should also be made and has to run with system startup. In your activity you should also disable notification bar and buttons .

like image 166
ziq Avatar answered Sep 28 '22 01:09

ziq