[Q]Fastboot - Android Q&A, Help & Troubleshooting

Whats fastboot? Cause i wanna install a rom for goophone i5 and im using Android Ultimate Toolbox pro and i dont have any recovery on the phone cause i cant flash it, and whenever i try to flash a recovery image with Toolbox it says i need to be fastbooted... Give me a hand please

HeavenKinder said:
Whats fastboot? Cause i wanna install a rom for goophone i5 and im using Android Ultimate Toolbox pro and i dont have any recovery on the phone cause i cant flash it, and whenever i try to flash a recovery image with Toolbox it says i need to be fastbooted... Give me a hand please
Click to expand...
Click to collapse
Fastboot is a command line utility used to modify and interact with the Android filesystem through USB on your computer. You can easily download and setup ADB (Android Debugging Bridge) and Fastboot using this utility found here http://forum.xda-developers.com/showthread.php?p=42407269. You will also need to make sure you've installed the USB drivers for your device in order for fastboot to function properly. To access fastboot run the following command from command line (Make sure USB debugging is enabled in developer settings first):
Code:
adb reboot bootloader
You can then flash your recovery image with the command:
Code:
fastboot flash recovery recovery.img
Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app

shimp208 said:
Fastboot is a command line utility used to modify and interact with the Android filesystem through USB on your computer. You can easily download and setup ADB (Android Debugging Bridge) and Fastboot using this utility found here http://forum.xda-developers.com/showthread.php?p=42407269. You will also need to make sure you've installed the USB drivers for your device in order for fastboot to function properly. To access fastboot run the following command from command line (Make sure USB debugging is enabled in developer settings first):
Code:
adb reboot bootloader
You can then flash your recovery image with the command:
Code:
fastboot flash recovery recovery.img
Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Ok so i did the recovery command and it says waiting for device, what do i need to do?

Now if i try to fastboot using that comand it says:
ADB server is didn't ACK
*failed to start daemon*
error:
And if i write the comand to fast bood and then use Android Ultimate toolbox to flash the recovery image it just sits at waiting for device and if i cancel it and do it again it just says i need to fastboot...

if you want to flash recovery so use mobile uncle tools android app !
work on chinees device good

anabhi said:
if you want to flash recovery so use mobile uncle tools android app !
work on chinees device good
Click to expand...
Click to collapse
When i try to use MobileUncletools and i flash the recovery image, it asks if i want to boot into the new recovery, it turns off the phone, and when it turns it back on it just freezes in the apple logo

Ok so if i try to boot into fastboot with ADB and then go to Android ultimate tools pro to flash recovery, it says the device isnt in fastboot...

bump

HeavenKinder said:
Ok so if i try to boot into fastboot with ADB and then go to Android ultimate tools pro to flash recovery, it says the device isnt in fastboot...
Click to expand...
Click to collapse
You can also flash recovery from ADB shell as root by running the command (Make sure that the recovery image your using is meant for your device, and is placed on your internal storage):
Code:
cat /mnt/sdcard/recovery.img > /dev/block/{path-to-recovery-partition-block}

shimp208 said:
You can also flash recovery from ADB shell as root by running the command (Make sure that the recovery image your using is meant for your device, and is placed on your internal storage):
Code:
cat /mnt/sdcard/recovery.img > /dev/block/{path-to-recovery-partition-block}
Click to expand...
Click to collapse
Can you give me an example please? cause i tried it and it said:
"the filename, directory name, or volume label syntax is incorrect.

bump

Bump

HeavenKinder said:
Can you give me an example please? cause i tried it and it said:
"the filename, directory name, or volume label syntax is incorrect.
Click to expand...
Click to collapse
For example if I wanted to flash a recovery on my Nexus 10 without using fastboot just using adb shell I would run a command similar to this one:
Code:
cat /mnt/sdcard/clockworkmodrecovery.img > /dev/block/mmcblk0p4
If you can provide me with output of your recovery log file by going to /cache/recovery/log I can tell you which partition is your recovery partition that you need to flash.

shimp208 said:
For example if I wanted to flash a recovery on my Nexus 10 without using fastboot just using adb shell I would run a command similar to this one:
Code:
cat /mnt/sdcard/clockworkmodrecovery.img > /dev/block/mmcblk0p4
If you can provide me with output of your recovery log file by going to /cache/recovery/log I can tell you which partition is your recovery partition that you need to flash.
Click to expand...
Click to collapse
Wheres the cache file?

HeavenKinder said:
Wheres the cache file?
Click to expand...
Click to collapse
The /cache directory is located in the root (/) directory you can access the /cache directory and subsequent directories using any root file browser such as this one. You should then be able to get to recovery/log file and view it's contents.

shimp208 said:
The /cache directory is located in the root (/) directory you can access the /cache directory and subsequent directories using any root file browser such as this one. You should then be able to get to recovery/log file and view it's contents.
Click to expand...
Click to collapse
But if i don't have Google Play on the phone, how can i install the application? Do i have to search a way to flash it into the device?

HeavenKinder said:
But if i don't have Google Play on the phone, how can i install the application? Do i have to search a way to flash it into the device?
Click to expand...
Click to collapse
You can also use ADB shell to access the file contents by navigating to the /cache/recovery/log directory and looking at the output. Running the following command should show the output of the recovery log:
Code:
cat /cache/recovery/log

shimp208 said:
You can also use ADB shell to access the file contents by navigating to the /cache/recovery/log directory and looking at the output. Running the following command should show the output of the recovery log:
Code:
cat /cache/recovery/log
Click to expand...
Click to collapse
'cat' is not recognized as an internal or external command, operable program or batch file

HeavenKinder said:
'cat' is not recognized as an internal or external command, operable program or batch file
Click to expand...
Click to collapse
Make sure you run the command from ADB shell. For example first navigate to the directory where you have a ADB and Fastboot setup on your computer then open a command prompt window from that directory and run the following commands:
Code:
adb shell
cat /cache/recovery/log

shimp208 said:
Make sure you run the command from ADB shell. For example first navigate to the directory where you have a ADB and Fastboot setup on your computer then open a command prompt window from that directory and run the following commands:
Code:
adb shell
cat /cache/recovery/log
Click to expand...
Click to collapse
No such file or directory...

Related

ADB command (Help)

Is there anyway that adb can mount the internal sdcard to the computer to i can install a rom or something? I can't get the phone to boot up but I can get to Cloclwork recovery and I can connect to ADB.
player4lifeov said:
Is there anyway that adb can mount the internal sdcard to the computer to i can install a rom or something? I can't get the phone to boot up but I can get to Cloclwork recovery and I can connect to ADB.
Click to expand...
Click to collapse
umm yeah, adb push <file you want to push> /sdcard
Also google "android commander"
Is there not an option to toggle usb in clockwork recovery? Nvm that, try "adb usb"
watcher64 said:
umm yeah, adb push <file you want to push> /sdcard
Also google "android commander"
Click to expand...
Click to collapse
would it look like this?
adb push C:\Documents and Settings\HP_Administrator.HARRIER\My Documents\Downloads\Frankin_Final.zip /sdcard
Or do i first have adb shell and then the command?
ms79723 said:
Is there not an option to toggle usb in clockwork recovery? Nvm that, try "adb usb"
Click to expand...
Click to collapse
Tried this but I can't acces anything on the drive. It says "please insert disk"
player4lifeov said:
would it look like this?
adb push C:\Documents and Settings\HP_Administrator.HARRIER\My Documents\Downloads\Frankin_Final.zip /sdcard
Or do i first have adb shell and then the command?
Click to expand...
Click to collapse
Never tried with a file path that has spaces, copy the .zip to your tools directory and try it
adb push Frankin_final.zip /sdcard
or you might have to put quotes around your long path.
Like I said I am not sure, I keep my paths for things like this short.
You do NOT adb shell first ...
watcher64 said:
Never tried with a file path that has spaces, copy the .zip to your tools directory and try it
adb push Frankin_final.zip /sdcard
or you might have to put quotes around your long path.
Like I said I am not sure, I keep my paths for things like this short.
You do NOT adb shell first ...
Click to expand...
Click to collapse
It worked!!
Your a lifesaver!! Thank youuuuuuu sooooo much! I thought I had bricked my friends phone!
I am very gratefull

[Q] how to access phone memory via pc?

Dear all,
Good day.
I would like to ask,can I access phone memory (HTC aria A6380)
on pc?
It was because I accidentally move a script file "sh"
from my /system/bin folder to my sd card.
Now I would like to cut back the file and paste it back to the original folder which in system file...
But,without the "sh" file in /system/bin/ folder,the root explore .apk can't work
So,I would need some expert advise...
You could just re-flash you rom.
Yes you can. You need to use the 'adb' tool. Download here: http://forum.xda-developers.com/attachment.php?attachmentid=630611&stc=1&d=1308537076 and extract it to a folder, then open a command line to that folder.
Connect your phone, and make sure USB debugging is enabled. Copy the file from your SD card to your computer. If you do not have S-OFF, you need to go to Clockworkmod recovery on your device before this will work.
From the command line, do adb devices to see if the phone is connected properly. Then do adb remount to mount the system partition as writable. Then do adb push C:\path\to\filename /system/bin/filename to copy the file. Then just disconnect and reboot the phone.
drumist said:
Yes you can. You need to use the 'adb' tool. Download here: http://forum.xda-developers.com/attachment.php?attachmentid=630611&stc=1&d=1308537076 and extract it to a folder, then open a command line to that folder.
Connect your phone, and make sure USB debugging is enabled. Copy the file from your SD card to your computer. If you do not have S-OFF, you need to go to Clockworkmod recovery on your device before this will work.
From the command line, do adb devices to see if the phone is connected properly. Then do adb remount to mount the system partition as writable. Then do adb push C:\path\to\filename /system/bin/filename to copy the file. Then just disconnect and reboot the phone.
Click to expand...
Click to collapse
how to add a command line?
peter tham said:
how to add a command line?
Click to expand...
Click to collapse
Open command prompt if you are on windows
Sent from my Liberty using XDA App
can this be done to remove system app?
Mysteryagr said:
can this be done to remove system app?
Click to expand...
Click to collapse
Yes. BUT... make sure you aren't removing a vital app, aka settings.apk.
Sent from my HTC Intruder

Bricked Badly

Hello i have a transformer prime and i did some work on it and at this moment, it has not any files in it but i can access cwm recovery and fastboot mode. Plz help me. I think that somehow i need to put rom inside so i can flash it with cwm but how.
Put rom on sd card?
Sent from my Galaxy Nexus using XDA Premium HD app
Although you may get flamed from posting in Dev instead of QA,iIf you have fastboot access from your PC, then you can run the following command:
fastboot -i 0x0b05 flash staging YourChoiceOfRom.blob
Afterwards, reboot your TFP and your new rom should install.
If not, you can also try using ADB to push the file from your PC to the tablet's internal storage, then install through CWM.
kokopuphz said:
Although you may get flamed from posting in Dev instead of QA,iIf you have fastboot access from your PC, then you can run the following command:
fastboot -i 0x0b05 flash staging YourChoiceOfRom.blob
Afterwards, reboot your TFP and your new rom should install.
If not, you can also try using ADB to push the file from your PC to the tablet's internal storage, then install through CWM.
Click to expand...
Click to collapse
ADB push a rom onto /sdcard from your pc through Recovery
SFG said:
ADB push a rom onto /sdcard from your pc through Recovery
Click to expand...
Click to collapse
Download nvflash from the dev thread, extract it to C: it has adb in it. Download universal naked driver from dev thread, install the drivers as per the opening page (the prime is connected to the pc by cable at this point and booted into cwm). Download a rom, put it in the nvflash folder where the adb.exe is. Open the folder so you can see adb.exe, press and hold the shift key, right click the mouse, from the menu select open command window here. In the window, type adb push (enter name of the rom) don't forget the .zip at the end, press enter. This will take about 5 minutes to transfer. Reboot to cwm, install the zip (rom). You should be good to go.

[Q] Unable to ADB push a ROM (using CM9 with CWM v6.0.1.0)

Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
shadowcaster31 said:
Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
Click to expand...
Click to collapse
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
fxrb said:
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
Click to expand...
Click to collapse
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
shadowcaster31 said:
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
Click to expand...
Click to collapse
No. Just connect the phone and enter ADB devices. Your phone should show up then.
fxrb said:
No. Just connect the phone and enter ADB devices. Your phone should show up then.
Click to expand...
Click to collapse
Great i can use adb devices. But now idea why it doesnt show my device ID correctly.
anyway i tried ADB push like this:
1. put my rom zip in the same folder as adb.exe
2. open cmd
3. type in "adb push ROM.zip /sdcard" (without the quotes)
4. i get error "failed to copy to 'ROM.zip' to '/sdcard': Is a directory"
Any idea how do i copy something into my /sdcard path?
edit: okay nvm i solved it. forgot another / after /sdcard.

[DOWNLOAD] Android Wear Update from MWD48B to M1D63H

Okay, another update
Of course I'll provide download links again
DOWNLOAD LINKS:
DropBox
Google Drive
OneDrive
---------------
HOW TO INSTALL:
In case your update installation fails for whatever reason you have to go back to a stock state. We'll first downgrade the watch to an older version (since those are the only IMG files I currently have).
Go to THIS PAGE and download the files (Here's a backup-upload in case they're down - OneDrive Backup)
Boot into bootloader mode (reboot watch > once logo shows up swipe from left upper to right lower corner)
Connect to PC, open CMD in the folder with those files and type "fastboot flash recovery recovery_6.0.1_MEC23G.img", "fastboot flash boot boot_6.0.1_MEC23G.img" and "fastboot flash system system_6.0.1_MEC23G.img"
Reboot to system and either let the watch update itself 2 times (far easier) or...
... boot to recovery and sideload the 2 ZIP-files yourself (you need to update to MWD48B (OneDrive Backup) first, then M1D63H (OneDrive Backup)!)
Anyways, I hope this helped a bit!
Currently trying to pull .img-files for those who still have their LG G Watch so installation will be easier and faster.
EpicLPer said:
Currently trying to pull .img-files for those who still have their LG G Watch so installation will be easier and faster.
Click to expand...
Click to collapse
Install TWRP and from console/adb shell write
Code:
[STRIKE]echo "mmcblk0" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file[/STRIKE]
You'll have access to all patitions on your watch.
ab123321 said:
Install TWRP and from console/adb shell write
Code:
echo "mmcblk0" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
You'll have access to all patitions on your watch.
Click to expand...
Click to collapse
What will this do exactly? I already managed to pull images with DD, but this also sounds interesting
EpicLPer said:
What will this do exactly? I already managed to pull images with DD, but this also sounds interesting
Click to expand...
Click to collapse
It forces kernel to connect flash-memory (mmcblk0) in your watch to your PC as a disk. So, You'll see partitions as drives.
Then, you'll be able to dd them directly on your PC (if you use Linux, of course)
ab123321 said:
It forces kernel to connect flash-memory (mmcblk0) in your watch to your PC as a disk. So, You'll see partitions as drives.
Then, you'll be able to dd them directly on your PC (if you use Linux, of course)
Click to expand...
Click to collapse
Hm, that sounds quite easier hehe, the TWRP dd way was nice too but I'll try this, thanks!
ab123321 said:
Install TWRP and from console/adb shell write
Code:
echo "mmcblk0" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
You'll have access to all patitions on your watch.
Click to expand...
Click to collapse
Hm, "sh: write error: No such file or directory"
Oh, because "lun" is the actual file, lun is not a directory.
Edit 2: No, wait what... TWRPs file manager shows me this is a file, not a directory, ADB however tells me this is a directory and not a file??? WTF
EpicLPer said:
Hm, "sh: write error: No such file or directory"
Oh, because "lun" is the actual file, lun is not a directory.
Edit 2: No, wait what... TWRPs file manager shows me this is a file, not a directory, ADB however tells me this is a directory and not a file??? WTF
Click to expand...
Click to collapse
Stolen from Watch R thread fixed:
Code:
cd /sys/devices/virtual/android_usb/android0
echo 0 > enable && echo "adb,mass_storage" > functions && echo "/dev/block/mmcblk0" > f_mass_storage/lun/file && echo 1 > enable

Categories

Resources