View Single Post
Old 02-07-2020, 02:15 PM   #13
Peripathetic
Enthusiast
Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.
 
Posts: 38
Karma: 90402
Join Date: Feb 2019
Device: Tolino Shine 3
Adventures in the Bootloader Mode

Accessing the Bootloader Mode
  • Install the Android ADB driver if you haven't already (bootloader driver is included with it)
  • Power off the device completely (hold button until dialog appears and choose "Switch off")
  • Connect device to computer via USB cable
  • Optionally, open the Device Manager (press Win-X, then M) and unmute audio to see and hear when a device is connected and disconnected
  • Press and keep holding the button for 30 seconds (note: this step is specific to Shine 3, which has only one button, other devices have different ways of entering the bootloader mode)
Device will enter the bootloader mode and Windows will start installing the driver for it. Meanwhile, after a couple of seconds, the device will leave the bootloader mode and proceed with normal startup (boot), which can't be prevented. If you left the Device Manager open, you could have been able to see an "Android Bootloader Interface" device show up briefly, and then disappear.

Replacing the stock recovery with TWRP

About Recovery and TWRP:
Spoiler:
Most Android devices include a separate, minimal operating system that can be booted into (started) if the main one doesn't work. This is called "recovery [mode]." The device vendor's version of this system ("stock recovery") is usually very simple: it can be used only to wipe all user data or install updates (with a signature check), which is not very useful for our purposes. This separate operating system, stored on its own recovery partition, can be replaced with a different, much powerful one. The most prevalent such system for modern devices is called TeamWin Recovery Project (TWRP).
  • Download Ryogo's TWRP for Tolino Shine 3 (note: this is device-specific, other devices need their own builds)
  • Download the Android SDK Platform Tools, which include Fastboot and ADB (to be used later)
  • Open the command prompt (Win-X, C) and run:
    fastboot boot twrp.img
  • The tool will hang at a prompt saying: Waiting for device
  • Enter the bootloader mode once again, as described in the previous section. If everything goes well, the device should run TWRP from the external image file (twrp.img):

    Click image for larger version

Name:	TWRP.png
Views:	181
Size:	40.1 KB
ID:	176995
So far, nothing has been modified on the device yet. If you do not want to replace the stock recovery, you can still use TWRP occasionally this way but it is cumbersome. Eventually, we want to flash the image to the device so that it can be used on its own. However, it's good practice to make sure an image is bootable before flashing it.
  • To flash the recovery image, run:
    fastboot flash recovery twrp.img
  • And make the device enter the bootloader mode once again, as described above.
Note that after flashing an image, the device remains in bootloader mode, which gives us an opportunity to flash another image at once.
  • To flash a (modified) boot image, which is the remaining thing to do while we are in the bootloader mode:
    fastboot flash boot boot.img
However, we don't have a modified boot image yet: this will be covered in the next installment.

One way to enter recovery mode on the Shine 3 is to make sure the device is powered off, USB cable is not connected, and hold the button for about 25 seconds, at which point the screen should show the TWRP starting. There is another, more convenient way as well, more on that later.
Peripathetic is offline   Reply With Quote