将文件alps/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java内的函数launchCamera()作如下修改:
if (intent == SECURE_CAMERA_INTENT && !wouldLaunchResolverActivity) {
if (DEBUG) Log.d(TAG, "launchCamera() - launch SECURE_CAMERA_INTENT") ;
mContext.startActivityAsUser(intent, UserHandle.CURRENT);
} else {
修改为
if (intent == SECURE_CAMERA_INTENT && !wouldLaunchResolverActivity) {
if (DEBUG) Log.d(TAG, "launchCamera() - launch SECURE_CAMERA_INTENT") ;
///M: [ALPS01844520] Insecure Camera may be resumed if no CLEAR_TOP attribute.
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);//Add by mtk
mContext.startActivityAsUser(intent, UserHandle.CURRENT);
} else {