summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2020-05-23 23:48:58 +0200
committerNolen Johnson <johnsonnolen@gmail.com>2020-06-05 20:49:30 +0200
commita66bfc0f62ecd18c821ee5f2f1c66dd883086fb0 (patch)
tree00d0b3a45ff950c4c9bb3548714a3342de1cd1f2
parente92efaf8b128494f579826d1c0d81057ba88398a (diff)
downloadlineage_wiki-a66bfc0f62ecd18c821ee5f2f1c66dd883086fb0.tar.gz
lineage_wiki-a66bfc0f62ecd18c821ee5f2f1c66dd883086fb0.tar.bz2
lineage_wiki-a66bfc0f62ecd18c821ee5f2f1c66dd883086fb0.zip
wiki: Avoid showing `adb reboot` on last step of install/upgrade page on A/B
* At that point A/B device shouldn't be in TWRP anymore but in LineageOS recovery thus `adb reboot` is most likely going to fail due to unauthorized adb session. Change-Id: Ia289c00826efabd357eb20464480e79d39cbf66a
-rw-r--r--_includes/templates/device_install.md4
-rw-r--r--_includes/templates/device_upgrade.md4
2 files changed, 4 insertions, 4 deletions
diff --git a/_includes/templates/device_install.md b/_includes/templates/device_install.md
index 27d1986d..6f673246 100644
--- a/_includes/templates/device_install.md
+++ b/_includes/templates/device_install.md
@@ -80,13 +80,13 @@ There are no recovery installation instructions for this discontinued device.
{% endif %}
{% include alerts/note.html content="If you want Google Apps on your device, you must follow this step **before** booting into LineageOS for the first time!" %}
{% if device.current_branch == 17.1 %}
-{% if device.uses_twrp %}
+{% if device.uses_twrp and device.is_ab_device != true %}
8. Once you have installed everything successfully, run 'adb reboot'.
{% else %}
8. Once you have installed everything successfully, click the back arrow in the top left of the screen, then "Reboot system now".
{% endif %}
{% else %}
-{% if device.uses_twrp %}
+{% if device.uses_twrp and device.is_ab_device != true %}
8. _(Optional)_: Root your device by installing [LineageOS' AddonSU](https://download.lineageos.org/extras), (use the `{{ userspace_architecture }}` package) or by using any other method you prefer.
9. Once you have installed everything successfully, run 'adb reboot'.
{% else %}
diff --git a/_includes/templates/device_upgrade.md b/_includes/templates/device_upgrade.md
index 05868a18..382b6402 100644
--- a/_includes/templates/device_upgrade.md
+++ b/_includes/templates/device_upgrade.md
@@ -46,13 +46,13 @@ The updater app does not support upgrades from one version of LineageOS to anoth
{% include alerts/note.html content="If you previously had any Google Apps package installed on your device, you must install an updated package **before** the first boot of Android! If you did not have Google Apps installed, you must wipe the **Data** partition (or perform a factory reset) to install them." %}
{% if device.current_branch == 17.1 %}
-{% if device.uses_twrp %}
+{% if device.uses_twrp and device.is_ab_device != true %}
7. Once you have installed everything successfully, run `adb reboot`.
{% else %}
7. Once you have installed everything successfully, click the back arrow in the top left of the screen, then "Reboot system now".
{% endif %}
{% else %}
-{% if device.uses_twrp %}
+{% if device.uses_twrp and device.is_ab_device != true %}
7. _(Optional)_: Root your device by installing [LineageOS' AddonSU](https://download.lineageos.org/extras), (use the `{{ userspace_architecture }}` package) or by using any other method you prefer.
8. Once you have installed everything successfully, run `adb reboot`.
{% else %}