Welcome root users!
Today we are going to do something really cool!
Now every root user should know what a custom recovery is. It's basically a modified recovery with more functions than a stock recovery. Every root user should have one.
Please note that this tutorial is ONLY for users that run TWRP (Team Win Recovery Project).
I do not know if this method will work for other recoveries like Philz Touch! If you are going to attempt this on a recovery like Philz Touch, be VERY CAREFUL and ALWAYS ALWAYS ALWAYS make a backup of your recovery!!!!!!!!
Custom recoveries are cool and all, but wouldn't it be awesome if you could actually MODIFY your own recovery? Your question would be simple as this: "Is is possible?".
Well of course it is! Recoveries are in .img format. If we were to extract the img, we would get a ramdisk folder. Inside would be your root folders along with your TWRP folder!
For this part of the tutorial, we are going to modify the text on the buttons at the main screen in TWRP (ex. Install, Backup, Restore, Wipe, etc.). Let's say I wanted to change the word "Install" on the Install button to "Flash" instead. I could easily do this with a computer! I will show you how to do this step-by-step.
Requirements:
Windows PC
Android Image Kitchen
Your recovery img
Obviously your custom recovery so you can flash it.
1: Grab the custom recovery you flashed and put it to your Desktop. If you can't find your custom recovery that you downloaded before, download it again from the internet.
2: Download Android Image Kitchen from the internet and extract it to your Desktop. You should get a folder called "Android Image Kitchen".
3. Inside that folder you will have some files: cleanup.bat, repackimg.bat, and unpackimg.bat along with another folder called "android_win_tools".
4. Put your recovery img inside along along with those files.
5. Now we are going to extract your recovery! To do this, simply drag your recovery.img over onto the unpackimg.bat and a cmd windows will pop up, extracting your recovery.
6. When it's done, two folders will appear called "ramdisk" and "split_img". IGNORE THE split_img FOLDER! YOU DO NOT NEED TO TOUCH THAT EVER!
7. Navigate inside the ramdisk folder until you find a folder called "twres". This is your TWRP
8. Inside will be some files in XML format and 3 folders. Navigate to the folder that says "Languages".
9. Once inside, find "en.xml" and open it with a text editor.
10. Scroll down until you find this line of text:
"name="install_btn">Install</string>
11. To change the word "Install" to "Flash", replace "Install" that is between string and install_btw to "Flash".
12. That's it! Your done! Now we have to repack the ramdisk. To do so, go back to the "Android Image Kitchen* and click on "repackimg.bat".
13. If done correctly, a cmd window will appear and repack your ramdisk. You will be left with a file called "image-new.img". Transfer that file to your phones internal storage.
14. Once it's on your phone, boot into your custom recovery and flash it! MAKE A NANDROID BACKUP just in case anything goes wrong!!
15. You have successfully modified your custom recovery!!
NOTE that for some newer Android devices, you will probably get a message in red at the boot screen "Recovery is not SEandroid enforcing". As long as your device still boots into your modified recovery, ignore that warning.
Note that this tutorial was only for users who are new to rooting and customizing. Android developers would probably know already how to do this. This is only for fun. You should always be careful when modifying your system files.
That was only a text modification. You could have also edited the images if you wanted to
I don't know everything about Android. I'm still learning. I was proud that I was able to modify my own recovery. Please leave any comments you have
Im dragging recovery.img to unpackimg.bat and gives error
Code:
Android Image Kitchen - UnpackImg Script
by osm0sis @ xda-developers
Supplied image: recovery.img
Setting up work folders . . .
Unrecognized format.
Error!
Press any key to continue . . .
Recovery is TWRP 3.5.0-9
tried to unpack orangefox...
the result of the ramdisk folder:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Related
Hey XDA folks i own a LAVA IRIS n320 (Basic Droid Phone) for past months i tried to search various methods of rooting it and installing the clockworkmod on the device.
Device Specifications are listed here : http://www.fonearena.com/lava-iris-n320_2372.html
N350 : http://www.fonearena.com/lava-iris-n350_2371.html
First of all i could like to thank @getmesar due to his method i got it work ! Love ya dude ! :laugh: :good: :good:
These devices are almost the same hardware specs With both being Meditak MT6575 Chipset Hardware :highfive::highfive:
NOTE:THIS CAN BRICK YOUR DEVICE IF YOU DID NOT DO PROPERLY I AM NOT RESPONSIBLE FOR WHAT HAPPEN TO DO YOUR DEVICE.
Let the Rooting Process Began :
We Need Following things ::cyclops:
1.MTKDROID root and tools : Here
2.SP_Flash_Tool_v3.1224.01 : Here
3.Drivers : MediaTek-1.1123.0 : Here
Got rOOt?
1.Making the Scatter File :
Open the MTKdroid tools and create the scatter file as shown in the pic and save the file in a good place(where you can remember)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2.Prepare the Scatter File: Open the SP TOOLS where you downloaded from above load the scatter file which we created
3.Preparing the ROm :
Click on the button ADD. Double click on the line and save the ROM.
#Things To notice: The filename Will be like "ROM_#". in your case probably it'll be ROM_0.
#Remember the path of the File. U'll use this file later.
Alfter Clicking Save a new Window will appear named as "Read Back Block Start Address"
Windows Settings Will be as below
Type: Hex
Read Method:Read Page Only
Start Address: 0x0000000000000000
Length:0x12BA0000
4.Reading the Rom :
Click on Read ROM with the phone switched off and connected to the PC
Follow these Steps Carefully.Once Rom is Created you can use it in future.On success you'll see a BIG GREEN CIRCLE embded in a message box.
5.Prepare files for FlashTool and make CWM:
Open the MTK Droid Root & Tools window which we left on 1st step.it is necessary to turn on phone and to connect it to the program. Click on To process file ROM_ from FlashTool button and choose the ROM_* file saved earlier. At successful unpacking rom it will be offered to choose CWM from similar phone. Chosen CWM it is checked on compliance to the connected phone and if ok, the CWM is created.
A new scatter file and other neccessary files are created in the backup folder in droid root program's directory.you'll need the files in the next step.
6.Download new CWM to the phone:
Start FlashTool, choose scatter in the folder created on the previous step. Remove marks from all blocks! Click on RECOVERY and we choose the file CWM in the same folder which was created on the previous step. Click Download and connect a cable to PC (phone has to be switched off) and expect the end of process.
NOTE n this step the CWM recovery block has to be marked only! Also it is necessary to use only the Download button and not to use at all the Firmware Upgrade button!
Summary of step 6:
--> Click on Scatter-loading.Select Scatter file from the backup folder.
--> Make Sure all the checkboxes are unchecked. Only Recovery should be Checked.
--> Click Exactly over Recovery.
--> It will ask you to select a file. Now select a Recovery file created in step 6. Tt must be inside backup folder named as "Recovery_###.img"
--> Click Button Download.
--> Connect SWITCHED OFF phone.
Green SYMBOL MEANS YOU ARE DONE :good:
NOTE: USE THE ADB TO ACCESS THE RECOVERY
COMMAND : adb reboot recovery
This is because the keys dont work
7. Install Superuser.
Load phone in CWM mode, connect to MTK Droid Root & Tools, go on the tab root, backup, recovery and, pressing on this tab
- install superuser
Voila You now have ROOT access ! enjoy ~
Any Questions Post below or Pm
Need more Devs who can contribute more to this good device .
need CWM
plz upload cwm recovery img file for lava n320.
plz upload cwm
plz upload the cwm recovery img which u created. i dont have a pc so i cant use mtk droid tools plz upload and +1 thanks for this great tut bro.
upload cwm
hey bro plz upload cwm img for my lava n320 i dont have pc i cant create without pc plz upload
GUys you cannot me this without pc i am sorry but all the ones are clearly mentioned there please have a look
Flashing a custom recovery is the epitome of Android Hacking and Rooting. But it is always not a straightforward process. Here I am going to share three different methods for flashing a custom recovery. But first let us understand what a custom recovery is.
CUSTOM RECOVERY
Traditionally every android phone comes equipped with some sort of "recovery" program which is used for, well, recovery[emoji14]. It was intended to be used as a fallback measure in case you ended up messing with your phone. But these recoveries were (and are) terribly underpowered and offered a very basic set of features. Here comes in the topic of "Custom Recoveries". Exactly what it means, it means a recovery that has been customised or/and tweaked for some added features. The three big and famous names in the custom recovery circles are:
TeamWin Recovery Project (TWRP)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Features
Completely Touch-Driven and User Friendly UI
Fully Customizable XML-Driven Interface
Officially supports most Android devices
Has a good and extensive feature set
Supports ADB Sideload
Is a personal choice
ClockWorkMod Recovery (CWM)
Features
The First (most probably) custom recovery for android
Volume Rocker and Power Button Controllable UI
Can perform all sort of wipes including /boot and/devlog
Unofficial Versions available for most devices
Officially available only through Koushik Dutta's ROM Manager Premium app available here
Not very user friendly
Philz Touch Recovery
Features
CWM based recovery
Features three interaction modes - Full Touch, Partial Touch, Only Rockers(Non-Touch)
Everything pretty much the same as CWM including UI (though it has a okayish background)
Now after your little tuition session let's get our hands dirty and flash some recoveries!!!
As for every tutorial you will need some tools set up. They are:
Working ADB and Fastboot (only for 1st method) refer here for help in setting up adb and fastboot.
Rashr from here (only for 2nd method)
Terminal Emulator for Android by Jack Palevich from here (only for method 3)
Any Recovery image for your phone (Search "name_recovery model_name image XDA" on Google)
Rooted device for method 2 and 3
First Method - Fastboot Method
First set up ADB and Fastboot if you haven't already done so. Windows users can follow my guide here
Place the downloaded recovery.img or whateveritisidontcare.img in the same place you put your adb and fastboot if you haven't added adb directory to the PATH variable
Press Shift and rightclick on your anywhere in the white area of the screen. A popup will come up with an option "Open Command Window here". Select it
A Command Prompt shall open up. Make sure your device is connected and USB Debugging is enabled
Type the following commands one by one
Code:
adb reboot bootloader
fastboot flash recovery recovery.img
If successful your command prompt should look something like this.
Done!
Second Method - Using Rashr
Ensure you have Rashr installed and have root access
Open Rashr, grant it root acess, then close it.
Download the recovery image on to the root of your sdcard.
Use a root explorer to copy the image to "/data/data/de.mkrtchyan.recoverytools/files"
Open Rashr, select Recovery from Storage browse to the recovery on the sdcard and continue. IMPORTANT : Rashr may seem to be unresponsive for some time after selecting recovery image. IT IS NOT. Do not FC it or do anything, just keep your device aside and wait for it to report success or failure.
Rashr will take some time and hopefully won't throw up any error and show success
That's it. Enjoy !!!
Third Method - Terminal Flashing Method
This one's relatively simple. Here it goes
Open terminal emulator and type the following commands. Be sure to hit grant on the superuser prompt
Code:
cd /sdcard #type the address of the file directory, i am assuming it to be /sdcard
su
flash_image recovery recovery.img #replace recovery.img with whatever is the name of the downloaded file
If it says "Not found" or some such bull****, It's probably because Busybox isn't installed. Stock ROMs do not have busybox so you'll need @Stericson's BusyBox Free installer. It's available on the play store for free.
Done !!!
Hopefully you will be able to use these guides as a stepping stone to the world of android hacking...:victory:
This is a messy post, do as you please with it. I am not responisble for ang damage to your device. Additionally, I dont take any credits for any of this, I just put everything together here.
Tags zc551kl Asus Zenfone 3 Laser z01bdc
Tools Needed:
Asus Bootloacker Unlock Tool - http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZC551KL/UnlockTool_Android_M_0706_signed1.apk
You current boot.img version which can be downloaded from here [Its packaged in the update file]- https://www.asus.com/us/Phone/ZenFone-3-Laser-ZC551KL/HelpDesk_BIOS/
ADB and Fastboot from here [Credits to Snoop05] - https://www.dropbox.com/s/mcxw0yy3jvydupd/adb-setup-1.4.3.exe?dl=0
Magisk Manager - https://tiny.cc/latestmanager
Prep:
Install the Asus Unlocker on your phone and unlock it.
Install Magisk Manager on your phone but dont run it yet.
Enable USB Degugging on your phone.
Install ABD and Fastboot on your PC. It will be installed to c:/adb/
Download the update that matches your phone version to your pc. [Mine was version "WW-32.40.106.41"]
Open the update file on your pc with your favorite zip manager and extract the boot.img .
Put the boot.img onto your phones internal storage.
Follow this guide [Credits to Dhananjay @ thecustomandroid.com]
» Non-rooted devices
Magisk 14.0 introduces a new and neat method to install on non-rooted Android devices. This new process doesn’t require your device to be rooted, nor does it require a custom recovery like TWRP. But for this method to work, your device must have the stock boot.
But for this method to work, your device must have the stock boot.img dump placed in the internal storage.
Make sure that you enable USB debugging and setup ADB access first, you will need it later in the guide.
Download Magisk Manager 5.3.0: Link
When the APK has been downloaded, use a file manager to install it. Now run the app from the app drawer.
Go to the app settings and tap on “Patched Boot Output Format”. You can select “.img.tar” if you will be using ODIN to flash the file or else simply select “.img” for the rest of the devices.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Go back to the app main screen and tap on the “Install” button. Go to INSTALL > PATCH BOOT IMAGE FILE.
Navigate through the storage and select the stock boot.img file. As soon as you select the stock boot.img file, the app will download the installer to patch the image.
Once the process is complete, you can tap on the “CLOSE” button.
Your new and patched boot image now include root and support for modules. So the last step is to grab this boot file and flash it your device via fastboot or ODIN (Depending on the output format you chose in step #4).
Connect your device to the PC via USB cable and navigate to the Magisk Manager folder inside the storage. Your “patched_boot.img” file will be present right there. So copy it to your PC.
Move the “patched_boot.img” file to C:/adb folder. And type in the following command to boot your phone into bootloader/fastboot mode:
adb reboot bootloader
Once your phone enters the bootloader/fastboot mode, enter the command to flash the file:
fastboot flash boot patched_boot.img
Finally, reboot your device:
fastboot reboot
That’s all, you have just installed one of the most trending mod out there and especially on your non-rooted device without any need of a custom recovery. Isn’t it great? Tinker around with the app and see what all things you could do.
I can confirm this is working! Thank you!
Reporting working on Android O (8.0), I download update from Asus and patch boot image. Thanks
kamo84 said:
Reporting working on Android O (8.0), I download update from Asus and patch boot image. Thanks
Click to expand...
Click to collapse
I know it's been some time since this was discussed, but I am trying to go through this process. Can you confirm that you unlocked the bootloader on 8.0 with the Asus tool? Or did you install magisk without unlocking the bootloader (if that's possible)?
thanks
I don't think the unlocker tool works anymore.
Downloading Custom ROM
Step 1 – First, Check Your Model Number Using Going To Setting > About Phone > Model number. The Model Number is The Unique Name or ID of Your Phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 2 – After That, You Type The “Custom ROM Name” With Your “Model Number” (Like Show In Image File) in Google and Hit Enter. There Are many Website Who gives You the Custom ROM File. The Custom ROM Files Are Between 1Gb To 1.5Gb Size.
Google Search for Rom
Step 3 – Now You Download The Gapps using The OpenGapps Website.
Installing Custom ROM
So Let’s Get Started.
Step 1 – If you are Newly Android User, and You Don’t Know About How To Unlocking Bootloader Then Follow The step That Is Recommend Unloacking BootLoader.
Step 2 – After That, Copy The Rom File And Gapps File To The Computer. And Also Download The Custom Recovery and Also Copy That file Into Computer.
TWRP Recovery
Step 3 – Now, Shut Down Your Phone and Then Press Vol Down + Power Button For 5 Second. Now You can See The Fastboot Mode is Open In Your Device.
Step 4 – Now Connect Your Android Phone (in Fastboot mode) to Your Computer. On Your Computer, Open Cmd and Write Code
If Your Phone is Visible On the List, Then You are Doing Very Well. If Your Device is Not showing in the List, You Will Comment or Contact Us so I will help You With Your Problem.
Step 5 – To install Custom Recovery, First of all, go to your Folder Where You save The Custom Recovery File and press Shift + Right Click That Will Open The Options Menu (Like Show in Image), click on the Open CMD Here or Open PowerShell Here.
Step 6 – Now Write The Command In CMD
Fastboot flash recovery Your_Recovery_name.img
(Put Your Recovery Name in The Your_Recovery_name.img Area.)
For Example:-
My Custom Recovery Name is recovery.img then I am Writing
fastboot flash recovery recovery.img
fastboot, custom rom
Fastboot command Photo.
Step 7 – Now You Can See your Phone is Rebooting In Recovery Mode.
Step 8 – After Custom Recovery Successfully Installed, You Backup Your Data So if Your System is not Probably installed then You Recover The Data From Backup. So Make Sure You Backup Your all File And System.
Backup Data, custom rom
Backup Data for Future Help.
Note: Backup Your Data Is Very Important.
If The Custom Rom is Not Successfully Install in Your Device. So You Can Use the Backup To Normally Restore The Rom.
Step 9 – Now select the Option wipe and Wipe all the Data. After that Go To your Computer And copy the ROM file and Gapps into the Phone Internal Storage.
wipe data, custom rom
Wipe Your Data.
Don’t choose the Internal storage file If You Have Important Data In Android Phone.
Step 10 – After Copying the Files in Your Phone, Go to install Option And Select The Two File And Install, After installing the File, You see the Reboot option. Select The Reboot Option.
Rom, custom rom
Installing Custom Rom And Gapps
Hurry. You Install the Custom ROM To Your Android Phone.
Hello everyone,
My U11 was with a custom ROM.
I wanted to flash it back with an official ROM (for work), and then have 2 distinct phone for work and private.
However, after flashing back the official ROM, now it boots, saying the boot loader is unblock (can even pause the boot), then a black screen, then restarts...
And it loops like this, forever and ever and ever...
(i did the flashing by putting the zip file named "2PZCIMG.zip" on an SD card).
TWRP has disappeared. If i try to get there, i have the icon of a phone, with a read warning sign on it.
After pressing buttons power + vol up, I tried the "reset factory" there.
It did last not even 5 sec (with a successful message).
When i go to boot loader, fastboot devices gives me "???????????" and restarts the phone.
Please don't tell me i bricked it
Any help please ? :x
I'll get you a beer or 2.
Anyone, please ?
Let me ask my question differently.
Are these the symptoms of my phone being bricked ? :x
toto_rigolo said:
Hello everyone,
My U11 was with a custom ROM.
I wanted to flash it back with an official ROM (for work), and then have 2 distinct phone for work and private.
However, after flashing back the official ROM, now it boots, saying the boot loader is unblock (can even pause the boot), then a black screen, then restarts...
And it loops like this, forever and ever and ever...
(i did the flashing by putting the zip file named "2PZCIMG.zip" on an SD card).
TWRP has disappeared. If i try to get there, i have the icon of a phone, with a read warning sign on it.
After pressing buttons power + vol up, I tried the "reset factory" there.
It did last not even 5 sec (with a successful message).
When i go to boot loader, fastboot devices gives me "???????????" and restarts the phone.
Please don't tell me i bricked it
Any help please ? :x
I'll get you a beer or 2.
Click to expand...
Click to collapse
do following, download this tool HTC-RUU_Decrypt_Tool_3.6.8-WINDOWS64.zip extract it and go to the extracted Folder "HTC-RUU_Decrypt_Tool_3.6.8-WINDOWS64" and open a Terminal in it or open terminal and change to Folder with "cd folderPATH" and then you copy or move the "2PZCIMG.zip" to it and Type in Terminal following command for PowerShell Terminal "./RUU_Decrypt_Tool.exe -f name-of-the-2PZCIMG.zip" or for CMD Terminal "RUU_Decrypt_Tool.exe -f name-of-the-2PZCIMG.zip" and type Enter and let it Finish the Firmware extract. now are a New Folder in the "HTC-RUU_Decrypt_Tool_3.6.8-WINDOWS64" Folder "OUT_2PZC_xxxxx" go into it and open Folder firmware and only copy the "android-info.txt" to Desktop and you can Delete the "OUT_2PZC_xxxx" folder. now you rename the "2PZCIMG.zip" to "rom.zip" and Download this ARUWizard from Here ARUWizard to Flash StockROM with Windows, then you extract the downloaded zip and you see the Folder RUU ,now copy or move the "android-info.txt" from Desktop & "rom.zip" into RUU Folder and then start "ARUWizard.exe" and follow the Steps!!! if the Flash Process Fail you must use a newer or the same "2PZCIMG.zip" and do the steps again extract the "android-info.txt" and rename "2PZCIMG" to "rom.zip" and copy it to RUU folder and start "ARUWizard.exe" again. here you find the Files HTC U11 StockROM Files on this Website show the Picture you must click on "View All 117 Files" to see the Full list of Files ,but it work only with "2PZCIMG.zip" they are Signed!!! ps you can not Downgrade your Firmware with this tool or Flash a different branding StockROM, to do this you must Manipulate your device first, and it works with Bootloader Locked or Unlocked!!! After Finish the Steps your back on StockROM
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}