This thread (http://forum.xda-developers.com/showthread.php?t=770388) provides a zip file for rooting. However, two mods have to be made to the run.sh file to work on a Mac.
Line 3 and 14 needs to be edited to:
adb="/<full path>/adb.osx"
instead of
adb="./adb"
I'd post this there, but xda won't let me until I post at least ten things...
Thanks for this...but how do I use the chmod +x run.sh in the terminal.
I'm trying to root EC05 on my mac and struggling right now.
papio2chi said:
Thanks for this...but how do I use the chmod +x run.sh in the terminal.
I'm trying to root EC05 on my mac and struggling right now.
Click to expand...
Click to collapse
In the terminal window, make sure you are in the proper directory -- let's assume your user name is "me" and the zip was downloaded and unzipped to your desktop (it unzips into a folder named "one").
Start with cd /Users/me/Desktop/one
Check with pwd -- that should return your current directory. You can also check the directory contents with ls -al.
The chmod command is chmod +x run.sh. You can make it excuteable before or after you edit it as I noted above (I use vi for editing, any basic text editor will work).
Once all that is done, execute the run.sh script by entering ./run.sh -- that worked for me. One problem others have noted is the USB port not picking up the phone for data sharing, and I had trouble too until I got a USB port to recognize the phone. I could not get it to mount on my iMac, but it did mount on my laptop.
Thanks! It worked.
My pleasure. Have fun!
nuclear_android said:
In the terminal window, make sure you are in the proper directory -- let's assume your user name is "me" and the zip was downloaded and unzipped to your desktop (it unzips into a folder named "one").
Start with cd /Users/me/Desktop/one
Check with pwd -- that should return your current directory. You can also check the directory contents with ls -al.
The chmod command is chmod +x run.sh. You can make it excuteable before or after you edit it as I noted above (I use vi for editing, any basic text editor will work).
Once all that is done, execute the run.sh script by entering ./run.sh -- that worked for me. One problem others have noted is the USB port not picking up the phone for data sharing, and I had trouble too until I got a USB port to recognize the phone. I could not get it to mount on my iMac, but it did mount on my laptop.
Click to expand...
Click to collapse
OK, I followed your directions, but when I execute run.sh I get "Phone is not connected" error. I mounted it as a mass storage device, it that not correct? It shows on my desktop as a drive with NO NAME as the name.
Here is the entire message from the Terminal
Original one click made by joeykrim and one click installer made by noobnl and firon
busybox by skeeterslint
Press any key to continue...chmod: /<full: No such file or directory
chmod: path>/adb.osx: No such file or directory
Starting adb server
./run.sh: line 23: /<full: No such file or directory
./run.sh: line 26: /<full: No such file or directory
./run.sh: line 33: /<full: No such file or directory
./run.sh: line 35: /<full: No such file or directory
Phone is not connected. Press any key to continue.\n./run.sh: line 35: /<full: No such file or directory
Thanks!
ewiesner said:
OK, I followed your directions, but when I execute run.sh I get "Phone is not connected" error. I mounted it as a mass storage device, it that not correct? It shows on my desktop as a drive with NO NAME as the name.
Here is the entire message from the Terminal
Original one click made by joeykrim and one click installer made by noobnl and firon
busybox by skeeterslint
Press any key to continue...chmod: /<full: No such file or directory
chmod: path>/adb.osx: No such file or directory
Starting adb server
./run.sh: line 23: /<full: No such file or directory
./run.sh: line 26: /<full: No such file or directory
./run.sh: line 33: /<full: No such file or directory
./run.sh: line 35: /<full: No such file or directory
Phone is not connected. Press any key to continue.\n./run.sh: line 35: /<full: No such file or directory
Thanks!
Click to expand...
Click to collapse
Replace <full path> with the actual path. As in the example above, it would become /Users/me/Desktop/one/adb.osx.
Basically, when the script is calling adb.osx, it doesn't know where to look for it unless you tell it. Linux will only look in the known directories in the $PATH system variable, so it can't find the executable. I know, it seems dumb, when your user session is already set to the directory, but that's the way it is.
UNZIPPING one.click.root
Is it just me, or is anyone else having trouble unzipping/extracting the one.click zip file?? I tried on my Mac, and it unzips as "one.click.root.exploitv2.5.5.zip.cpgz" I tried extracting that, and it brings me back to a .zip file again. Weird.
Also tried on PC, Windows 7 x64, and run into errors each time (used both built-in Windows extractor and StuffIt). However, if I open the zip with Windows Explorer, it will display all the contents... I'm stuck.
Help ???
spyteris said:
Is it just me, or is anyone else having trouble unzipping/extracting the one.click zip file?? I tried on my Mac, and it unzips as "one.click.root.exploitv2.5.5.zip.cpgz" I tried extracting that, and it brings me back to a .zip file again. Weird.
Also tried on PC, Windows 7 x64, and run into errors each time (used both built-in Windows extractor and StuffIt). However, if I open the zip with Windows Explorer, it will display all the contents... I'm stuck.
Help ???
Click to expand...
Click to collapse
If you download with Safari by just clicking on it, it almost always unzips the archive. If you download by right-clicking, and doing a "save linked file as" it won't automatically unzip. Give that a try.
Why are you rezipping it?
thank you! worked like a charm
This work with EXT4?
Btw, Snow Leopard 10.6.7 is okay, right?
you guys might want to take this and just edit it a bit more, its set up to run the root and flash cwm2
http://forum.xda-developers.com/showthread.php?t=792058
if you brick your phone, good luck. currently, at least no that I know of, is there a way to return to stock on a mac.
b15love said:
if you brick your phone, good luck. currently, at least no that I know of, is there a way to return to stock on a mac.
Click to expand...
Click to collapse
Lol I'm sorry but can't help and laugh...there's a program called Heimdall which is exactly like Odin. And its not like we don't have friends with a PC or one at work.
Sent from my Samsung Epic
acer1096xxx said:
Lol I'm sorry but can't help and laugh...there's a program called Heimdall which is exactly like Odin. And its not like we don't have friends with a PC or one at work.
Sent from my Samsung Epic
Click to expand...
Click to collapse
Have u got heimdall to work on your Mac? Cuz I got to start and all but it won't pick up my phone
Sent from my SPH-D700 using XDA Premium App
Estewa_619 said:
Have u got heimdall to work on your Mac? Cuz I got to start and all but it won't pick up my phone
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
Well I haven't had to use it so I'm not sure. What version OSX is your Mac?
Sent from my Samsung Epic
acer1096xxx said:
Well I haven't had to use it so I'm not sure. What version OSX is your Mac?
Sent from my Samsung Epic
Click to expand...
Click to collapse
10.6 snow leapered
Sent from my SPH-D700 using XDA Premium App
Estewa_619 said:
10.6 snow leapered
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
Hmm, I'm running 10.6.7. Hooked my phone up to Heimdall to test it and everything; it picked it up but I didn't download anything.
acer1096xxx said:
Hmm, I'm running 10.6.7. Hooked my phone up to Heimdall to test it and everything; it picked it up but I didn't download anything.
Click to expand...
Click to collapse
Well the problem is when u put all the files where they go and then u put ur phone in download mode and hit start it says to plug in the phone or something like that I intalled the libusb cuz that's what's makes comunication with the phone but still nothing. So I'm stumped I've tried asking people for help on this and no one ever resopnds to my thread
Sent from my SPH-D700 using XDA Premium App
Estewa_619 said:
Well the problem is when u put all the files where they go and then u put ur phone in download mode and hit start it says to plug in the phone or something like that I intalled the libusb cuz that's what's makes comunication with the phone but still nothing. So I'm stumped I've tried asking people for help on this and no one ever resopnds to my thread
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
Hmm, I think I had the same problem, although I wasn't sure if it was my phone or Heimdall.
Becauseee, I've bricked my phone before a couple of times (had to get it replaced) and before doing so, I tried using Heimdall to see if I could unbrick it. My phone goes into download mode and all, and Heimdall just doesn't recognize it after putting the files in the correct spot. I didn't bother using Odin because I'd have to wait like a week before I got my hands on a PC. xD
Related
Prerequisites have...
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
usadevil7193 said:
hi mate...i m new to android..i own a nexus1..hav rooted without unlockin d bootloader..i am tryin to push d track ball to wake mod...evry time i type adb remount it says permission denied..any ideas to get things workin...???????
Click to expand...
Click to collapse
Welcome to XDA and Android! Are you trying to get help for your Nexus One? This forum here is specifically for the HTC Hero CDMA.
You will probably find better and more specific help in the Nexus One forums which are here: http://forum.xda-developers.com/forumdisplay.php?f=556
Great post, very easy to follow, thank you.
yea I'm trying to do this, over and over, but with not luck. i have sdk on my pc and im running the cmd prompt to run adb remount & devices and its not picking up the phone, wth is going on, plz help
this also works for the samsung Galaxy S in recovery mode.
mikeybonez28 said:
yea I'm trying to do this, over and over, but with not luck. i have sdk on my pc and im running the cmd prompt to run adb remount & devices and its not picking up the phone, wth is going on, plz help
Click to expand...
Click to collapse
mine shows up but then says error, device offline
hi, i have adb recognizing my phone, but i still can't seem to push the files over.... every time i try, i get 'cannot stat 'su' : No such file or directory'. i have made sure over and over to put the files in the same folder where adb is.... actually i have tried placing the files in the tools folder, as well as the platform-tools folder, and i keep getting that error when i try to push anything.
any suggestions? thx
yogi2010 said:
hi, i have adb recognizing my phone, but i still can't seem to push the files over.... every time i try, i get 'cannot stat 'su' : No such file or directory'. i have made sure over and over to put the files in the same folder where adb is.... actually i have tried placing the files in the tools folder, as well as the platform-tools folder, and i keep getting that error when i try to push anything.
any suggestions? thx
Click to expand...
Click to collapse
i had the same issue with something i was trying to push. I think you need to make sure you have exactly the same file name like caps and all. i was trying to push rootexplorer.apk and i got the same message but i then changed it to RootExplorer.apk and it work.(notice the difference in caps)
just watch this and it'll explain everything.
http://www.youtube.com/xdadevelopers
Does it matter where sdk is installed my file path is
C:\Program Files\Android\android-sdk\tools
instead of
C:\android-sdk-windows\tools.
I just installed it in the default location.
I type adb remount and get the not recognised command.....
Thanks.
I don't think my phone is being picked up?
{LCD}Stelios said:
Does it matter where sdk is installed my file path is
C:\Program Files\Android\android-sdk\tools
instead of
C:\android-sdk-windows\tools.
I just installed it in the default location.
I type adb remount and get the not recognised command.....
Thanks.
I don't think my phone is being picked up?
Click to expand...
Click to collapse
Make sure your have the drivers for your phone installed first of all.....Then, in your command prompt you have to change directories to the sdk (which you made harder by not installing to C:\
Try: cd Program Files\Android\android-sdk\tools
Then type: adb devices
That should return "xxxxxxdevice" connected....Then you know you have it set up.
Look in kyouko sig he has all the commands for adb
Sent from my HERO200 using XDA App
Bierce22 said:
just watch this and it'll explain everything.
http://www.youtube.com/xdadevelopers
Click to expand...
Click to collapse
great video arse....thanks for the help donkey
Flashing fresh ROM via ADB in Linux
Hello there.
M volumeUp and VolumeDown buttons are broken on my rooted Desire HD, so I cannot go through CWM any longer.
With regard to this post, I would ask the followings:
1) can this method be used to flash a new ROM (i.e. Coredroid, Leedroid..) without the need of those 2 buttons ?
2) My PC runs Linux. How does it work with this O.S. ?
Thanks
paolo
pacut said:
Hello there.
M volumeUp and VolumeDown buttons are broken on my rooted Desire HD, so I cannot go through CWM any longer.
With regard to this post, I would ask the followings:
1) can this method be used to flash a new ROM (i.e. Coredroid, Leedroid..) without the need of those 2 buttons ?
2) My PC runs Linux. How does it work with this O.S. ?
Thanks
paolo
Click to expand...
Click to collapse
There is a thread somewhere on how to flash without a SD card and flashed using adb I believe, but don't take my word for it. Adb works fine with Linux, just have to set it up differently. Look in my sig and select the compile aosp on Ubuntu one and follow instructions on getting the USB set up.
Sent from Dorian's HTC Hero CDMA
Yes, I saw it. It's http://forum.xda-developers.com/showthread.php?t=911228
The fact is...still have to navigate through menu via VolumeUp/volumeDown buttons
Maybe through ROM manager, premium, I can install ROM direclty.
I am gonna trying
YES ! It works !
Hi I need help. I accidentally wipped my phone in CWM and now I'm trying to use adb push to push the update.zip into my phone sd everything seems to work but then in CMW it says there are no files..
any suggestions?
[Edit]
nevermind
I kept trying different locations
not sure which one did the trick but I'll list the one's I tried
so \update.zip /sdcard/
.... /sdcard/update.zip
(note I put "/update.zip" thinking maybe it needed to be reallocated to the same file/destination
Can i use adb push *.apk /system/app to push several files at once, and then repeat but using *.odex instead of *.apk? I keep ending up getting the same error, and i want to find out which app is messing with me...
rulermon said:
Prerequisites have...
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
Click to expand...
Click to collapse
Hey guys ...
I have also rooted my phone , everything was OK until one day i tried to write something to /system/app and i recieve this error:
in Addition , i am writing "adb shell" and it shows me $
if i am doing adb shell --> $ --> su --> it shows #
Can some1 knows what is the problem?
I figured I would post this fix here in case anyone else ran into this problem. This is assuming you did not change the folder names and let Clockworkmod create them. I haven't had it happen until today, but it's not a nice message to see when you are trying to do a restore.
Code:
Checking MD5 sums...
MD5 mismatch!
To fix this problem use the code below. Substitute the final folder name for the backup you need to fix.
Code:
adb shell
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5
When that finishes, re-run the restore and everything should be fine.
NOTE: As rpearl stated, there could be something really wrong with your nandroid, so use this tutorial as a learning experience and not a fix-all. In my case, everything was fine after restoring. However, that may not always be the case. Do this with caution.
I had a md5 mismatch and was freaking out. Turned out that the folder name for my backup couldn't have spaces in it...
This also works for anyone that wants a to make a 100% stock image but keep recovery.
just replace the boot.img and system.img with the ones from the RUU and recalc.
i just got this problem. do i need the "#" for each command?
Any idea what causes this? Is it just the folder name with spaces?
zeke1988 said:
i just got this problem. do i need the "#" for each command?
Click to expand...
Click to collapse
No the # simply means you are logged in as root or Su
If its showing $ then you may need to type /system/bin/Su
I believe or could be /system/lib/su I'm still pretty new to Linux / Android
Sent from my ADR6300 using Tapatalk
s197 said:
Any idea what causes this? Is it just the folder name with spaces?
Click to expand...
Click to collapse
Spaces aren't allowed but it could also be caused by corrupted data or sometimes even simply renaming the folder
Sent from my ADR6300 using Tapatalk
Be warned: If the nandroid was legit broken, then this will restore it *anyways* and your system won't boot / will have weird errors / whatever was wrong with the nandroid will be wrong with your system now.
Obviously you can just restore a previous nandroid if that happens.
i did this and still cant fix the md5. making me to use the older backup
For n00bs could you elaborate on this post, i'm having the same problem.
"To fix this problem use the code below"
I know this is through cmd, but what needs to be where when i'm typing exactly that in (changing the folder name etc) what screen do I need to be on. If it was more detailed, and thank you so far because this is the only post on the net, it could be very useful!
jinkzuk said:
For n00bs could you elaborate on this post, i'm having the same problem.
"To fix this problem use the code below"
I know this is through cmd, but what needs to be where when i'm typing exactly that in (changing the folder name etc) what screen do I need to be on. If it was more detailed, and thank you so far because this is the only post on the net, it could be very useful!
Click to expand...
Click to collapse
If you're messing with nandroid backups by now, we'd hope you would know how to get adb shell started.
So basically you start up adb shell in a command prompt on your computer, this connects to your phone, then you follow those commands following "adb shell"
A brief overview of getting to the adb commands >> http://forum.xda-developers.com/showthread.php?t=709220
permission denied error
I'm using windows 7 CMD to connect to my hero for resolving this md5 mismatch issue.
But when i type in the last command, which is -
md5sum *img > nandroid.md5
it gives me an error -
md5sum: permission denied
I tried running the cmd as administrator also but I dont know in windows how to do a 'SU' like in ubuntu.
can you please give a tip what to do ?
Sean.
Ok wow you guys rock thanks this works great.
THANK YOU!!!!!!!!!!!!!
I had this happen to me today... I woulda had to spend a crapload of time getting things all set up on my phone if I hadn't found this thread. It was my fault, I changed the name of the Nandroid backup folder... I had no idea you couldn't do this.... went to restore and BOOM MD5 mismatch.... noooooooooooo.
Thank you again OP for posting this you really saved my day today.
Jacked up Dell Streak/ US ver. build 6601 MD5 Checksum error
After screwing up my brand new Streak, I turned to XDA and MoDaCo to fix my screw-ups. Read this and did that, and nothing would work. The buttons would flash the Dell logo would come up and freeze. So here is another solution that worked for me Step by step.
Installed the fast boot using Windows 7 64 bit I downloaded Fastboot and followed there instructions. Not sure what it did for me, but I did it.
Now as the phone was, I was unable to do any kind manipulation of the SD card. I tool the micro SD card and put it into an SD adapter and added the files via my lap top. See instructions here
Technically you don't need to worry about flashing cache.img and data.img but i performed this backup after a factory reset so your not taking any of my personal info/data
fasboot didn't work for me for so i restored with nandroid
Nandroid
+Create a folder named "Clockworkmod" on your storage card
+In that folder create a folder named "backup"
+Create a folder in "backup" named whatever you want and place boot.img, system.img, cache.img, data.img, recovery.img and nandroid.md5 in that folder.
+Flash Clockworkmod Recovery
2.5.0.1 didnt work on mine but 1.8.1.7 did :/
+Enter clockworkmod recovery
-Power on device while holding both volume keys, then select "2. Software upgrade via Update.pkd on SD Card"
Now you should be in ClockworkMod Recovery
-Scroll down to nandroid using the volume keys and press the camera button to select it
-Select Restore and choose your folder (the one you placed in the backup folder)
thanks fone_fanatic 28th August 2010, 03:14 AM
DO NOT PUT ANY SPACES IN YOUR FILE STRUCTURE. I did and it gave me an "MD5 Check Sum Error" took the space out and bam it worked.
Rebooted the phone and so far every thing works. GPS, WiFi etc and no dam flashing lights or self reboots or O2 stuff Hope this helps ya....Good luck you will need it.
Ihtfp69 to the rescue again!
Man, I can never repay you for how much you've helped me out and saved my bacon! Other dev's, take note, this is an exemplary developer here and his SkyRaider rom is beyond compare!
seansin said:
I'm using windows 7 CMD to connect to my hero for resolving this md5 mismatch issue.
But when i type in the last command, which is -
md5sum *img > nandroid.md5
it gives me an error -
md5sum: permission denied
I tried running the cmd as administrator also but I dont know in windows how to do a 'SU' like in ubuntu.
can you please give a tip what to do ?
Sean.
Click to expand...
Click to collapse
I do not have ABD on my Win 7 machine so I had to use CMD as well. I too received an error, however mine basically said that md5sum was not a recognized command. Not sure where you got md5sum for your win 7 machine, but I got mine at the following website... (fourmilab.ch/md5/) and this one worked just fine. Unzip and copy md5.exe to the system32 folder.
If you are still working through this... good luck. Hopefully it can be helpful to someone else either way. --Josh
OMG ihtfp69!! You're a life-saver!
cscimmia said:
I do not have ABD on my Win 7 machine so I had to use CMD as well. I too received an error, however mine basically said that md5sum was not a recognized command. Not sure where you got md5sum for your win 7 machine, but I got mine at the following website... (fourmilab.ch/md5/) and this one worked just fine. Unzip and copy md5.exe to the system32 folder.
If you are still working through this... good luck. Hopefully it can be helpful to someone else either way. --Josh
Click to expand...
Click to collapse
Hmmm...I just used md5sum from the phone's shell. No need to get anything for Windows.
hey i tried the steps you guys gave buy i get
# cd /sdcard/clockworkmod/backup/2010-10-30.08.23.53
cd: can't cd to /sdcard/clockworkmod/backup/2010-10-30.08.23.53
this is what i did.
I opened terminal in OSX and typed "adb shell" after that i typed "cd /sdcard/clockworkmod/backup/2010-10-30.08.23.53" but it didnt work.
anyone know what i did wrong??
i also did "adb devices" in terminal and it detects my device. i check the su on my sgs and i see my computer, it sees it as unknown.
So I'm trying to follow this guide to downgrade: http://forum.xda-developers.com/showthread.php?t=1178912 (Don't have enough posts to comment there)
Whenever I enter "adb push fre3vo /data/local/tmp" into terminal it says "cannot stat 'fre3vo': No such file or directory"
What am I doing wrong? I'm a huge noob at this...
did you download the fre3vo .zip file? you need to unzip that file and move into into the platform-tools folder that's in the sdk developer folder for it to be able to find the file and work.
inourstars said:
did you download the fre3vo .zip file? you need to unzip that file and move into into the platform-tools folder that's in the sdk developer folder for it to be able to find the file and work.
Click to expand...
Click to collapse
Yes, I even tried re-downloading it to make sure there wasn;t something wrong with it.
By the way, I'm doing this on a mac. Would that make any difference?
U need to unzip the file inside the platform tools. Not in any fre3vo folder. Same thing for the rest of the file.
Sent from my HTC Vision using XDA App
I dont think its a problem with the file, i had the same issue and it was because i didnt really understand how to use cmd.exe on my PC. Do what i did and read up on how to use cmd and maybe watch some youtube cmd help videos.
Sent from my HTC Vision using XDA App
Im having the same problem before this. When i unzip the file not inside the folder, the problem solve. U also can change the directory manually from platform-tools to fre3vo.
Sent from my HTC Vision using XDA App
hello
i just see how to root KF and it's so hard !!
i don't know how to use ADB
This seems pretty helpful in figuring out adb
http://forum.xda-developers.com/showthread.php?t=502010
When I rooted mine a few days ago, I had spent the night before trying to do it on Windows. Two computers, and none of the files that were supposed to exist did, even thought I had followed the directions up to that point.
Oddly enough, the Linux/Mac tutorial on the forums here works incredibly well and is incredibly easy. If you can use Linux (even a LiveCD or USB drive install) that is probably going to be the easiest method.
http://rootkindlefire.com
Watch the YouTube video or do the step by step method. You do need to download Android SDK and install an USB driver as well. Took maybe 15 minutes all together
Once you get to the point to make the .android folder in your users folder (if you dont have sdk installed), you have to use the command prompt (cmd) or else you will get the "You mus type a file name" error. The command is " mkdir .android ". just make sure you do it in the proper directory (cmd should show C:\Users\*yourusername*)
I just did it following this guys video. Quality is great and so are the instructions.
Shows:
-how to install adb
-how to edit the appropriate files
-how to root KF with superoneclick
http://www.youtube.com/watch?v=f409qNgpzSA&feature=related
mewshi said:
When I rooted mine a few days ago, I had spent the night before trying to do it on Windows. Two computers, and none of the files that were supposed to exist did, even thought I had followed the directions up to that point.
Oddly enough, the Linux/Mac tutorial on the forums here works incredibly well and is incredibly easy. If you can use Linux (even a LiveCD or USB drive install) that is probably going to be the easiest method.
Click to expand...
Click to collapse
I'll second this. It's extremely simple and straight forward. Much simpler than the Windows method if you're at all comfortable with the command line. And as the OP said you don't even need Linux installed you can use a live CD.
Sent from my HTC Flyer P512 using Tapatalk
sum182 said:
Once you get to the point to make the .android folder in your users folder (if you dont have sdk installed), you have to use the command prompt (cmd) or else you will get the "You mus type a file name" error. The command is " mkdir .android ". just make sure you do it in the proper directory (cmd should show C:\Users\*yourusername*)
Click to expand...
Click to collapse
This is what I had to do basically.
I created a folder android, and wouldnt let me name it .android
So in command prompt i renamed it, then I put an empty txt file, renamed it to the necessary ini, pasted that line they tell you and it worked first try.
Hi All,
I am in the process of trying to root and install a custom rom on my Nexus 4 4.4.2. I am a new linux user (Linux Mint 16) and my rooting experience is limited. When I try to do an "abd pull /sdcard/ /sdcard/" this is what it says
adb pull /sdcard/ /sdcard/
pull: building file list...
pull: /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1 -> /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1
cannot create '/sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1': No such file or directory
I was able to successfully do an abd backup...
USB debugging is enabled.
I get the same error whether the phone is connected as a Media device (MTP) or Camera (PTP).
any reason why the pull command wont work?
Any help is appreciated!
smokewagon said:
Hi All,
I am in the process of trying to root and install a custom rom on my Nexus 4 4.4.2. I am a new linux user (Linux Mint 16) and my rooting experience is limited. When I try to do an "abd pull /sdcard/ /sdcard/" this is what it says
adb pull /sdcard/ /sdcard/
pull: building file list...
pull: /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1 -> /sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1
cannot create '/sdcard/Android/data/com.google.android.gallery3d/cache/imgcache.1': No such file or directory
I was able to successfully do an abd backup...
USB debugging is enabled.
I get the same error whether the phone is connected as a Media device (MTP) or Camera (PTP).
any reason why the pull command wont work?
Any help is appreciated!
Click to expand...
Click to collapse
Maybe this will help?
http://www.herongyang.com/Android/adb-push-and-pull-Command.html
Not a big fan of the CLI.
Sent from my Nexus 7 (2013)
Your problem (almost certainly) is that you don't have a /sdcard directory (folder) on your computer unless you created one (there certainly is no default /sdcard in a linux desktop system).
I also don't know how you installed ADB on your computer.
(This should work, otherwise I'll have to change what I wrote below).
Try this:
$ cd ~/Desktop
(This changes you to your desktop directory, if you are not already there)
$ mkdir sdcard
(this will make a new directory called "sdcard" on your desktop, you should see it pop up on your desktop)
$ adb pull /sdcard/ ~/Desktop/sdcard
(should pull the contents of /sdcard from your phone and put them in your newly created directory on your desktop: ~/Desktop/sdcard)
BAM
A little extra basic info for you, and welcome to linux. Soon you have the power to take over the world (ha ha ha... no, actually I'm not kidding at all).
As a basic rule, you should pretty much always be working inside of your home directory, for dealing with your personal files. Your home directory is /home/yourname. On my computers, my home is /home/kirk. My wife's home directory is /home/amy.
"~" is a shortcut for the home directory, for whomever is logged in at that moment.
If you wanted something that is on your desktop, it would be in the directory: /home/yourname/Desktop (~/Desktop). If you wanted to use your documents directory, it is : /home/yourname/Documents(~/Documents).
/home/yourname is where you usually where want to do your stuff.
"/" is the very root directory of the whole system, so you would be better off not creating and doing things like making directories like "/sdcard". That's a bad move. Leave root for system files. Not that you are necessarily going to destroy something by creating a /sdcard directory. But it'll cause you a few hassles.
So, use /home/yourname/sdcard (~/sdcard). Or if you want it on your desktop, (like I did above) use /home/yourname/Desktop/sdcard (~/Desktop/sdcard). Doing things inside of /home/yourname(~) means that you are the owner of that folder and everything in it, not root.
Otherwise you will just be causing headaches for yourself and having to grant yourself root permissions to work with those files (hassle). There's no good reason to do that to yourself. And if you did give yourself root permissions, and screwed up other stuff in the root directory like in: /etc or /dev or /bin, then you will REALLY be irritated.
Stick to your home for your personal files. /home/yourname (~)
Leave "/" or the "root" directory for system files.
You could check my little bash program for adb for Linux too. It's a program to be used in the terminal and it'll pull data off the sdcard etc. You can find it here
Sent from my Nexus 4 running Android 4.4
Thank you all for the help, I'll let you know how it goes.
Do I need drivers for my nexus 4 to work with Linux?
Sent from my Nexus 4 using Tapatalk
smokewagon said:
Thank you all for the help, I'll let you know how it goes.
Do I need drivers for my nexus 4 to work with Linux?
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Try it without any installation of drivers just install adb tools and try the command line or my little tool. If it's not working, check the guides how to set up the usb-rules for adb
Sent from my Nexus 4 running Android 4.4
Thanks, will do.
Sent from my Nexus 4 using Tapatalk
iowabeakster said:
Try this:
$ cd ~/Desktop
(This changes you to your desktop directory, if you are not already there)
$ mkdir sdcard
(this will make a new directory called "sdcard" on your desktop, you should see it pop up on your desktop)
$ adb pull /sdcard/ ~/Desktop/sdcard
(should pull the contents of /sdcard from your phone and put them in your newly created directory on your desktop: ~/Desktop/sdcard)
BAM
Click to expand...
Click to collapse
BAM INDEED! It worked! I am pulling the contents now. Thanks a ton, and thanks for the other basic linux info, I will put it to good use.
Any other tips on using Linux to root android?
Shooooot....
So after the pull command finished, i opened the sdcard directory I created on my desktop, and it was empty....the pull command said this when it was done...
1733 files pulled. 0 files skipped.
2129 KB/s (995292697 bytes in 456.480s)
Any ideas?
Ok, I played with some settings and got it to work, though I don't know why it worked.
USB Debugged is enabled.
The first time I tried to 'pull' i had my USB computer connection set to "Camera (PTP)" - it didn't work.
I tried again changing the USB computer connection to "Media device (MTP)" - it didn't work.
I changed it back to "Camera (PTP)" and my computer recognized it in a different way than the first time (a dialog box popped up asking me what I wanted to do with the pictures that were on the device I had connected, this didn't happen the first time).
I am glad the pull command finally worked, I just wish I knew why.
I guess it's a tough road being a linux NOOB and a (near) Android NOOB. It's good to learn something new and keep my brain young.