ADB Debug function

Source: Internet
Author: User
Tags locale

Reference:
Http://www.cnblogs.com/meil/archive/2012/05/24/2516055.html
http://www.biemmeitalia.net/blog/android-network-configuration/
Http://developer.android.com/tools/help/adb.html

1. Confirm that the USB drive of the Android device is installed on the computer. No, install the pea pod software, automatically install the driver, connect to the Android device.

2. Determine the path of the ADB tool and add it to the system environment variable path.
My path is: \android-sdk-windows\platform-tools, find out for yourself. An android studio or ADT plugin should have an ADB tool installed.

3. After you connect to ADB, you can install software to Android devices via ADB and upload files to Android devices.

A) adb install <apk file path >

This command installs the specified APK file on the device

b) ADB uninstall < software name >
ADB uninstall-k < software name >

If you add the-K parameter, the software is uninstalled but the configuration and cache files are preserved.

c) ADB push < Local path > < remote path >
Send files from your computer to your device

4. Connect the Android device.
At the cmd command prompt in Windows, look at the devices that ADB is connected to.
ADB devices
To connect to a device:
ADB shell
The result is similar to using a serial port to connect to an Android device.
5. IP configuration
Once connected to an Android device, it can be configured as follows or in a string.

#配置ip: Ifconfig eth0 [IP] netmast [NETMASK]

[Email protected]:/# ifconfig eth0 192.168.2.111 netmask 255.255.255.0

#查看ip
[Email protected]:/# ifconfig eth0
ETH0:IP 192.168.2.111 Mask 255.255.255.0 flags [up broadcast running multicast]

#添加默认网关

[Email protected]:/# route add default GW 192.168.2.1 dev eth0

#查看网卡状态: The displayed 0x00001043 vary depending on the computer. The MAC address of the last NIC.

[Email protected]:/# netcfg
Lo up 127.0.0.1/8 0x00000049 00:00:00:00:00:00
Can0 down 0.0.0.0/0 0x00000080 00:00:00:00:00:00
Can1 down 0.0.0.0/0 0x00000080 00:00:00:00:00:00
Eth0 up 192.168.2.111/24 0x00001043 1e:ed:19:27:1a:b3
Tunl0 down 0.0.0.0/0 0x00000080 00:00:00:00:00:00
Sit0 down 0.0.0.0/0 0x00000080 00:00:00:00:00:00
Ip6tnl0 down 0.0.0.0/0 0x00000080 00:00:00:00:00:00

#查看所有配置

[Email protected]:/# Getprop
[Alsa.mixer.capture.headset]: [Capture]
[Alsa.mixer.capture.master]: [Capture]
[Alsa.mixer.playback.headset]: [Headphone]
[Alsa.mixer.playback.master]: [Playback]
[Alsa.mixer.playback.speaker]: [Playback]
[athr.gps.conf]: [/system/etc/gps/orion.ini]
[Back_camera_name]: [Ov5640_mipi]
[Back_camera_orient]: [0]
[Camera.disable_zsl_mode]: [1]
[Dalvik.vm.dexopt-flags]: [M=y]
[Dalvik.vm.heapgrowthlimit]: [64m]
[Dalvik.vm.heapmaxfree]: [8m]
[Dalvik.vm.heapminfree]: [512k]
[Dalvik.vm.heapsize]: [384m]
[Dalvik.vm.heapstartsize]: [8m]
[Dalvik.vm.heaptargetutilization]: [0.75]
[Dalvik.vm.jniopts]: [Warnonly]
[Dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[DEBUG.EGL.HW]: [1]
[DEBUG.SF.ENABLE_HGL]: [1]
[Debug.sf.showfps]: [0]
[Dev.bootcomplete]: [1]
[Dhcp.eth0.pid]: [3098]
[Dhcp.eth0.reason]: [PreInit]
[Dhcp.eth0.result]: []
[Front_camera_name]: [Uvc,ov5642_camera,ov5640_camera]
[Front_camera_orient]: [0]
[Gsm.current.phone-type]: [1]
[Gsm.operator.alpha]: []
[Gsm.operator.iso-country]: []
[Gsm.operator.isroaming]: [FALSE]
[Gsm.operator.numeric]: []
[Gsm.ril.delay]: [15]
[Gsm.sim.state]: [Not_ready]
[Hw.backlight.dev]: [Pwm-backlight.1]
[Hwc.enable_dither]: [1]
[Hwc.stretch.filter]: [1]
[INIT.SVC.ADBD]: [Running]
[Init.svc.bootanim]: [Stopped]
[Init.svc.console]: [Running]
[Init.svc.dbus]: [Running]
[Init.svc.debuggerd]: [Running]
[Init.svc.dhcpcd_eth0]: [Stopped]
[INIT.SVC.DRM]: [Running]
[init.svc.ing]: [Running]
[INIT.SVC.INSTALLD]: [Running]
[Init.svc.keystore]: [Running]
[INIT.SVC.MAGD]: [Stopped]
[Init.svc.media]: [Running]
[INIT.SVC.NETD]: [Running]
[Init.svc.ril-daemon]: [Running]
[Init.svc.sdcard]: [Running]
[Init.svc.servicemanager]: [Running]
[Init.svc.surfaceflinger]: [Running]
[INIT.SVC.UEVENTD]: [Running]
[Init.svc.uril-repo]: [Stopped]
[Init.svc.vold]: [Running]
[INIT.SVC.WATCHDOGD]: [Running]
[Init.svc.wifi_mac]: [Stopped]
[Init.svc.zygote]: [Running]
[Media.omxgm.enable-player]: [1]
[Media.omxgm.enable-record]: [1]
[Media.omxgm.enable-scan]: [1]
[Net.bt.name]: [Android]
[Net.change]: [net.qtaguid_enabled]
[Net.data.dev]: [usb0]
[Net.hostname]: [android-13db07846b71b49]
[net.qtaguid_enabled]: [1]
[Net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
[Net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
[NET.TCP.BUFFERSIZE.EVDO]: [4094,87380,262144,4096,16384,262144]
[Net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
[NET.TCP.BUFFERSIZE.HSDPA]: [4094,87380,262144,4096,16384,262144]
[Net.tcp.buffersize.hspa]: [4094,87380,262144,4096,16384,262144]
[NET.TCP.BUFFERSIZE.HSPAP]: [4094,87380,1220608,4096,16384,1220608]
[Net.tcp.buffersize.hsupa]: [4094,87380,262144,4096,16384,262144]
[Net.tcp.buffersize.lte]: [524288,1048576,2097152,262144,524288,1048576]
[Net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
[Net.tcp.buffersize.wifi]: [524288,1048576,2097152,262144,524288,1048576]
[Net.uril.repository]: [Ready]
[Persist.gps.oacmode]: [@f]
[Persist.gps.suplserver]: [83.150.75.211]
[Persist.gps.suplserverport]: [7275]
[PERSIST.SERVICE.BDROID.BDADDR]: [22:22:aa:9b:b5:4e]
[Persist.sys.profiler_ms]: [0]
[Persist.sys.usb.config]: [MTP,ADB]
[Ro. Fsl_aac_parser]: [1]
[Ro. Fsl_asf_parser]: [0]
[Ro. Fsl_avi_parser]: [1]
[Ro. Fsl_flac_parser]: [1]
[Ro. Fsl_flv_parser]: [1]
[Ro. Fsl_mkv_parser]: [1]
[Ro. Fsl_mpg2_parser]: [1]
[Ro.adb.secure]: [0]
[Ro.allow.mock.location]: [1]
[Ro.baseband]: [Unknown]
[Ro.board.platform]: [imx6]
[Ro.boot.console]: [TTYMXC0]
[Ro.boot.hardware]: [Freescale]
[Ro.bootloader]: [Unknown]
[Ro.bootmode]: [Unknown]
[Ro.build.characteristics]: [Tablet]
[RO.BUILD.DATE.UTC]: [1459497441]
[Ro.build.date]: [Fri APR 1 15:57:21 CST 2016]
[Ro.build.description]: [Sabresd_6dq-eng 4.2.2 1.1.0-rc3 eng.myzr.20160401.134529 Dev-keys]
[Ro.build.display.id]: [Sabresd_6dq-eng 4.2.2 1.1.0-rc3 eng.myzr.20160401.134529 Dev-keys]
[Ro.build.fingerprint]: [freescale/sabresd_6dq/sabresd_6dq:4.2.2/1.1.0-rc3/eng.myzr.20160401.134529:eng/ Dev-keys]
[Ro.build.host]: [MYZR]
[Ro.build.id]: [1.1.0-RC3]
[Ro.build.product]: [SABRESD_6DQ]
[Ro.build.tags]: [Dev-keys]
[Ro.build.type]: [Eng]
[Ro.build.user]: [MYZR]
[Ro.build.version.codename]: [REL]
[Ro.build.version.incremental]: [eng.myzr.20160401.134529]
[Ro.build.version.release]: [4.2.2]
[RO.BUILD.VERSION.SDK]: [17]
[Ro.carrier]: [Unknown]
[Ro.config.alarm_alert]: [Alarm_classic.ogg]
[Ro.config.notification_sound]: [Onthehunt.ogg]
[Ro.crypto.state]: [Unencrypted]
[Ro.debuggable]: [1]
[Ro.factorytest]: [0]
[Ro.hardware.lightsensor]: [/sys/class/i2c-dev/i2c-2/device/2-0044/]
[Ro.hardware]: [Freescale]
[Ro.kernel.android.checkjni]: [1]
[Ro.kernel.android.gps]: [/DEV/TTYMXC1]
[Ro.lightsensor.threshold]: [20]
[Ro.opengles.version]: [131072]
[Ro.product.board]: [SABRESD]
[Ro.product.brand]: [Freescale]
[Ro.product.cpu.abi2]: [Armeabi]
[Ro.product.cpu.abi]: [armeabi-v7a]
[Ro.product.device]: [SABRESD_6DQ]
[Ro.product.locale.language]: [en]
[Ro.product.locale.region]: [US]
[Ro.product.manufacturer]: [Freescale]
[Ro.product.model]: [SABRESD-MX6DQ]
[Ro.product.name]: [SABRESD_6DQ]
[Ro.revision]: [397331]
[Ro.ril.wake_lock_timeout]: [300]
[Ro.runtime.firstboot]: [946684818221]
[Ro.secure]: [0]
[Ro.serialno]: []
[ro.sf.hwrotation]: [0]
[Ro.sf.lcd_density]: [160]
[Ro.tether.denied]: [FALSE]
[Ro.wifi.channels]: []
[RW. Video_render_name]: [Video_render.surface]
[Service.bootanim.exit]: [1]
[sys.boot_completed]: [1]
[Sys.interactive]: [Active]
[Sys.usb.config]: [MTP,ADB]
[Sys.usb.state]: [MTP,ADB]
[System_init.startsurfaceflinger]: [0]
[Vold.post_fs_data_done]: [1]
[Wifi.ap.interface]: [Wlan0]
[Wifi.interface]: [Wlan0]
[Wlan.interface]: [Wlan0]

ADB Debug function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.