ABD for MAC users PLEASE HELP - myTouch 3G, Magic Android Development

Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks

You mean adb, right?
The commands for adb are pretty much the same ones used on windows

Not development...post in general.
Anyways,
do you have the sdk set up as per these instructions? You dont need to worry about the eclipse stuff. The most important thing is getting the sdk downloaded, extracted and the /tools dir added to your path. From there, the command are exactly the same. eg:
Code:
adb push
adb pull
adb shell
adb shell reboot recovery
...

LostinThesauce said:
Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks
Click to expand...
Click to collapse
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.

hr00st said:
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.
Click to expand...
Click to collapse
You dont have to mount the folder. It may be easier but in the long run adding it to path will teach you more. Just do a google search on edit path osx and you will find how to create or edit the bash_profile to add the tols folder to your path. from there you just open terminal and adb away

u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..

farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
add me as #2 who never went iphone. i stayed winmo until i could get a canadian spphire shipped to usa to run the htc sensui. btw...i use mac for me and pc at work and my macbook runs a virtual machine so i fire up xppro os in a dedicated "spaces" desktop so i do use sdk and copilot's nav interface in windows.
i guess i'm "bi". actually "tri" now

Good to go
got it running this is fun

LostinThesauce said:
got it running this is fun
Click to expand...
Click to collapse
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.

lpasq said:
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.
Click to expand...
Click to collapse
There is no need in this. Everyone can find all information on GOOGLE. It is easer then "Easy Button"
MAC+ANDROID=FRIENDS FOREVER!

Setting up ABD for OSX, Hackintosh, mac newbies like myself.
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.

Johnny Blaze said:
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.
Click to expand...
Click to collapse
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"

farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
really??i know of many people lol..macs are just better and less of a pain in the ass to use..and if you watch the google confrences..theyre using macs lol

farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
i use a mac and love android. hate the iphone

lpasq said:
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"
Click to expand...
Click to collapse
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.

hr00st said:
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.
Click to expand...
Click to collapse
thank you. yes, respect and support

Related

Auto-Sign APP for MAC users!

With the help of red_menace over at the apple support forum, I present Mac users with an application that will sign their .apk and .zip files.
It is a droplet application, meaning you just have to drag the file you want signed onto the application itself. A new file will be created with -signed at the end of the file name.
For this to work you need to have testsign.jar in your root directory. The root directory is the first place you come to when you click on the mac hard drive.
If anyone wants to use or edit the script that's fine with me, I really didn't do much, just asked the right people for help.
Android-sign.zip Download
Android-sign.zip has both the testsign.jar and android-sign application.
EDIT: Sorry about the mixup. Testsign.jar is now linked above.
thank you sir! will try tonight
Exception in thread "main"
java.lang.NoClassDefFoundError: testsign
I cant find the testsign.jar its not in the tool directory of my SDK that I downloaded from Androids website
Where can I get this testsign.jar?
*EDIT*
I found the testsign.jar in the forums. You can get it here: http://forum.xda-developers.com/showthread.php?t=538020
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
wow i need this bad...now lets c if i know how to get it 2 work....
MurderDeathKill said:
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
Click to expand...
Click to collapse
are you putting the testsign.jar in your ROOT dir? aka where adb is
same error
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
jaaronmoody said:
are you putting the testsign.jar in your ROOT dir? aka where adb is
Click to expand...
Click to collapse
What file is the adb? I understand what adb means and what it does, but I don't know how to identify it.
Ok so since im new to this can someone can make a really dumb guide for me from dowloading the app to putting the test.jar file please.
im getting the same error, this is a huge step though when u figure out whats going on with the rest of our Auto-sign, repost thanks nd thumbs up
nice...thx for sharing this. will come in handy
oops, still getting used to all this. haha
ffff00 said:
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
Click to expand...
Click to collapse
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
jessetbenton said:
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
Click to expand...
Click to collapse
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
no i said that, and it is where adb is.... at least for me... in the root dir, if you move the adb file there you don't have to enter the path every time you enter adb commands in the terminal
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
i think what jaaronmoody was talking about is just putting your adb file into the root directory instead of adding to the bin. but im pretty new to the whole terminal and coding stuff, so i just know what i've picked up since having my g1.
guys does anybody know about signing folders again to make them flashable?
G1_Lucky said:
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
Click to expand...
Click to collapse
well if the file is good. you just have to drag the cm 4.9999.zip file onto the app and it will spit out the new signed version.
What I think is more complicated is actually modifying those files. I use virtualbox to run windows and do everything with 7zip.
Anyone know of a zip program similar to 7zip to edit the apk and zip files?
Dude! Thanks! Alright guys get ready now that I have everything in place ADB, and signing my .zip files expect Luck's turn at android development lol. Im hecka grateful for everybody but now im ready haha thanks guys
Thanks for the help.
Works like a charm.
Awesome droplet.

Help creating virtual sdcard for android emulator

Hi, I'm fairly new at developing android. Im having the hardest time making a virtual sdcard. can someone please give a some tips or a walkthrough. i've read all the how to's n googles dev forum.
ive gotten to the point where im in cmd.exe on windows
i opened the mksdcard.exe
the when i go to type in mksdcard 64M sdcard.iso
it says its not recogized as an internal or external command, operable program or batch file.
CAN ANYONE PLZ tell me whats going wrong. im so anxious to start deving for android!!
SimPRoBer20 said:
Hi, I'm fairly new at developing android. Im having the hardest time making a virtual sdcard. can someone please give a some tips or a walkthrough. i've read all the how to's n googles dev forum.
ive gotten to the point where im in cmd.exe on windows
i opened the mksdcard.exe
the when i go to type in mksdcard 64M sdcard.iso
it says its not recogized as an internal or external command, operable program or batch file.
CAN ANYONE PLZ tell me whats going wrong. im so anxious to start deving for android!!
Click to expand...
Click to collapse
You need to either add the sdk\tools folder to your path (PATH environment variable), or actually cd to the tools folder or fully specify the path. The error is Windows telling you it has no idea what this mksdcard thing you're talking about is because it can't find it.
This is pretty basic command line stuff, not Android specific--you can develop without knowing about it, but it's worth spending some time learning. (I recommend DOS for Dummies for DOS 6.2, if you can find it. Seriously. I've probably read that book a dozen times and I don't think there's anything like it for Windows. The modern cmd.exe isn't that different from command.com.)
Of course, you can also specify a virtual SD card when creating an AVD from the graphical SDK and AVD Manager, and skip the command line business.
ok i get what ur saying.
like i find the file through
c:\android-sdk-windows\tools\mksdcard.exe
then when it finds it
c:\android-sdk-windows\tools\mksdcard.exe mksdcard 64M sdcard.iso?
im confused
and when i make a sdcard in avd manager or watever its called my emulator cant find the sdcard. and even droid explorer cant see any of the emulators files. an idea what the problem could be or am i just blatently missing something?
SimPRoBer20 said:
ok i get what ur saying.
like i find the file through
c:\android-sdk-windows\tools\mksdcard.exe
then when it finds it
c:\android-sdk-windows\tools\mksdcard.exe mksdcard 64M sdcard.iso?
im confused
and when i make a sdcard in avd manager or watever its called my emulator cant find the sdcard. and even droid explorer cant see any of the emulators files. an idea what the problem could be or am i just blatently missing something?
Click to expand...
Click to collapse
You're making it too complicated.
Code:
> c:\android-sdk-windows\tools\mksdcard 64M sdcard.iso
Where "> " is just the prompt that's already printed on the screen. You only need the name of the command once.
ok so after i do that. it just gives me a fresh cmd line like i never typed anything in in the first place.
and when i go to look for the file its nowhere to b found.
is this normal?
wait!! i think i may have just found them
whats the most common method of emulating zip files that ppl make?

[Q] adb is not recognized as......

I rooted my hero on 2.1 before on a different computer a while back so im fairly familiar with this process. But i when i type in the file path for the C:\android-sdk-windows\tools and hit enter then type adb devices i get an error message that says
'adb' is not recognized as an internal or external command,
operable program or batch file.
I tried all the troubleshooting i can think of like
making sure its the right path to the tools final
making sure debugging is on
deleting the drivers
reinstalling htc sync
I dont know is this info is relevant but ill share it any way.
Im running windows xp
its an old work pc so idk if i have Admin rights(How do i check??)
If any of you can help thatd be much appreciated
Did u add tools directory to the PATH?
Sent from my HERO200 using XDA App
Hey bird, I had the same problem a few days ago. solution for me was, that adb is not located in the tools folder anymore. its located in another folder.I'm not in front of my pc right now.just check where in the windows sdk folder the adb.exe is located now.
Hope that helps you too.
Greetz ricola
Sent from my HTC HD2 using XDA App
if its the updated sdk you will have to update it. close and restart,and then reopen your run command and type in \platform\tools\. they changed the file path when they updated the new tools.
ricola7 said:
Hey bird, I had the same problem a few days ago. solution for me was, that adb is not located in the tools folder anymore. its located in another folder.I'm not in front of my pc right now.just check where in the windows sdk folder the adb.exe is located now.
Hope that helps you too.
Greetz ricola
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Thank you very much i searched for adb.exe and found it in the platforms-tools folder thank you.
If any of you can help thatd be much appreciated
Click to expand...
Click to collapse
I'm too tired to read the whole thread right now, so someone has probably answered this, but here goes..
Previous versions of the Android SDK, adb was located in the tools folder, ie: if you installed the android SDK at C:\android-sdk-win, it would be c:\android-sdk-win\tools
The new release of the android sdk, adb has been moved, and is now located in the \platform-tools folder , ie; c:\android-sdk-win\platform-tools
much like the forums, file search is your friend sometimes
take care

[Q] Rar on android.

Hi:
I've recently started to develop my own comic reader. The problem I've come up with is cbr files, which are esentially rar files. Now I know there are comic readers out there (all of them, I think) that support cbr files. So there is a way of doing this, I just can't find how.
In the rarlabs official page (search google rar addons and it's the first page) there are several options. I would like to know if I download the commandline arm unrar how I could install it on Android (I have a motorola Xoom, it would be for Honeycomb), assuming that is correct.
If this is not an option is there a command line unrar application that I could call from my own? and How would the code be (to call an external application, that is)?
If the above is not possible, what is the way to get to unrar something in android?
The only real option I've seen would be to use junrar (hosted on github)
But it seems complicated and I'm not sure it works very well as I've seen a lot of conflicting reports.
Thanks for any help!
Try http://www.all-freeware.com/results/rar/for/android to unpack rar on Android.
Success,
Senax
Hi:
I'm not exactly sure what you wanted me to try. There is nothing in that page that would allow me to uncompress a rar file on android. Only a bunch of unrar utitilities and some android things but they are not related, that is, there is nothing that says unrar that also works on android.
thanks anyway.
Unrar
great app available here: androidzoom (dot) com/android_applications/tools/unrar_dhpu.html
Cheers,
Romuloxiii
Hi:
It's seems that I didn't make myself clear.
I want to develop an android application that needs to unrar files. Is there a way to call the unrar application from my own code?
If so, can you tell me how?
Otherwise, I appreciate the effort, but I can't use that.
Thank you very much!
You can bring the unrar binary along in the /asset of your app,
on first launch copy it to your apps /file directory, chmod +x it, and use exec("sh") to unrar the files from shell.
oh, I see. I think I get the the idea but I don't understand all the instructions.
What did you mean by importing thebinary on my asset?
If I do the step above why do I need to copy the binary on first launch?
Don't I need root privileges too chmod it? And how do I do it from my source code?
And finally where can I find the command line use of the application? Or is it the same as the Linux version?
I know there are a lot of questions, but please keep in mind that I'm very new at doing this.
Thanks for all the help!
You need to put it as asset to bring it along.
You need to copy it because asset files are not directly accessable.
You don't need root to chmod the file in your own directory.
You do it by using a shell from your code i.e. Process.exec("sh")
And finally you want to program the app not me,
so don't be lazy and invest some time.
Google google google google...
If there are still questions left after that, you may ask again .
Ok, I'll try it and get back to you!
Thanks!
Sorry for my lazyness, but I've been Googling for a good half hour without finding a simple 'unrar' binary executable compiled to run from terminal on rooted ARMx32 device. I don't want bloated GUI APK's or libraries for development implementation, but just the plain command line interface executable. Anyone, please? It's a pity they haven't baked it into Busybox as an applet, IMO.

[Q] how to reach or create android\adb_usb.ini

Hai ,
well when i tried using the windows cmd command add typed users\username\android\adb_usb.ini. It takes me nowhere.so also when i typed it opening command prompt window at eclipse or sdk . Same result dosent work.please let me know how is it to be accessed or created i am using xp having adt bundle installed please
details
glad to use technology said:
Hai ,
well when i tried using the windows xp comand prompt cmd command and typed c:\users\username\android\adb_usb.ini. It takes me nowhere.so also when i typed it opening command prompt window at eclipse or sdk . Same result dosent work.please let me know how is it to be accessed or created i am using xp having adt bundle installed please
Click to expand...
Click to collapse
and please let me know its location I mean is it to be found or if doesn't exist a folder with the name android is to be created and the adb_USB.INI file to be placed in it. And then place this folder exactly where in SDK? In eclipse? Exactly where? Please provide if any video links. Thanks
glad to use technology said:
and please let me know its location I mean is it to be found or if doesn't exist a folder with the name android is to be created and the adb_USB.INI file to be placed in it. And then place this folder exactly where in SDK? In eclipse? Exactly where? Please provide if any video links. Thanks
Click to expand...
Click to collapse
are you trying to root a nikon coolpix S800c? if so those commands are for linux (just get Ubuntu) and you need to be running a linux OS, windows was not built for these sorta things just a little of ADB but thats about it.

Categories

Resources