Page 1 of 2 12 LastLast
Results 1 to 25 of 48
Like Tree1Likes
  1. Thread Author  Thread Author    #1  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default [How to] Quick ADB

    Post #1= FAQ and preparation
    Post #2= Interface and commands

    This was originally intended for the fascinate but will work on all android phones with the exception of the drivers and download mode command
    --------------------------------------------------------------------------
    any hacking that is done, is done at your own risk, I nor Android Central are
    responsible for anything that users do to their phone. That being said, Have fun

    Manipulating files through ADB can be Havocing on your device so if you are going to get any more technical than what i am providing here please be very careful and do your reading.
    --------------------------------------------------------------------------

    FAQ


    Q: What is ADB?


    A: ADB stands for Android Debug Bridge, it provides a terminal-based interface for interacting with your phone’s file system.
    ADB provides the bridge between your machine and your computer. It is usually for the advanced user but i am going to attempt to make this a little more useful for the Intermediate user.


    Q: What is Quick ADB and when is it useful?


    A: Usually to use ADB you need to download and install SDK tools, which involves vary steps. Sometimes i am at a remote location and i do not need SDK tools installed so why go through all the time it takes just for me to create a connection for a minute. Quick ADB allows you to download a folder, open a command prompt and quickly do what you need to do.

    With ADB you can do things like, sideload apps, root, carry out reboot commands....etc. there is more than i know what do to with but in this thread i will show you how to establish ADB and some simply useful commands.

    --------------------------------------------------------------------------
    Preparations

    1.Download and extract , save QuickAdb foler to your C:\ drive
    [U]
    2. Download and Install your phones drivers

    3. Go to Settings > Applications > Developement > Enable Debugging then plug in your phone



    Last edited by DroidXcon; 06-11-2011 at 01:40 AM.
    If i've made life easier buy me a Macchiato
  2. Thread Author  Thread Author    #2  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Lets begin

    Creating a connection
    Assuming you followed perpartions in post #1.In order to give commands you need to enter to command prompt, the way to do this is as follows:

    From your pc go to your task bar at the bottom click start and when your menu pops up enter CMD in the search box and press enter:


    Once the command prompt box comes up we need to change directories (cd command) to the Quick ADB directory so type the following (If you want to copy and paste, remember in command prompt you must right click and select paste):

    cd c:\quickadb

    Your prompt should have changed to c:\quickadb. The next thing we need to do is establish that we have connection (again assuming you are connected to your pc in debugging mode) type the following

    adb devices

    it will now say "List of devices attached". If you are connected you will see device serial number (the image below was altered to protect my device). if there is nothing under "List of devices attached" this means you are not connected and you should check your connections. If all is well you are ready to use adb commands. your command prompt should look similiar to this:


    Some basic commands

    adb devices : as you have seen above this command allows you to see all devices connect

    adb pull: it allows you to copy a file from your phone and place it in your Quick ADB folder.
    for example:
    i have a picture of Lloyd on my sdcard and i want to copy it into my computer and so i need to command to pull(copy from) tell it where and what i am pulling i need to state the path and the file i want copied. then i need to tell it what i want it called in the destination folder (in this case quick adb folder) so my command will look like this

    adb pull /sdcard/Lloyd.jpg Lloyd.jpg

    or lets say i want it to be called Cool.jpg

    adb pull /sdcard/Lloyd.jpg Cool.jpg

    This file will now appear in my Quick ADB folder

    adb push: it allows you to copy a file from your Quick ADB folder and place it in on your phone.
    for example:
    This is the opposite of pull, so lets say i have a picture of Lloyd on my computer and i want to copy it into my phone, first i place it in my Quick ADB folder. Then i need to command to push(copy to). tell it what i am pushing, then tell it where in the phone i want it to go and what to call it

    adb push Lloyd.jpg /sdcard/Lloyd.jpg

    or lets say i want it to be called Cool.jpg

    adb push Lloyd.jpg /sdcard/Cool.jpg

    This file will now appear on my sdcard on my phone

    adb reboot: this one is pretty simply just type adb reboot and your phone reboots without you even touching it.

    adb reboot recovery: this is one of my favorites, not only does it reboot your phone but also reboots straight into recovery without you touching any button combination at all. this is great for people who flash alot of roms or if you have damaged keys

    adb reboot download : this command also is a great one (for samsung phones or any other that supports download mode) this allows you to boot straight into download mode again without touching your phone. this is great for people who flash via odin alot or if you have damaged keys

    adb install : this is great for those of you who cannot sideload apps or just like to install quickly from your computer.
    for example: lets say i have googlemaps.apk on my computer and want to install it on my phone. I simply move the googlemaps.apk to my quick adb folder and from the command prompt i type

    adb install googlemaps.apk

    when its done it will tell me if it was successful or not. you can then go to your app drawer and enjoy your new application, that simple.
    Last edited by DroidXcon; 03-31-2011 at 03:14 PM.
    If i've made life easier buy me a Macchiato
    Thanked by 8:
  3. Thread Author  Thread Author    #3  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Credits:
    • Thank you to Chris Kerrigan for his contributions to this thread and his constant support.
    Last edited by DroidXcon; 01-28-2011 at 12:21 PM.
    If i've made life easier buy me a Macchiato
  4. #4  
    Chris Kerrigan's Avatar

    Posts
    3,877 Posts
    Global Posts
    4,142 Global Posts
    ROM
    Stock

    Default

    Remove apps from SD card:


    adb shell rm -r /system/sd/app
    adb shell rm -r /system/sd/app-private

    The second command is to remove private apps, as it says. /system/sd is the location of the SD card in Android, and /app is where all apps are stored on the SD card.

    NOTE: You must be running Android 2.2 or newer for apps to be stored on the SD card.
    Last edited by Chris Kerrigan; 01-27-2011 at 07:32 PM.

    New York Giants | New Jersey Devils | Colorado Avalanche | New York Knicks
  5. Thread Author  Thread Author    #5  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    If anyone finds any Errors please let me know, also if you have commands you would like to add, please post it here with description and example of how to execute the command. i will add it to the Op and give you credit also in the OP

    Thank you
    If i've made life easier buy me a Macchiato
  6. #6  
    ls377's Avatar

    Posts
    1,594 Posts
    Global Posts
    1,596 Global Posts
    ROM
    Teamhacksung's ICS

    Default

    Adb uninstall of system apps (good for removing bloatware from phones with small storage).

    NOTE: System had to be R/W for this to work. This may require you to boot into recovery, depending on the phone.

    1. Open adb connection
    2. Type "adb shell"
    3. You should see a # sign. Type "cd system"
    4. Type "cd app"
    5. Type "ls". This gives you a list of installed apps.
    6. Type "rm (name of app.apk)" The app should be uninstalled.

    DO NOT UNINSTALL AN APP UNLESS YOU ARE ABSOLUTELY 100% POSITIVE YOU DON'T NEED IT!! You can uninstall any app you can find in the market, such as Maps, and install it to the SD card if you need more space.

    I had to put together two guides to make this work (both had inaccuracies or were unclear), so if there's an error, I apologize.
    Thanked by:
  7. #7  
    srkmagnus's Avatar

    Posts
    6,751 Posts
    Global Posts
    6,754 Global Posts
    ROM
    Stock 4.4 (KitKat)

    Default

    I would advise anyone who removes an app to back it up:

    adb shell
    cd system/app
    ls
    adb pull nameofapp.apk nameofapp.apk
  8. #8  
    tony bag o donuts's Avatar
    Resident Ringtone Maker

    Posts
    3,902 Posts
    Global Posts
    7,011 Global Posts
    ROM
    BB JB

    Default

    Do you think that unrevoked will come to the TB?
  9. #9  

    Default

    When i use this it says daemon not able to start...how to fix??


    Thx
  10. Thread Author  Thread Author    #10  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Quote Originally Posted by davey11 View Post
    When i use this it says daemon not able to start...how to fix??


    Thx
    try rebooting your computer and phone and try again
    If i've made life easier buy me a Macchiato
  11. #11  

    Default

    Quote Originally Posted by DroidXcon View Post
    try rebooting your computer and phone and try again
    Before posting, shoot I rebooted couple times, tried diff usb ports, reboot phone couple times, reinstalled sam drivers....whew lotsa stuff ... debugging on you know the usual stuff....no workie

    I was trying the Samsung logo mod...did the heimdal flash but jus this adb thing no workie. Ah I can live with the logo.

  12. Thread Author  Thread Author    #12  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Quote Originally Posted by davey11 View Post
    Before posting, shoot I rebooted couple times, tried diff usb ports, reboot phone couple times, reinstalled sam drivers....whew lotsa stuff ... debugging on you know the usual stuff....no workie

    I was trying the Samsung logo mod...did the heimdal flash but jus this adb thing no workie. Ah I can live with the logo.

    try opening the computer task manager then kill adb.exe and try again
    If i've made life easier buy me a Macchiato
  13. #13  

    Default

    Quote Originally Posted by DroidXcon View Post
    try opening the computer task manager then kill adb.exe and try again
    Wasn't running in TM....just tried again...no go

    Its ok DX thanks for your time...this mod is kinda trivial anyway.
    Mebbe when you do a package for it, I'm game


    edit: besides we both be getting the charge soon haha
    Last edited by davey11; 03-30-2011 at 09:43 PM. Reason: chaaarge
  14. #14  
    wyllic's Avatar

    Posts
    596 Posts
    ROM
    Eclipse 1.3 / PBJ non-oc

    Default

    Works for me =)

    gotta find a good image to use though
    If you're going to be crazy, you have to get paid for it or else you're going to be locked up.
    -- Hunter S. Thompson
  15. #15  

    Default

    Quote Originally Posted by wyllic View Post
    Works for me =)

    gotta find a good image to use though
    You used this quickadb thing?
    No error in the daemon start?
    shoot man lucky dog...had my apple logo all ready to go lol
  16. Thread Author  Thread Author    #16  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Quote Originally Posted by davey11 View Post
    You used this quickadb thing?
    No error in the daemon start?
    shoot man lucky dog...had my apple logo all ready to go lol
    can you try to run the command netstat then screen shot it for me and post?
    If i've made life easier buy me a Macchiato
  17. #17  

    Default

    Quote Originally Posted by DroidXcon View Post
    can you try to run the command netstat then screen shot it for me and post?
    you mean in the command prompt? like adb netstat ?
  18. #18  
    wyllic's Avatar

    Posts
    596 Posts
    ROM
    Eclipse 1.3 / PBJ non-oc

    Default

    it doesn't come out readable because of my monitors
    If you're going to be crazy, you have to get paid for it or else you're going to be locked up.
    -- Hunter S. Thompson
  19. #19  
    wyllic's Avatar

    Posts
    596 Posts
    ROM
    Eclipse 1.3 / PBJ non-oc

    Default

    oh wait that was aimed for you =) lol
    If you're going to be crazy, you have to get paid for it or else you're going to be locked up.
    -- Hunter S. Thompson
  20. Thread Author  Thread Author    #20  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Quote Originally Posted by davey11 View Post
    you mean in the command prompt? like adb netstat ?
    c:\quickadb> netstat
    If i've made life easier buy me a Macchiato
  21. #21  

    Default

    Its kinda big....



    and kinda blurry...hope u can make it out
  22. Thread Author  Thread Author    #22  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Quote Originally Posted by davey11 View Post
    Its kinda big....


    and kinda blurry...hope u can make it out
    no just netstat

    no adb
    If i've made life easier buy me a Macchiato
  23. #23  
    wyllic's Avatar

    Posts
    596 Posts
    ROM
    Eclipse 1.3 / PBJ non-oc

    Default

    It totally works btw =)
    If you're going to be crazy, you have to get paid for it or else you're going to be locked up.
    -- Hunter S. Thompson
  24. #24  

    Default

    OK DX this is from just c: and inside the c:\quickadb folder




    Thanks for working on this with me its just not a big deal for me...maybe its not meant to be for me. I am jealous of wyllic tho haha...

    We can just drop this thing
  25. Thread Author  Thread Author    #25  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    Quote Originally Posted by davey11 View Post
    OK DX this is from just c: and inside the c:\quickadb folder




    Thanks for working on this with me its just not a big deal for me...maybe its not meant to be for me. I am jealous of wyllic tho haha...

    We can just drop this thing
    i dont want to drop it because if we dont figure out whats wrong you cant help other people
    for some reason you are not even switching into the adb folder did you unzip the folder then place it on the C drive because this is what it should look like

    C>cd c:\quickadb

    then that turns into

    c:\quickadb

    but the picture you sent me doesnt switch directories
    If i've made life easier buy me a Macchiato
Page 1 of 2 12 LastLast

Posting Permissions

B