Android 锁屏的来源

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2140964/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:42:32  来源:igfitidea点击:

Source of Android's lock screen

androidandroid-source

提问by Daniel Benedykt

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).

我正在寻找 android 锁屏的源代码。它适用于任何版本的 Android(1.5、1.6、2.0 等)。

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?

我尝试在存储库中查看:https://android.googlesource.com/,但它看起来不像在platform/frameworks/base. 也许它是闭源的?

采纳答案by Yoni Samlan

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

根据Google 的指示对源进行实际的全面检查。

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 GitHubyou 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).

从 Android 4.2 开始,键盘锁源位于frameworks/base/policy/src/com/android/internal/policy/impl/keyguard. GitHub 上有一个镜像,您可以在线查看(我将此链接与 JB MR 1.1 版本挂钩,以防将来版本再次更改位置)。

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.

最初回答此问题时,Android 2.3 及更低版本的锁屏源位于frameworks/policies/base/phone/com/android/internal/policy/impl. 你也可以在他们的 GitHub 镜像中在线查看这些资源;该来源仍在当前的回购中,但几年没有更新。

回答by xip

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

对于那些使用 kitkat (android 4.4) 或以上源代码的人,似乎代码已移至

frameworks/base/packages/Keyguard