Setting up SDK on a mac - Nexus One General

Has anyone here found a good guide for setting up the sdk on a mac. I would like to root m nexus but need to set up sdk first in order to use ADB. Any help would be appreciated.

1. Download the SDK.
2. Unzip and put it anywhere you want. I put it in my Home folder (which should have your username as its name). The actual path is /Volumes/Macintosh HD/Users/<your_username>
For conveniences, rename the file to "android" or "androidSDK"
3.Open Terminal (in Applications). cd to your home directory. By default, when u open it, you should already be in your home directory. Type:
ls -a
Click to expand...
Click to collapse
to see all the files available there.
Look for a file called .bash_profile. If you don't see it, type:
touch .bash_profile
Click to expand...
Click to collapse
to create it.
4. Open .bash_profile by typing:
open -e .bash_profile
Click to expand...
Click to collapse
Then add this line:
export PATH=${PATH}:<your_sdk_dir>/tools
Click to expand...
Click to collapse
Where <your_sdk_dir> is your SDK's directory. If you put the SDK file in the home folder, and rename it like in step 1, then the path looks like this:
export PATH=${PATH}:/Users/<your_username>/android/tools
Click to expand...
Click to collapse
Command + S to save. You're done!
Now if you want to test whether it's working. Simply plug in your device (be sure to enable USB debug), and type:
adb devices
Click to expand...
Click to collapse
and your device should show up.
Note: fastboot = fastboot-mac in mac

Thanks for the help. But I am still cant see my nexus in adb.

Related

Need some adb help...

Hey, I'm trying to push some stuff onto my mytouch using the included bridge tool, adb, and can't quite get it to work. AKA, I have no effing clue what I'm doing. I'm good with everything else, but when you sit me in front of Terminal I'm useless. Anyway, running Mac OS X, 10.5, I've got the SDK installed, exported, all that, but the internet has been no help with telling me what to do next. Please, someone help? D:
not sure on mac
but on pc i mostly put the files i want to push in to the sdk tools folder which gives you less to type
if you want to push stuff you need to know where to push on phone like
adb remount (makes drive read/write)
adb push xxxx.ogg /system/media/audio/ringtones/
if you want to install something
adb install twitter.apk
so my terminal looks like this (ignore errors phone not in usb)
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\SI>cd s\tools
C:\Users\SI\s\tools>adb remount
* daemon not running. starting it now *
* daemon started successfully *
error: device not found
C:\Users\SI\s\tools>adb push xxxx.ogg /system/media/audio/ringtones/
error: device not found
C:\Users\SI\s\tools>
sitimber has given some good tips. On a Mac, you have to put "./" in front of adb to get it to execute.
For example, I have the Android SDK installed in /Developer/Android. In order for me to use adb, I open terminal and do the following:
cd /
cd /Developer/Android/Tools
./adb (insert whatever adb command here)
jsnyng said:
cd /
cd /Developer/Android/Tools
./adb (insert whatever adb command here)
Click to expand...
Click to collapse
worked perfectly! all the info i was getting was either for windows or linux and i was getting wicked confused. i have like nooo training with terminal so i was lost. that worked perfectly, thank you :]
do i still have to type "adb (command)" when i'm in the shell? i know that far, that im in the adb shell when there's a # next to my open commandline.
This will make it a step easier. If you want to be able to "adb command" every time you open the shell without changing directories,
Open terminal.
Run:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
Click to expand...
Click to collapse
How you will be able to see hidden files.
Download the OSX SDK http://developer.android.com/sdk/download.html?v=android-sdk_r3-mac.zip
Unzip it. Move the entire folder into your root directory "/"
rename it to "android".
Launch TextEdit.app
Hit "Format>Make Plain Text"
Now type (in the document)
export PATH=${PATH}:/android/tools
Click to expand...
Click to collapse
Save is as
.bash_profile
in YOUR HOME DIRECTORY.
Make sure you uncheck "If no extension, use .txt"
Say yes when it asks if you want to make this a system file.
now close terminal (all the way) and relaunch. Type "adb" and whatever you'd like and you're set!
jewishjawsh said:
do i still have to type "adb (command)" when i'm in the shell? i know that far, that im in the adb shell when there's a # next to my open commandline.
Click to expand...
Click to collapse
No, you don't.
chordmasta's directions for creating a .bash_profile are correct, but I'll point out that you don't need to move it to root. I personally prefer not to clutter up root with my personal stuff. You also don't need to rename it if you don't want to.
For example, if you have it in "Documents", you would use this path (replacing my username "softbanksucks" with the name of your home directory.)
Code:
export PATH=${PATH}:/Users/softbanksucks/Documents/android-sdk-mac_x86-1.6_r1/tools
softbanksucks said:
No, you don't.
chordmasta's directions for creating a .bash_profile are correct, but I'll point out that you don't need to move it to root. I personally prefer not to clutter up root with my personal stuff. You also don't need to rename it if you don't want to.
For example, if you have it in "Documents", you would use this path (replacing my username "softbanksucks" with the name of your home directory.)
Code:
export PATH=${PATH}:/Users/softbanksucks/Documents/android-sdk-mac_x86-1.6_r1/tools
Click to expand...
Click to collapse
Thanks for pointing that out. I should have mentioned it. I knew this walkthrough would work without having to change values.
chordmasta said:
Thanks for pointing that out. I should have mentioned it. I knew this walkthrough would work without having to change values.
Click to expand...
Click to collapse
No prob - knew that you knew, just figured I'd point it out for those who don't

Command Propt??

sorry but how do i get to adb shell from the command propt??
cd to the sdk\tools folder. That is where the commands you need are.
adb remount
adb shell
wadeheisen said:
cd to the sdk\tools folder. That is where the commands you need are.
adb remount
adb shell
Click to expand...
Click to collapse
but once i am in the tools folder what program do i use because when i click on them they come up and go away real fast??
xxxk15 said:
but once i am in the tools folder what program do i use because when i click on them they come up and go away real fast??
Click to expand...
Click to collapse
What are you trying yo do? What rom are you running? Are you rooted? Need more info please.
cd to the sdk\tools folder. That is where the commands you need are.
adb remount
adb shell
Click to expand...
Click to collapse
but once i am in the tools folder what program do i use because when i click on them they come up and go away real fast??
Click to expand...
Click to collapse
Go to a command promt. In other words go to start and search for this
Cmd
Then type commands mentioned above
The easiest way is to just hold down SHIFT and then right click on blank space, and then select Open Command Window Here. Also, I'd HIGHLY recommend adding ADB to your PATH.
well i am running 2.09.1 DC and i am rooted. when i download apps it tells me "Insufficient Storage Available" I have enough internal memory so i searched that and one person said they fixed it by
cd /data/data
rm -rf info.lamatricexiste.network
So i wanted to try it but i am really confussed on how about going to do this
xxxk15 said:
well i am running 2.09.1 DC and i am rooted. when i download apps it tells me "Insufficient Storage Available" I have enough internal memory so i searched that and one person said they fixed it by
cd /data/data
rm -rf info.lamatricexiste.network
So i wanted to try it but i am really confussed on how about going to do this
Click to expand...
Click to collapse
I assume you used a kitchen to root?
FWIW This is really basic knowledge that you will need as you use your phone.
So if you are a PC:
0. Click Start
1. Click RUN
2. type CMD in the box press enter
3. In the command prompt type
Code:
cd C:\AndroidSDK\Tools
this is just a guess and where most people have it. It MAY be different for you.
4. Type
Code:
adb remount
adb shell
5. You should see a "#"
6. Now type
Code:
cd /data/data
rm -rf info.lamatricexiste.network
Kcarpenter said:
I assume you used a kitchen to root?
FWIW This is really basic knowledge that you will need as you use your phone.
So if you are a PC:
0. Click Start
1. Click RUN
2. type CMD in the box press enter
3. In the command prompt type
Code:
cd C:\AndroidSDK\Tools
this is just a guess and where most people have it. It MAY be different for you.
4. Type
Code:
adb remount
adb shell
5. You should see a "#"
6. Now type
Code:
cd /data/data
rm -rf info.lamatricexiste.network
Click to expand...
Click to collapse
ok i understand but my command propt comes up with stuff in it
C:\Documents and Settings\Admin>
How do i get rid of this??
I assume you used a kitchen to root?
FWIW This is really basic knowledge that you will need as you use your phone.
So if you are a PC:
0. Click
Click to expand...
Click to collapse
ok i understand but my command propt comes up with stuff in it
C:\Documents and Settings\Admin>
How do i get rid of this??
Click to expand...
Click to collapse
Nothing just type the commands that were given and UT will take u to the right directory
Papa Smurf151 said:
Nothing just type the commands that were given and UT will take u to the right directory
Click to expand...
Click to collapse
o ok thanks it worked!!

Unable to "push su" in rooting my Xoom (push: not found) - any ideas?

So I just got to one of the final steps in rooting my xoom, but for some reason, when I enter the "push su /system/bin/" command, I get a "push: not found" response. I'm completely stuck at this step...anyone have any ideas on this one??
Was adb remount succesful before you tried?
joeski27 said:
So I just got to one of the final steps in rooting my xoom, but for some reason, when I enter the "push su /system/bin/" command, I get a "push: not found" response. I'm completely stuck at this step...anyone have any ideas on this one??
Click to expand...
Click to collapse
I ran in to this. Make sure your Xoom is not on the lock screen. Should be good to go.
PaulG1488 said:
Was adb remount succesful before you tried?
Click to expand...
Click to collapse
Yes, adb remount was in fact successful.
Edit - now I'm getting "cannot stat 'su': No such file or directory"
just to be clear, is it supposed to be:
adb push su /system/bin/
or
adb shell push su /system/bin/
???
syntax is "adb push ..."
bcgaynor82 said:
syntax is "adb push ..."
Click to expand...
Click to collapse
thats what I thought, and when I do this I get the "cannot stat 'su': No such file or directory" error message.
I have no idea what's going on here. Its almost as if I dont have the xoomroot files (including su) in the correct place, but they are there in the SDK tools folder as they are supposed to be. UGH!?!!?
joeski27 said:
thats what I thought, and when I do this I get the "cannot stat 'su': No such file or directory" error message. ?????
Click to expand...
Click to collapse
Make sure that one of the following is true:
the files you want to push are in the same folder as adb
adb is in your path and you are in the directory that the files are
Also make sure you are running this from your computer and not the Xoom, although it sounds like you are bumping into one of the two scenarios above.
nindoja said:
Make sure that one of the following is true:
the files you want to push are in the same folder as adb
adb is in your path and you are in the directory that the files are
Also make sure you are running this from your computer and not the Xoom, although it sounds like you are bumping into one of the two scenarios above.
Click to expand...
Click to collapse
yes they are in the same folder as adb, and I'm in the adb directory while in terminal. still getting the same error message. I'm so lost on this one.
Is there any chance that the unlock didn't take? Though I can't see how it didn't - I went through the entire procedure, answered all the prompts during fastboot, and it did erase/reset the tablet afterwards, so I'm guessing that isn't it.
joeski27 said:
yes they are in the same folder as adb, and I'm in the adb directory while in terminal. still getting the same error message. I'm so lost on this one.
Click to expand...
Click to collapse
Any chance you can screenshot your sdk tools folder
They're supposed to be in the 'platform-tools' folder, not tools. The files go in the same folder as adb so it knows where they are.
PaulG1488 said:
Any chance you can screenshot your sdk tools folder
Click to expand...
Click to collapse
Screenshot of my sdk tools folder:
EDIT: heres the link:
http://i869.photobucket.com/albums/ab259/olesweski/Screenshot2011-03-03at122552AM.png?t=1299130486
Elysian893 said:
They're supposed to be in the 'platform-tools' folder, not tools. The files go in the same folder as adb so it knows where they are.
Click to expand...
Click to collapse
I know, but I had already moved adb into the tools folder earlier on. So they are in the same folder.
send a screenshot of everything in your command prompt if u can please
PaulG1488 said:
send a screenshot of everything in your command prompt if u can please
Click to expand...
Click to collapse
here's the screenshot of my terminal:
http://i869.photobucket.com/albums/ab259/olesweski/Screenshot2011-03-03at124929AM.png?t=1299131460
Do you have the 3.0 sdk installed
Wait I see the problem after you remounted you have to direct it back into your tools foledr before doing the adb push command
PaulG1488 said:
Do you have the 3.0 sdk installed
Click to expand...
Click to collapse
all I know is that i have the latest sdk installed, but are you referring to something additional to that? such as "SDK Platform Android 3.0, API 11, revision 1" ?
joeski27 said:
all I know is that i have the latest sdk installed, but are you referring to something additional to that?
Click to expand...
Click to collapse
After u did adb remount it took you back to your main folder make sure you direct it back to your tools folder then run the adb push command and problem will be solved
PaulG1488 said:
After u did adb remount it took you back to your main folder make sure you direct it back to your tools folder then run the adb push command and problem will be solved
Click to expand...
Click to collapse
So I just did the remount again (successfully), and now instead of just entering "adb push ...", I would need to do what?
EDIT - just tried this, and got this result:
Joseph-Olesweskis-iMac:~ olesweski$ /Users/olesweski/Desktop/android-sdk-mac_x86/tools adb push su /system/bin/
-bash: /Users/olesweski/Desktop/android-sdk-mac_x86/tools: is a directory

How I do this command?

In Blayo 0.7 rom written
kernel modules
Loading kernel modules is done by editing /data/local/modules file. If you want to enable for example ipv6 support, you have to edit this file adding "ipv6" (without absolute path and any suffixes) to it. The same goes for other modules too. Modules are added separated by spaces.
Click to expand...
Click to collapse
So how I edit this files?or how I can find their location?
Has this forum some information about editing Android system?
Using some file manager (astro, open intents, root explorer.. whatever you have installed), navigate to that modules file and open it in a text editor, then literally just type in 'ipv6' without the quotations, then save and exit. Reboot your phone and you're good to go.
If you feel intensely nerdy you could echo it in:
Code:
adb shell
echo "ipv6" >> /data/local/modules
reboot
el.dizzee said:
Using some file manager (astro, open intents, root explorer.. whatever you have installed), navigate to that modules file and open it in a text editor, then literally just type in 'ipv6' without the quotations, then save and exit. Reboot your phone and you're good to go.
Click to expand...
Click to collapse
I opened in a text editor but it doesn't show me nothing
I use root explorer
TheGrammarFreak said:
If you feel intensely nerdy you could echo it in:
Code:
adb shell
echo "ipv6" >> /data/local/modules
reboot
Click to expand...
Click to collapse
write "ipv6" quotes or not?
With quotes, I think. To check what you added to the file you'd just echo or cat the file back. If it's go quotes then you can overwrite the whole file by using a > instead of >>
TheGrammarFreak said:
With quotes, I think. To check what you added to the file you'd just echo or cat the file back. If it's go quotes then you can overwrite the whole file by using a > instead of >>
Click to expand...
Click to collapse
Sorry for this silly question but what the difference between echo or cat?
I think I will be on the first way because I don't really know how to use ADB right?
virus54 said:
Sorry for this silly question but what the difference between echo or cat?
I think I will be on the first way because I don't really know how to use ADB right?
Click to expand...
Click to collapse
Lol. Cat would be better in this case. And I did suggest this method with the preface "If you feel intensely nerdy you could ..."
ADB is easy though
Can you plz give me a guide with ADB?
I will try your way but there is may be something bad with my phone?
Download this (it's the ADB tools) to a known location. Then extract the zip to a known location. Open a command window in that location (for the sake of this guide: C:\ADB) So open CMD (start, run, type CMD, hit enter) In CMD type "cd C:\ADB". Plug your phone into the computer (make sure you're using CM). Debugging mode should be on (you'll get a notification in the status bar of your phone). Type "adb shell". You'll end up with a "#" and nothing else (if you get a "$" just type "su" and hit enter, and on the phone's screen accept the Superuser request).
Execute your comands
TheGrammarFreak said:
Download this (it's the ADB tools) to a known location. Then extract the zip to a known location. Open a command window in that location (for the sake of this guide: C:\ADB) So open CMD (start, run, type CMD, hit enter) In CMD type "cd C:\ADB". Plug your phone into the computer (make sure you're using CM). Debugging mode should be on (you'll get a notification in the status bar of your phone). Type "adb shell". You'll end up with a "#" and nothing else (if you get a "$" just type "su" and hit enter, and on the phone's screen accept the Superuser request).
Execute your comands
Click to expand...
Click to collapse
Thank you.
I succeed
what else I can do with ADB?
virus54 said:
Thank you.
I succeed
what else I can do with ADB?
Click to expand...
Click to collapse
Loads
10chars
thank you with your help i did it
virus54 said:
thank you with your help i did it
Click to expand...
Click to collapse
Sweet.
twitter.com/TheGrammarFreak
virus54 said:
I opened in a text editor but it doesn't show me nothing
I use root explorer
write "ipv6" quotes or not?
Click to expand...
Click to collapse
I guess I'm kinda late on the response, but yeah, it's supposed to be blank. And then all you have to to is add in "ipv6", WITHOUT the quotes, and then save and exit. But TGF's method works well too, didn't know to do that.
No problem I will look and learn too
better that i will enter as a 'Hex editor'?
because on "text editor" I cannot edit

how to disable light sensor in stock rom

this light sensor is really pissing me off , is there any way to shut it off , i'v found a way that is telling me to chmod 777 the patch file after installing it manually but idon't know what chmod 777 is and how to do this please help me
Is stock eclair there isn't a GUI option to disable it.
About chmod 777, I haven't done it yet... but I guess you have to adb shell something.
To know how to use those commands, just have a click on the search button...
maveloth said:
Is stock eclair there isn't a GUI option to disable it.
About chmod 777, I haven't done it yet... but I guess you have to adb shell something.
To know how to use those commands, just have a click on the search button...
Click to expand...
Click to collapse
i searched and found nothing please help it's pissing me off for real !! se u suck i bought this phone because of it's design but their software update service sux !
I have found what you were looking for [just search in devs forum].
Here it is an explaining link:
http://forum.xda-developers.com/showthread.php?t=888232
maveloth said:
I have found what you were looking for [just search in devs forum].
Here it is an explaining link:
http://forum.xda-developers.com/showthread.php?t=888232
Click to expand...
Click to collapse
thanks i found this thread before but i can't apply this method because i don't know how to chmod777 the file so i can't get this to work ? can you try it and then tell me how to exactly do it please , thanks again m8
First thing, you have to learn how to adb shell.
But you have to make everything ok before using it.
So, let's see how it has to be done..
Download the .zip file posted on the other thread [linked above].
Using root explorer, just copy and paste the content of the .zip file under the /etc/ path of the phone.
After you have done this, let's adb shell.
1. Download this file: http://db.tt/cq44S4v
2. Extract the adb.zip file to C:\adb [there will be a folder named "adb" within the C:\ path, with 3 files within it].
3. On your phone, click Settings > Applications > Development, and make sure USB Debugging is on.
4. Plug your phone into your computer via USB cable [it needs to be on]. It should say installing drivers if your phone is plugged for the first time and you are using Windows.
4.1 You'd better install the drivers which comes with X8 software [PC Companion], or just google for them.
5. After it installs the drivers, go to the Start menu and type "cmd" into the search bar to open the command prompt.
6. Type the following into the command prompt window [hitting enter at the end of every line]:
Code:
cd\
cd adb
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set.
After all this procedure, you can finally "chmod" your files.
Always from the CMD, type this:
Code:
adb shell
You should see a "#" on the left. That's good.
Now enter the path with the file to chmod:
Code:
cd /etc
Then finally chmod it:
Code:
su chmod 777 hw_config.sh
You're done.
Hope this helps.
maveloth said:
First thing, you have to learn how to adb shell.
But you have to make everything ok before using it.
So, let's see how it has to be done..
Download the .zip file posted on the other thread [linked above].
Using root explorer, just copy and paste the content of the .zip file under the /etc/ path of the phone.
After you have done this, let's adb shell.
1. Download this file: http://db.tt/cq44S4v
2. Extract the adb.zip file to C:\adb [there will be a folder named "adb" within the C:\ path, with 3 files within it].
3. On your phone, click Settings > Applications > Development, and make sure USB Debugging is on.
4. Plug your phone into your computer via USB cable [it needs to be on]. It should say installing drivers if your phone is plugged for the first time and you are using Windows.
4.1 You'd better install the drivers which comes with X8 software [PC Companion], or just google for them.
5. After it installs the drivers, go to the Start menu and type "cmd" into the search bar to open the command prompt.
6. Type the following into the command prompt window [hitting enter at the end of every line]:
Code:
cd\
cd adb
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set.
After all this procedure, you can finally "chmod" your files.
Always from the CMD, type this:
Code:
adb shell
You should see a "#" on the left. That's good.
Now enter the path with the file to chmod:
Code:
cd /etc
Then finally chmod it:
Code:
su chmod 777 hw_config.sh
You're done.
Hope this helps.
Click to expand...
Click to collapse
lol it's freaking hard , thanks for your help m8 i appreciate it is there any easier way?
Have you tried installing Spare Parts from the market. I know it has light sensor tweak option plus has tons of other useful tweaks and monitors.
Sent from my I7500 using Tapatalk
Master Darko said:
Have you tried installing Spare Parts from the market. I know it has light sensor tweak option plus has tons of other useful tweaks and monitors.
Sent from my I7500 using Tapatalk
Click to expand...
Click to collapse
tried it still no use , the sensor is still working !!

Categories

Resources