Samsung devices are known to deviate from the standard procedures when it comes to the custom development of Android; they use unique tools and recovery mechanisms. Unlike most of the other companies, Samsung has always used Odin to flash rather than using the fast boot commands. On top of that, a proper GSI installation with a Samsung device is performed through the Fastboot Mode which is absent in the stock recovery. This article provides a very comprehensive guide to how to enable Fastboot Mode in Samsung recovery.
Prerequisites and Warnings
First of all, make sure you have prepared everything in line with the following prerequisites before proceeding:
- Backup Data: First, back up your gadget’s information to prevent data loss.
- Necessary Tools and Accounts:
- One has to have an account on GitHub to be able to fork the repos.
- A good example of file hosting services can be mentioned as “transfer.sh”.
- Required Software:
- ADB and Fastboot have to be installed on the computer using the software they need.
- Odin is the flashing software used for the patched recovery image.
Disclaimer: You should proceed at your own risk, as this guide or any author is not responsible for any damage that may occur to your device.
Step-by-Step Guide to Enable Fastboot Mode
1. Setting Up Git and Forking the Repository
- Install Git: First, Ensure Git is installed and configured on your computer.
git config --global user.name "YourName" git config --global user.email "YourEmail"
- Authenticate with GitHub: Follow the official GitHub instructions to authenticate Git with your GitHub account.
- Fork the Repository: Navigate to the Johx22/Patch-Recovery repository and fork it:
- Click Fork in the top-right corner.
- Choose the owner for the forked repository.
- Rename the repository and give it a description as a choice.
- Click Create Fork.
2. Preparing the Recovery Image
- Extract Recovery Image:
- Locate and extract the
recovery.img.lz4
file from your Samsung firmware package. - Convert the
.lz4
file into a usablerecovery.img
file.
- Locate and extract the
- Upload to Transfer.sh:
- Use the transfer.sh, service to upload the
recovery.img
file. - Once uploaded, right-click the Download button and copy the URL.
- Use the transfer.sh, service to upload the
3. Patching the Recovery Image
- Run Workflow on GitHub:
- Access the Actions tab of the forked repository.
- Choose RECOVERY -> Run workflow.
- Insert the copied URL into the RECOVERY URL field.
- Initiate the workflow and allow the patching process to be fulfilled.
- Download Patched Recovery:
- Now, when the workflow is finished, you need to download the
Patched-Recovery.zip
file. - Next, unpack the patched recovery image, which is also
repacked into.tar
format for flashing with Odin.
- Now, when the workflow is finished, you need to download the
4. Flashing the Patched Recovery Image
- Boot Device into Download Mode:
- Turn off your device.
- Enter Download Mode on your device with the button combination that is specific to your device (e.g., Volume Down + Power + Bixby).
- Flash Using Odin:
- Start by opening the Odin program on your computer.
- Connect your device to your computer using a USB cable and make sure Odin recognizes it.
- Insert the
.tar
archive into the AP part of the device. - Press the Start button to begin the process of flashing the custom recovery image.
5. Accessing Fastboot Mode
Once the patched recovery image is flashed, you can access Fastboot Mode as follows:
- From OS: Execute this command:
adb reboot fastboot
- From Fastboot Mode: Execute this command:
fastboot reboot fastboot
Conclusion
Starting up your Samsung device with Fastboot Mode turned on is what gives you the possibility to start making some custom development and GSI flashing that others hate to death. By going through this in a step-by-step manner, users can get rid of bothersome stock Samsung recovery issues, and even make their their devices better than before. For any questions you have or if you need some extra help, just leave a text below.