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.