+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    techn's Avatar
    Currently Offline Android 1.0 ***
    Join Date
    Apr 2012
    Posts
    73
    Points
    839.59

    Cool ADB tutorial, setting up ADB, usefull commands, collecting debug info.

    Hi all.

    now soon CM development will start on our device and so we all need to test those builds on our devices and will have to send debug info to devs. to collect debug info there is a tool named ADB (Android Debugging Bridge). we r very small community and there are not plenty of sgr users around here so we have to worry about knowledgeable testers. so i m making this basic instructional guide to ADB. about how to set up ADB on windows and some basic usage.

    Setting up ADB on windows.

    Know this first.

    > ADB requires usb drivers. So first of all install kies so that ur pc detects ur phone and ADB can recognise ur phone.

    > Android is linux based and in linux commands are case sensitive so while typing these command use propare case otherwise commands won't execute.

    > Windows uses back slash [\] and linux uses forward slash [/] so while typing file locations. For location of file in ur pc use back slash and for files in ur phone/sd card use forward slash.

    there are two ways to setup adb on ur windows pc.
    1 > download the android sdk, it includes the adb
    u can download latest android sdk from HERE.

    2 > only download adb package, no need of downloading the whole sdk.
    look at the end of post to find the zip file of adb package.


    now after downloading:
    if u have downloaded sdk read this:
    > after downloading sdk, extract it to ur desired location.
    > after extracting, open that folder and goto "platform-tools" folder.
    > now hold the shift key and hit right click in that directory
    > click "open command window here"
    > u will see command promp, type "adb" in command prompt. if adb executes means u have successfully setup adb on ur windows.

    if u r using without sdk:
    > just extract the package
    > hold shift key, hit right click and choose "open command prompt here"
    > type "abd" in command prompt and check if adb executes.

    now as we have successfully setup adb lets begin to some basic commands.

    first of all connect ur phone using usb cable. make sure u have checked usb debugging in settings>applications>development>check usb debugging.

    now open adb as mentioned above and type
    Code:
    adb devices
    u should see
    Code:
    list of attached devices
    xyz device
    xyz will be name of ur device, as default it will be some number.

    Basic usefull ADB commands

    1.
    Code:
    adb pull
    this command can be used copy files from ur device to ur pc.
    for eg.
    Code:
    adb pull /system/app/Camera.apk
    this will copy the camera app to the directory where adb is extracted.
    if u know the path u can copy anything using this command.

    2.
    Code:
    adb push
    this command can be used to push files to ur phone.
    type the command, drag and drop the file in command prompt and than type location where u want to push that file and hit enter.
    for eg, if i want to push image named android.jpg stored in my C drive.
    Code:
    adb push C:\android.jpg /sdcard/
    this will push that image to sdcard.

    sometimes we have to push some packages in specified folders. just type the location after file name.
    for eg
    Code:
    abd push C:\sanim.zip /system/media
    3.
    Code:
    adb install
    with help of this command we can install apps to our phone dorectly from pc.
    for eg. type "adb install" than leave one space with mouse choose apk file of app u want to install and drag and drop it in command prompt. path of that app will be displayed in command prompt. like this.
    Code:
    adb install C:\adb\Camera.apk
    by executing this command u can install the app u have dragged and dropped in command prompt.




    As i have written for windows but these commands can be used on ADB on linux/MacOS as well but i have only mentioned the set-up guide for windows only.

  2. The Following User Says Thank You to techn For This Useful Post:

    andropos (09-16-2012)

  3. Geekbuying 728
  4. #2
    Currently Offline Beta *
    Join Date
    Feb 2013
    Posts
    15
    Points
    199.55
    hello
    can you help me out instaling google talk on my ainol novo hero 2?
    ive tried already but my pc didant recognized my tablet, but now that i root your post, i see that you mencione "KIES" , is it samsung kies that you are talking about? does it will work on ainol?
    maybe is coz of that that my pc didant recognized my tablet, i will try it out.
    but your help is most wanted.
    thankx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts