Common android development commands

Source: Internet
Author: User


FTP server provided by busybox


Start Method 1:

# Tcpsvd 0 21 ftpd-W/root &

// The above 0 indicates listening to all IP addresses

// Ftpd-W the parameter-W indicates that the client can perform write operations on the directory.

// 21 specify the default port of the FTP server

// You can set the-T and-T parameters to enable ftpd to disconnect the client after no operation is performed,

// Default-T is 2 minutes = 2*60,-T is 1 hour = 1*60*60

 

Start Method 2:

# Vi/etc/inetd. conf // Add the following code

21 stream tcp Nowait root ftpd-W/root

# Inetd

// Inetd will execute the command line in the/etc/inetd. conf script, so that ftpd runs as daemon.

TFTP server configuration and use

Method 1:

# Udpsvd-ve 0 69 tftpd-C/root &

// The above 0 indicates listening to all IP addresses

Method 2:

# Vi/etc/inetd. conf

69 dgram UDP Nowait root tftpd-C/root

# Inetd

 

Use of TFTP client

Tftp32 as server

 

1. Put the hello. c file on the Development Board to the root directory of tftpd32 on the PC end and rename itWorld. c

# TFTP-l Hello. c-r world. C-P (IP address of the TFTP Server)

 
 

2. Get the world. c file in the tftp32 directory on the PC to the Development Board and rename itHello word. c

# TFTP-l hello_world.c-r world. C-g (IP address of the TFTP Server)

Other commands

List available SDK versions:

Android list target

 
 

View existing AVD:

Android list AVD

 
 

Create AVD:

Android create AVD-n <Name>-T <targetid> [-<option> <value>]…

Example: Android create AVD-N myavd-T 2

Note: The storage location of the created AVD is determined based on android_sdk_home. The default value is

C:/Documents and Settings/Administrator/. Android/AVD

 
 

Start the simulator:

Emulator-AVD <avd_name>

 
 

Copy a file to the simulator:

ADB push D:/test.txt/sdcard/

 
 

Copy a file to your computer:

ADB pull/sdcard/test.txt D :/

 
 

Install the APK application:

ADB push D:/text.apk/sdcard/

ADB install test.apk

 
 

Go to Android shell:

ADB Shell

 
 

Resource packaging tool:

Aapt p-A Assets-s res-M androidmanifest. XML-F/bin/resourcesap _

 
 

DX tool usage:

DX-Dex-dump-To = D:/myandroidpro/bin/classes. Dex-core-library D:/myandroidpro/bin

 
 

Create a virtual SD card:

Mksdcard 64 m d:/mysdcard. img

Related Article

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.