Can unlock screen if already have provided decryption password once since restart? #19

Open
opened 2024-09-06 00:05:33 +02:00 by Benjamin_Loison · 10 comments
Related to [Benjamin_Loison/Debian/issues/67](https://codeberg.org/Benjamin_Loison/Debian/issues/67).
Author
Owner
Related to [Benjamin_Loison/Voice_assistant/issues/15](https://codeberg.org/Benjamin_Loison/Voice_assistant/issues/15).
Author
Owner
adb shell settings get secure lockscreen.disabled
0

Source: the Android Stack Exchange answer 246311

no matter if the session is unlocked or the screen off on my Fairphone 4 LineageOS 22.2.

adb shell settings put secure lockscreen.disabled 1

temporarily does not help just having to swipe to unlock the session.

Could try adb reboot but should try first on an emulator to reduce risks of getting locked out.

```bash adb shell settings get secure lockscreen.disabled ``` ``` 0 ``` Source: [the Android Stack Exchange answer 246311](https://android.stackexchange.com/a/246311) no matter if the session is unlocked or the screen off on my Fairphone 4 LineageOS 22.2. ```bash adb shell settings put secure lockscreen.disabled 1 ``` temporarily does not help just having to swipe to unlock the session. Could try `adb reboot` but should try first on an emulator to reduce risks of getting locked out.
Author
Owner

On my Linux Mint 22.1 Cinnamon Framework 13 LineageOS 22.1:

Just clicking on outside of emulator screen power button, just switches the screen off or not without any lock screen.

image.png

image.png

image.png

On my Linux Mint 22.1 Cinnamon Framework 13 LineageOS 22.1: Just clicking on outside of emulator screen power button, just switches the screen off or not without any lock screen. ![image.png](/attachments/6f0a6e4c-d0a0-4829-baf6-b0f8e6010035) ![image.png](/attachments/e63a6d79-3658-443e-96ab-ff217dd9296b) ![image.png](/attachments/9f20b530-2e68-4f5f-af3c-1f91f2eb3ddb)
Author
Owner

image.png

image.png

Let's define a fake PIN 1234.

image.png

image.png

image.png

![image.png](/attachments/39617c55-7ce4-4701-a53f-53c82f6dab46) ![image.png](/attachments/b4c49b42-fdd9-48b5-aecb-fc3920c2b6a2) Let's define a fake PIN *1234*. ![image.png](/attachments/37f5d145-19c6-4e55-9f06-e7315c34b519) ![image.png](/attachments/16a9a3f6-d95f-455f-a089-994e9d62d191) ![image.png](/attachments/1eee35cb-22f6-4a34-bb7e-05be018f7767)
Author
Owner

image.png

Note the locked lock.

image.png

![image.png](/attachments/8f1a4145-c2b6-4dc5-9f08-70491abdffbe) Note the locked lock. ![image.png](/attachments/9208080b-a06b-4beb-b759-010cfb000fb9)
657 KiB
102 KiB
Author
Owner
adb shell settings get secure lockscreen.disabled
0
adb shell settings put secure lockscreen.disabled 1
adb shell settings get secure lockscreen.disabled
1

still requires the PIN to unlock the screen.

adb reboot

takes quite some time to notice that have to reboot.

```bash adb shell settings get secure lockscreen.disabled ``` ``` 0 ``` ```bash adb shell settings put secure lockscreen.disabled 1 adb shell settings get secure lockscreen.disabled ``` ``` 1 ``` still requires the PIN to unlock the screen. ```bash adb reboot ``` takes quite some time to notice that have to reboot.
Author
Owner

Should try with a password as maybe PIN does not encrypt the device for instance.

However, as may need to reboot it is quite pointless to me.

Should try with a password as maybe PIN does not encrypt the device for instance. However, as may need to reboot it is quite pointless to me.
Author
Owner

Should try with a password as maybe PIN does not encrypt the device for instance.

However, as may need to reboot it is quite pointless to me.

Should try with a password as maybe PIN does not encrypt the device for instance. However, as may need to reboot it is quite pointless to me.
Author
Owner

At reboot it still requires the PIN.

At reboot it still requires the PIN.
Author
Owner

image.png

image.png

image.png

image.png

image.png

![image.png](/attachments/13002733-bde0-4979-a0a5-dc815c414da6) ![image.png](/attachments/072837d7-675d-4e61-ba1b-e74d5119889f) ![image.png](/attachments/e1fc5641-ae30-4e68-a3b0-49c64605fe6f) ![image.png](/attachments/2225b145-077f-4ece-a254-6270ac418a2f) ![image.png](/attachments/58e583c6-429a-461f-8c15-616350b4b7bb)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/adb#19
No description provided.