HEY FOLKS,
This THREAD will GUIDE you to flash recovery.img using TERMINAL EMULATOR.
I found many of the people found difficult to flash recovery via FASTBOOT
Here is a SIMPLE method to flash recovery from phone using TERMINAL EMULATOR
Before proceeding make sure your phone is ROOTED
STEPS:
1) Download and Install TERMINAL EMULATOR from play store.
2) download your preferred recovery.img
3) copy the downloaded recovery.img file to sd-card and place it in ROOT of your sd-card (Don't keep the file inside any folder so that we don't have any complications)
4) Open the downloaded TERMINAL EMULATOR
5) Type
Code:
su
grant terminal emulator superuser access.
6) Now type
Code:
flash_image recovery /sdcard/recovery.img
"recovery.img" may be named different when you download, so make sure you type the correct name or else it will not flash
7) done!!! :good: enjoy your new recovery.:victory:
(note: I am not responsible if you mess up with anything)
Screenshot please
Thanks for this. Nice!
Via Sprint HTC One M8 /MultiRom v. 31 TWRP 2.8.5.0/ (primary) *ViperOne 4.3.0 + HyperNova 1.4.5 kernel / (secondary) *BadBoyZ 5.0sense7 / (secondary) *LeeDroid v. 7.0.1 sense7 +HyperNova 1.4.5. { Huge respect and thanks to all of the XDA Devs' and Community for sharing your amazing products, time and education! ?}
Related
Ok so I started the method previously posted before it was linked back to nbecthers method because it supposedly works but I flashed the clockwork it wouldn't flash my custom rom (CM Mod 6.1.1) and returned me to the stock then I tried the correct method and it won't let me adb push flash_img/data/local or mtg0.img to data/local either so I can't cd, chmod the commands to then boot into the stock recovery and flash esprimg.zip followed by clockwork(update.zip cause its already applied but NAND protection stops it from working I guess) because I no longer have a stock recovery to exploit or whatever I have clockwork I have since used androot and root explorer for root used to copy flash_image and mtg0.img to data/local and exploid is in the sqlite_stmt_journals as it should be... So can I run the commands to run flash image and mtg0.img and exploid again from and android shell off my phone with su permissions from androot temp root and then flash a custom image or am a screwed? Or should I run the exploid command toggle wifi and then the flash/mtg commands from android shell or what cause I'm away from a pc and I need to do this to my phone plus it goes to the triangle screen and nothing works I gotta pull the battery...
Honestly, start from ground zero of the updated for 12/30 root method and you will be just fine. Just messing around earlier today I unrooted and rerooted my phone a few times. Stick with eugene373's method from step one on and things should work fine.
Sent from my T-Mobile myTouch 3G Slide using XDA App
I recommend using the one involving the exploid file, it's very simple.
NVM!!! I Stumbled Upon My Own NO PC QUICK ROOT Method!
aaldiar said:
Honestly, start from ground zero of the updated for 12/30 root method and you will be just fine. Just messing around earlier today I unrooted and rerooted my phone a few times. Stick with eugene373's method from step one on and things should work fine.
Sent from my T-Mobile myTouch 3G Slide using XDA App
Click to expand...
Click to collapse
Ok so in my never ending struggle against the Evil Eclair/T-Mo/HTC NAND Protection and the Futility of Trying to flash a ROM With the "Supposed AndRoot QuIck Root Method" As well as a fine point from Nbetcher that the Engineering build must be flashed because Android has NAND protection while running. I have devised my own "No PC ROOT Method!!!"
Required Files (Tested For MT3G SLIDE Latest OTA Unrooted Stock)
1.Download Androot From Location of Choosing (I'm Using Version 1.6.2)
2.Download ESPRIMG.zip (ENG build)
3.Download SlideEng-Package.zip
4.Download Custom Rom Of Your Choosing(Mine Is CM 6.1.1 Stable)
5.Download Android Terminal Emulator(From Market)
6.Download Root Explorer Android (Requires Root) (From Market Or Some Place Online)
7.Download File Explorer (Dev:Adao Team)(From Android Market)
8.Download Latest Clockwork Recovery(I Used 2.5.0.1)
Please Not I Am NOT The DEV Behind these Apps nor am I Resposible For Any Damages You May Incur To Your Device or Warranty by using this Method! Also Before anyone says I repped someone off remeber I accidentally discovered this using 2 failed methods because they essentially cancel each other out.(The Latter Nbetchers works just not after the AndRoot One)!!!
So...
1st Download/Install all needed files from market( File Manager Android Terminal Emulator)
2nd Download all zip images, Recoveries, Roms, apps from phone browser Directly To SD ROOT(Google em until I get links up on Dev Forum)
3rd. Unzip SlideEng-Package.zip To Root using File Manager or Other Zip Program for android(Andro-Zip Works Well)
4th Change Name of Clockwork to Update.zip(Case Sensative)
5th Install AndRoot And Run Root Me With Install Su & Temp Root/Unroot After Reboot Selected(Or Else You Will Boot Loop)
6th Install And Run Root Explorer then Copy and paste flash_img and mtd0.img to /data/local on android device by multi-select copy then RM R/W in program in upper left on data local folder.
7th IMPORTANT!!! Long Press and hold each copied file and set permissions to allow read and write on both user and the lowest option (I Think Dev or system)
8th Run Android Terminal Emulator and type the following commands verbatim spaces included Pressing enter after each line($ n # will be there provided you follwed all steps if not go back to androot and root again):
$ su
# cd /data/local
# chmod 04755 flash_image
# ./flash_image misc mtd0.img
Now power off and reboot using VOL-DOWN + POWER
It'll reboot into the HBoot Screen and ask if you want to Check ESPRIMG.zip after Verifying it will ask you to flash Select Yes (VOL-UP) And Wait DO NOT POWER DOWN OR TAKE OUT BATTERY!!!
Once its Completed it will ask you to Reboot select no Instead and Go To Recovery
Now Select APPLY Update.zip to flash CLOCKWORK RECOVERY YAY!!! :-D Now We Can Flash a Custom Rom With Root and Even Go As Far As S-OFF!!! But Please Be Sure Its Already On Your Micro SD...
Select Wipe Data Factory Reset by Scrolling with VOL- UP/DOWN or Track Pad and Use Power/Trackpad TO Select.
Now Use Install Zip from SD Card to Install Custom Rom(Flash GApps Second if downloaded and desired if using CM Mod 6.1.1) Now Reboot And Enjoy!!! If you Wanna Flash Anything Else Use Rom Manager From Market and Som Custom Roms to Boot into Clockwork!!! Thanks to all the Devs and their tools and immense knowledge for Making this Possible! Thanks To All The ROM Chefs Too!!!
Ok just follow step by step and even you can do this...
Download the .img file from here:
http://www.megaupload.com/?d=T4DAGUR8
Put that on file(Yes The One You Just Downloaded) on the root of your SD Card. open term emulator And type:
su
Then push enter then type:
flash_image recovery /sdcard/recovery.img
Then type Enter.
For adb
Make sure you android sdk folder is in you C: and its named
AndroidSDK
Next open cmd the type: ( AFTER cd\ MAKE SURE YOU PUSH ENTER AFTER EVERY LINE AND SPACE BEFOR YOU TYPE A NEW LINE)
cd\
cd AndroidSDK\tools\
adb reboot bootloader
fastboot flash recovery recovery.img...
NOW THAT WASN'T ROCKET SCIENCE WAS IT!
RECORCES:
http://gridlock.euroskank.com/glacier/recoveries/
Jaywan said:
Ok just follow step by step and even you can do this...
Download the .img file from here:
http://www.megaupload.com/?d=T4DAGUR8
Put that on file(Yes The One You Just Downloaded) on the root of your SD Card. open term emulator And type:
su
Then push enter then type:
flash_image recovery /sdcard/recovery.img
Then type Enter.
For adb
Make sure you android sdk folder is in you C: and its named
AndroidSDK
Next open cmd the type: ( AFTER cd\ MAKE SURE YOU PUSH ENTER AFTER EVERY LINE AND SPACE BEFOR YOU TYPE A NEW LINE)
cd\
cd AndroidSDK\tools\
adb reboot bootloader
fastboot flash recovery recovery.img...
NOW THAT WASN'T ROCKET SCIENCE WAS IT!
RECORCES:
http://gridlock.euroskank.com/glacier/recoveries/
Click to expand...
Click to collapse
That did not work. error recovery.img doesnt exist. when using adb. and flash_image not found when using emu.
I have been flashing recoveries since the G1 and im to stubborn to ask for help, but i cannot get CW3 to flash. Maybe im getting old lol. And i have tried both these methods.
ive tried multiple times..
for terminal emulator after i put in the commands it doesnt do anything. (is that what its supposed to do?) it shows like this
su
flash_image recovery /sdcard/recovery.img (ive renamed file to recovery.img)
then when i goto check Rom manager at the top it says rom manger premium v3.0.0.2
Flash clockwork mod recovery
current recovery:2.5.1.2
latest recovery:2.5.1.2
by the way im currently on the rom
CyanogenMod for Glacier (myTouch 4G) :: V6.1.2-RC2 (12/21/2010, #2)
This is what I got
$ su
# flash_image recovery/sdcard/recovery.img
usage: flash_image partition file.img
#
nyctrini3 said:
This is what I got
$ su
# flash_image recovery/sdcard/recovery.img
usage: flash_image partition file.img
#
Click to expand...
Click to collapse
You're missing a space between the "recovery" and "/sdcard...."
Psyclism said:
You're missing a space between the "recovery" and "/sdcard...."
Click to expand...
Click to collapse
When I include the space there is no action so what is my next step I rebooted into recovery n I'm still on 2512
mightywonton said:
ive tried multiple times..
for terminal emulator after i put in the commands it doesnt do anything. (is that what its supposed to do?) it shows like this
su
flash_image recovery /sdcard/recovery.img (ive renamed file to recovery.img)
then when i goto check Rom manager at the top it says rom manger premium v3.0.0.2
Flash clockwork mod recovery
current recovery:2.5.1.2
latest recovery:2.5.1.2
Click to expand...
Click to collapse
Same thing here man where is Amon_RA recovery lol
That is a CW 3 Recovery for Gingerbread. ROM Manager hasn't been updated so even if you have the correct recovery, ROM manager will still say 2.5.x.x
Reboot into recovery to see if it actually worked. The text will be yellow in 3.x.x.x or blue in 2.5.x.x
If you use terminal emulator it will give you a blank line after you flash_image.
Sent from my HTC Glacier using XDA App
joeyklatzko said:
That is a CW 3 Recovery for Gingerbread. ROM Manager hasn't been updated so even if you have the correct recovery, ROM manager will still say 2.5.x.x
Reboot into recovery to see if it actually worked. The text will be yellow in 3.x.x.x or blue in 2.5.x.x
If you use terminal emulator it will give you a blank line after you flash_image.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
In terminal after I typed the command the next line is blank rebooted into recovery n it said recovery 2512 so what should I do next actually its blue in 2512 so do that mean it worked?
Has anyone here having trouble update their SDK yet? You need to update to GB 2.3
I finally got it working thanks everyone for the help
does flashing cw3 through terminal emulator work?
flash_image not found???
I'm getting this message when attempting to flash the new clockwork recovery image.
Flash_image: not found
Can any of you guys tell me what's going wrong here. I'm using terminal commands and not getting anywhere.
Thanks.
JPongco said:
I'm getting this message when attempting to flash the new clockwork recovery image.
Flash_image: not found
Can any of you guys tell me what's going wrong here. I'm using terminal commands and not getting anywhere.
Thanks.
Click to expand...
Click to collapse
nulights said:
does flashing cw3 through terminal emulator work?
Click to expand...
Click to collapse
Flashing through terminal works
Dwnld file from op it should already say recovery.img
move it to the root of your SD I use Linda file. Next open emulator
type :su then hit enter
type : flash_image recovery /sdcard/recovery.img
Type: enter
you will see absolutely nothing
that's ok just type
reboot recovery if you see cwm in yellow or gold honeycomb color
you're done if not keep trying
That's what I did
JPongco said:
I'm getting this message when attempting to flash the new clockwork recovery image.
Flash_image: not found
Can any of you guys tell me what's going wrong here. I'm using terminal commands and not getting anywhere.
Thanks.
Click to expand...
Click to collapse
Sounds like the file isn't where you're telling it. Make sure the recovery you downloaded is named exactly recovery.img if you are writing:
flash_image recovery /sdcard/recovery.img
Sent from my HTC Glacier using XDA App
flash_image not found.
what is wrong??
flash_image: not found
I'm really not sure what's going on with the emulator but it seems like this command is not part of the script for some reason...
I tried the same commands through adb shell and got the same response "flash_image: not found"
the adb method isn't exactly working out for me although I am persistent. I'm typing the command line EXACTLY and getting this response in the emulator, that's for sure.
finlly flashed cwm3 but everytime try to flash a rom says intallation aborted?
please help:
First off, I can't take credit for this. ninthsense and etherfish discovered the missing information in the ICS files. There are missing permissions for the keyboard backlight in the boot image, and the actual file that controls lights, /system/lib/hw/lights.n1.so is missing some stuff.
This also fixes force-close related freezes by setting the default.prop to insecure and debuggable.
manual method
Now with CWM goodness!
DOWNLOAD LH2 file for official ICS RELEASE
Awesome!
does not work for me...
Worked perfect here, that fixes my only serious issue with the ICS rom.
I'm glad i was of some help . My first significant contribution to android. Will have to get back home to test it.
does not work for me either. used Root Explorer to take the "lights.n1.so" file from download and overwrote it at /system/lib/hw/lights.n1.so, and rebooted several times, and still got nothing
The_Bizzel said:
does not work for me either. used Root Explorer to take the "lights.n1.so" file from download and overwrote it at /system/lib/hw/lights.n1.so, and rebooted several times, and still got nothing
Click to expand...
Click to collapse
Overwriting the file won't work in my opinion. As these files are part of the boot.img and resides inside the ramdisk. So even if you change something in the ramdisk and then reboot you'll return to the original version.
I guess the only way is to flash the boot.img with the files inbuilt in to the ramdisk. So the boot.img posted by "Nardholio" should work.
Mhh just copying the .so file does not work for me to, even after wiping the caches.
I'm going to try this boot.img thing later this day.
Nardholio said:
First off, I can't take credit for this. ninthsense and etherfish discovered the missing information in the ICS files. There are missing permissions for the keyboard backlight in the boot image, and the actual file that controls lights, /system/lib/hw/lights.n1.so is missing some stuff. To fix it, just copy the version from Gingerbread over the ICS version and reboot. Note this requires root. The attached post contains the file you need and an optional boot.img mod that will fix force-close related freezes and will enable the keyboard light to be controlled by third party utilities.
http://forum.xda-developers.com/showpost.php?p=30591025&postcount=42
Click to expand...
Click to collapse
Didn't work for me at first either after I copied and pasted it. But when I went through and opened up a Terminal on my phone to install everything (I always thought I had to use Ubuntu on my computer for it. I don't know why I never even thought of using a Terminal on my phone to do editing on it and all...) and went through the steps on the link (didn't clear my cache), and it all works. Just a heads up for anyone who might be as slow as I was
Both files are required then I guess. Thanks for letting me know.
Sent from my SGH-I927 using xda premium
Nardholio said:
Both files are required then I guess. Thanks for letting me know.
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
confirmed working after both files were pushed. warning to others, do not wipe /dev/block/mmcblk0p9 if you have not verified that boot.img is on /sdcard via terminal emulator or adb shell:
Code:
cd /sdcard
ls
goodluck!
Can anyone help me with this via step by step?
I could use a little help as well
Sent from my SGH-I927 using xda app-developers app
Yea, i could use some help too, after re-writing over the existing file didn't work
OK guys here is the step by step guide :
I'm assuming that you're rooted and are on windows PC :
1. Install root explorer or root browser lite (free) from market. And copy the boot.img and lights.n1.so from keyboard_fix.rar in root of your sdcard(phone).
2. Launch the root explorer and Delete the existing lights.n1.so file from /system/lib/hw (probably you can keep a copy somewhere)
3. Copy the lights.n1.so from your sdcard directory to /system/lib/hw
3. Make sure that the file is presen/copiedt in the directory.
4. Download fastboot.zip file attached to the post and extract it in one of your directory on the pc.
5. Connect your phone through a usb cable and i'm assuming you've the usb drivers for your phone already installed on your pc.
6. Goto command prompt and change to the directory you extracted the zip file into.
7. issue the command "adb shell"
8. You should get a android prompt. Issue the command "su"
9. Issue cd sdcard and then issue "ls". Just to make sure that the boot.img is there.
10. Now issue the following commands:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p9
dd if=/sdcard/boot.img of=/dev/block/mmcblk0p9
11. Reboot and you should get your lights.
Copying the boot.img worked for me
For those who having trouble, look at the Link, posted in the OP
How I did it:
Copy files to sdcard: Use a network enabled file manager or email or drop box (or, or, or) to get boot.img and lights.n1.so to /sdcard
Setup ADB: Google "xda setup adb"
Boot into CWMR: Reboot phone, holding power down (Link: Get CWMR)
Choose in CWMR:
Mounts > Mount sdcard
Mounts > Mound system
Execute Commands on pc
Open Shell/Cmd
Type: adb shell
Type: ls
you should geht a file listening of your root file system
Type: dd if=/dev/zero of=/dev/block/mmcblk0p9
Type: dd if=/sdcard/boot.img of=/dev/block/mmcblk0p9
Type: cp /sdcard/lights.n1.so /system/lib/hw/lights.n1.so
Choose in CWMR:
Wipe Cache
Advanced > Wipe dalvik cache
Reboot system
That was the steps as I remember, no guarantee don't brick your device if you do: use one-click-ics-leak-tool and start from scratch
ninthsense said:
OK guys here is the step by step guide :
I'm assuming that you're rooted and are on windows PC :
1. Install root explorer or root browser lite (free) from market. And copy the boot.img and lights.n1.so from keyboard_fix.rar in root of your sdcard(phone).
2. Launch the root explorer and Delete the existing lights.n1.so file from /system/lib/hw (probably you can keep a copy somewhere)
3. Copy the lights.n1.so from your sdcard directory to /system/lib/hw
3. Make sure that the file is presen/copiedt in the directory.
4. Download fastboot.zip file attached to the post and extract it in one of your directory on the pc.
5. Connect your phone through a usb cable and i'm assuming you've the usb drivers for your phone already installed on your pc.
6. Goto command prompt and change to the directory you extracted the zip file into.
7. issue the command "adb shell"
8. You should get a android prompt. Issue the command "su"
9. Issue cd sdcard and then issue "ls". Just to make sure that the boot.img is there.
10. Now issue the following commands:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p9
dd if=/sdcard/boot.img of=/dev/block/mmcblk0p9
11. Reboot and you should get your lights.
Click to expand...
Click to collapse
Worked! thanks abunch man
LuckRocks said:
Worked! thanks abunch man
Click to expand...
Click to collapse
You are welcome. I also did it just before posting the steps and glad that the biggest bug for the leaked ROM is now fixed.
I see that the lights go off very quickly unless you keep pressing something. It's related to "Touch Key Light Duration" under "display" in the settings. But i see only 1.5 seconds which is set currently and 6 seconds. If i change to 6 it's too much.
Does somebody know how to modify this value according to whatever we need ?
Hello ninthsense,
perfect tutorial, keyboard light is working now.
Thanks,
Mister.Knister
Hummm is their gonna b a flashable zip for this ?
Backup without reboot the phone.....
1st im not its dev.....
2nd you need a rooted phone
Download this files a move them in a folder called onandroid on root folder of sdcard
http://db.tt/d7rlFwiz
And dl this script :
http://db.tt/ANj5g9mX
and move it to root folder of your sdcard.
Open terminal emulator and enter
Su ...enter
Sh onandroid.sh....enter
onandroid.....enter
Tada......
More info here in its dev. Thread
http://forum.xda-developers.com/showthread.php?t=1620255
[v8.00] Online Nandroid / Nandroid Backup without re-booting [CWM + TWRP + 4EXT]
Say THX to ameer1234567890
Sent from my MB525 red lens
bone101 said:
Open terminal emulator and enter
Su ...enter
Sh onandroid.sh....enter
onandroid.....enter
Click to expand...
Click to collapse
Correction:
Requirements:
1. Rooted android phone
2. A terminal emulator installed on phone
3. Latest version of Busybox
5. Some patience
Installation:
1. Put the first two files in /sdcard/onandroid
2. Put onandroid.sh on root of sdcard (/sdcard/onandroid.sh)
Usage:
1. Open terminal emulator
2. Type su to obtain root
3. Type onandroid
4. Wait and watch
THX
Sent from my MB525 red lens
It is a buckup way like recovery's nandroid but can not to the recovery?can it backup system,data,boot,recovery,etc?
Sent from my ME525 using xda app-developers app
Hello Guys
Iam Guiding you today to build your on device rom most Of u can do it but i belive somebudy doesn't know That is Noob Frindly Guide
Requirements
Code:
1-PC
2-Winrar/7zip
oR Root Explorer on Mobile
Part A (Rom Building)
METHOD1
Step1
Code:
Reboot To Recovery
Step2
Code:
Make Nandroid Backup
Step3
Code:
Open Your pc and connect via usb
Step4
Code:
Bull Your clockworkmod folder to pc
Step5
Code:
Extract Templete rom.zip attached below
Step6
Code:
Navigate to your cwm backup
Step7
Code:
Extract System(..).tar
Step8
Code:
Copy The files u extracted (inside system folder u extracted) To Template rom/ System/
[B]NOTE:DONT COPY WHOLE SYSTEM FOLDER - JUST ITS COMPONENTS[/B]
Step9
Code:
Go to Template Rom Folder Select Meta-inf
and system
then add them to new Archive with .zip extintion
Step10
Code:
Flash your rom and enjoy
METHOD 2
Code:
1. Go to treminal emulator
2. Type these commands dont copy that >"
[CODE]
1."su"
2."tar -c system/* >> sdcard/system.tar"
3.navigate to your sd root
4.extract system.tar
5.put its components to template rom>system (like method 1)
6.Enjoy
[/CODE]
Part B (On Device Kernel Packing)
Step 1
Code:
Follow Steps Up From 1-6
Step 2
Code:
Get Boot.img and put it in the root of zip attached (Kernel Template)
Credits
Myaservip
Marcussmith2626
you can also type in terminal emulator
su
tar -c system/* >> sdcard/system.tar
wait until the command promp returns (may take 5 mins so make sure screen timeout is set to at least 15mins to make it easier for you to keep an eye on it without the screen keep turning off)
once done you will have a file called system.tar on the root of your sd card
you can then load this file in android kitchen which is useful for deodexing
or you can just extract it and all your system files will be there to do with as you like - eg put in a flashable zip
note the above requires the following
root
terminal emulator (playstore)
busybox installed (get installer from playstore if not already installed)
my method in spoiler above added to op
How about my data.rfs.tar? Will I Flash again my Tweak on Phone, after reflashing the ROM backup?
U can push them by adb or wait untill i make data script
When I Flash my ROM Backup, It stucks on black screen But Heard the Boot Sound not the animation display.
Try fix premisions
I will update my template if it worked
Or u might deleted my fix premision binary
Be aware dont replace/delete it to avoid bootloops/breaks
myaservip said:
I will update my template if it worked
Or u might deleted my fix premision binary
Be aware dont replace/delete it to avoid bootloops/breaks
Click to expand...
Click to collapse
I'll Try again. *Report Later.