[Q] How to transfer data via adb push. (error!!) - Samsung Galaxy Nexus

Hello every body!
I want to transfer data vida unix terminal (console) in this case, via mac os x...
my macbook recognize my galaxy nexus via flashboot but not via adb
do you have an idea??
thanks a lot in advance!!

Your phone is in fastboot mode, so of course adb commands don't work
Sent from my Galaxy Nexus using XDA App

jstegeman said:
Your phone is in fastboot mode, so of course adb commands don't work
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
Thanks a lot!
you're right!
in recovery mode works!

Related

[Q] Rooting on mac: Device Offline?

I am running tests on my new mac to see if i can root my galaxy nexus to install the tablet mod. Anyway, when i type adb devices or anything of the sort it tells me my device is offline. I have googled it with no results of how to make device online.
So my question is how do I make my device online so i can execute commands?
I have usb debugging on.
Phone is offline when booted, but also did not work in recovery mode which is what i want.
I'm on Android 4.0.4 if that matters.
Any other questions please ask!
Thank you amazing brainiacs of XDA!
So you have terminal pointed to the folder where you have ADB at, and you're using the command:
Code:
./adb devices
Right?
I had to do nothing special. Download ADB, plug in phone + turn on USB debugging, and I was good to go.
I did it with mine using the method I sis with my old nexus s 4g. Here's a video I made.
https://www.youtube.com/watch?v=sP9ZDWmbLVM&feature=youtube_gdata_player just follow the instructions but make sure u use a galaxy nexus recovery.img and not the nexus s 4g.
Sent from my Galaxy Nexus using xda premium
Yes I type that command and it comes back with (my device id) : offline
Could it be my usb cable?
Sent from my Galaxy Nexus using Tapatalk
I'm gong to explain this once more because realized I missed saying something. When I type a command in terminal it works. I can type ./adb devices and it will show my device. The problem comes when I type say ./adb pull. Instead of pulling what I asked, it says "error device offline." Has anyone experienced this?
Sent from my Galaxy Nexus using Tapatalk
patalo said:
I'm gong to explain this once more because realized I missed saying something. When I type a command in terminal it works. I can type ./adb devices and it will show my device. The problem comes when I type say ./adb pull. Instead of pulling what I asked, it says "error device offline." Has anyone experienced this?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
OK so what exactly are you trying to pull? I thought u said u wanted to rooted so u can then install the tablet mod?
Sent from my Galaxy Nexus using xda premium
I'm going to root and pull framework-res.apk so I can edit books.XML to rid of the nav bar. I like to do things myself if I can figure them out haha. But I'm stumped :/
Sent from my Galaxy Nexus using Tapatalk
Anyone have more ideas or questions?
Sent from my Galaxy Nexus using Tapatalk
patalo said:
Phone is offline when booted, but also did not work in recovery mode which is what i want.
Click to expand...
Click to collapse
ADB won't work in recovery...can you see it in recovery with Fastboot?
Yes, the device is recognized In recovery, fastboot, and regularly booted. I just cannot issue a command. Anything I type for example ( ./adb pull /system/framework/framework-res.apk) it tells me cannot issue command, device offline. Hopefully that makes sense!
Sent from my Galaxy Nexus using Tapatalk
You can't/don't have to be in recovery to use ADB... you need your phone on! Fast boot commands = recovery, ADB commands = phone in android.
Sent from my Galaxy Nexus using Tapatalk
I know this. I'm saying any command, adb or fastboot. Returns the same response "phone offline" in every state. Last night when I used adb my phone was on in android, but returned the same error "phone offline, cannot execute command.) even when I type adb devices it shows my phone as plugged in but next to it it shows my phone is offline. How do I make the phone online? The phone was on the homescreen with adb debugging on. I cannot issue any other command when my phone is offline.
Sent from my Galaxy Nexus using Tapatalk
I want everyone reading this to know that I know when to use adb and fastboot. My problem is I cannot use them because my Mac terminal says my device is offline. I read on Google it should be online, but have yet to find a way to make it online. That is my question
Sent from my Galaxy Nexus using Tapatalk
That sounds like a driver issue...I'm horribly unfamiliar with Macs, but you can try uninstall and re-install of the drivers?
This help?
http://www.droidrzr.com/index.php/t...s-my-device-is-either-not-connect-or-offline/
Okay well I thought that worked but I have a galxy nexus so I don't have safestrap
Sent from my Galaxy Nexus using Tapatalk
I used this tutorial to get adb and fastboot working on my Mac and everything works fine for me. Hopefully it helps you out.
http://blog.wapnet.nl/2011/05/setup-adb-and-fastboot-with-android-sdk-on-mac-osx/
anton2009 said:
You can't/don't have to be in recovery to use ADB... you need your phone on! Fast boot commands = recovery, ADB commands = phone in android.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Please don't post wrong information. You can use adb in either recovery or in the OS. Fastboot commands can only be used when booted into fastboot mode (i.e., the bootloader), not in recovery.
Sent from my Galaxy Nexus using Tapatalk
And now for some reason it is working. thank you to everyone that helped! Love ya XDA

Ubuntu file transfer

How do you transfer files from Ubuntu to the Verizon galaxy nexus?
Sent from my Galaxy Nexus using XDA
rolltide1995 said:
How do you transfer files from Ubuntu to the Verizon galaxy nexus?
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Use ADB, MTP sucks on Linux.
Could try some type of wifi transfer app too. Like AirDroid.
Sent from my Galaxy Nexus using xda premium
thracemerin said:
Use ADB, MTP sucks on Linux.
Click to expand...
Click to collapse
How do u use adb to transfer files?
Sent from my Galaxy Nexus using XDA
rolltide1995 said:
How do u use adb to transfer files?
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Setup ADB and connect the phone w/ USB debugging turned on.
Use "adb push" and "adb pull" to take/send files to your device. For example:
Code:
adb push <file> /sdcard/
martonikaj said:
Setup ADB and connect the phone w/ USB debugging turned on.
Use "adb push" and "adb pull" to take/send files to your device. For example:
Code:
adb push <file> /sdcard/
Click to expand...
Click to collapse
How do I set up adb. I have adb-linux from a root kit but I have never did anything with it.
Sent from my Galaxy Nexus using XDA
I wrote a tutorial how to connect and setup adb and such with Ubuntu for the Galaxy Nexus. Take a look at it -- its not as intimidating as it seems. Just read the tutorial like 3 times and then it will all come clear:
http://ubuntuforums.org/showthread.php?t=1918512

Wiped internal storage - how do I flash a rom?

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.

How can I get Linux Mint 12 (LXDE) to recognize my device in fastboot/adb??

I had no trouble finding information on how to get my Linux computer to recognize the original Nexus 7, but there are no tutorials on how to do so with the Nexus 7 2013. Once I get my computer to recognize the device in fastboot and adb, I will have no problems. Is anyone able to help, even guide me in the right direction to obtain the proper information to add to the udev rules.
Hello,
You should not need to do anything special, just install the "android-tools-*" package with apt
sudo apt-get update
sudo apt-get install android-tools-*
From there, you should be able to use adb and fastboot without issue, just remember that fastboot commands MUST be ran as root (sudo fastboot ...)
I'll try and get back to you, thnx.
Sent from my Nexus 7 using xda app-developers app
On Fedora, for some reason I've never analyzed, I can only use fastboot as root (adb works fine as ordinary user).
Okay, so all my fastboot/add issues are solved, I unlocked, flashed recovery, now it won't let me recognize /sdcard, I'm at a loss.
Sent from my Incredible S using xda premium
dillinjer said:
Okay, so all my fastboot/add issues are solved, I unlocked, flashed recovery, now it won't let me recognize /sdcard, I'm at a loss.
Sent from my Incredible S using xda premium
Click to expand...
Click to collapse
I'm on ubuntu 13.04 and can see my device just fine. Still have usb debugging enabled?
teh roxxorz said:
I'm on ubuntu 13.04 and can see my device just fine. Still have usb debugging enabled?
Click to expand...
Click to collapse
I have no issues using fastboot now, just forgot to issue commands with sudo permissions, stupid me. Having other issues now, but as long as I have fastboot I'm good to go, will simply erase everything and flash .img's from phuduong and Nburnes. Issue can be considered rectified.:laugh:
dillinjer said:
I have no issues using fastboot now, just forgot to issue commands with sudo permissions, stupid me. Having other issues now, but as long as I have fastboot I'm good to go, will simply erase everything and flash .img's from phuduong and Nburnes. Issue can be considered rectified.:laugh:
Click to expand...
Click to collapse
Rectified are the best kinds of issues.

Is it possible to run ADB/Fastboot commands on the device away from a PC?

For example, via a terminal emulator or simply an app that will execute ADB and Fastboot commands?
GroovinChip said:
For example, via a terminal emulator or simply an app that will execute ADB and Fastboot commands?
Click to expand...
Click to collapse
Did you try it? You can try something simple like swapping boot slots in the twrp terminal emulator
Veid71 said:
Did you try it? You can try something simple like swapping boot slots in the twrp terminal emulator
Click to expand...
Click to collapse
Nope, haven't tried it. Not sure if I need any files on the phone for it to work?
Sent from my Google Pixel XL using XDA Labs
GroovinChip said:
Nope, haven't tried it. Not sure if I need any files on the phone for it to work?
Click to expand...
Click to collapse
I'm not sure either but i can't imagine it'll hurt to try a reboot command or to swap slots
How can this even work? ADB only works when the phone is in fastboot mode, which automatically means that Android isn't even running surely? Hence you can't run apps.
Sent from my Pixel XL using XDA-Developers Legacy app
GroovinChip said:
For example, via a terminal emulator or simply an app that will execute ADB and Fastboot commands?
Click to expand...
Click to collapse
NO
With two phones and adb over network you can send a command to another phone using Tasker (maybe other apps too, only ever used it while looking for an answer to your same question). I know I at least sent reboot from one phone to another... But I think fastboot won't work like this, only (simple) adb shell commands - I'm pretty sure I gave up on it once I realized that I think it is not possible to change boot slots using this method....
Other than that, FlashFire can be used I a rooted phone to change boot slot - wipe dalvik and reboot to other boot slot. I don't know a way on a non rooted phone - anyone know a way without using pc and fastboot?
GroovinChip said:
For example, via a terminal emulator or simply an app that will execute ADB and Fastboot commands?
Click to expand...
Click to collapse
For fastboot and adb in recovery, you'll need the phone connected to to a computer (or device) via usb that you have access (local/remote) to in order to issue commands remotely, but you won't be able to see the phone's screen.
For adb in normal boot, you can either use "adb over network" (LAN) (if WAN, you'll need to bypass firewall if any) or connect your phone to a computer (or device) via usb that you have access (local/remote) to in order to issue commands remotely. You can see the phone's screen using tools such as AirDroid or TeamViewer.

Categories

Resources