yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] ArbitrageMan:
I have a samsung vibrant, and Im unable to get the USB drivers set up correctly.

Ive tried the drivers that came with the sdk.

As suggested a couple posts up, android_usb_drivers.zip

And USBDeview

The phone shows up as SAMSUNG_Android in the device manager, but whenever i try to install the drivers i get the message "Windows was unable to install your SAMSUNG_Android"

Anyone had any success with the vibrant??
[G1 Android Development] zenstitution:
g1 screen randomly stopped working, boots up and can access adb, fastboot, and recovery, just the screen shows nothing. what command would i use to flash a nbh from fastboot via adb to revert it to stock so i can send it in?
[G1 Android Development] Streaker:
I get the exact same, did you figure it out?
[G1 Android Development] gmanvbva:
Just wanted to note that the newest builds are outdated.

Current is r06.
[G1 Android Development] gmanvbva:
You do not have root access. You need root access to get into superuser (which is what # symbolizes and you are trying to do with the su command).
[G1 Android Development] c-brit323:
Sorry for this guys. I guess I'm a noob for asking this question but what the heck is adb? And what does it stand for... thanks
[G1 Android Development] gmanvbva:
It allows you to open a command shell with your phone (among other things). Google or search if you want more info.
[G1 Android Development] Raadius:
Once I get to the "ls", anything I type I get "permission denied". How do I push a apk to my "system/app"?
[G1 Android Development] raven_raven:
Of course you are typing "su" at the beginning to get superuser permission, right?

If you get this when you enter terminal:

$

Then you are not have superuser priviliges. You have to type:

$ su

To get

$ su
# <- YEP ITS SUPERUSER
[G1 Android Development] weipingchong:
Help with adb pull

im having problem with adb pull, which i can't seem to figure out the solution by myself :(

i boot up command prompt

after which,

this means that the browser.apk actually exist right? but why i cant adb pull it?

sigh, i'm not too familiar with cmd prompt :(
[G1 Android Development] Finn10111:
Hi,

I'm not sure because I do not often use adb but as Android is a Linux based OS it is perhabs case-sensitive?

Try this:

adb pull /system/app/Browser.apk Browser.apk
[G1 Android Development] weipingchong:
thanks! :)
[G1 Android Development] tranquilchaos:
Wowsers, I'm still lost as to what exactly I need to do and install on my Mac to get everything in order. I've so far downloaded and extracted sdk for mac os x. I've also downloaded Eclipse and installed the ADT Plugin. THAT'S IT!

I feel like this whole tutorial is for Windows Users....what about Mac OS X? Someone, anyone, please?!?!?
[G1 Android Development] jasonlefever:
The problem was that you typed browser.apk and not Browser.apk

It's case sensitive.
[G1 Android Development] tommo123:
ok, trying this but can't get the drivers installed on win7.

installed the sdk, there's an "usb_driver" folder (can't install the inf manually), debug is on, tried to install via dev manager (browse to that folder etc) and nada "windows was unable to install your adb"

in the .inf, it mentions the nexus one, dream, magic, moto sholes but not the desire. could it be that simple? edit that?
[G1 Android Development] rhymestars:
small problem. adbwinapi.dll is missing. CAN NOT START. lol

I followed the instructions to a T. I have also attempted to relocate the folder to save some typing in cmd. I have double checked my file path and the dll is in the tools folder. What can i do to fix this. I just installed froyo and need to reboot the phone in order to check it out. The buttons are reversed and i need some help.

By the way. These threads are awsome and i appreciate the time alot of you take to help us out.
[G1 Android Development] vybztymz:
I have an HTC Desire, so am not sure f this will work on a G1 but its worth a shot...

The default drivers didn't work on my main pc\laptop (Win 7 Ultimate, 64bit) so I extracted the drivers contained in the adb_driver_htc.zip file (found here http://www.mediafire.com/?mhzhki52ntbmmiz#1) to the USB_DRIVER folder and successfully installed the driver(s).

With my phone switched on, with USB debugging checked, and in Disk Drive mode, I connected it to my pc with the usb cable. If the phone drivers are not installed / found

·Go to Device Manager.

·Right click on the device that represents your phone.

·Select "update driver software".

·Select "browse my computer for driver software".

·Browse to the C:\AndroidSDK\usb_driver folder (or to wherever your usb_drivers folder is located, and make sure the "include subfolders" box is ticked).

·Click Next etc to install driver(s).

To test that the drivers were installed and the phone recognised by my pc:

·I opened a command prompt window – as Administrator - (Start-run-cmd) and typed the following (don’t include the text in the brackets).

·CD\ (enter\return).

·CD\AndroidSDK\tools (enter\return).

·adb devices (this listed my phone as HT******SS Recovery).
[G1 Android Development] tommo123:
ta mate (i have a desire too :) )

tried manually anyways and no joy.

realised in the end that i fubarred. i was able to get into shell in the end, kinda. i didn't realise you needed to be in recovery.

i removed the driver in windows so wasnt able to install a new one - fixed now. in the meantme i threw htcsync on my other win7 PC and it works. the drivers needed are in that package.

i can now (in recovery) remove a file (gmail in this case) after mounting system, i just cannot for the life of me get push to work. Gmail.apk on my, or root of my sd card, or wheverever, it just doesnt like me :(

But, i can remove it so i can install the apk normally now anyways
[G1 Android Development] lukeatluke:
I need some verification....

I push an app and then it's says "1967 KB/s (515844 bytes in 0.254s) ".

Is that everything and does this mean the app is installed because i can't see it or it's widget...
[G1 Android Development] pinoiryder:
thank you very much for this tutorial.. this is my first to learn adb..
[G1 Android Development] davdavo:
Hi Guys,

Wonderful write ups.

However, how do you do a full backup (like Nandroid) in adb shell?

I want to pull everything out of the phone into a zip or exactly as is onto my harddisk. Is it possible?
[G1 Android Development] brownel02:
adb noobie

So this is my first venture into the whole ABD thing. I am trying to install the framework mod from Tazz for the HTC music player (as listed here: http://xdaforums.com/showthread.php?t=685594&page=1277 post 12768).

Tazz mentions to “push this http://www.multiupload.com/1WWHXAUN6W

to system/ect/permissions then download and install htc music”

So, running my trusty Win7 machine I downloaded the SDK from the android development site, inserted the correct line in the path and viola, I can enter the CMD prompt and run the adb command successfully. Adb and adb shell both seem to work.

I followed the instructions from here: http://androidforums.com/developer-101/163138-how-basic-adb-commands.html and here: http://xdaforums.com/showthread.php?t=502010 for the install.

My problem comes in when I try to push the file to the phone.

Fisrt dumb question is: what phone mode should I be in when running the adb? Standard running mode or booted to recovery? (I thought I read something about being in recovery but at that point it was all a blur).

I have the USB Debugging turned on so I think I am ok there.

I installed the SDK to my C:\Android directory.

I saved Tazz’s file to my C:\Android\Tools directory.

Here is my cmd text (maybe this is where I went wrong):

In the cmd window I CD’d to the C:\Android\Tools directory

adb push com.framework.htc.xml system/ect/permissions

After making sure that I was in the correct dir and all files were also located in the correct dir I am still getting an error, file or directory not found, or something like that.

Sorry for the long post. I figured this would be a good first step (my first adb experience) as it seems pretty benign in terms of me bricking anything but offering a good learning opportunity.

I am running a rooted Eris (KaosFroyo v35-1).

In looking things thru maybe I need a USB driver for the Eris?

any help is appreciated,

Thanks
[G1 Android Development] ozzy1212:
YAY! :D

Thanks for this!

This was all i needed for it to work!:D
[G1 Android Development] ozzy1212:
i'm just wondering...is the method for creating a nandroid backup for a X10 Mini Pro the same as the one here?

can anyone guide me if it's different?

sorry...noob here...and i just learned how to connect my phone to adb...;)

i just wanna make sure i can restore my phone properly before i start customising the framework res...:D

any help will be appreciated!
[G1 Android Development] equi:
i ve done everything, i managed to pull an .apk from /system/app to my macbook pro but trying to push a modified genie widget i take this

########-MacBook-Pro:tools equi_13$ adb pull /system/app/Browser.apk /Users/equi_13/android
1277 KB/s (398923 bytes in 0.304s)
#########-MacBook-Pro:tools equi_13$ adb push /Users/equi_13/GenieWidget.apk /system/app/
failed to copy '/Users/equi_13/GenieWidget.apk' to '/system/app//GenieWidget.apk': [I]Read-only file system[/I]
########-MacBook-Pro:tools equi_13$

giving adb shell and su i see the # means i have admin permissions.. so why keeps telling me Read-only file system when i try to push an app

-to replace the geniewidget.apk in /system/app with my modded geniewidget.apk what command i have to use? "adb push..." or "adb install..."??

trying to use "adb install.." i get this:

##########-MacBook-Pro:tools equi_13$ adb install /Users/equi_13/GenieWidget.apk
1269 KB/s (518566 bytes in 0.398s)
pkg: /data/local/tmp/GenieWidget.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
#############-MacBook-Pro:tools equi_13$
[G1 Android Development] DirkStorck:
I have got a question. Everything was fine and working but now I have multiple instances of adb.exe running on my XP Laptop. When I kill them they come back. Can someone give me a hint ?

Thank you!
[G1 Android Development] TL24:
G2 owner here.. After going into adb shell i typed in $ su but i'm also getting permission denied???

I ran VISIONary 1-step root but i'm unable to gain access to be a SU! Help!
[G1 Android Development] sudhirkhanger:
Thanks worked perfectly.
[G1 Android Development] Phateless:
Ok I'm in adb, now how the hell do I use this thing??

I'm trying to push an apk to /system. Can someone help me do that??

I typed data and it said permission denied. I have NO idea what I'm doing here.
[G1 Android Development] spartan062984:
Install apk

Hello Fellow Androids!

If this is off topic, please accept my apologies. I am searching through all of XDA for a simple solution to adding apk. Now before you start bashing, please keep in mind that I am well aware of the "search" options + google + XDA etc.

Long story short, I have:

1) Rooted

2) Fashed many Roms (currently on Stock 2.1)

3) Lag Fixxed (see signature)

4) Removed Bloatware

5) I am familiar with ABD and commands

Problem:

All I'm trying to do is install certain "apk"s using ADB. I am well aware of the Program that installs/ pushes apps automatically that are found in G1 + Vibrant + HTC + Droid Forums without having to do any typin......BUT.....I would like to know my way around ABD <----Main reason why i dont want the easy way out.

I have been here:

http://xdaforums.com/showthread.php?t=716806

as well as here:

http://xdaforums.com/showthread.php?t=743457

even been here:

http://xdaforums.com/showthread.php?t=740545

I know what you are thinking, why not use them? As i said before, i would like to be efficient with ADB. So...

I have tried methods found here:

http://xdaforums.com/showthread.php?t=517874

As well as:

http://xdaforums.com/showthread.php?t=532719

The problem I am having is:

Whether i navigate to my folder (desktop with all my apps) and use either

"adb push app /system/sd/app

adb push app-private /system/sd/app-private"

or simply

"adb install <path to file> - Example: adb install c:/apps/apps2sd.apk"

I always get the error: "cant find <whatever apk> to install"

No matter which directory i have it, i get that message.

Note:

1) I have debugging on

2) I mounted sd <----also tried Without mounting

3) I have used the same command when I removed bloatware but i understand Adding apks are slightly different.

4) I have all the drivers installed + Microsoft's .net framework + etc

What am i doing wrong?

All Critics, input, education bashing (just not hating) lol are welcome. Thanks!
[G1 Android Development] cesarbric:
Have you try mounting the system first before pushing or pulling an app?
[G1 Android Development] spartan062984:
I have had my battles with ADB as well. (See above posts) I'm not a Mac expert, but through my experience with adb, i found a way to install/ un-install with ease. I just had to look into every file and directory. (Its a learning experience and I am Loving every bit of it). My only question to you is: "have you tried running the "mount" command?" I do know that if you are going to be modifying (push/ pull), that not only will you need permission, but also access to read/ write. If that has already been covered then my apologies for being redundant.

Have you tried un-installing adb all together and re-installing? Might be a registry issue within your pc.

Are you actually rooted? Permission Denied = 1) you are not rooted 2) You are rooted but both adb and superuser.apk are not seeing eye to eye.

Yes i have. Thanks for the reply by the way. I have searched and asked around most of the other threads with no luck. I actually found the answer i was looking for. :D

I Love ADB. Its clean, efficient, and it just feels better to use it for modifying, hacking, or whatever purpose.
[G1 Android Development] nathanpc:
The first thing that dummies should know, is the simplest feature on ADB: Install applications:

> adb install <apk file>
[G1 Android Development] miguel_act:
I'm trying to do this, but every time I run "adb shell" after the deamon started message, I get an error: device not found. I have and X10 mini pro but I ran it with the SE software, now when I uninstall the usb drivers, everytime I plug it again it doesn't let me do anything and it re-installs the same stuff. Any ideas???

BTW, I couldn't find revision 1, I have downloaded API's 2-8 and the USB driver revision 3.
[G1 Android Development] VooDooCC:
Forgive my ignorance, I've only had my phone for 3 days, and I was wanting to make sure the same method mentioned in the first post would work for a droid 2. I was wanting to install a couple of things I've found on this site and the instructions say to copy it to /system/app so I would do that as described in first post right?

Edit: Forgot to add, I'm not rooted and have the verizon 2.3.20
[G1 Android Development] CrazyMcCool:
i moved the files to the system32 and it worked, but i type adb devices and it shows me blank..even thou my device is usb debugging enabled and connected..
[G1 Android Development] siedkins:
Hi guys,

I've just written a guide on installing ADB for OSX - let me know if you think it's useful.

http://xdaforums.com/showthread.php?p=9842005
[G1 Android Development] oushouseki:
Wow, this is gold.

Thanks for sharing this with us dummies :)
[G1 Android Development] sackynuts:
Can someone please supply me with the original danish CSC called NEE? I don't have it and need it :) Thx
[G1 Android Development] WunderXDA:
This is meant for Dummies??

So after reading two pages of this guide for dummies, I was wondering if there's a guide for Kompleet Reetawwds?
[G1 Android Development] :
Lmao

Come join me on irc, link is in my sig :)
[G1 Android Development] sparksco:
Thank you for this usefull post :D
[G1 Android Development] AndroidSamurai:
Back on the scene!

OK folks,

It has been a while, but I am back in Android Development.

There are a few links in my guide that have been updated/added for newer hardware/software references. Give me a few days and the whole guide will be simplified even more...

Siedkins: Link added to your OSX ADB Guide. Thanks
[G1 Android Development] kidtk:
i dont understand this yeah yeah call me whatever you want bash me idc im trying to push a boot animation to my htc hd2 i have hspl and magldr and anroid on it i spent the whole day trying to figure this out and on cmd i keep getting

'C:\android-sdk-windows\tools' is not recognized as an internal or external comm

and,

operable program or batch file.

any help?
[G1 Android Development] sparksco:
First make sure you are not typing something in wrong. Here's a simple guide: http://dosprompt.info/
[G1 Android Development] Vlad83:
Don't know if this was mentioned but I didn't see it in the OP. If you are using the latest 2.3 SDK you need to add both, the tools and the new platform-tools folder to the environment variables path...
[G1 Android Development] realmattez:
+1 thanx a lot!
[G1 Android Development] realmattez:
adb.exe is in /platform-tools dir now

ADB.EXE is in c:\...\android-sdk-windows\platform-tools\
[G1 Android Development] SikYou:
You have to type cd first...

cd android-sdk/tools

This changes your path to you ask tools directory.

Sent from my Ideos S7
[G1 Android Development] AndroidSamurai:
You are better off placing the sdk on the root of your hard drive. I placed all the files and directories of the sdk inside a folder named android on the root of my hard drive...

For instance, for me to access my adb/etc I do:

C:\android\tools "then hit enter"

C:\android\tools\adb.exe "hit enter again"

Then if you need shell/root shell type:

Keeping in mind that you are still in the tools directory:

Adb shell "then press enter again"..

There ya go.
[G1 Android Development] Vlad83:
ADB is no longer located in the tools folder starting 2.3 and up. It is now in platform-tools folder (took me a good 10mins to figure out). The easiest way is to add the paths to environment variables, this way you don't have to go into c:\androind sdk\platform-tools\etc each time you want to run ADB, making copying and other functions more convenient...
[G1 Android Development] himem:
I can't conect.

I have HTC desire... wich drivers should I use?

after many testings, I allways get

* daemon not running. starting it now *

CreateProcess failure, error 2

* failed to start daemon *

error: cannot connect to daemon

plz help
[G1 Android Development] Vlad83:
Go here: http://www.htc.com/www/SupportDownload.aspx?p_id=312&cat=3&dl_id=1073

Download HTC Sync. Run the program, it will prompt you to install HTC drivers, install all. You can cancel out of the Sync install after or proceed if you wish to use it.

You need the drivers for ADB and Fastboot.
[G1 Android Development] Mikey:
Just wondering:

C:\Users\Your User Name> cd C:\android-sdk-windows-1.1_r1\tools <-- Tap Enter

Wouldn't it be a whole less typing and confusing if you just extracted the tools folder to C:\

then you would only have too type:

cd C:\tools

Also don't you have to add

C:\android-sdk-windows-1.1_r1\tools

into your Environment Variables -> System Variables -> Path ->

C:\android-sdk-windows-1.1_r1\tools

???
[G1 Android Development] kathi17:
Thanks for the great tutorial! I haven't run adb yet mostly because all of the information was scatteredt through several messages. This will make it much easier!

I also got a good laugh at your comment about installing an .exe file! (Anybody who doesn't know how to do that shouldn't be modding a phone in my opinion).
[G1 Android Development] AndroidSamurai:
*UPDATE* - *EDIT*

Tutorial has now been updated with more informative information and credit given to the people who posted the suggestions.

Thanks again guys for Reading/Searching before posting and I hope that this tutorial will be of help...

Stay tuned for more updates...
[G1 Android Development] devildogg2001:
this is getting to be a real pain in the but for me. i have gotten the SDK taken care of, but windows wont let me extract the USB drivers from the zip file.. i get unknown method on every file in the folder

EDIT: downloaded 7 zip and it extracted the files.. i skipped this step because i had WINrar installed..
[G1 Android Development] devildogg2001:
yes well thanks for the help, i did plenty of searching and couldnt find it, so i came back here.. I still havent figured it out though.. on linux or windows vista.. it says thats "the driver is not intended for this platform". i got the adb all sorted out, it works i guess, it just cant find the phone..

EDIT: ok, well it appears that i was just doing it wrong (figures...) when searching for device driver i went to the folder "usb driver" and clicked it, i didnt go into the folder and select one of the two (x86 or amd64)...so i went back and selected the folder x86 and it installed.. thanks anyway to everyone who tried to help. lol
[G1 Android Development] AndroidSamurai:
I am glad that you finally figured it out. Thanks for letting me know that you had to click on the architecture specific driver folder for your system. I will edit the tutorial again to include this information.
[G1 Android Development] AndroidSamurai:
*UPDATE*

I will be creating a AIO(All-in-one) package that will be OS Specific(eg. Linux, Mac OS X, Windows) that will include everything you need to get started.

Also working on a batch file(and scripts) to further automate the process and make it more "Lazy Man" friendly... :D

Stay Tuned for updates and rleases.

Once again, thank you for supporting our tutorials and development skills.
[G1 Android Development] DSBP1:
I'm sorry I tried to do this but I quit halfway there....its just too confusing...I'm sorry, but section 2 is confusing...after I clicked on the link that says installation, it asked me to do all this other things that I did not have a clue what it was telling me to do...I don't know if you can put a video tutorial on youtube or something because as of right now...i'm soo confused that I got frustrated....it is asking me to install "eclipse" then "eclipse" is asking me to install something else....do I really need to be going link by link and through all those other things..
[G1 Android Development] serialtoon:
Using Windows Vista x64 myself and it appears that it simply doesnt like the device. I always get "device not found" yet it works flawless on my Vista 32-Bit laptop. Go figure.
[G1 Android Development] KidJethro:
I dunno....I just got it setup on Vista 64b Ultimate. Took alittle head scratching, but it works. This is what the cmd prompt is showing me-

C:\Users\Joe>cd C:\android-sdk-windows-1.1_r1\tools

C:\android-sdk-windows-1.1_r1\tools>adb shell
* daemon not running. starting it now *
* daemon started successfully *
# ls
ls
cache init.goldfish.rc sdcard
data init.rc sqlite_stmt_journals
default.prop init.trout.rc sys
dev proc system
etc root
init sbin
#
[G1 Android Development] tulamidan:
I have a hard time getting the provided USB driver to work.

First the zip format you've used is some kind of non standard and will only unzip with the latest 7zip (I've had an older version that didn't work, as well as WinRar or the Windows standard)

Then I can't get rid of the G1 driver that is already installed. I tried to update it (your driver doesn't need to be updated) or deinstall it. But when I plug my phone back in... magick!The driver is back. And with this one ADB gives me the error:Device not found.

I'll do some more googeling to find out how to force XP to use a specific driver. Wasn't very lucky so far. If I find sth. I'll edit.
[G1 Android Development] kusotare:
I'm having the exact same problem. Vist 32 bit SP1, any time i plug the phone in, the drivers are automatically there. Heres what I've tried, to no avail:

-Updating the driver.

Windows tells me the driver its using is better.

-Uninstalling the driver and trying to manually install the USB drivers before install

Windows cant start the device for the new drivers and automatically installs the standard drivers when I plug in the phone.

-renaming the drivers that windows is using

wont even recognize the phone, new drivers or not.

I'm getting tired of the "support device not found" thing. :/