+ Reply to Thread
Results 1 to 9 of 9

Thread: ADB Tutorial

  1. #1
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Posts
    75
    Coins
    0.195

    ADB Tutorial

    You think adb is too much for your brain... at 1st. Very soon, you will be tempted to play with it,
    here is a tutorial written by somebody, hope it helps; installation of the sdk on your PC takes at least 45 min, go and get a cup of java and relax

    ==================================================
    Here is a thread to help the new people with ADB

    1. Turn on ADB

    Go to Menu > Settings > Applications > Development > USB Debugging


    2. Running ADB

    To run ADB, downolad the newest Android SDK and place it in C: and rename it AndroidSDK

    SDK Link: Download the Android SDK | Android Developers

    Open up command prompt and type
    cd c:\AndroidSDK/tools

    You are now in


    3. Basic ADB commands

    ADB push (sends files to your phone) -- adb push c:\example.apk /sdcard/example.apk

    ADB pull (Receives files from your phone) -- adb pull /system/app/example.apk c:\example.apk

    ADB install (installs application) -- adb install c:\example.apk

    adb shell (Begins shell connection with phone)

    adb reboot (reboots phone)

    adb reboot recovery (reboots phone into recovery)

    adb reboot bootloader (reboots the phone into bootloader/the white screen)

    adb remount (remounts the system)


    4. Commands to run while in ADB Shell

    cd (changes directories) -- cd /system/app

    ls (lists all files in the directory) -- cd /system/app

    rm (removes files) -- rm /system/app/example.apk

    cp (copies files) similar to cat -- cp /system/app/example.apk /sdcard/example.apk

    cat (copies files) -- cat /system/app/example.apk > /sdcard/example.apk

    exit (exits shell) -- exit

    ================================================
    quoted from here, t0ast3d.

    If you dont know what is adb, probably this is not for you

    I wrote a tutorial for adbwireless,
    ================================================
    Mainly for the noob and myself, things not using everydays tends to forget

    adbwireless, use like adb without the actual USB cord mess

    Requirement:
    1) has adb setup already, kind of pita,
    2) need root. I got root for my brand new stock phone from here.

    - dl and install adbwireless from market

    - run adbwirelss from your phone, see a green button, press the green button, it turned into an orange button with
    "adb connect 192.168.1.xxx:5555"

    - on your winPC,
    open cmd box, cd to your adb tool, mine is on c:\android\platform-tools
    adb connect 192.168.1.xxx
    adb shell
    $ you will see '$' prompt
    $ su gainroot - will give you root privilege and you should now see "#" prompt
    #

    now use it like adb and without the mess of the usb cable
    =================================================

    enjoy,


    bun
    Last edited by andropos; 10-30-2013 at 08:42 AM. Reason: title edit

  2. Rikomagic 728
  3. #2
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Posts
    75
    Coins
    0.195
    Some of you may ask, is it worth the effort and time? I think it is. It looks intimidating and scary, but it is not much different than install a window program, just click dl and install. And once installed, it runs by itself, you hardly has to do anything with it. You only have to do it once. And now you can go into your tablet's gut anytime you want to. Highly recommend.

    bun

  4. #3
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Posts
    75
    Coins
    0.195
    Have not done this for years, follow my own tutorial, here we go, i got the build.prop of my A7, OS 0314ii.img. You can study it and change the way you like, I always change the fonts smaller to begin with.
    =====================================================================
    # begin build properties
    # autogenerated by buildinfo.sh
    ro.build.id=IML74K
    ro.build.display.id=crane_m723gdxa7-eng 4.0.3 IML74K 20120314 test-keys
    ro.build.version.incremental=20120314
    ro.build.version.sdk=15
    ro.build.version.codename=REL
    ro.build.version.release=4.0.3
    ro.build.date=2012年 03œˆ 14— ˜ŸœŸ‰ 18:45:41 CST
    ro.build.date.utc=1331721941
    ro.build.type=eng
    ro.build.user=administrator
    ro.build.host=admin
    ro.build.tags=test-keys
    ro.product.model=M723-GDX
    ro.product.brand=softwinners
    ro.product.name=crane_m723gdxa7
    ro.product.device=crane-m723gdxa7
    ro.product.board=crane
    ro.product.cpu.abi=armeabi-v7a
    ro.product.cpu.abi2=armeabi
    ro.product.manufacturer=unknown
    ro.product.locale.language=en
    ro.product.locale.region=US
    ro.wifi.channels=
    ro.board.platform=exDroid
    # ro.build.product is obsolete; use ro.product.device
    ro.build.product=crane-m723gdxa7
    # Do not try to parse ro.build.description or .fingerprint
    ro.build.description=crane_m723gdxa7-eng 4.0.3 IML74K 20120314 test-keys
    ro.build.fingerprint=softwinners/crane_m723gdxa7/crane-m723gdxa7:4.0.3/IML74K/20120314:eng/test-keys
    ro.build.characteristics=tablet
    # end build properties

    #
    # ADDITIONAL_BUILD_PROPERTIES
    #
    ro.com.android.dateformat=MM-dd-yyyy
    ro.config.ringtone=Ring_Synth_04.ogg
    ro.config.notification_sound=pixiedust.ogg
    ro.config.alarm_alert=Alarm_Classic.ogg
    dalvik.vm.heapstartsize=5m
    dalvik.vm.heapgrowthlimit=48m
    dalvik.vm.heapsize=256m
    ro.kernel.android.checkjni=0
    persist.sys.timezone=Asia/Shanghai
    persist.sys.language=zh
    persist.sys.country=CN
    wifi.interface=wlan0
    wifi.supplicant_scan_interval=15
    debug.egl.hw=1
    ro.display.switch=1
    ro.opengles.version=131072
    persist.sys.strictmode.visual=0
    persist.sys.strictmode.disable=1
    hwui.render_dirty_regions=false
    persist.sampling_profiler=1
    persist.sys.usb.config=mass_storage
    ro.sf.lcd_density=120
    ro.product.firmware=1.0
    ro.setupwizard.mode=OPTIONAL
    net.bt.name=Android
    dalvik.vm.stack-trace-file=/data/anr/traces.txt
    ================================================================



    Edit the line
    ro.sf.lcd_density=120 can change icon size; may make your tablet unbootable in somecase, requiring a reflash.

    You have been warned.

    bun




    bun
    Last edited by bunanson; 04-01-2012 at 06:18 PM.

  5. #4
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Posts
    75
    Coins
    0.195
    Not even one person interested in adb, reeeally? How are you guys going to gut your tablet? take my words, it is real fun to look into the gut of your tablet.

    bun

  6. #5
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Posts
    32
    If I can get Ad-hoc this way, I'm game. Would need to know for certain....
    In my other tab, I just replaced the supplicant using file explorer.

  7. #6
    Currently Offline Beta
    Join Date
    May 2012
    Posts
    5

    contacts.apk

    [QUOTE=bunanson;15198]You think adb is too much for your brain... at 1st. Very soon, you will be tempted to play with it,
    here is a tutorial written by somebody, hope it helps; installation of the sdk on your PC takes at least 45 min, go and get a cup of java and relax

    ==================================================
    Here is a thread to help the new people with ADB

    1. Turn on ADB

    Go to Menu > Settings > Applications > Development > USB Debugging


    2. Running ADB

    To run ADB, downolad the newest Android SDK and place it in C: and rename it AndroidSDK

    SDK Link: Download the Android SDK | Android Developers

    Open up command prompt and type
    cd c:\AndroidSDK/tools

    You are now in


    3. Basic ADB commands

    ADB push (sends files to your phone) -- adb push c:\example.apk /sdcard/example.apk

    ADB pull (Receives files from your phone) -- adb pull /system/app/example.apk c:\example.apk

    ADB install (installs application) -- adb install c:\example.apk

    adb shell (Begins shell connection with phone)

    adb reboot (reboots phone)

    adb reboot recovery (reboots phone into recovery)

    adb reboot bootloader (reboots the phone into bootloader/the white screen)

    adb remount (remounts the system)


    Thanks for the info, that's very helpful.
    I'm a newbie and try to load contacts.apk onto my new Hyundai A7HD, with the command line adb install you mention above. Is there anything else to look out for? No need to root/flash/update firmware before? Contacts.apk is missing on my delivered A7HD, so I would like to first get this on before doing anything else with firmware, if possible.

    Andreas

  8. #7
    Currently Offline Android 1.0 ***
    Join Date
    Mar 2012
    Posts
    75
    Coins
    0.195
    Andreas: You do not need to use adb for Contacts.apk. copy the Contacts.apk into an SD card, and open file manager, find the file Contacts.apk, and clink on it. It will install just like window install .exe file. Or, more simply, just email yourself the file as an attachment, and open the attachment from my email, it will install.

    write back if question,
    looking forward to your 1st look of the A7HD.

    bun

  9. #8
    Currently Offline Beta
    Join Date
    May 2012
    Posts
    5
    Great, thanks for the quick reply.
    I'll try that and report back any issues, if any.

    Cheers

    Andreas

  10. #9
    Currently Offline Beta
    Join Date
    May 2012
    Posts
    5
    OK, installation worked fine.
    I now have 2 additional program symbols on my tablet: "People" and "Phone".
    However, when I click either of them, the program starts up for 1 sec, then immediately closes again with the note 'Unfortunately, Contacts has stopped.'

    Any idea what went wrong?

    A

Posting Permissions

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