I have TWRP recovery installed and want to flash .zips, but how do I get them to the internal sd card?
highaltitude said:
I have TWRP recovery installed and want to flash .zips, but how do I get them to the internal sd card?
Click to expand...
Click to collapse
You need ADB (Android Debug Bridge) installed, and drivers installed. I'm guessing you have that and used fastboot to install TWRP?
Then the command is
Code:
adb push /path-to/file-name /sdcard/
with the watch in normal run mode, not in bootloader or recovery.
You can type "adb ?" in the terminal for all commands.
Ok thanks, I have sent some sideload installs to the watch with ADB and run the image flashing. I just wasn't sure of the commands to get files to the SD card. When you say "path to" that's where the file is located?
Sent from my SM-G935F using XDA-Developers mobile app
highaltitude said:
Ok thanks, I have sent some sideload installs to the watch with ADB and run the image flashing. I just wasn't sure of the commands to get files to the SD card. When you say "path to" that's where the file is located?
Sent from my SM-G935F using XDA-Developers mobile app
Click to expand...
Click to collapse
Yes. To simplify I place the files to push in the same directory as adb. Easier than typing
Code:
C:\Users\myname\AppData\Local\Android\android-sdk\platform-tools\adb push C:\Users\myname\Downloads\Wear\custom\rom.zip /sdcard/
Is there a way to copy files from phone to watch?
Sent from my SM-G935F using XDA-Developers mobile app
Yes, I use the Wear Media app to find files on my phone and push them to my watch via Bluetooth. Then I flash from there. But to get the custom ROM I did have to side load via adb.
https://play.google.com/store/apps/details?id=qubin.de.wearmedia
Sent from my Nexus 6P using Tapatalk
Related
can someone please explain it to me very detailed? i dont understand so much from the tuts i have read.
Are you rooted and s-off`d?
Blinkydamo said:
Are you rooted and s-off`d?
Click to expand...
Click to collapse
yes, i have
Put cwmod on the root of your sd card. Download terminal emulator from the market. In terminal emulator type
su
press enter
then type
flash_image recovery /sdcard/nameofrecovery.img
press enter
Replace nameofrecovery with whatever the name of the file is.
When you reboot into recovery it should be cwm 3.0.0.5 (should be amber font)
Sent from my Desire HD using XDA App
it shows file not found, even when i write the name of the file.
From the htc stock rom, you need to do it from your pc using fastboot. It won't work with terminal emulator.
Which rom are you running?
Do you have adb installed on your pc?
If you have fastboot, put the recovery.img in the tools folder of your sdk, start up your phone to the bootloader, connect your phone with the usb cable then open a command promt, navigate to the tools folder and type
fastboot flash recovery nameofrecovery.img
Press enter then type
fastboot reboot
Should take aboot 5 seconds
Sent from my Desire HD using XDA App
pwraggcan said:
From the htc stock rom, you need to do it from your pc using fastboot. It won't work with terminal emulator.
Which rom are you running?
Do you have adb installed on your pc?
If you have fastboot, put the recovery.img in the tools folder of your sdk, start up your phone to the bootloader, connect your phone with the usb cable then open a command promt, navigate to the tools folder and type
fastboot flash recovery nameofrecovery.img
Press enter then type
fastboot reboot
Should take aboot 5 seconds
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
i am running revolution HD, i just tried that and it said failed <remote: not allowed>
why must it be so damn hard? damn crap
Are you eng s off?
Try using adb shell from your command prompt then use the same commands you used in terminal emulator.
Sent from my Desire HD using XDA App
pwraggcan said:
Are you eng s off?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
i think so, http://forum.xda-developers.com/showthread.php?t=857537 i used that tut. is it so many different S-OFF's ?
Ok, with that s off method you can't use fastboot commands. Did you try the commands in adb shell?
Sent from my Desire HD using XDA App
pwraggcan said:
Ok, with that s off method you can't use fastboot commands. Did you try the commands in adb shell?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
i dont know, maybe. but im trying this now http://forum.xda-developers.com/showthread.php?t=855403 will it be a problem that i used the other S-OFF and now this?
I don't know. First try the commands in adb shell from your pc.
Sent from my Desire HD using XDA App
pwraggcan said:
I don't know. First try the commands in adb shell from your pc.
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
if you mean the commands that is written in cmd, then i have already tried it, and it failed.
In the command prompt, navigate to your sdk then type
Adb devices
Press enter
Your device's serial number should show
Then type
Adb shell
Press enter
If you get a $ type su then press enter
Then enter the same commands you used in terminal emulator
Why do you want cwm 3? It's generally only for 2.3 roms.
Sent from my Desire HD using XDA App
pwraggcan said:
In the command prompt, navigate to your sdk then type
Adb devices
Press enter
Your device's serial number should show
Then type
Adb shell
Press enter
If you get a $ type su then press enter
Then enter the same commands you used in terminal emulator
Why do you want cwm 3? It's generally only for 2.3 roms.
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
I just installed it now thats why i want it, but do you know how i get back to the older cwm? do i just flash it in ROM manager?
Excellent. What worked finally?
To go back to an older version use rom manager or the use same way you upgraded.
Sent from my Desire HD using XDA App
You could try this, i haven't tried it myself so don't know if it works, but read it somewhere here on xda.
Go to this path with any file manager.
/mnt/sdcard/clockworkmod/download/koush.tandtgaming.com/recoveries
And copy that file to another folder. Then copy the name of that recovery (2.x.x.x) and then rename your 3.0.0.5 recovery with the old recovery name and just copy the new (2.x.x.x) to this path. (Just say yes to overwriting the file).
/mnt/sdcard/clockworkmod/download/koush.tandtgaming.com/recoveries
Then reboot and then boot into recovery and that should have changed the cwm from old to new. The color should be orange now and not green, if still green it didn't work.
If it doesn't work just restore the old recovery .img you've copied earlier (2.x.x.x).
Regards Dousan
e: Lol you fixed it while i was typing... Nice
pwraggcan said:
Excellent. What worked finally?
To go back to an older version use rom manager or the use same way you upgraded.
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
i used this and then the command worked
Cool. Glad you're sorted. Good luck with cm7.
Sent from my Desire HD using XDA App
Dousan said:
You could try this, i haven't tried it myself so don't know if it works, but read it somewhere here on xda.
Go to this path with any file manager.
/mnt/sdcard/clockworkmod/download/koush.tandtgaming.com/recoveries
And copy that file to another folder. Then copy the name of that recovery (2.x.x.x) and then rename your 3.0.0.5 recovery with the old recovery name and just copy the new (2.x.x.x) to this path. (Just say yes to overwriting the file).
/mnt/sdcard/clockworkmod/download/koush.tandtgaming.com/recoveries
Then reboot and then boot into recovery and that should have changed the cwm from old to new. The color should be orange now and not green, if still green it didn't work.
If it doesn't work just restore the old recovery .img you've copied earlier (2.x.x.x).
Regards Dousan
e: Lol you fixed it while i was typing... Nice
Click to expand...
Click to collapse
Hello
just tried that worked flawlessly
thank you
So everything gone fine till I try to push the framework-res.apk to my phone.
adb push framework-rez.apk /system/framework/
'adb' is not a recongnized as an internal or external command,
know I understand what that means but I installed SDK manager and had no cmd in there so I just used Command Prompt. If that is all of my problem how to I get SDK cmd? It didnt install when I installed the problem.
Omnicide said:
So everything gone fine till I try to push the framework-res.apk to my phone.
adb push framework-rez.apk /system/framework/
'adb' is not a recongnized as an internal or external command,
know I understand what that means but I installed SDK manager and had no cmd in there so I just used Command Prompt. If that is all of my problem how to I get SDK cmd? It didnt install when I installed the problem.
Click to expand...
Click to collapse
It's not enough to just install SDK manager, you also have to install ADB if you want to interface with your phone through your computer. You shouldn't have to go through SDK manager to use ADB once you have it installed, it should work straight through windows command prompt.
http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
That will walk you through installing adb. Good luck.
yoft1 said:
It's not enough to just install SDK manager, you also have to install ADB if you want to interface with your phone through your computer. You shouldn't have to go through SDK manager to use ADB once you have it installed, it should work straight through windows command prompt.
http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
That will walk you through installing adb. Good luck.
Click to expand...
Click to collapse
Well thank you that helped me get pass that issue. Now how do I change the permissions on my phones framework-res.apk?
The error I have now is
"failed to copy 'framework-res.apk' to '/system/framework/framework-res.apl': Read-only file system."
I can't seem to figure a way around this.
Omnicide said:
Well thank you that helped me get pass that issue. Now how do I change the permissions on my phones framework-res.apk?
The error I have now is
"failed to copy 'framework-res.apk' to '/system/framework/framework-res.apl': Read-only file system."
I can't seem to figure a way around this.
Click to expand...
Click to collapse
I had that issue too, how I bypass it is to boot to CWM, go to "mounts and storage", then mount /system (and /data if that's relevant to what you're pushing). Others have used a line of code to mount the system from the PC end, but I find this easier to do through the phone.
yoft1 said:
I had that issue too, how I bypass it is to boot to CWM, go to "mounts and storage", then mount /system (and /data if that's relevant to what you're pushing). Others have used a line of code to mount the system from the PC end, but I find this easier to do through the phone.
Click to expand...
Click to collapse
Thank you that did the trick
Go to the system32 folder on your c drive and copy cmd from there to your tools folder in the sdk.
Now when you want to push, put the files you want to push in the tools folder and then open up the cmd that you placed in that folder, then run the push command.
Sent from my Galaxy Nexus using xda premium
Master&Slave™ said:
Go to the system32 folder on your c drive and copy cmd from there to your tools folder in the sdk.
Now when you want to push, put the files you want to push in the tools folder and then open up the cmd that you placed in that folder, then run the push command.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Thanks ill give that a try in morning. That would be a better then how im doing it now my stuff is in all random folder and locations to get it to work.
Sent from my SGH-T989 using xda premium
Omnicide said:
Thanks ill give that a try in morning. That would be a better then how im doing it now my stuff is in all random folder and locations to get it to work.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
That's actually how I do it so it should work for you. Good luck
Sent from my Galaxy Nexus using xda premium
Master&Slave™ said:
That's actually how I do it so it should work for you. Good luck
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
It worked for the file being in that folder and all. But I still have to do it in recovery and unmount system. I still get the read-only error
i was trying to install a rom,and in the CWM i formated the sd along with the others by mistake,now i can't reach the rom i transfered and the phones won't boot for sure
i tried to flash the google stock with gnex toolkit (using step 9) and i downloaded the file but it fails and what is shown to me is what you have in the attached image,it gets stuck at the "sending radio"
what should i do,i really need urgent help here
please just know that i'm a total noob so please tell me what to do step by step so i could understand
What Nexus do u have gsm or verizon? If it's Verizon you picked the wrong version and it's flashing a gsm radio. If it's gsm it could be a bad download or you picked the wrong version not too sure about that I have a Verizon nexus
Sent from my Galaxy Nexus using xda premium
it's a GSM,and i chose the right version stated in the toolkit thread and the one i installed the drivers and unlocked the bootloader and rooted the phones with it
is there a way to transfer a file in the CWM mode? can i transfer the rom in this mode?
You should do these commands in fastboot instead of using a toolkit.
Here is a step by step guide how to get back to stock. http://forum.xda-developers.com/showthread.php?t=1626895
Edit: to answer you question about pushing a file in recovery, you can. You must use adb. The command is adb push nameoffile.zip /data/media
Sent from my Nexus 7 using xda premium
i installed the sdk and found the adb.exe in the platform tools folder now what should i do?!! should i transfer the rom .zip to the same directory of the adb.exe?
Put the zip in the same folder and hold shift and right click select open command prompt here. Then adb push the zip onto your phone.
You got clockwork recovery? If so, you need cwm flashable version of radio, boot loader and ROM
Sent from my Galaxy Nexus using xda app-developers app
rok3r said:
i installed the sdk and found the adb.exe in the platform tools folder now what should i do?!! should i transfer the rom .zip to the same directory of the adb.exe?
Click to expand...
Click to collapse
Yes move it to the same directory. Open the command window in that directory. (Shift+right click > open command window here)
Then type: adb push rom.zip /data/media
Sent from my Galaxy Nexus using xda premium
OMG!!! Device not found,same message i got in the toolkit when i tried to push the files (((((((
drivers?
Yes most likely a driver issue. Type adb devices in command. If if returns a device number everything is set up correctly. If not reinstall the drivers.
Sent from my Galaxy Nexus using xda premium
If you are trying to push in bootloader adb won't work. Get in to recovery cwm works fine than do the adB push
THAAAAAAAANNNNKKKKSSSSSS!!!
seriously thanks for the help,i am totally new to this and felt like i killed my phones with my inexperienced self
i was a driver problem and i used the toolkit to uninstall and install again the driver and then used the toolkit to push the files but it said something like adb is already in root access or whatever so i headed to the adb.exe and it did it!!!!
thanks man for the great help again!!!!!:good:
this will make me learn to do a nandroid hahahaha
@atifsh i was in the CWM,it was a driver problem after all,thanks for your reply
My son accidentally wiped internal storage. He does not have a backup on his pc. He has twrp. How can he flash a rom? The pc does not see his internal storage.
Sent from my Nexus 7 using Tapatalk 2
You should be able to adb push a rom.zip you may have to mount data in twrp
Sent from my Galaxy Nexus using Tapatalk 2
If you can access adb from TWRP recovery, you can adb push a ROM to the internal memory and flash it.
Or, you can download the device's stock fastboot files and use them to flash back to stock.
Note: Don't use toolkits.
Sent from my Galaxy Nexus using Tapatalk 2
infazzdar said:
If you can access adb from TWRP recovery, you can adb push a ROM to the internal memory and flash it.
Or, you can download the device's stock fastboot files and use them to flash back to stock.
Note: Don't use toolkits.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
would you mind walking me through how to do that? i can get to recovery but im rattled on using adb.
Do you have the sdk set up? Copy the ROM to the platform_tools directory and open a command prompt there. Then...
adb push NAMEOFZIP.zip /sdcard/
Sent from my Galaxy Nexus using Tapatalk 2
http://forum.xda-developers.com/showthread.php?p=23229558
http://forum.xda-developers.com/showthread.php?p=29733879
If you don't have the sdk installed you can get the tools from the first post in this thread...
http://forum.xda-developers.com/showthread.php?t=1626895
3rdstring said:
Do you have the sdk set up? Copy the ROM to the platform_tools directory and open a command prompt there. Then...
adb push NAMEOFZIP.zip /sdcard/
Sent from my Galaxy Nexus using Tapatalk 2
http://forum.xda-developers.com/showthread.php?p=23229558
http://forum.xda-developers.com/showthread.php?p=29733879
Click to expand...
Click to collapse
Worked. Thanks a million.
I did a noob move and tried to wipe my data with twrp. Now I have no rom and can only get into twrp. I have minimal adb and fastboot installed into C: and I have my rom sitting in that folder. ADB devices shows my device in recovery and sideload depending on which I have it set to. Still no combination of adb push or sideload will go through. Am I missing something? I have read a few threads on this b4 posting I just can't seem to get any of those solutions to work.
So what does it say when it doesn't go through? If adb devices lists your device it should work
Sent from my HTC6500LVW using Tapatalk
Abd push with filepath gives me the help command...adb push with just the zip tells me it does not exist. Sideload just gives me the help command.
Sent from my HTC6500LVW using xda app-developers app
I believe you have to go into fastboot to flash the rom
Sent from my HTC6500LVW using Tapatalk
For anyone else that makes my mistake. If u can't get abd to push the zip. Try dragging the zip file into the command window after typing adb push. Thanks to those that helped me.
Sent from my HTC6500LVW using Tapatalk