# Android 新功能：手机离手就锁屏

- 作者：杜莉莉
- 发布时间：2015-03-23 09:51
- 原文：https://www.ifanr.com/news/504316

![nexus-61](https://s3.ifanr.com/wp-content/uploads/2015/03/nexus-61.jpg)

据[ Android Police ](http://www.androidpolice.com/2015/03/20/trusted-butts-new-on-body-detection-smart-lock-mode-in-android-seems-to-be-hitting-some-devices/)报道，Google 将向 Android 5.0 及以上的设备推送一个名为 on-body detection 的新功能。该功能使用了手机加速计，能分辨手机是否在用户手中、口袋中。当手机在用户手中和口袋中时便保持无锁屏状态，不在时手机就会自动锁屏，更好得保护用户信息。

   [![](https://s3.ifanr.com/wp-content/uploads/2015/03/nexus2cee_Smart-Lock.jpeg)](https://www.ifanr.com/news/504316/nexus2cee_smart-lock)   [![](https://s3.ifanr.com/wp-content/uploads/2015/03/nexus2cee_screenshot_2015-03-20-14-50-031.jpeg)](https://www.ifanr.com/news/504316/nexus2cee_screenshot_2015-03-20-14-50-031)   [![](https://s3.ifanr.com/wp-content/uploads/2015/03/nexus2cee_Detection-Prompt.jpeg)](https://www.ifanr.com/news/504316/nexus2cee_detection-prompt)   
 

所以当你把手机落在桌子上，忘记带走的时候，它就会帮你自动锁屏，当你拿回手机就需要手动解锁来唤起屏幕。这项功能无法识别是否是机主拿起手机，仅能识别是否有人拿起手机。

on-body detection 功能将通过 Google Play Services 升级，大部分的 Nexus 设备和 Android 都能够通过 Google Play Services 进行该项功能的升级。

题图来自 [culturemob](http://culturemob.com/android-51-lollipop-nexus-6-nexus-9-whats)

插图来自 [Android Police](http://www.androidpolice.com/2015/03/20/trusted-butts-new-on-body-detection-smart-lock-mode-in-android-seems-to-be-hitting-some-devices/)
