[General Topics] adithyan25:
Today most of us use one click softwares to work with our android phones or tablets.

Ever wondered how these work ??

If,yes today i will teach you how to make your own "one click custom recovery for your phone". :good:

Before we begin we need a few requirements. The basic things include

TWRP image for your phone

You can download the image for your phone by clicking here

Notepad or any other similar software installed on your pc

Some knowledge on creating a ".bat" file

and a device with unlocked bootloader

Once you have this lets get started.

First download and extract the "Recovery files.zip" from the attachments

How to make a one click recovery

After downloading copy the twrp image to this folder.

Now,Create a new text file and write the following commands.

Before that let us understand some basic bat file commands.

The word "echo" is used to add lines in bat file. If u want to add blank lines just type "echo." and to add text or any other symbols type "echo <your text> " Make sure you leave a space after echo and eliminate the"<>" symbols.

To change the default colour,type "color 0a". You can try changing "a" with "b","c" etc to see new colours.

The "pause" Command is used to view the message "Press any key to continue",

The "cls" command clear the entire window and execute the lines just after the cls command.

The "exit" to close the bat file.

I think thats enough for a begginer.If you have any doubts ask in comments not in pm.;):cowboy:

So first type these commands in the text file you created

@echo off
COLOR 0b
Title <YOUR TITLE FOR THE SOFTWARE>

echo -----------------------------------------------------------
echo -----------------------------------------------------------
echo One Click TWRP Recovery Installer for <DEVICE NAME>
echo -- TWRP Recovery image by <YOUR NAME>--
echo -----------------------------------------------------------
echo -----------------------------------------------------------
echo One Click Installer made by [url]www.YOUR[/url] WEB SITE.com
echo -----------------------------------------------------------
echo -----------------------------------------------------------
echo <any thing you like to display>
pause
cls

The pause is given to promt the user to press any key to continue

The "cls" to clear all the details printed after the key is pressed.

If you want to add blank lines type "echo." and hit enter.

adb devices
adb reboot bootloader
fastboot devices
fastboot erase cache
fastboot flash recovery [COLOR="Orange"]recovery file name[/COLOR].img
echo -----------------------------------------------------------
echo -----------------------------------------------------------
echo Installation successful!
echo Your device will now reboot automatically.
echo -----------------------------------------------------------
echo -----------------------------------------------------------
fastboot reboot
echo to close this window press any key..
pause
exit

I hope you may have some knowledge about the adb commands,so that i dont need to explain those again.:p

Once this is done save the file as "filename.bat" and save type to "All Files" from "Text Document".

Once agin to keep in mind this requires a phone with Unlocked bootloader and Make sure that "USB Debugging is enabled"

You can see the bat file i created with above codes and the text file i wrote in the attachment

If this helped you post you reply and thumbs up :):laugh: