Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source of Android's lock screen [closed]

I am looking for the source code of the android lock screen. It can be for any version of Android (1.5, 1.6, 2.0, etc).

I tried looking in the repository at: https://android.googlesource.com/, but it doesn't look like it's under platform/frameworks/base. Maybe it's closed source?

like image 221
Daniel Benedykt Avatar asked Jan 26 '10 16:01

Daniel Benedykt


People also ask

How do I stop my Android from locking automatically?

Turn off auto-lock (Android tablet)Open Settings. Tap the applicable menu option(s), such as Security or Security & location > Security, then locate and tap Screen lock. Select None.

Where does Android store lockscreen?

The password lock file is located in /data/system folder and named pc. key. Android OS uses exactly the same method to store the password. Once the user sets the password, device hashes it with SHA-1 and saves result into the file.


2 Answers

Do an actual full checkout of the source according to Google's directions.

As of Android 4.2, the keyguard source is at frameworks/base/policy/src/com/android/internal/policy/impl/keyguard. There's a mirror on GitHub you can look at online (I pegged this link to the JB MR 1.1 release in case the location changes again in a future release).

When this question was originally answered, Android 2.3 and lower had their lockscreen source at frameworks/policies/base/phone/com/android/internal/policy/impl. You can also view these sources online in their GitHub mirror; that source is still kicking in the current repo, but hasn't been updated in several years.

like image 90
Yoni Samlan Avatar answered Sep 23 '22 22:09

Yoni Samlan


For those who are on kitkat (android 4.4) or above source code, it seems the code has been moved to

frameworks/base/packages/Keyguard 
like image 21
xip Avatar answered Sep 24 '22 22:09

xip