Samsung A5 2017 - reboots instead of shutting down

#3 @Dakiraun

I always do this (observe order)

  1. Copy all necessary files to an external microSD card. SIM card not yet in the device (Note: This does not mean that the SIM card must not be inserted from the beginning. It is only my procedure.)

  2. Install TWRP for twrp-3.3.1-1-a5y17lte via Samsung Odin. Important: Disable “Auto Reboot” in the ODIN options = uncheck].
    .
    After TWRP Recovery has been installed, switch off the device completely - wait until all lights on the device have gone out.

  3. Reboot TWRP Recovery and flash the /e/ OS build via "clean Install " ~ “Advanced Wipe”.

    Use TWRP INSTALL e-0.7-n-2019*-dev-a5y17lte.zip instead of TWRP sideload. Then back to the TWRP menu and again “Wipe cache/dalvik” …

  4. Boot the /e/ OS and test if the installation was successful.

  5. If the SIM card was not inserted from the beginning - insert the SIM card now. To be on the safe side, reboot the system.

  6. If the SIM card is not recognized by the system: Reset the /e/ OS system to factory settings and retest …

Side note: This procedure was successful when my SIM card was not recognized by the device after flashing a new bootloader/baseband firmware.