import android.app.KeyguardManager;
import android.app.KeyguardManager.KeyguardLock;
import com.android.server.wm.WindowManagerService;
KeyguardManager keyguardManager = (KeyguardManager)mContext.getSystemService("keyguard");
KeyguardLock keyguardLock = keyguardManager.newKeyguardLock(TAG);
keyguardLock.disableKeyguard();
Android怎样在Framework层使用解锁代码,布布扣,bubuko.com
原文地址:http://blog.csdn.net/wlwl0071986/article/details/25833437