ubuntu-touch icon indicating copy to clipboard operation
ubuntu-touch copied to clipboard

Bug: PC USB Connection Displays Files on Locked Phone

Open TheSmashy opened this issue 2 years ago • 3 comments

  • Device: Pixel 3a XL
  • Channel: stable
  • Build: OTA-22

Steps to reproduce

I plug my phone into my computer via USB and my home directoy opens in the file system. The phone is locked.

Expected behavior

Password prompt on phone before displaying file system.

Actual behavior

Files are displayed with zero user interaction. Just plug in USB and you have access.

Logfiles and additional information

I can't find anyrhing logged, but if you want one, no problem.

TheSmashy avatar Apr 17 '22 22:04 TheSmashy

This almost certainly should only be the case if you unlocked the phone some time before that. Remember that you trust the PC, but the first plug into the PC should definitely block file transfer from happening when the device is locked. Does this happen after every boot?

fredldotme avatar Apr 17 '22 23:04 fredldotme

I just rebooted my phone, unlocked it with the password, checked the battery, and locked it. Plugged in USB, phone shows but no files. Unlock the phone and I get files. Tested several times, unplugging USB etc.. This is an intermittent issue. The other times I've done this, it survived reboots (I installed a SIM). I just plugged in the USB to a locked phone and had file access.

Edit to add: I did enable Developer Mode before that last reboot, that is the only change I can think of. I can see a possible connection.

TheSmashy avatar Apr 17 '22 23:04 TheSmashy

I doubt it can survive reboots. After all that years I sometimes wished it had this feature :)

Flohack74 avatar Jun 28 '22 20:06 Flohack74