[Q] Android SDK Command Line - G1 Android Development

Hello people! I just want to know how to write in the command line that appears when I run the Android SDK program. I try to write something in it, but nothing happens. Thanks for anyone's reply.

Related

using adb

I feel like an idiot. I keep reading posts and instructions on how to use the adb/adb shell. Everything I read seems to indicate that the knowledge on how to open the adb command window is something that any idiot should be able to do... So much so, that no one explains how! I must be missing something!
I have installed eclipse and the sdk, the ADT plugin, etc. I run adb.exe and a command window flashes on my screen and immediately fades away. I can't even read what was posted in the window.
I know I am missing something but I guess I am just too inexperienced to know what that is. I can't find anything on the web that will tell me what file to open or sequence of files to open to access the adb command window.
Someone please help out a hopeless nuub!
Thanks
I am running Windows Vista 64 and have installed the 64bitUSB drivers. I can open an emulator, I can run the terminal on my G1, have installed the JK modified r30 on my phone.
add the whole path to your sdk/tools folder to your windows environment path: (right click my computer, click properties, select "advanced" select "environment variables" and look for "Path" in the bottom list, select "Path" and click "edit" then at the end of the existing path info, add a semicolon, and then paste in the complete path to your sdk/tools folder, click save, and close all the windows.
now, goto start, run, and type cmd.exe, a command line window will appear, type "adb" and it should work.
cheers,
-- michael
you can also use google to search the forum when you are looking for 3 letter terms (the forum search function is 4+ characters)
http://www.google.com/search?hl=en&q=site:http://forum.xda-developers.com/+android+adb
--M
you don't use adb by pressing adb.exe in the tools folder you use it with command prompt go to programs and to accessories and look for command prompt now you can use adb like adb remount and pull push so on with your phone connected to the pc can you see your phone in ddms you open it from the sdk tools folder where the adb.exe is and if you can use adb.exe to open command prompt it don't work for me ether
I'm guessing that when I get all the ADB info after typing "adb" in the command window that it is working correctly?
If you run adb with no args, it will simply return a short summary of available args and terminate. In Windows if the window is opened by a program using the command line rather than directly calling cmd.exe, it will automatically close when the program terminates. The solution is to use cmd and then adb from within that.
Jashsu - Thanks! that was what I needed to know! LOL I am such a noob!!!
I had access to adb all the damn time! I just didn't know it! DUH!
I now have Koush's auto rotating browser installed! AWESOME.
Thanks to all who responded! I am learning pretty quick. But, some things are just so commonly known by dev's that they just aren't explained very well.
I found a couple of books I'm going to purchase so I don't have to keep bugging all of you. But, you guys are the greatest. Thanks for the help!

[Q] How to install Market ?

Sorry to be a noob about this but could someone post a how to install on a new Apad?
I've installed superuser already which I assume is working??
This is one of the new IMX 515's Android 2.2 800 mhz tablets with 10.1 flash etc.
Where do I go from here to get the Market installed?
Sorry folks but I'm kind lost.
Thanks for your help.
I got one of those 9.7" iMX515's and I have the same question...
If you need the market installed search the forums for market.apk.
Please use the forum search feature before posting next time.
Have any more questions, msg me on gtalk at androidsamurai.
Sent from my Hacksung - M910 using Tapatalk
I managed to get part way there. Basically I followed the instructions here (http://www.androidtablets.net/forum...tall-instructions-imx515-cnddu.html#post37829)
and here (original post: http://www.padbbs.net/thread-2909-2-1.html).
I had problems getting the adb to work on my Mac, but finally managed to figure that one out:
Download the sdk and unzip in a folder of your choice.
Set your slate to USB debugger "on" and plug in to your mac. I think I didn't actually mount my slate when I did this (neither memory was mounted on my desktop when I executed the process), but have a go and see if there is a difference in adb behaviour.
Run the Unix executable called "android" in the "tools" sub-folder. Then run the "adb" executable.
These should both open up their own terminal window. Then open a new terminal window. The fastest way to insert adb commands is by dragging the adb file into the window and follow up with your adb command.
Start off with "adb shell", which gives you a hash (sorry, my keyboard won't give me the sign) as line start. Then start using adb command lines (drag drop adb into the window, followed by "push", followed by drag-dropping the file you want to push into the terminal window, followed by typing where you want it to go, e.g. /systems/app.
Do this for all the files mentioned and you should be there.
Now, this is as far as I got myself! When I restarted, I had the market app in my app list, but when I start the google sign in service, I continuously get the message "can't connect to server", and I have no idea how to get passed that point. SO suggestions for that one will be welcome!
I have a mac. How do I install a firmware without recovery mode? I don't have recovery mode, doesn't exist on my unit

[Q] Android OS development

Hi folks,
I have a few question here.
1) I love to have a look inside Android internals (lets say v2.3).
For eg, I may want to change the way lock screen looks or works.
or change the way menu works/see (icons).
As of now, i dont have an android phone. I love to test that in an emulator.
How can i do that?
2) I have an apk file. How will work/run that in an emulator?
Thanks a lot.
There are instructions for the Android emulator here:
http://www.androidguys.com/2010/12/15/android-emulator/
Once that's running, you should just need to open a cmd prompt, and type
adb install nameofmy.apk
(if you get an 'adb' is not a recognised command, you'll need to CD to the 'platform-tools' folder from the sdk first)

[q] **please need help!***

My apologies if im posting this in the wrong forum, i just need some help deciphering some of the shorthand used in the unlock guide for the evo shift. I rooted my Hero last year, and am considering rooting my evo, but i dont remember it being anywhere this difficult. If someone would please take a moment to explain what some of this means, and tell me if i have the right programs installed. I did the temp root on the shift, ive downloaded java se and the android sdk (presumably for the adb?) but for the life of me cannot figure this line out...
make sure you have adb properly setup on your computer before continuing
(assuming the android sdk is the adb...)
----->>>>open up command prompt and cd to your sdk platform-tools directory
(what the heck... i get the command line from android sdk, the only thing im thinking is that i dont have the rooted phone connected to my computer at the moment)
then type adb shell then su
(while im asking then someone can explain this to me that would be appreciated.)
if you havent already u must press allow on your device to enable su perms
jdelfin said:
My apologies if im posting this in the wrong forum, i just need some help deciphering some of the shorthand used in the unlock guide for the evo shift. I rooted my Hero last year, and am considering rooting my evo, but i dont remember it being anywhere this difficult. If someone would please take a moment to explain what some of this means, and tell me if i have the right programs installed. I did the temp root on the shift, ive downloaded java se and the android sdk (presumably for the adb?) but for the life of me cannot figure this line out...
make sure you have adb properly setup on your computer before continuing
(assuming the android sdk is the adb...)
----->>>>open up command prompt and cd to your sdk platform-tools directory
(what the heck... i get the command line from android sdk, the only thing im thinking is that i dont have the rooted phone connected to my computer at the moment)
then type adb shell then su
(while im asking then someone can explain this to me that would be appreciated.)
if you havent already u must press allow on your device to enable su perms
Click to expand...
Click to collapse
click the start button on your screen (bottom left), click the search bar and type "command." a program called "command prompt" should show up. click on it type in:
cd\
hit enter
then type:
cd AndroidSDK\platform-tools
hit enter again
at this point, it should say something like "C:\AndroidSDK\platform-tools\"
if all is well and good, type in:
adb shell
hit enter
a "$" should show up
type:
su
hit enter
the superuser app on your phone should pop up and ask for permissions
grant permissions
the "$" should become a "#"

ADB type command execution inside android program

Hello, I want to write application that does the same as single adb command.
ADB command looks like this:
am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
Any idea how to execute it in android program itself, So I don't need computer to launch this mode ?
Or at least, how it is called (how to search it) ? Since I don't know exact terminology
Thank you for response !

Categories

Resources