Detailed research on Android application installation methods

Source: Internet
Author: User

 

Android is installed in the following ways:

The first is to install the application by calling the system installer.

In this method, the user downloads a. APK package and calls the system installer to install the package. In this method, the system prompts as shown in.

 

The user is prompted for the uses-permission of the APK program.

The system also provides APIs using this method.

Intent intent = new intent (intent. action_view); <br/> intent. setdataandtype (URI. fromfile (new file ("/sdcard/worldcuptimer.apk"), "application/vnd. android. package-Archive "); <br/> startactivity (intent); <br/> 

 

The above is a Demo code I wrote.

 

The second installation method is to use the ADB method and use the ADB debugging bridge for installation.

 

This method is usually used after the eclipse compilation is complete and then directly installed through ADB, or by yourself through the command

 

.

The third installation method is to manually copy the file.

Manually copy the file to/data/APP of the file system

You can use fileexplorer of eclipse or the ADB push command.

 

 

After the copy is complete

 

The application is also installed on the mobile phone.

The fourth method is to install software on a third-party computer.

The Installation Method of the program filehookis monitored and found that adb.exe is also used for operations. The file operations executed by the installation on Android are unclear.


 

 

The above four methods are feasible.

A user image file of Android is caught by filehook on the computer.

You can only view the file explorer interface provided by eclipse.

There is an APK file installed in/data/app.

There are corresponding data files under/data/, such as some files generated by the application and corresponding sharedpreference files and Lib files.

 

 

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.