قالب وردپرس درنا توس
Home / Tips and Tricks / Installing TWRP without a computer «Android :: Gadget Hacks

Installing TWRP without a computer «Android :: Gadget Hacks



TWRP is the first custom recovery for Android due to the number of devices it supports and how easy it is to use. But installing it in the first place has not always been the easiest so far. Using a Magisk module, you can finally use one Android device to flash TWRP on another.

Google removed Android's original ability to send ADB and Fastboot commands to other devices in an earlier version, but this mod brings back that functionality. Developers osm0sis and Surge1223 are the ones who made the magic happen, so great props for their work. The initial installation is the longest part of this whole thing, but once it is done it will be easy to maintain in the future.

What You Need

You need two Android devices for this, and one must already be rooted. The already rooted device in this case takes the place of the computer.

Step 1: Install ADB & Fastboot for Android

Open Magisk Manager on the Android device with root access, tap the menu on the left and then tap go to "Downloads". Tap the search icon and type "adb" to locate the ADB & Fastboot for Android NDK module. Tap the download arrow, click "Install" and then tap the "Restart" button to activate the module.

Step 2: Download TWRP for your device

Now you need to grab the TWRP image file for the desired device to install the custom recovery. Grab your TWRP image from the link below and save it in the "Download" folder on both devices. Also rename the file to "twrp" to make it easier later in the manual.

Step 3: Install the Termux app

To use the Magisk module you installed from step 1, you have to have a terminal app. Termux is one of the best such apps, so click the link below to install it on your already rooted device.

Step 4: Enable USB debugging

On the target phone, go to Settings -> About phone and tap 7 times quickly on "Build number" to activate the developer options. Once done, go to Developer Options via Settings -> System -> Advanced or at the very bottom of your Settings app. Finally, enable the "USB debugging" option.

Step 5: Connect the two Android devices

If both phones were made in recent years, you only have standard USB C cable required to connect them. One with the modern reversible connector on both sides. But if one or both phones have a micro USB port, you can find adapters on Amazon from the links below.

Step 6: Allow authorization for USB debugging

Once the two Android devices are connected, the target phone should immediately display a new popup. Remove the USB cable for the secondary device and reconnect if it does not try again. Now tap "Always allow this computer", followed by "OK" to confirm the selection.

Step 7: Grant root access

Open the Termux app on the rooted device, type the following command, and then press enter.

  su 

This will trigger a Magisk superuser request, which is required when running higher system commands. Tap "Grant" when prompted and you're all set here. You must run the "su" command before each submitting ADB or Fastboot commands, but you do not need to reassign the super user's request.

Step 8: Check your device connection

Just because the two devices are connected does not mean that they are actually communicating correctly. To check this, type the following command on the rooted device via Termux and then hit enter.

  adb devices 

The above command checks all connected devices that can communicate through the ADB interface. If everything worked properly, you should see a device ID under the "Connected devices list" line.

Step 9: Boot in Fastboot mode

Before you can run Fastboot commands, you must boot your secondary device in a special mode for this. . On the rooted device with Termux, type the following command and then hit enter.

  adb reboot bootloader 

This will send the secondary device to its own boot loader menu, also known as "Fastboot Mode".

Step 10: Locate the TWRP File

At this point, you need to redirect Termux so that it can locate the twrp.img file you downloaded from Step 2. With the same rooted device terminal, type the following command and hit enter

  cd / sdcard / Download 

As mentioned, this will redirect the location of the terminal window to the "Download" folder on your rooted device. This is the specific location where the twrp.img file is located, so you need to make sure you enter the command exactly as it appears.

Step 11: Check the format of your partition

Now it's time to send the twrp. img file to the secondary device so you can install TWRP on it. But the instructions are different depending on whether the target phone supports Android 7.0 A / B partition format.

So first, if you're not sure if the phone you want to install TWRP on has A / B partitions, install Treble Check from the Play Store. Open the app and it says & # 39; Not Supported & # 39; or & # 39; Supported & # 39; in the section Seamless system updates . If your phone is supported, you have A / B partitions and follow the corresponding instructions in the next step.

Step 12: Install TWRP

If you have a A / B partition target device, open the Termux app on the host device and type the following command then hit enter.

  fastboot boot twrp.img 

This will temporarily start TWRP on the secondary device; however, you still need to run the permanent installer afterwards. If you don't do this, TWRP will disappear after you restart your device.

So tap "Install", browse to the folder Download and then press the "Install Image" button. Tap the twrp.img file, select "Install recovery ram disk", then swipe the slider to get started. Once the process is complete, hit the start button, go to "Reboot" and then "Recovery" where you will be greeted by the permanent version of TWRP!

Depending on your version of TWRP, your options may vary slightly when installing an image file. Just search for anything related to "Install Image" or "Recovery Ramdisk" and install it with that option.

If the target phone has no A / B partitions open Termux on the rooted device and type the following command then hit enter.

  fastboot flash recovery twrp.img 

This command will install TWRP permanently on your device without any additional work on your part due to the way devices with an "A-only" partition format work. The last thing to do is type the following command and then hit enter.

  adb reboot recovery 

At this point, your secondary device will now reboot automatically to the TWRP main menu. You can now safely remove the USB cable or OTG adapter. You have successfully installed TWRP and can do anything you want with the popular custom recovery without being tied to a computer.

Want to Help Support Gadget Hacks and Get a Great Deal on Some Sweet New Technology? View all offers for the new Gadget Hackshop .

Cover image and screenshots of Stephen Perkins / Gadget Hacks

Source link