Android Pre-install software &adb Command & compile source code

Source: Internet
Author: User

1. Pre-installed software:

Copy the apk file to

android/platform/thirdapp/

directory, and then compile the Android source code and then burn it to complete

Of course, the removal of the APK can also be implemented to remove preinstalled software, which should be the principle of many thin ROM package implementation


2. Compiling Android source code

Enter the Android source root directory

RM $OUT/system $OUT/data $OUT/obj/apps-rfsource build/envsetup.sh make image


3. Burning

Copy the compiled Out/mt8658sdk/bin/mt8658_bl_linux.bin to the Upg folder in the root directory of the USB stick

Connect the serial port, restart the machine, enter the command line

Input UPG Start burning

Restart manually after the burn is complete, or enter reset restart


4. Simulator access to local server

When the emulator accesses the local server, it is not 127.0.0.1 or localhost

Many articles on the web say that 10.0.2.2 is a specific IP set by the simulator, similar to the local 127.0.0.1

I tried to play my local Apache server in the simulator, Local access to 127.0.0.1 is completely fine, but the emulator cannot access 127.0.0.1 and 10.0.2.2, and then there is an article on the Internet that is the IP of the machine, I follow the method did not get to the IP, but I try to use the local host LAN IP to try, the results can be


5.ADB command

This only found the strong command of the ADB, here is just a few days to record the use of several

adb devices     View the currently connected Android device adb connect 10.19.255.102:5555      Connect Android device, IP is the IP of the device, the port number is the default 5555adb disconnect 10.19.255.102:5555adb shell      enter adb command line am start -n com.android.settings/com.android.settings.settings      Enter Android system settings am start -a android.intent.action.view -d http:// 10.19.255.59/     open a Web page with a browser adb install <-r> d:\\factorytest.apk      Force install apkadb shell rm /data/app/<*.apk>adb push  file path   Path      copy files on your phone to your Android device adb pull  file name   computer path      Copy files to your computer am start -a android.intent.action.call -d tel:10086     Call am start -a android.intent.action.view geo:0,0?q=beijing     Start Google map Direct to Beijing



This article is from the "Young Wind" blog, please be sure to keep this source http://5656020.blog.51cto.com/5646020/1546508

Android Pre-install software &adb Command & compile source code

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.