Skip to content

Commit

Permalink
wiki: Use wait-for-device for checking crypto type/state
Browse files Browse the repository at this point in the history
Prevents users from running this in recovery mode.

Change-Id: I769700c8e1f970b221bc49112bccd5a9c1a1946f
  • Loading branch information
luk1337 committed Jan 6, 2024
1 parent 3c9adf8 commit d2a6b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/snippets/format_on_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
{%- capture wiping_instructions %}
{%- if device.format_on_upgrade == "fbe" %}
8. If your device is not FBE encrypted, wipe your data partition (this is usually named "Wipe", or "Format").
{% include alerts/note.html content="You can check if it's FBE encrypted by running the following command: `adb -d shell getprop ro.crypto.type`.
{% include alerts/note.html content="You can check if it's FBE encrypted by running the following command: `adb -d wait-for-device shell getprop ro.crypto.type`.
If the output of this is `file`, then your device is FBE encrypted!" %}
{%- elsif device.format_on_upgrade == "fde" %}
8. If your device is FDE encrypted, you will need to wipe your data partition (this is usually named "Wipe", or "Format").
{% include alerts/note.html content="This is due to the fact that Android 13 dropped support for FDE (Full Disk Encryption)." %}
{% include alerts/note.html content="You can check if it's FDE encrypted by running the following command: `adb -d shell getprop ro.crypto.state`.
{% include alerts/note.html content="You can check if it's FDE encrypted by running the following command: `adb -d wait-for-device shell getprop ro.crypto.state`.
If the output of this is `encrypted`, then your device is FDE encrypted!" %}
{%- elsif device.format_on_upgrade == "repartition" %}
8. If your device has not yet been repartitioned, select "Advanced", then "Reboot to Bootloader".
Expand Down

0 comments on commit d2a6b7f

Please sign in to comment.