How i flash CWM5 using adb shell?Help please.
http://forum.xda-developers.com/showthread.php?t=1446593
[RECOVERY] ClockworkMod v5.5.0.4
Sent from my GT-I8150 using xda premium
I download CWM5 already , but i dont know how to get in adb shell and flash
whoAnoob said:
I download CWM5 already , but i dont know how to get in adb shell and flash
Click to expand...
Click to collapse
why dont u try flash it via odin ? its the easier and stable way to do it.......
if u keep wan to flash it via adb , there is a video from youtube about the method , try to search it on youtube and follow step by step from it
its easy if u flash with odin,..
Sent from my GT-I8150 using xda premium
what i did for flashing cwm v5.5 is using terminal emulator..
1.make sure phone is rooted
2.get the recovery.img
3.put the recovery.img in root of your sd
4.open terminal emulator
5.just type su then push enter
6.then type dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p13 and push enter
7.after u see notes something like "transfered file in 2.199 seconds", means it works
8.after that just boot into recovery,the cwm should be there..
Flashing CWM 6 over TWRP - Succesfully!
zeroRyuki said:
what i did for flashing cwm v5.5 is using terminal emulator..
1.make sure phone is rooted
2.get the recovery.img
3.put the recovery.img in root of your sd
4.open terminal emulator
5.just type su then push enter
6.then type dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p13 and push enter
7.after u see notes something like "transfered file in 2.199 seconds", means it works
8.after that just boot into recovery,the cwm should be there..
Click to expand...
Click to collapse
Many thanks on this! After two plus years from this post I was struggling with the same trying to flash CWM 6 over TWRP. This one helped.
I did it through TWRP's terminal (Advanced / Terminal Command), and after choosing folder where the img is, typing the command you gave.
Related
hi guys, i have clockworkmod recovery version 2.5.1.3 and i can't access from pc it by sending 'adb shell' commands.. my question is if i have to use adb_recovery.img stock image or if exist the clockworkmod with adb support..
thanks for any answers
do you have the drivers installed? try the command "adb devices" and see if adb can recognise your device.
of course, it can, but only if i use adb_recovery.img image from here: http://xdafil.es/?path=DesireHD/
i am asking if i can do this with clockwork mod too.. when i try to use some commands, i can't even replace system apps in developer mode when charging due to system's mount r/o --> is there some way to mount for example system partition to r/w ? for example command: adb shell mount /system r/w ?
so.. can i use the adb shell when i am in clockwork mod recovery, not the adb_recovery (stock one) ? thanks for your answer
you can either use the command "adb remount" or while logged into shell just use the command "mount /system" either command mounts /system as r/w
thanks mate.. but how i can access my phone through adb.. it's only one way ?
i mean go to bootloader, then stock recovery (adb) or can i use clockwork mod with adb too.. i don't wanna reflash the recovery every time, i need to replace system app.. atm i have to reboot into bootloader, then type fastboot flash recovery adb_recovery.img ..but i don't want.. i just want to type fastboot flash recovery clockwork_recovery.img (2.5.1.3) and when i am at bootloader i would like to go to recovery and use adb shell commands in clockwork mod recovery version 2.5.1.3.. but i am not able to do ..so is the any way how i can get the adb working in clockwork mod recovery or have i to use the stock one ?
blueeyeblue said:
thanks mate.. but how i can access my phone through adb.. it's only one way ?
i mean go to bootloader, then stock recovery (adb) or can i use clockwork mod with adb too.. i don't wanna reflash the recovery every time, i need to replace system app.. atm i have to reboot into bootloader, then type fastboot flash recovery adb_recovery.img ..but i don't want.. i just want to type fastboot flash recovery clockwork_recovery.img (2.5.1.3) and when i am at bootloader i would like to go to recovery and use adb shell commands in clockwork mod recovery version 2.5.1.3.. but i am not able to do ..so is the any way how i can get the adb working in clockwork mod recovery or have i to use the stock one ?
Click to expand...
Click to collapse
adb should work fine with cwm, i have never tried it on the DHD to be honest, but im always using adb with my desire while in cwm recovery
AndroHero said:
adb should work fine with cwm, i have never tried it on the DHD to be honest, but im always using adb with my desire while in cwm recovery
Click to expand...
Click to collapse
do you only boot to recovery or you go to the mounts settings and you choose mount /system /data or how ?
My usb is corroded and I cannot connect to a computer to get into fastboot. I'm trying to be as careful as I can so that I don't brick my phone, but I need to update my CWM Recovery. If anyone has suggestions, or guidance, any help would be much appreciated. Thank you!
I have searched for this and haven't seen anything related to AT&T SGIII's. I have tried using Flash Image GUI, but it is only for Sprint.
Model SGH-I747M
Android 4.04
Kyan Rom 1.5
----------------------------------------***EDIT***------------------------------------------
EDIT for those searching the same question:
The best answer to my questions was provided by BCSC, THANKS! Worked great!
Follow these steps exactly and you will have the latest Recovery running. You do not need a PC for this method.
1) Download correct Clockworkmod ot TWRP (touch or regular as you wish) for your device
2) Rename it to recovery.IMG and place it at the root of your internal sdcard
3) Download and install terminal emulator from the Play Store
4) Run the terminal and
type: su (press enter)
Then type: dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p18 (press enter)
Be sure that you have typed the above code correctly. You will not see a confirmation. It is done almost instantly.
5) Reboot into recovery and enjoy
I don't remember the commands, had to do it about 3 years ago, but you can do it from terminal emulator. A Google search should give the results you need.
I don't use cwm prefer twrp which can be done from the goomanger app I believe it can be done from rom manager though.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Just use rom manager I find its easy as pie, just make sure you install the proper recovery
https://play.google.com/store/apps/details?id=com.koushikdutta.rommanager
Sent from my GT-N8010 using xda app-developers app
mkfryan said:
I don't remember the commands, had to do it about 3 years ago, but you can do it from terminal emulator. A Google search should give the results you need.
I don't use cwm prefer twrp which can be done from the goomanger app I believe it can be done from rom manager though.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
I considered TWRP, but was scared to change out of fear something would go wrong... I think I will probably go that route. thanks!
EDIT: Tried to use Goo.mgr to install TWRP. It downloaded and went through the process, but recovery still loads CWM.
Found this on TWPR's website:
Paul Ireland • 11 months ago
So, I had a question. I couldn't really find any guides on how to install this if you already have CWM. I tried using goomanager to install and it would go through and say everything had completed, but when I'd reboot into recovery, I'd still have CWM.
My response, was to .tar the recovery image and install via ODIN.
Everything seems to have installed OK, I successfully flashed a ROM with it, but are there any drawbacks (other than the flash counter) to this method?
ckavvouras said:
Just use rom manager I find its easy as pie, just make sure you install the proper recovery
Sent from my GT-N8010 using xda app-developers app
Click to expand...
Click to collapse
Thank you, I have a CWM recovery installed.. I'm trying to update it, but cannot select D2att from the Recovery Setup. It only shows d2mtr for SGIII... I downloaded the correct file D2att.img from CWM.com, but do not know how to manually install the .img file without using fastboot.
bweyadn said:
Thank you, I have a CWM recovery installed.. I'm trying to update it, but cannot select D2att from the Recovery Setup. It only shows d2mtr for SGIII... I downloaded the correct file D2att.img from CWM.com, but do not know how to manually install the .img file without using fastboot.
Click to expand...
Click to collapse
Follow these steps exactly and you will have the latest Recovery running.
1) Download correct Clockworkmod ot TWRP (touch or regular as you wish) for your device
2) Rename it to recovery.IMG and place it at the root of your internal sdcard
3) Download and install terminal emulator from the Play Store
4) Run the terminal and
type: su (press enter)
Then type: dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p18 (press enter)
Be sure that you have typed the above code correctly. You will not see a confirmation. It is done almost instantly.
5) Reboot into recovery and enjoy
@BCSC
Good find out know how! Glad someone at least knew what I was talking about :beer:
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
You can also flash it in Mobile Odin.
Press the menu button on the device selection screen, scroll down and pick your model.
Sent from my GT-N8010 using xda app-developers app
Not able to flash Recovery
bweyadn said:
My usb is corroded and I cannot connect to a computer to get into fastboot. I'm trying to be as careful as I can so that I don't brick my phone, but I need to update my CWM Recovery. If anyone has suggestions, or guidance, any help would be much appreciated. Thank you!
I have searched for this and haven't seen anything related to AT&T SGIII's. I have tried using Flash Image GUI, but it is only for Sprint.
Model SGH-I747M
Android 4.04
Kyan Rom 1.5
----------------------------------------***EDIT***------------------------------------------
EDIT for those searching the same question:
The best answer to my questions was provided by BCSC, THANKS! Worked great!
Follow these steps exactly and you will have the latest Recovery running. You do not need a PC for this method.
1) Download correct Clockworkmod ot TWRP (touch or regular as you wish) for your device
2) Rename it to recovery.IMG and place it at the root of your internal sdcard
3) Download and install terminal emulator from the Play Store
4) Run the terminal and
type: su (press enter)
Then type: dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p18 (press enter)
Be sure that you have typed the above code correctly. You will not see a confirmation. It is done almost instantly.
5) Reboot into recovery and enjoy
Click to expand...
Click to collapse
.
Hey.. I'm trying really hard to flash a custom recovery on my A116 but believe me... This above method isn't working..
And even I tried SP Flash tools method.. Even dat is not working...
Doesn't works!!!
It does not works I followed all the steps..
SuryanshMishra2002 said:
It does not works I followed all the steps..
Click to expand...
Click to collapse
Does your USB port work? If it does, you can flash TWRP via Odin.
My odin doesn't flashes it.
I did all the steps that we should do to flash a recovery but when it completes my device stucks at the boot logo and then again i have to flash my stock recovery to get it back running.
Which recovery are you flashing? This is TWRP for the d2lte: https://dl.twrp.me/d2att/
Download the latest tar version of TWRP, open Odin, uncheck everything except f.reset time, flash, when you see reset" in the status window, remove USB cable, remove battery, replace battery, boot directly into recovery mode.
Not working
Thanks for the suggestion but i did all the same steps but not working i download TWRP officially but when I flash it with odin it stucks at the boot and then I have to flash the stock recovery to get it back running.
Just to confirm but the phone being flashed is an i747?
Why not buy a new usb cable?
Will this method of the Android Emulator will work for every other Android Phone or just for Samsung ?
filip_pine said:
Will this method of the Android Emulator will work for every other Android Phone or just for Samsung ?
Click to expand...
Click to collapse
The shell command referenced in the OP dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p18 is highly device specific. You would need to make sure you use the right command for your device, as you are specifying the recovery partition with /dev/block/mmcblk0p18. Having said that, newer devices which use the A/B partition scheme don't have a recovery partition, so this entire thread is not applicable.
post-mortem said:
The shell command referenced in the OP dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p18 is highly device specific. You would need to make sure you use the right command for your device, as you are specifying the recovery partition with /dev/block/mmcblk0p18. Having said that, newer devices which use the A/B partition scheme don't have a recovery partition, so this entire thread is not applicable.
Click to expand...
Click to collapse
Thank you, i understand now... i was going to try this on Huawei Mate 20 X. Thank you for the details. Cheers
Hey everybody,
after installing cwm 6.0.3.2 I installed 6.0.4.5. Now I get a bluescreen when I want to start recovery. I know there is a way to install a new recovery in android with the terminal emulator but i can't remember the command and the block device... yes I know I can update the recovery with Odin but now I have not the possibility to do it with a computer. So if anyone knows the command it would be nice if he could help me
Sent from my GT-S5660 using xda app-developers app
Ok I flashed the new recovery with flash_image. So if someone has the same problem here is how i did it:
!It worked on my phone but i don't know if it will work also on your phone. I am not responsible for any damage!
1. You need the recovery.img file. Just extract the zip file you downloaded to flash the recovery.
2. Open terminal emulator
3. Write "su" and click enter.
4. Write "flash_image recovery /sdcard/pathtoimage/recovery.img" and click enter.
Sent from my GT-S5660 using xda app-developers app
CWM 5.0.2.7 works perfectly fine to. ---GIO ST5660M
I have a ze551ml I have rooted and unlocked my bootloader. when i went to install twrp i put the file on my sd card and when i go to
adb and put the command in su then dd if=/sdcard/twrp.img of=/dev/block/by-name/recovery its telling me twrp no such file or directory. Anyone tell me what im doing wrong? thank you
Make sure you are dropping the file on internal SD and not external.
I put it in both just in case . do i have the command wrong? my twrp is 12mb
the error im getting is no such file or directory.
Why not flash by recovery?
anyone have any suggestions?
r u sure the twrp file name is correct?
yeah its twrp.img
Try /storage/sdcard0
Can use Flasify app to flash recovery image.
Or Partition backup app to flash recovery partition.
Sent from my SM-A300H using XDA Free mobile app
flashify still hangs no idea hwo to use the partition app. tried downloading twrp on the playstore but my model isnt listed. could i use another asus phone thats listed>?]
new line command for sdcard0 would be this? dd if=/storeage/sdcard0/twrp.img of=/dev/block/by-name/recovery
still wont work
/storage/sdcard0/
Or
/mnt/sdcard/
Sent from my SM-A300H using XDA Free mobile app
from ur pc
adb reboot bootloader
phone will reboot to fastboot
verify that ur device is detected by
fastboot devices
then do fastboot flash recovery "path to the twrp file on the pc"
for example "fastboot flash recovery d:\twrp.img"
Do that on ur own risk
For some reason doing it that way worked lol
did fastboot flash recovery c:\twrp.img
shrug, thank you to whomever suggested that!!!!
I recently flashed the korean LP build on my V500. Since its terribly slow I wanted to move to CM. I read that TWRP is required to flash it and hence tried installing TWRP using both the TWRP Manager APP and flashify but neither of them seems to work as they are meant to work only over KK bootlaoader. Is there a ways to install TWRP over LP bootloader?
You need to install kitkat bootloader first and then install twrp (root is required):
1) Download kitkat bootloader: https://www.androidfilehost.com/?fid=24352994023707804
2) Extract the 6 bootloader img files and copy them to the internal sdcard.
3) Install Terminal Emulator and open it.
4) Run the following commands (grant root access to Terminal Emulator after the first command):
Code:
su
dd if=/sdcard/aboot.img of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/sdcard/rpm.img of=/dev/block/platform/msm_sdcc.1/by-name/rpm
dd if=/sdcard/sbl1.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/sdcard/sbl2.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl2
dd if=/sdcard/sbl3.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl3
dd if=/sdcard/tz.img of=/dev/block/platform/msm_sdcc.1/by-name/tz
5) Download latest official TWRP, rename it to twrp.img and copy it to the internal sdcard.
6) Open Terminal Emulator and run the following commands (needs root again):
Code:
su
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
7) You are done! Reboot to recovery and flash any rom you want.
fefifofum said:
You need to install kitkat bootloader first and then install twrp (root is required):
1) Download kitkat bootloader: https://www.androidfilehost.com/?fid=23991606952613675
2) Extract the 6 bootloader img files and copy them to the internal sdcard.
3) Install Terminal Emulator and open it.
4) Run the following commands (grant root access to Terminal Emulator after the first command):
Code:
su
dd if=/sdcard/aboot.img of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/sdcard/rpm.img of=/dev/block/platform/msm_sdcc.1/by-name/rpm
dd if=/sdcard/sbl1.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/sdcard/sbl2.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl2
dd if=/sdcard/sbl3.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl3
dd if=/sdcard/tz.img of=/dev/block/platform/msm_sdcc.1/by-name/tz
5) Download latest official TWRP, rename it to twrp.img and copy it to the internal sdcard.
6) Open Terminal Emulator and run the following commands (needs root again):
Code:
su
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
7) You are done! Reboot to recovery and flash any rom you want.
Click to expand...
Click to collapse
Wohooo it woked! Finished flashing you unofficial CM build. Thanks and keep rocking!
Hpw do you root stock lp v500?
Sent from my LG-V500 using Tapatalk
that's exactly what i was thinking. what did you do ravi?
Same question here... On. Stock lollipop Korean version but assume I need to be rooted to try the steps detailed above?
If you don't have access to a custom recovery, I guess you could root using this method (I didn't test it), you will also need LG drivers.
ravi_buz said:
wohooo it woked! Finished flashing you unofficial cm build. Thanks and keep rocking!
Click to expand...
Click to collapse
worked for me too. Thanks.
---------- Post added at 08:55 AM ---------- Previous post was at 08:49 AM ----------
Dri94 said:
Hpw do you root stock lp v500?
Sent from my LG-V500 using Tapatalk
Click to expand...
Click to collapse
Root using the iroot method http://forum.xda-developers.com/lg-g-pad-83/general/vk810-downgrade-required-t3116336
fefifofum said:
You need to install kitkat bootloader first and then install twrp (root is required):
1) Download kitkat bootloader: https://www.androidfilehost.com/?fid=23991606952613675
2) Extract the 6 bootloader img files and copy them to the internal sdcard.
3) Install Terminal Emulator and open it.
4) Run the following commands (grant root access to Terminal Emulator after the first command):
Code:
su
dd if=/sdcard/aboot.img of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/sdcard/rpm.img of=/dev/block/platform/msm_sdcc.1/by-name/rpm
dd if=/sdcard/sbl1.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/sdcard/sbl2.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl2
dd if=/sdcard/sbl3.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl3
dd if=/sdcard/tz.img of=/dev/block/platform/msm_sdcc.1/by-name/tz
5) Download latest official TWRP, rename it to twrp.img and copy it to the internal sdcard.
6) Open Terminal Emulator and run the following commands (needs root again):
Code:
su
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
7) You are done! Reboot to recovery and flash any rom you want.
Click to expand...
Click to collapse
thank you for the guide I could boot into recovery but after I rebooted normally (i didn't do anything in TWRP) I got a boot error cause: boot certification verify. will installing cm12.1 solve the problem despite that flashing roms won't flash boot partition? or I should go to download mode and install stock rom? i still can boot to TWRP but not the rom
Where exactly shall I copy the img files to?
Have tried to copy them to the following places:
/
/sdcard/
/data/media/
/data/media/0
Also tried to use sd-card in command instead of sdcard, but I always get the same error; No such file or directory
Any suggestions?
Finally got it to work.
For some unknown reason Terminal Emulator would not accept the location for the files when I placed them under /sdcard/
Moved the *.img files to /storage/emulated/0, and used this location in the commandos instead of /sdcard/
Sorry for kind of off topic but I recently had the same reboot experience on the VK810.4G. It normally works and works again now. It works now too and was doing lots of unrelated things to my tablet so no idea what caused or fixed the issue.
Secure Booting Error
fefifofum said:
You need to install kitkat bootloader first and then install twrp (root is required):
...
7) You are done! Reboot to recovery and flash any rom you want.
Click to expand...
Click to collapse
Hi
thanks for the details,but after flashing TWRP I cannot boot into the system anymore:
"Secure booting Error!"
Cause : boot certification verify"
I can still boot into TWRP,but there seems to be something wrong with the Kitkat-Boolader...
Is there a another way to install TWRP from 5.02 or do I have to go back to Stock 4.2 with the LG-Tool ?
cheers
Donald
DonaldXP said:
Hi
thanks for the details,but after flashing TWRP I cannot boot into the system anymore:
"Secure booting Error!"
Cause : boot certification verify"
I can still boot into TWRP,but there seems to be something wrong with the Kitkat-Boolader...
Is there a another way to install TWRP from 5.02 or do I have to go back to Stock 4.2 with the LG-Tool ?
cheers
Donald
Click to expand...
Click to collapse
Hello there, look what i did .. Lollipop bootloader
Just do what u want to do in TWRP and then flash this LP bootloader files through Terminal in TWRP > u can boot again into stock LP.
Upu said:
Hello there, look what i did .. Lollipop bootloader
Just do what u want to do in TWRP and then flash this LP bootloader files through Terminal in TWRP > u can boot again into stock LP.
Click to expand...
Click to collapse
Thanks! I will try that.
cheers Donald
DonaldXP said:
Thanks! I will try that.
cheers Donald
Click to expand...
Click to collapse
You can put these files onto microSDcard and use the same commands just like flashing KitKat bootloader.
DonaldXP said:
Hi
thanks for the details,but after flashing TWRP I cannot boot into the system anymore:
"Secure booting Error!"
Cause : boot certification verify"
I can still boot into TWRP,but there seems to be something wrong with the Kitkat-Boolader...
Is there a another way to install TWRP from 5.02 or do I have to go back to Stock 4.2 with the LG-Tool ?
cheers
Donald
Click to expand...
Click to collapse
I have the same error, but i am not able to boot into TWRP or system.
i cant even go to stock recovery. it just displayes
"Secure booting Error!"
Cause : boot certification verify"
any way to get around this?
Upu said:
Hello there, look what i did .. Lollipop bootloader
Just do what u want to do in TWRP and then flash this LP bootloader files through Terminal in TWRP > u can boot again into stock LP.
Click to expand...
Click to collapse
Hey! Thanks for the tip! Just to clarify: when you flash the LP bootloader do you lose access to TWRP?
In the Stock installs of LP (HK or Korean) I've tried the LP bootloader appears to be "locked" (can't think of the right term) so that you can't access stock recovery from key strokes. Can you still keystroke boot into TWRP?
Many thanks!
Deleted, never mind.
My tab don't want to restart ... black screen
Hello,
I just try ... I have an error message duing the process ... I ty to restart the tab and ... the tab don't want to restart ..
Could someone help me?
I try to by pressing for a long time the power button but nothing.
Thanks in advance