Create an android Environment

Source: Internet
Author: User

As an android developer, how to download compiled AMSS and AP images to your mobile phone is the first step in creating a development environment and a test environment
1. Download and decompress the android driver package.
Currently, Google adds more new features to the smartphone operating system andriod, with the Development code "cupcake". In the new Android version, the Linux kernel will be upgraded.

Up to 2.6.27, the browser core was also upgraded to support and support the new squirrelfish JavaScript Engine.
In addition, some important updates include support for video recording, copy and paste, Bluetooth a2dp and avrcp, and "support for basic x86", and also support for virtual

Keyboard.
I am now using the new version of the operating system code cupcake.
This article describes how to download Android cupcake to your mobile phone and use Android development tools. Hardware and software are required to create a development environment

In terms of hardware support, we choose g2,software package ‑fastboot.exe, USB driver, adb.exe, and adbwinapi. We also need to implant mobile phones.

System. IMG, Boot. IMG, userdata. IMG.
2. tool usage
First, we need to install the adb usb driver for the mobile phone.
(1) first, determine whether we have all the files.
(2) Enable the mobile phone and use USB to connect to the computer
(3) There are a total of four Qualcomm hsusb device drivers to be installed.
After you connect your phone to your computer via USB, the "Find new hardware wizard" prompt box will pop up. Click "Install from list or specified location (advanced )"

.
In "search for the best driver in these locations", select "include this location in the search", and click "Browse" to find the extracted location.

In the "android_usb_windows" folder, click "Next ". After the installation is complete, click OK.
3. Use the qpst software to download the AMSS (Advanced mobile subscriber software) for Qualcomm's modem chip)
Of course, you can also use jiag to download the software for your mobile phone. Here we will first introduce how to use qpst, first install qpst Software
After step 1 and Step 2 are successfully connected, the ADB interface and the serial port simulated by USB (Qualcomm HS-

USB Android DIAG ):
Run the qpst configuration application to add and configure the USB virtual serial port
Start the qpst "software download" application, go to the "Multi-image" page, and select the corresponding directory
Click "Advanced ..." Press the key to go to the file selection page, add and select "apps Boot Loader" and "dsp1", and click "OK"
Return to the "Multi-image" Page and click "start" to start the download. At this time, the rocket automatically restarts several times, and the "exit" is disable until the "exit" button is re-enable.

, Indicating that the download is successful.
3. Use fastboot
Use fastboot to download the system's img
(1) Before downloading the system, you must prepare three imgfiles: system. IMG, Boot. IMG, userdata. IMG. And put these three files and fastboot in the same

Directory, or you need to enter the full path when using fastboot, such as fastboot FLASH Boot/MMU/boot. img
(2) To download the new Android system, you need to use the flash command.
(3) ensure that the mobile phone is in the download mode. For example, press the back button to connect to the mobile phone and computer.
(4) use fastboot device to check whether the device is ready
(5) fastboot Flash boot. img
Fastboot flash system. img
Fastboot flash userdata. img
(6) restart the mobile phone device
4. ADB
ADB is a multi-function tool used to operate Android devices. It is a client-server mode and contains three components.
(1) a client, you can use the ADB command to wake up the client from the shell, simply put, your Android phone
(2) The server runs background programs on your computer. The server manages the communication between the ADB daemon and the client on the device.
(3) daemon. background program running on the mobile phone

5. How to Use busybox to partition and format movinand on the mobile phone
(1) Use the ADB command to upload busybox to the mobile phone. ADB push busybox/system/bin
(2) ADB Shell
(3) busybox fdisk/dev/block/mmcblk0 will display the partition list
Busybox fdisk/dev/block/mmcblk0
The following information is returned after the command is entered:
The number of cylinders for this disk is set to 245760.
There is nothing wrong with that, but this is larger than 1024,
And coshould in certain setups cause problems:
1) software that runs at boot time (e.g., old versions of lilo)
2) booting and partitioning software from other OSS
(E.g., DOS fdisk, OS/2 fdisk)

Command (M for help ):
Command (M for help): Input n to create a new partition. Input P to select the primary partition. Enter m to obtain command information.
If the partition has been created, run the D command to delete the original partition.
For example, to create a new partition, follow these steps:
(1) busybox fdisk/dev/block/mmcblk0 will display the partition list, you can enter P to display the current partition list, if you want to re-create a partition

To delete all the original partitions, enter D, and then enter the code for the partition you want to delete.
(2) Enter n to display the command line
N
Command action
E extended
P primary partition (1-4)
(3) Input P,
P
P
Partition Number (1-4): Input 1
First cylinder (1-245760, default 1): 1
1
Last cylinder or + size or + sizem or + sizek (1-245760, default 245760): 61440
61440
Set the start and second bit of the partition to 1 and 61440 respectively.
If you want to continue to distribute the remaining partitions, use the above method to separate the 2nd partition as prompted.
(4) Enter W to save the partition information.
Use busybox to format the hard disk use busybox mkfs. ext3-J to format/dev/block/mmcblk0p1 and/dev/block/mmcblk0p2
5. Restart the mobile phone
Restart your phone and use CAT/proc/mounts to mount the system partition.

 

 

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.