So I used the one-click CWM toolkit (http://www.androidrootz.com/2012/12/nexus-4-one-click-toolkit-for-mac.html), and now my phone has CWM installed, but everything else has been wiped. How do i get the rom img onto the SD card so I can flash it from CWM?
I searched, and found a bunch of instructions saying to use adb, but I have a mac, and I'm not familiar with Terminal commands. I try following the instructions, and after navigating to the folder whre adb and fastboot are, typing the command "fastbook device" returs "-bash: fastboot: command not found"
Can someone please help me?
Thanks
Use the sideload option in cwm to flash the rom
From my BLACKED OUT N4
I ended up figuring it out, using "./adb ____" and got it to all work.
Related
I'm trying to install baconbits on my G2 and I have a mac. I cannot seem to get the recovery image to work through fastboot. Help?
I can access the phone through the terminal but once I command it to reboot to the bootloader I can't get it to find the img file
There's a fastboot binary available for download from this page: http://developer.htc.com/adp.html
I have the binary in my sdk's tools folder but I still can't figure it out. Where/how do input the command to boot the img file?
pak256 said:
I have the binary in my sdk's tools folder but I still can't figure it out. Where/how do input the command to boot the img file?
Click to expand...
Click to collapse
You can flash files from recovery if they are on the SD card. You can either adb push while in recovery, or mount USB storage and tranfer the file. Or just transfer it via USB while the phone is on (big, green android screen)
I'm not sure how to install baconbits, but I think you need fastboot to flash the .img file. Recovery flashes .zip files and fastboot flashes .img files. You can put fastboot-mac in the same folder as adb... then fastboot flash recovery your_recovery.img. You really don't need adb (for this) since you can boot into fastboot on the phone by restarting while holding down the trackpad button.
These might be the droids you are looking for...
Code:
adb (read the instructions)
adb devices (you'll see your phone if it's plugged in, turned on, and in the proper mode)
adb reboot bootloader (white screen with androids on skateboards)
fastboot-mac (more reading...)
fastboot-mac devices (your phone again)
fastboot flash recovery your_recovery.img
fastboot reboot-bootloader
For some reason, I had a little trouble flashing my recovery- sometimes it would hang and wouldn't flash, sometimes it would only fastboot boot. So if you run into trouble, there might be other problems.
While you are at it, you might as well save yourself the trouble and either add the adb and flashboot folders into your path, or put the binaries somewhere in your path. I also renamed fastboot-mac to fastboot for simplicity.
Going to try that when I get out of class but I think you helped me realize what I was doing wrong. Thanks and will let you know if it works
Sent from my T-Mobile G2 using XDA App
Okay I could get the fastboot prompts to work but when I try to flash the recovery it tells me "g2recovery.img" could not be loaded
okay, used clockwork and got it to work. yay!
Hi Guys, im from MIUI and tried to install a new rom but i accidentally format system/data, and my download roms gone. Recovery Mode Works but since all files are gone including the downloaded roms i cant install any rom. tried to access from PC but no luck.
http://forum.xda-developers.com/showthread.php?t=1995688
Option 9
Or you could always flash CWM via fastboot and use adb sideload xx-package name to flash a ROM from adb
Sent from my NeXus⁴
strapped365 said:
Or you could always flash CWM via fastboot and use adb sideload xx-package name to flash a ROM from adb
Sent from my NeXus⁴
Click to expand...
Click to collapse
This worked for me. If your recovery, (CWM or TWRP), still works fine, then it's a simple fix.
Download the software developer kit from google if you don't have it already.
Put your ROM and gapps in the platform-tools folder of the sdk package you downloaded and unzipped from google.
load up command prompt on your computer, and boot your phone into CWM or TWRP and find the option to sideload.
On computer, in command prompt navigate to the platform-tools folder wherever you unzipped the sdk from google, and use: adb sideload filename.zip for the rom and for your gapps.
you don't need to push files to the phone. just use sideload and install them to your phone right from your computer. the first time I made the same mistake as you I was terrified. but, it's a really simple fix.
trperic said:
This worked for me. If your recovery, (CWM or TWRP), still works fine, then it's a simple fix.
Download the software developer kit from google if you don't have it already.
Put your ROM and gapps in the platform-tools folder of the sdk package you downloaded and unzipped from google.
load up command prompt on your computer, and boot your phone into CWM or TWRP and find the option to sideload.
On computer, in command prompt navigate to the platform-tools folder wherever you unzipped the sdk from google, and use: adb sideload filename.zip for the rom and for your gapps.
you don't need to push files to the phone. just use sideload and install them to your phone right from your computer. the first time I made the same mistake as you I was terrified. but, it's a really simple fix.
Click to expand...
Click to collapse
thanks a lot brothers!!! this one works for me..shooooooshhhhhhhhhh :good::good::good::good::good::good:
Evening i was trying to install Remix OS backed up my Current set up took out the SD Card copied the IMG over and the craddle breaks that holds the micro SD card.....
Currently i am left with TWRP win and recoverable IMG.
I have installed Superboot to my MAC tried in terminal to get it pick it up but nothing.
i can get to no drivers screen but as soon i try to run adb nothing anyone got any advice
cheers in advance
You won't get ADB to run in Fastboot mode. Follow the instructions in the recovery thread:
http://forum.xda-developers.com/mad...overy-twrp-2-8-2-0-recovery-mad-catz-t2973640
Make sure you have the TWRP.img in the same folder as the fastboot command and boot to the image on the computer, not the MOJO.
kevinthefixer said:
You won't get ADB to run in Fastboot mode. Follow the instructions in the recovery thread:
http://forum.xda-developers.com/mad...overy-twrp-2-8-2-0-recovery-mad-catz-t2973640
Make sure you have the TWRP.img in the same folder as the fastboot command and boot to the image on the computer, not the MOJO.
Click to expand...
Click to collapse
Alright Mate
when i run super boot in Terminal i can do anything. I tried looking for devices and i get command not found if i try to flash a rom i just get permission denied its like the box isnt there
As it says in the linked thread, boot the MOJO to the recovery image located on the PC. Then flash the ROM of choice to the MOJO using the recovery.
Hi guys,
yesterday I accidentally wiped my phone and the rom's in it. So now I have to somehow get a rom on the sd card so I can flash it. Recovery works (twrp), fastboot mode works, however I can't use adb to push zips on to my sd card, I've tried on 3 different PC's 2xWindows and one mac
fastboot finds my device and adb doesn't. I've tried configuring the adb_usb.ini file with the Vendor ID of my device which I found, but adb still doesn't find it. My system is wiped so I don't have a system to go in and transfer files the normal way and my backups have been deleted so that isnt working either. I've also tried to return my phone to 100% stock with a tool I found on the OnePlus forums Thread from forum , however this didn't work fastboot crashes midway. My only option is to flash an .img file containing some system rom(which I didn't find) so I can then load files to my sd card or to get adb to work in some way so I can push the zips on to the sd card. If you can help in any way because I'm all out of ideas. It's been two hard days and this is the last thing I'm trying, otherwise I have to buy a new phone.
It's not soft bricked but I think the first method shown here could work:
https://forums.oneplus.net/threads/...ck-guide-for-a-hard-bricked-oneplus-2.347607/
Sounds like your trying to access your phone using ADB in fastboot, this will not work. For ADB recovery, you have to enter TWRP or CWM and choose ADB sideload mode to activate phone for receiving of ROM zip using adb sideload romfile.zip. Fastboot is like EFI or BIOS boot prompt on a PC, and ADB is like a variant of GRUB bootloader with support for PXE installing the phones OS by ways of adb sideload (as reference).
Can't flash via TWRP, "failed mount system", twrp sideload not working either.. stuck
I need my phone for work tomorrow so any help would be greatly appreciated.
I'm on TWRP 3.2.3-1 and was using the latest stock oreo rom from here: https://forum.xda-developers.com/g5...o-twrp-flashable-stock-builds-coming-t3830482
My phone suddenly didn't have a reception today, after rebooting I regained reception but couldn't make calls. I rebooted to recovery and tried to dirty flash the same stock twrp flashable oreo rom that I was using and it failed. Apparently the OS got corrupted. I tried repeatedly to flash the ROM and then noticed I was getting an error : failed to mount system , invalid argument. I couldn't mount system via the Mount tab in TWRP and I couldn't find anything helpful to resolve this error.
I did some more research downloaded the fastboot flashable ROM from here : https://forum.xda-developers.com/g5-plus/how-to/moto-g5-plus-fastboot-flash-stock-oreo-t3848433 and tried to flash the rom via adb using adb sideload in twrp but twrp doesn't seem to load that function correctly. In the elevated command prompt in the adb directory I type adb sideload filename.zip and it just freezes up my PC. My device does show up with the adb devices command and shows " *Serial Number* RECOVERY ".
I don't understand what to do with the instructions in the fastboot flash stock thread I posted above and I'm at the limit of my knowledge. No idea how to proceed... any help is greatly appreciated.
I tried extracting the xml.zip into the adb folder and rebooted to bootloader/AP Fastboot Flash Mode and was going to try the commands in the fastboot Rom thread but my device only shows up in adb devices when I load twrp. uhhhhgggghhhhhh guess I'll have to buy a backup phone tomorrow while I try to get this one working
Holy hell.... I didn't realize since I was in the fastboot/bootloader I had to use "fastboot devices" command to see the device. Tried that and saw the device listed, so I created a .bat file using the commands in the fastboot roms thread above and I have a functional device again. Whohoooooo!
Did you try to format /System/ as EXT4?