[ONE Q&A, Help & Troubleshooting] wibblefoo:
Hello,

As of yesterday, my OnePlus One seems to be unlocking itself at bootup. It makes the "knack-knock" un-lock sound (high->low) just after the bootlogo screen, and fails to show the lock screen when it is first turned on.

After it has booted, it goes straight to the home screen, and I can use the phone as if it weren't locked: It is now in some kind of bugged state where the screen lock doesn't work - the screen will stay on until it runs out of batteries, and if I press the power button then the screen turns off but doesn't lock.

The first time I press the HOME button however, then the phone immediately LOCKS (albeit without playing a sound) and displays the usual PIN-entry screen. I can then enter my 8-digit PIN as normal and it will unlock ("knack-knock") . It is now out of the bugged state and will lock properly ("knock-knock") after it has been asleep for however many seconds I have configured it to lock. It is now perfectly normal until next time it reboots.

If I DON'T enter a PIN on that first lock-screen then it stays in the bugged state: After a few seconds of displaying the lock screen, the screen turns off, it plays the unlock "knack-knock" again, and when I press the power button we are back to the same state as first boot - my home screen is available, I can read my emails etc, but I have never entered a passcode!

I haven't installed any new apps recently, and I have auto-update apps turned off. I can't seem to stop Google Play from updating, though.

There is an update available: "XNPH05Q Incremental" - I tried taking a backup and installing this, but the screen-unlock problem remained.

Turning off "Use custom lock screen" didn't help either..

The phone IS rooted, but I don't have anything particularly suspicious installed.. A full list of packages on my phone is here:

u0_a90@A0001:/ $ pm list packages

package:com.android.defcontainer

package:com.google.android.maps.mytracks

package:com.appstar.callrecorder

package:com.android.phone

package:com.spotify.music

package:com.cyngn.hexo

package:org.connectbot

package:com.android.bluetooth

package:com.android.providers.calendar

package:com.droidbus.pidloopsim

package:appinventor.ai_MattHawkinsUK.RPiREF

package:com.valvesoftware.android.steam.community

package:com.octave.io

package:com.cyanogenmod.lockclock

package:com.android.providers.downloads.ui

package:android.androidVNC

package:com.android.documentsui

package:org.prowl.torquefree

package:com.lhsee

package:com.android.vpndialogs

package:com.android.mms

package:biz.bokhorst.xprivacy.license

package:com.android.providers.media

package:camviewer.mobi.ipcamsuite

package:com.google.android.setupwizard

package:com.android.settings

package:jackpal.androidterm

package:com.google.android.street

package:com.google.android.googlequicksearchbox

package:it.angelic.soulissclient

package:com.android.musicvis

package:com.android.exchange

package:org.whispersystems.whisperpush

package:net.osmand

package:com.chrome.beta

package:com.android.development

package:com.google.android.backuptransport

package:com.google.android.apps.chromecast.app

package:com.android.providers.telephony

package:biz.bokhorst.xprivacy

package:com.xh.openclinfo

package:com.softwaresemantics.diyglsllwp

package:com.google.android.apps.maps

package:com.android.dialer

package:com.google.android.apps.cloudprint

package:org.scummvm.scummvm

package:com.epson.mobilephone.android.epsonprintserviceplugin

package:com.android.wallpapercropper

package:com.android.providers.settings

package:com.google.android.apps.docs

package:com.qualcomm.qcrilmsgtunnel

package:com.android.providers.downloads

package:com.android.browser.provider

package:com.android.phasebeam

package:pl.mawo78.wallpaper.hexgrid

package:com.google.android.videos

package:nextapp.fx

package:com.citrix.Receiver

package:com.google.android.onetimeinitializer

package:org.mozilla.firefox

package:com.xabber.android

package:com.inportb.botbrew

package:org.cyanogenmod.audiofx

package:com.cyngn.theme.store

package:org.cyanogenmod.themes.provider

package:com.android.inputdevices

package:com.germainz.playpermissionsexposed

package:com.android.stk

package:com.qualcomm.shutdownlistner

package:champion.gnuroot

package:com.nononsenseapps.notepad

package:com.octave.signal

package:com.google.android.configupdater

package:com.williamalexander.android.pixelswarm

package:org.videolan.vlc.betav7neon

package:com.evernote

package:com.cyngn.hexoicons

package:com.cyngn.logger

package:android

package:com.android.providers.contacts

package:com.android.externalstorage

package:com.google.android.apps.translate

package:livio.pack.lang.en_US

package:org.cyanogenmod.bugreport

package:com.mohammadag.burnttoast

package:com.android.incallui

package:com.cyanogenmod.trebuchet

package:com.google.android.apps.plus

package:com.android.vending

package:com.tux.client

package:com.digia.Qt5Everywhere

package:com.android.keychain

package:rs.pedjaapps.alogcatroot.app

package:com.flux.theme.flux

package:com.google.android.tag

package:com.android.wallpaper

package:eu.chainfire.supersu

package:com.google.android.apps.magazines

package:de.markusfisch.android.shadereditor

package:org.pocketworkstation.pckeyboard

package:com.cyanogenmod.wallpapers

package:com.google.android.gsf

package:org.cyanogenmod.voiceplus

package:org.linphone

package:com.android.shell

package:pl.mawo78.wallpaper.hexagon

package:bbc.iplayer.android

package:com.google.android.syncadapters.contacts

package:com.evernote.widget

package:com.qualcomm.timeservice

package:de.robv.android.xposed.installer

package:info.mzimmermann.xposed.cputempstatusbar

package:org.ruboto.core

package:com.android.providers.partnerbookmarks

package:com.android.contacts

package:com.android.calculator2

package:net.cactii.flash2

package:com.android.htmlviewer

package:com.cyngn.cameranext

package:com.android.cellbroadcastreceiver

package:com.google.android.gsf.login

package:com.dsi.ant.server

package:gov.nasa

package:com.android.sharedstoragebackup

package:com.google.android.marvin.talkback

package:com.android.certinstaller

package:br.com.bandtec.serialbtcontrol

package:org.dyndns.sven_ola.debian_kit

package:com.google.android.gms

package:com.android.dreams.phototable

package:com.rsa.securidapp

package:com.rbs.mobile.android.natwest

package:com.texdroider.texdroider_dpi

package:com.grace.microphone

package:com.cyngn.cmstats

package:org.adblockplus.android

package:com.shredderchess.android

package:com.dropbox.android

package:champion.gnuroot.wheezyx

package:com.simongreen.shadertoy

package:com.google.android.music

package:com.android.wallpaper.livepicker

package:org.cyanogenmod.launcher.home

package:com.android.packageinstaller

package:com.marginz.snap

package:com.google.android.tts

package:com.android.noisefield

package:com.android.email

package:com.android.location.fused

package:com.android.backupconfirm

package:com.android.magicsmoke

package:com.cyngn.screencast

package:x.org.server

package:com.octave.symbolic

package:org.coax.xposed.cpufreqstatusbar

package:com.google.android.apps.books

package:com.stoik.mdscan

package:com.android.soundrecorder

package:com.cyanogenmod.account

package:com.ikdong.weight

package:com.cyngn.gallerynext

package:com.octave.main

package:com.android.inputmethod.latin

package:com.google.android.partnersetup

package:com.cyngn.fota

package:com.android.proxyhandler

package:org.ruboto.irb

package:com.android.wallpaper.holospiral

package:com.google.android.feedback

package:nextapp.fx.rk

package:com.google.android.talk

package:com.android.nfc

package:com.whatsapp

package:com.octave.gnuplot

package:nextapp.fx.rr

package:com.android.providers.userdictionary

package:com.octave.control

package:com.cyanogenmod.filemanager

package:com.android.pacprocessor

package:org.codeaurora.bluetooth

package:com.android.galaxy4

package:com.android.printspooler

package:com.cyngn.keyguard

package:com.botbrew.basil

package:com.qualcomm.location

package:com.cyanogenmod.settings.device

package:com.shantz.exchangebypass

package:com.android.dreams.basic

package:cx.mccormick.puredatalatencytester

package:com.google.android.play.games

package:com.android.systemui

package:org.cyanogenmod.wallpapers.photophase

package:com.android.smspush

package:com.google.android.gm

package:org.cyanogenmod.theme.chooser

package:com.qapp.quickboot

package:com.google.android.youtube

package:com.spartacusrex.spartacuside

package:com.android.deskclock

package:com.android.facelock

package:com.google.android.calendar

package:com.android.chrome

package:com.learnopengles.android

package:com.octave

Adblock Plus, BotBrew, FX, Terminal Emulator, texdroider_dpi and xposed installer have root access. given by SuperSU, of which only ABP runs at boot.

In XPosed, I have the following six modules:

Burnt Toast

CPUFreq in Statusbar

Cpu Temp In Statusbar

Exchange Bypass For Xposed

PlayPermissionsXposed

XPrivacy

So my question is: a) Has anyone here seen this before? (google has so far been of no help)

b) Which of the apps/modules I have installed could be causing this? (which should I try uninstalling first?)

or c) how can I find out who/what is causing this? (Is there any way to track calls to com.android.internal.policy.impl.LockScreen, for example?)

Cheers