Tried using
adb remount
adb pull /system/build.prop
didn't work, any help ?(trying to get htc music on my donut)
adb devices and make sure it lists your phone, else you don't have adb setup properly.
Your pull command syntax is wrong, it's adb pull /location/on/phone location/on/computer
Related
Ok i can get to the shell perfectly fine but every time i try to do adb push it can never find the file (and yes its in the right directory). Even if i type adb push by itself, it jus pops up all the adb shell commands. Can some one please help me out here. I tired looking everywhere for a solution but no luck
you are doing it in the correct format right
adb push [dir on computer (no spaces can be used)] [dir on phone (no spaces can be used)]
if you are on windows put the file directly in your C:\ drive and do
adb push C:\filename [dir on phone i.e /sdcard (again with no spaces)]
the help scrolls down because the command is not being typed in a way that adb is supposed to type it as being recognized.
ah yes that did help alot thanks
hi, i'm running cm5 test 4 on my g1 and for the most part it's been great...except for the slow market...so i did my research and found that there's an xml file that you can push to fix this issue-http://www.google.com/support/forum/p/Android+Market/thread?tid=1ea082d443f3d16c&hl=en...so i copied the file, named it "marketfix" and stuck it in C:...tried to adb push it like this - adb push C:\marketfix.rtf /data/data/com.android.vending/shared_prefs/vending_preferences.xml - but after that i get an "adb: not found"...what did i do wrong? any help would be appreciated...thanks in advance!
naars90 said:
hi, i'm running cm5 test 4 on my g1 and for the most part it's been great...except for the slow market...so i did my research and found that there's an xml file that you can push to fix this issue-http://www.google.com/support/forum/p/Android+Market/thread?tid=1ea082d443f3d16c&hl=en...so i copied the file, named it "marketfix" and stuck it in C:...tried to adb push it like this - adb push C:\marketfix.rtf /data/data/com.android.vending/shared_prefs/vending_preferences.xml - but after that i get an "adb: not found"...what did i do wrong? any help would be appreciated...thanks in advance!
Click to expand...
Click to collapse
Either you don't have adb installed, you didn't set it up correctly, or you aren't in the directory where adb is installed.
Solutions are: Setup adb, set it up correctly, or change your directory in your cmd prompt to the directory where the adb.exe file is located.
Additionally, make sure you aren't entering the command superfluously like:
Code:
adb shell
adb push blah blah blah
You can't push files from within adb so once you open you cmd prompt and navigate to the correct directory do adb push directly from there, don't try and go into the shell and then execute adb push like I outlined above
So after getting a virus or something on my Windows drive and it not wanting to activate even after having my notebook for 3 years I am migrating over to Ubuntu. I have the android sdk setup and also edited my .bashrc file. Whenever I type adb devices it says
Code:
[email protected]:~$ adb devices
???????????? no permissions
[email protected]:~$ adb shell
error: insufficient permissions for device
What do I do to get it to work?
HELP!!!!!!!!!!!
Try sudo adb devices. You're not running adb as root
Sent from my HERO200 using XDA App
Indeed. You must use sudo.
Code:
[email protected]:~$ sudo adb devices
sudo: adb: command not found
This is what I get.
ah, sorry, try sudo ./adb devices
Try
Code:
cd ~/[COLOR="Sienna"]android_sdk_path[/COLOR]/tools/
su
./adb kill-server
./adb start-server
./adb remount
exit
or you can create a text file with:
Code:
#!/bin/bash
./adb kill-server
./adb start-server
./adb remount
and save it as remount.sh, or whatever you want, and place it in your tools folder then from the terminal cd to your tools folder and
Code:
sudo ./remount.sh
and it should work for you after that. That is what I do whenever I connect my hero
Russss said:
Try
Code:
cd ~/[COLOR="Sienna"]android_sdk_path[/COLOR]/tools/
su
./adb kill-server
./adb start-server
./adb remount
exit
or you can create a text file with:
Code:
#!/bin/bash
./adb kill-server
./adb start-server
./adb remount
and save it as remount.sh, or whatever you want, and place it in your tools folder then from the terminal cd to your tools folder and
Code:
sudo ./remount.sh
and it should work for you after that. That is what I do whenever I connect my hero
Click to expand...
Click to collapse
I'm still having some problems. I can type in kill server, start server, remount and it will work that way. But I can not get the script to work.
unCoRrUpTeD said:
I'm still having some problems. I can type in kill server, start server, remount and it will work that way. But I can not get the script to work.
Click to expand...
Click to collapse
I don't know why it isn't working. I attached the script i'm using (rename to remount.sh).
I just do
cd ~/android/tools/
sudo ./remount.sh
and it works, I don't know why it wouldn't unless the file properties are wrong(ownership,executable) I just started using linux about a month ago (linux mint)
I just installed Ubuntu last week, But I was having problems with my hard drive so I switched it out and loaded Windows and Ubuntu 10.04. I now I have to reload everything I had and I think it might have to do with permssions for the file, but I'm not sure. I am going to try that and also try the script again. Thanks for helping me get it to work at least one way.
i think i may be able to help you with this one
first you need to add the location of the sdk folder to your .bashrc file
open a terminal an enter
Code:
gedit /home/yourusername/.bashrc
replace yourusername with the one you use for ubuntu when the file opens up scroll all the way to the bottom and add this line to the bottom
Code:
export PATH=$PATH:/home/xx/Desktop/android-sdk-linux_86/tools
replace /home/xx/Destop/ with your username and where you have the sdk folder stored so for example, if you have it in your home folder and your user name in ubuntu is jo the string wold be
Code:
export PATH=$PATH:/home/jo/android-sdk-linux_86/tools
save the file, next to get adb to recognize your phone you need to create a udev rules file so open a terminal and enter
Code:
sudo gedit /etc/udev/rules.d/51-android.rules
this will open up a blank text file copy and paste this in it
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
save the file and reboot now when you are back to the desktop you should be able to access your phone through adb.
If you still need help PM me and ill help u out on gtalk or aim
codejunkie78 said:
i think i may be able to help you with this one
first you need to add the location of the sdk folder to your .bashrc file
open a terminal an enter
Code:
gedit /home/yourusername/.bashrc
when the file opens up scroll all the way to the bottom and add this line to the bottom
Code:
export PATH=${PATH}:/home/xx/Desktop/android-sdk-linux_86/tools
replace /home/xx/Destop/ with your username and where you have the sdk folder stored so for example, if you have it in your home folder and your user name in ubuntu is jo the string wold be
Code:
export PATH=${PATH}:/home/jo/android-sdk-linux_86/tools
save the file, next to get adb to recognize your phone you need to create a udev rules file so open a terminal and enter
Code:
sudo gedit /etc/udev/rules.d/51-android.rules
this will open up a blank text file copy and paste this in it
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
save the file and reboot now when you are back to the desktop you should be able to access your phone through adb.
Click to expand...
Click to collapse
Thanks. I had everything else setup. All I was missing was the udev rules. It works now. Just looked in the Wiki and the answer was there all along. i must have missed it before.
unCoRrUpTeD said:
Thanks. I had everything else setup. All I was missing was the udev rules. It works now. Just looked in the Wiki and the answer was there all along. i must have missed it before.
Click to expand...
Click to collapse
happy to help!
ok so i am having some of the same problem but i am trying to build a kernel using ubuntu 10.04 and so far eveything was going goo until i had to enter the command adb push config...........and i get comand adb does not exsist and it gives me a list of commands that work. But I need to use adb because of the android and i have tried just about eveything on this forum and i am not getting anything to work. Its wired i was able to root my phone and it had adb commands but when building a kernel it wont work can someone please help me i really wanna try and bulid my own kernel/rom to my likings instead of downloading a bunch of different ones. CAN SOMEONE PLEASE PLEASE HELP
krysalicea said:
ok so i am having some of the same problem but i am trying to build a kernel using ubuntu 10.04 and so far eveything was going goo until i had to enter the command adb push config...........and i get comand adb does not exsist and it gives me a list of commands that work. But I need to use adb because of the android and i have tried just about eveything on this forum and i am not getting anything to work. Its wired i was able to root my phone and it had adb commands but when building a kernel it wont work can someone please help me i really wanna try and bulid my own kernel/rom to my likings instead of downloading a bunch of different ones. CAN SOMEONE PLEASE PLEASE HELP
Click to expand...
Click to collapse
To edit a kernel you will need to get the boot.img either from your phone or from a nandroid.
THIS will give you everything
Hey, I'm pretty good with ADB but I cant seem to push files to my streak 7. I tried adb remount and I get a remount failed operation not allowed error. I am rooted. I can see the device in adb, I can pull files just fine but I cant push them.. I also tried using the shell command to remount but that didnt work
Anyone have any ideas?
This is what I did for my G1 adb pushes and pull, You can see if anything here helps ya.
http://forum.xda-developers.com/showpost.php?p=5049397&postcount=5194
I realize that these threads are every where but re posting in hopes of helping someone out. Every bit of mt's AIO worked for me, but AIO 2 for Zv8 would not.
You could always do this manually using adb. Here's how.
Push CWM Recovery image to your phone manually once in rooted zv8.
1. Open the ZV8CWMRecovery folder on your PC.
2. Double click the 'Files' folder to go into that directory.
3. Highlight/select and copy the address of your current folder location on your PC. It will look something like this:
Code:
C:\Documents and Settings\username\My Documents\Downloads\ZV8CWMRecovery\Files
4. Click Start>Run>type 'cmd' and hit enter/return to open your command prompt.
5. Type 'cd', hit your spacebar, then paste your address which you copied in step 3 into your command prompt, hit enter/return.
6. You should now be positioned in the folder containing the adb and CWMRecovery files.
7. Type the following to copy the CWMRecovery image to your phone:
Code:
adb devices
adb remount
adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
adb shell dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/mmcblk0p14 bs=4096
adb shell "rm /data/local/tmp/* 2>/dev/null"
adb shell rm /system/etc/install-recovery.sh
adb shell rm /system/recovery-from-boot.p
adb shell rm /data/local.prop
adb reboot
Phone should reboot. Try and boot into CWMRecovery after it reboots.
you can do that by typing: adb reboot recovery
all thanks go to brad 6360 for lending a hand and general lack of DoucheBaggery!
You're welcome. Glad I could help.
I'm stuck on adb remount cmd. Here's the output I get:
adb remount
remount failed: Operation not permitted
Any ideas? This is the same place I had issues running the AIO .bat file. Any help would be greatly appreciated!
JMink said:
I'm stuck on adb remount cmd. Here's the output I get:
adb remount
remount failed: Operation not permitted
Any ideas? This is the same place I had issues running the AIO .bat file. Any help would be greatly appreciated!
Click to expand...
Click to collapse
Make sure you have internet connection and usb debugging enabled.
JMink said:
I'm stuck on adb remount cmd. Here's the output I get:
adb remount
remount failed: Operation not permitted
Any ideas? This is the same place I had issues running the AIO .bat file. Any help would be greatly appreciated!
Click to expand...
Click to collapse
I was having the same problems. No matter what I tried, AIO, this method, etc, nothing worked when I was using my computer to get CWM back after ZV8. I found this thread that uses terminal emulator on the phone and it worked perfectly.
http://forum.xda-developers.com/showthread.php?t=1594885
I never could get cwm working but a friend recommended QuickBoot, gives you the boot into recovery mode. Works great.
Sent from my VS910 4G using xda premium
This is the same thing as terminal emulater on your phone
with this you can open a shell inside your phone running on your pc
Same commands
Thanks for the suggestions. I ended up getting it to work. I just skipped the adb remount cmd and started with pushing the img. Then I used the su cmd in shell to get a # prompt and ran the rest of the cmds as written including reboot recovery. CWM popped up on boot!
Sent from my Revo 4g using XDA Premium App
Hoping someone can help
Hey all. Last night I was helping a friend keep root through the V8 update. Everything went fine until I thought that I had manually pushed clockwork, but when I tried to reboot into recovery I got stuck on the LG logo forever. How I'm having trouble getting the phone to do anything. When in emergency mode it won't connect to the computer and it's not even my phone so I feel like a real #$%^^. Any advice would be appreciated.
Edit: http://forum.xda-developers.com/showthread.php?t=1564941 allow me to answer my own question