I was just wandering if anyone has tried this before I attempt this. Would it be possible to use terminal emulator to flash a kernel without having to hook it up to a computer?
Sent from my R800x using xda app-developers app
How do you figure? We use fastboot.exe to flash kernels.
Solar.Plexus said:
How do you figure? We use fastboot.exe to flash kernels.
Click to expand...
Click to collapse
Reboot fastboot flash boot img. On my incredible 2, you could enter the hboot and flash img files like entering it from the computer, it did it automatically as long as it was named properly, you can enter fastboot mode on this phone by holding search when powering on, could you not use terminal emulator to instruct it to bout into fastboot mode and flash file?
Sent from my R800x using xda app-developers app
jeremytn86 said:
Reboot fastboot flash boot img. On my incredible 2, you could enter the hboot and flash img files like entering it from the computer, it did it automatically as long as it was named properly, you can enter fastboot mode on this phone by holding search when powering on, could you not use terminal emulator to instruct it to bout into fastboot mode and flash file?
Sent from my R800x using xda app-developers app
Click to expand...
Click to collapse
That's a pretty interesting idea. Have you tried it? It would be awesome if it works then we wont need cpu to flash kernels anymore.
Sent from my r800x using xda developers app
abdel12345 said:
That's a pretty interesting idea. Have you tried it? It would be awesome if it works then we wont need cpu to flash kernels anymore.
Sent from my r800x using xda developers app
Click to expand...
Click to collapse
No I have not as I have no access to pc right now and I'm not comfortable with this phone yet as it is a lot different with partitions and such from what I'm used to, that's why I was wandering if anyone else has yet. I don't even know if cwm backs up boot img our system partition on this phone, I'm honda do done digging around with root explorer and try to get a better understanding of things...
Sent from my R800x using xda app-developers app
My last comment was stupid, of course it doesn't back up boot img.as it can't be flashed in this phones recovery any way. It does indeed back up system though, but I noticed out was in yaff format instead of tar...
Sent from my R800x using xda app-developers app
its because the recovery is located in kernel unlike other phones that have it in a different location. thats why we can't flash kernels from recovery.
"We are the fire that will consume them, belly and bowel, head and heart, many flames of us, but one fire."
Related
So as will be immediately obvious, I am new to posting on this site and I'm sure the title will explain why. Before I start, I was using (the 'was' will be explained later) a rooted stock ROM and I had not backed it up (the instructions I used forgot to mention it).
The 2.17 HOX OTA update was finally released by three (I'm currently on 1.28) and I hoped that this update would fix several problems I've been having (standard HOX problems like battery life, camera quality, lag, and an ever growing system data). So I was fairly desperate to install this update, but when I tried clockwork recovery told me that it failed, and by using google I discovered that I'm not the only one with this problem.
This where I get stupid. In desperation to install this update I found that SuperSu has an option to full unroot and I hoped that this would reinstall the stock recovery in the process, but now I am left with an unrooted phone with clockwork recovery installed.
If anyone can help me reinstall the stock recovery so I can install this update I'd very much appreciate it. I apologise if I was long winded, I just felt it better to try and explain the whole situation.
Sent from my HTC One X using xda app-developers app
I'm not sure what's stopping you from installing the stock recovery?
fastboot flash recovery stock-recovery.img
Thanks for replying. I'm not very knowledgeable at this so I'm not sure how to, and would I need to use a computer or can I do it directly on my phone?
Sent from my HTC One X using xda app-developers app
adb reboot-bootloader
adb flash recovery recovery.img
Click to expand...
Click to collapse
do you have the stock reocvery.img?
No I don't think so, can I download it? Should I already have it, and if so where would it be?
Sent from my HTC One X using xda app-developers app
Mbennett156 said:
No I don't think so, can I download it? Should I already have it, and if so where would it be?
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
hold on ill upload it for you
Thanks
Sent from my HTC One X using xda app-developers app
Mbennett156 said:
Thanks
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
recovery for 1.28
hamdir said:
recovery for 1.28
Click to expand...
Click to collapse
thanks so much. how do i flash it? if it's too much trouble i'm sure i could find it on google
@Mbennet
hamdir said:
recovery for 1.28
Click to expand...
Click to collapse
Place it in your fastboot Android-SDK folder on your PC (C:/Android-SDK/platform-tools)
Put phone into fastboot USB
Open command prompt on PC
CD c:/Android-SDK/platform-tools
fastboot flash recovery recovery.img
Sent from my Nexus 7 using XDA Premium HD app
chrisjcks said:
@Mbennet
Place it in your fastboot Android-SDK folder on your PC (C:/Android-SDK/platform-tools)
Put phone into fastboot USB
Open command prompt on PC
CD c:/Android-SDK/platform-tools
fastboot flash recovery recovery.img
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
thanks so much for your help and quick replies my phone is currently on low battery as i've spent all day frantically trying to figure this out, but when it is charged i'll let you know if this is successful :good:
EDIT: the computer i'm using at the moment is not the same computer that i used when i rooted (that one broke unfortunately) can i just create that folder or do i need to redownload other files?
Mbennett156 said:
thanks so much for your help and quick replies my phone is currently on low battery as i've spent all day frantically trying to figure this out, but when it is charged i'll let you know if this is successful :good:
EDIT: the computer i'm using at the moment is not the same computer that i used when i rooted (that one broke unfortunately) can i just create that folder or do i need to redownload other files?
Click to expand...
Click to collapse
You need to install Android SDK on the PC you want to do this on.
http://developer.android.com/sdk/index.html
Update/install everything on it once installed.
Then you can begin.
Sent from my Nexus 7 using XDA Premium HD app
chrisjcks said:
@Mbennet
Place it in your fastboot Android-SDK folder on your PC (C:/Android-SDK/platform-tools)
Put phone into fastboot USB
Open command prompt on PC
CD c:/Android-SDK/platform-tools
fastboot flash recovery recovery.img
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
I have just successfully reinstalled the stock recovery, and although I am very grateful for your help, you forgot to mention the next step which was to type "fastboot oem lock" on command prompt.
Thanks again!
Mbennett156 said:
I have just successfully reinstalled the stock recovery, and although I am very grateful for your help, you forgot to mention the next step which was to type "fastboot oem lock" on command prompt.
Thanks again!
Click to expand...
Click to collapse
I would have done had you kept your ongoing progress posted.
But guess you figured it out yourself, congrats.
Sent from my HTC One X using XDA Premium HD app
Is there any way to install a different Kernel directly from the CWM, or something?
So far, no?
RoboticBuddy said:
Is there any way to install a different Kernel directly from the CWM, or something?
Click to expand...
Click to collapse
You can flash a new kernel using Fastboot or FlashTool. That's simple enough for me.
If your on a unlocked bootloader u can locked bootloaders will either brick your phone or send u too a bootloop
sent from my r800x using darkforest Rom 3.0.5 on locked bootloader
As far as I know, flashtool is the only way. Just fastboot and flash the kernel from that.
You can flash it thru ADB, by command "fastboot flash boot nameofimage.img", this isnt possible 2install it thru CWM, since CWM can install something to system partition but kernel isnt available from root partition.
Sent from my R800i using xda app-developers app
Solar.Plexus said:
You can flash a new kernel using Fastboot or FlashTool. That's simple enough for me.
Click to expand...
Click to collapse
Yes, but I just need an alternative to flash new kernels on the go, whenever I am not at my computer.
So I guess there isn't any way of doing so. Thanks for the help!
R800i. 'Nuff said.
leetxperia said:
You can flash it thru ADB, by command "fastboot flash boot nameofimage.img", this isnt possible 2install it thru CWM, since CWM can install something to system partition but kernel isnt available from root partition.
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
That has nothing to do with ADB. It's done with fastboot
You will never be able to flash a kernel directly from CWM. This is because the recovery (CWM) is inside the kernel. Other devices (my Transformer Prime and Sensation) can.
I've successfully rooted my phone. I tried to install Slimbean Primo U, but I got stuck at the welcome screen with the red text. So I did a full wipe (cache/format), then tried again, but to no luck. So I tried flashing the hellboy kernel, did another full wipe following the steps of this guidline, and it seemed to work, but now I'm stuck on a black boot screen that says "Android" - there's a shining animation across it. I've been here for about 20 minutes already.
Did you use the latest kernel-
boot-HELLBOY-201212251747.img?
What command did you use for flashing it?
The correct command is
fastboot flash boot boot.img
Also,did you mistakenly flash it in Hboot,instead of fastboot?
Sent from my One V using xda app-developers app
mihirengg19 said:
Did you use the latest kernel-
boot-HELLBOY-201212251747.img?
What command did you use for flashing it?
The correct command is
fastboot flash boot boot.img
Also,did you mistakenly flash it in Hboot,instead of fastboot?
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
Yes, I did use all those proper commands.
How would I go about mistakenly flashing it in Hboot?
When I started the bootloader, I went into fastboot option and did it from there. Was that the right process?
Yes,it is to be flashed in fastboot.
When you connected the phone to your PC in fastboot,did it say 'fastboot USB' in red?
Sent from my One V using xda app-developers app
exyggel 583
mihirengg19 said:
Yes,it is to be flashed in fastboot.
When you connected the phone to your PC in fastboot,did it say 'fastboot USB' in red?
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
I don't recall that it said that. Do you want me to check? Should I boot into bootloader? I still have that "Android" animation going.
Yes,go into bootloader by holding power for 10+seconds until screen goes black,then release power and hold volume down.then bootloader pops up.from there go to fastboot,connect phone to PC and see whether it says fastboot usb.
if yes,then again flash the kernel and see whether the command prompt says something like this at the end
Sending boot.img
<Okay>
Writing boot.img
<Okay>
Finished.
Edit:How much was your battery when you last saw?
Sent from my One V using xda app-developers app
mihirengg19 said:
Yes,go into bootloader by holding power for 10+seconds until screen goes black,then release power and hold volume down.then bootloader pops up.from there go to fastboot,connect phone to PC and see whether it says fastboot usb.
if yes,then again flash the kernel and see whether the command prompt says something like this at the end
Sending boot.img
Okay
Writing boot.img
Okay
Finished.
Edit:How much was your battery when you last saw?
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
I could not tell you the battery but I went into this with a full charge about an hour ago.
Yes I got "fastboot usb" and I flashed it and this is what it said:
sending 'boot' (2972 KB)...
OKAY [ 2.273s]
writing 'boot'...
OKAY [ 1.591s]
finished. total time: 3.869s
Now I rebooted and am back at the Android animation.
OK,that means you have the proper driver setup.did your upgrade your Hboot?because there are some problems with the newer versions.
Sent from my One V using xda app-developers app
mihirengg19 said:
OK,that means you have the proper driver setup.did your upgrade your Hboot?because there are some problems with the newer versions.
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
I think I might have. Is there any way to check? Is there any way to downgrade? This is my first root and I'm just following guides.
OK,I don't have much knowledge about downgrading Hboots.did you make a backup of the stock ROM before flashing Slim Bean?if yes,try restoring it.or download a sense ROM like Suprimo and see.
Sent from my One V using xda app-developers app
mihirengg19 said:
OK,I don't have much knowledge about downgrading Hboots.did you make a backup of the stock ROM before flashing Slim Bean?if yes,try restoring it.or download a sense ROM like Suprimo and see.
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
I tried restoring my backup, but it too got stuck on the plain HTC screen with the red disclaimer text.
Downloading Suprimo now; will edit this post.
Ok,put the backup on your PC.open it using winrar or 7zip and extract the boot.img out of it.then flash it and then restore the backup.
Sent from my One V using xda app-developers app
mihirengg19 said:
Yes,go into bootloader by holding power for 10+seconds until screen goes black,then release power and hold volume down.then bootloader pops up.from there go to fastboot,connect phone to PC and see whether it says fastboot usb.
if yes,then again flash the kernel and see whether the command prompt says something like this at the end
Sending boot.img
Writing boot.img
Finished.
Edit:How much was your battery when you last saw?
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
Dude, you are really doing a great job helping people.. I have seen you writing the same post literally hundreds of times. I even gave you a thanks for it.. you should be termed" recognised helper":thumbup:
Sent from my One V using xda app-developers app
Okay so I got SuPrimo working.
I saw sohamm_sss was running a different kernel then the ones we were talking about so I gave it a download, gave it a flash, and it worked!
Glad to hear thatBTW,Which kernel did you flash for Suprimo?
Sent from my One V using xda app-developers app
mihirengg19 said:
Glad to hear thatBTW,Which kernel did you flash for Suprimo?
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
Whatever the newest Titanium KISS is.
Thanks a lot for your help tonight; thought I was going to lose more sleep than I did.
Yes,that's the sense kernel.I am sensing that your Hboot is upgraded,that's why you will have to downgrade it before flashing any JB ROM.but,try once more and flash CM10 or Paranoid Android and see whether it boots.
But,atleast,we have sorted out that you have no driver problems,you are able to flash kernels and ROMs with full wipes.
And,if you will try to flash a JB ROM,also format everything in the mounts and storage menu in the recovery.sd-ext format will give error,don't worry.but,don't format sdcard.
Sent from my One V using xda app-developers app
I just unlocked my bootloader and rooted my Gnex...but when I try to go into recovery I just get a android guy with a red exclamation mark..Why?...and how do I fix this??
I used the gnex toolbox if that makes a difference
Sent from my Galaxy Nexus using xda app-developers app
neo_x22000 said:
I just unlocked my bootloader and rooted my Gnex...but when I try to go into recovery I just get a android guy with a red exclamation mark..Why?...and how do I fix this??
I used the gnex toolbox if that makes a difference
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
That is the stock recovery.
Tool kits are bad JuJu if you don't know what you are doing. Have you read any of the sticky guides? If not, you really should before something really goes wrong. Just a heads up.
Sent from my Galaxy Nexus using xda premium
You should flash the CWM recovery again.
Since you were able to unlock the bootloader, which means you have the drivers installed as well as adb.
Type this command fastboot flash recovery recovery.img
Get the recovery image from here, place it in the same folder where ABD is located and rename the recovery_xjljljdjlx_djljd.img to recovery.img
OR just follow this link.
http://forum.xda-developers.com/showthread.php?t=1757146
neo_x22000 said:
I just unlocked my bootloader and rooted my Gnex...but when I try to go into recovery I just get a android guy with a red exclamation mark..Why?...and how do I fix this??
I used the gnex toolbox if that makes a difference
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Use a file explorer (you can install one from the market i.e. es file explorer), remount /system with read write permissions, navigate to /system, rename install-recovery.sh or recovery-from-boot.p to install-recovery.sh.bak or recovery-from-boot.p.bak. Reboot to fastboot (install Terminal Emulator app, and without the quotes - gain root by typing 'su' , then 'reboot bootloader'), dl fastboot binary, connect phone to pc, 'fastboot flash recovery twrp_or_cwm.img', disconnect phone from pc, use vol keys to reboot to recovery to check your new recovery. It will stay there this time.
Sent from my Transformer Prime TF201 using xda app-developers app
Hi, I have a Desire Z that keeps restarting itself almost. I can go as far as opening the app drawer before it restarts again. I'm trying to figure out how to fix it or at least recover/backup files from the phone. Can anyone help?
if I flash a custom recovery/root my phone, will that wipe everything on the phone? I am mainly concerned with backing up all my data. The stock recovery shows phone with red triangle, dont know what that means. Please help.
Try starting in safe mode
Sent from my Nexus One using xda app-developers app
demkantor said:
Try starting in safe mode
Sent from my Nexus One using xda app-developers app
Click to expand...
Click to collapse
If i remember correctly you can do this by holding down the S button while booting the device.
Sent from my HTC Vision using xda app-developers app
Tried booting in safe mode, still the same thing. The phone reboots as soon as the launcher is done loading. I think its an issue with either the launcher or there's a conflict in android/sense which is causing a crash. Still trying out different things.
Edit:
Since I have never recieved OTA update for this phone, I believe I'm still on RUU_Vision_BellMobility_WWE_1.34.666.1_Radio_12.28 b.60.140e_26.03.02.18_M2. I have adb set up, is there a way to confirm I can safely S-OFF/root?
Edit 2:
Did a factory reset - no changes, still rebooting
Edit 3:
Seems like USB debug is not turned on my phone, I tried my gt-i900 and can see it using adb devices but not when i plug in my Desire Z
Edit 4:
While in stock recovery, I have a phone with a red triangle, and adb shows device as offline. At least I can confirm that adb is working with my DZ. Now to figure out how to push files to it
After the factory reset you won't get any of your data back, but you need an os so you can root. Find the latest ruu for your phone and fllash it through fastboot or bootllader as a pc10img
Sent from my Nexus One using xda app-developers app
demkantor said:
After the factory reset you won't get any of your data back, but you need an os so you can root. Find the latest ruu for your phone and fllash it through fastboot or bootllader as a pc10img
Sent from my Nexus One using xda app-developers app
Click to expand...
Click to collapse
Can I flash the ruu from an external sd because I cannot copy to the internal memory as the phone doesn't stay on long enough. Thanks
Nope, but you can use fastboot
Sent from my Nexus One using xda app-developers app
demkantor said:
Nope, but you can use fastboot
Sent from my Nexus One using xda app-developers app
Click to expand...
Click to collapse
is fastboot the same as adb? for example, when using gfree do i just replace adb push with fastboot push?
Edit: Nvm, figured it out, now I need to find the proper RUU for my phone, which one should i be using?
Edit: Stupid question above, I already mentioned which ruu i was using so I'll try to flash that. brb
Nope, adb is similar to fastboot but different, read my thread on it as if you own any HTC phones (and various others) its a must to learn. You'll find it here in the general section
You will use fastboot not to root but to flash the latest ruu as you need to have adb access and this means you'll need an os that's working.
fastboot oem rebootRUU
This is the command you will run in cmd or terminal but read up on my thread to understand more
Sent from my Nexus 7 using xda premium
demkantor said:
Nope, adb is similar to fastboot but different, read my thread on it as if you own any HTC phones (and various others) its a must to learn. You'll find it here in the general section
You will use fastboot not to root but to flash the latest ruu as you need to have adb access and this means you'll need an os that's working.
fastboot oem rebootRUU
This is the command you will run in cmd or terminal but read up on my thread to understand more
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
I read your thread, very helpful. I had one question though, do i need an oem ruu to run the command fastboot oem rebootRUU? I'm just confused as to whether I need to root first, flash the hboot, or flash the ruu. I also have the stock recovery so when do i flash the cwmr?
1st you need the ruu, I believe nipqer has most on his server found in one of his threads. You will use fastboot to flash this. This will rewrite all your firmware and software and hopefully produce a functional os so you can get adb access
Once this is done, follow the xda wiki to root your phonephone
Sent from my Nexus One using xda app-developers app
demkantor said:
1st you need the ruu, I believe nipqer has most on his server found in one of his threads. You will use fastboot to flash this. This will rewrite all your firmware and software and hopefully produce a functional os so you can get adb access
Once this is done, follow the xda wiki to root your phonephone
Sent from my Nexus One using xda app-developers app
Click to expand...
Click to collapse
Finally! Phone boots up and I have adb access. Followed the instructions (ran into some trouble with chmod command returning "Operation not permitted" - had to start all over again with fastboot flash oemRUU) and now I'm rooted. Time to install some custom roms. Thanks demkantor, your fastboot tip and thread got me through this!
I'm glad you're up and running! I suggest to check out my is this a brick thread as it may help know what to look for if you run into trouble in the future
Either way, happy flashing!
Sent from my Nexus One using xda app-developers app