CN103902300A - Method and system for rapidly installing APK program on Android simulator - Google Patents

Method and system for rapidly installing APK program on Android simulator Download PDF

Info

Publication number
CN103902300A
CN103902300A CN201210568108.1A CN201210568108A CN103902300A CN 103902300 A CN103902300 A CN 103902300A CN 201210568108 A CN201210568108 A CN 201210568108A CN 103902300 A CN103902300 A CN 103902300A
Authority
CN
China
Prior art keywords
image file
simulator
android
card image
apk program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210568108.1A
Other languages
Chinese (zh)
Other versions
CN103902300B (en
Inventor
林坚明
李敏怡
傅盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Beijing Cheetah Mobile Technology Co Ltd
Beijing Cheetah Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Shell Internet Beijing Security Technology Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Beijing Kingsoft Internet Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd, Shell Internet Beijing Security Technology Co Ltd, Zhuhai Juntian Electronic Technology Co Ltd, Beijing Kingsoft Internet Science and Technology Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201210568108.1A priority Critical patent/CN103902300B/en
Publication of CN103902300A publication Critical patent/CN103902300A/en
Application granted granted Critical
Publication of CN103902300B publication Critical patent/CN103902300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention belongs to the technical field of computers, and particularly discloses a method and a system for quickly installing an APK program on an Android simulator. The method comprises the following steps: (1) writing the APK program into an SD card mirror image file; (2) loading the SD card mirror image file into an Android system; (3) and calling a PM manager to complete the installation of the APK program. The system comprises a corresponding writing module, a loading module and an installation module. The invention changes the previous mode of copying the APK program file to the temporary catalog of the simulator for installation, and writes the APK program file into the SD card mirror image file, thereby greatly improving the installation speed and ensuring that a user does not need to wait for a long time.

Description

A kind of method and system of Android simulator Fast Installation APK program
Technical field
The invention belongs to field of computer technology, be specifically related to a kind of method and system of Android simulator Fast Installation APK program.
Background technology
Android is a kind of freedom based on Linux and the operating system of open source code, is mainly used in portable equipment, as smart mobile phone and panel computer.Not yet have at present unified Chinese, the more people in CONTINENTAL AREA OF CHINA uses " Android " or " peace causes ".Android operating system is developed by Andy Rubin at first, mainly supports mobile phone.Within 2005, registered capital to by Google purchase, and the open mobile phone of establishment alliance development and improvement subsequently, expands to gradually on panel computer and other field.First Android smart mobile phone is published in October, 2008.The first quarter in 2011, Android exceedes Saipan system first in the global market share, leaps to the whole world first.In November, 2012, data showed, Android occupies the share in global operation system of smart phone market 76%, and Chinese market occupation rate is 90%.
Android simulator is Android SDK(Software Development Kit, i.e. SDK (Software Development Kit)) carry a mobile simulator.It is a virtual unit may operate on computer.Android simulator can not need to use physical equipment to get final product preview, development& testing Android application program.
APK is the abbreviation of Android Package, i.e. Android installation kit (APK).APK is the file layout of similar Symbian Sis or Sisx.Carry out and can install by APK file directly being passed in Android simulator or Android mobile phone.APK file is the same with sis, and the engineering of android sdk compiling is packaged into an installation procedure file, and form is apk.APK file is zip form in fact, but suffix name is modified to apk, after UnZip decompress(ion), can see Dex file, Dex is the full name of Dalvik VM executes, i.e. Android Dalvik executive routine, the not bytecode of Java ME but Dalvik bytecode.
At present, for by APK installation to Android simulator, be first by APK program copy under a temp directory of simulator, then call PM(package manager) manager attaches it in Android system.Owing to being limited to the performance of simulator itself, APK program copy is slower to the speed under the temp directory of simulator, conventionally in 50K speed per second, thereby make the whole installation process of APK program consuming time longer, can not meet people's demand.
Summary of the invention
In order to address the above problem, the object of the present invention is to provide a kind of method and system of Android simulator Fast Installation APK program.
In order to realize foregoing invention object, obtain following technical scheme:
A method for Android simulator Fast Installation APK program, comprises the following steps:
(1) described APK program is written in SD card image file;
(2) described SD card image file is loaded in Android system;
(3) call PM manager and complete the installation of described APK program.
Further, described (1) step is specifically:
Open the SD card image file of simulator;
With SD card image file described in the format analysis of FAT32, the position that need to write to obtain described APK program;
Described APK program is written to above-mentioned position;
Close described SD card image file.
Further, described (2) step is specifically:
In the time that simulator normally starts, by simulator, described SD card image file is loaded in Android system automatically.
Further, described (2) step is specifically:
In the time that simulator starts from the image recovery of having preserved, first unload SD card, and then carry SD sticks into and described SD card image file is loaded in Android system.
A system for Android simulator Fast Installation APK program, comprises with lower module:
Writing module, for being written to SD card image file by described APK program;
Load-on module, for being loaded into Android system by described SD card image file;
Installation module, completes the installation of described APK program for calling PM manager.
Further, said write module comprises following submodule:
Open submodule, for opening the SD card image file of simulator;
Analyzing sub-module, for SD card image file described in the format analysis with FAT32, the position that need to write to obtain described APK program;
Write submodule, for described APK program is written to above-mentioned position;
Close closed submodule, for closing described SD card image file.
Further, described load-on module is loaded into described SD card image file in Android system, specifically: in the time that simulator normally starts, by simulator, described SD card image file is loaded in Android system automatically.
Further, described load-on module is loaded into described SD card image file in Android system, specifically: in the time that simulator starts from the image recovery of having preserved, first unload SD card, and then carry SD sticks into and described SD card image file is loaded in Android system.
Wherein, SD card (Secure Digital Memory Card) translator of Chinese is safe digital card, it is a kind of memory device of new generation of based semiconductor fast-flash memory device, it is used widely on mancarried device, such as digital camera, personal digital assistant (PDA) and multimedia player etc.
Wherein, image file is in fact similar with ZIP compressed package, and it is made into single file by specific a series of files according to certain form, to facilitate user to download and to use, and for example operating system, the game etc. of a beta version.Its most important feature is and can directly be burnt on CD by specific software identification.
Wherein, the form of SD card image file own is FAT32 form, and FAT32 is the one of Windows system disk zoned format.This form adopts the file allocation table of 32, its managerial ability to disk is strengthened greatly, has broken through FAT16 the capacity of each subregion is only had the restriction of 2GB.Because present hard disk manufacture cost declines, its capacity is increasing, uses after the zoned format of FAT32, and we can be defined as a subregion by a big hard disk and needn't be divided into several subregions uses, greatly facilitate the management to disk.
Before the present invention has changed, APK program file is copied to the mode of installing under simulator temp directory, but be written in SD card image file, thereby greatly improved installation rate, user no longer needs to wait as long for.
Brief description of the drawings
The picture that this brief description of the drawings provides is used for assisting a further understanding of the present invention, forms the application's a part, does not form inappropriate limitation of the present invention, in the accompanying drawings:
Fig. 1 is main flow chart corresponding to the inventive method;
Fig. 2 is the concrete sub-process of Fig. 1 (1) step;
Fig. 3 is system chart corresponding to the inventive method;
Fig. 4 is the submodule block diagram of Fig. 3 writing module.
Embodiment
As shown in Figure 1, the present embodiment discloses a kind of method of Android simulator Fast Installation APK program, comprises the following steps:
(1) described APK program is written in SD card image file; By this step than existing copy APK program to simulator temp directory a lot of soon;
(2) described SD card image file is loaded in Android system; This step, according to the characteristic of simulator itself, can, in the time normally starting by simulator, be loaded into described SD card image file in Android system by simulator automatically; Can also, in the time that simulator starts from the image recovery of having preserved, first unload SD card, and then carry SD stick into and described SD card image file is loaded in Android system;
(3) call PM manager and complete the installation of described APK program.
As shown in Figure 2, described (1) step specifically comprises following sub-step:
(11) open the SD card image file of simulator;
(12) with SD card image file described in the format analysis of FAT32, the position that need to write to obtain described APK program; Because SD card image file is FAT32 form, so must adopt same form to resolve it;
(13) described APK program is written to above-mentioned position;
(14) close described SD card image file.
As shown in Figure 3, the present embodiment also discloses a kind of system of Android simulator Fast Installation APK program, comprises with lower module:
Writing module 1, for being written to SD card image file by described APK program;
Load-on module 2, for being loaded into Android system by described SD card image file; Described load-on module is loaded into described SD card image file in Android system, can, in the time that simulator normally starts, by simulator, described SD card image file be loaded in Android system automatically; Also can, in the time that simulator starts from the image recovery of having preserved, first unload SD card, and then carry SD stick into and described SD card image file is loaded in Android system;
Installation module 3, completes the installation of described APK program for calling PM manager.
As shown in Figure 4, writing module 1 comprises following submodule:
Open submodule 11, for opening the SD card image file of simulator;
Analyzing sub-module 12, for SD card image file described in the format analysis with FAT32, the position that need to write to obtain described APK program;
Write submodule 13, for described APK program is written to above-mentioned position;
Close closed submodule 14, for closing described SD card image file.
The present embodiment is written to the mode in simulator by changing APK file, and then has greatly improved its installation rate, and then has improved user's experience effect.
More than describe preferred embodiment of the present invention in detail, should be appreciated that the ordinary skill of this area just can design according to the present invention be made many modifications and variations without creative work.Therefore, all technician in the art according to the present invention design on prior art basis by logic analysis, reasoning or according to the available technical scheme of limited experiment, all should be among by the determined protection domain of these claims.

Claims (8)

1. a method for Android simulator Fast Installation APK program, is characterized in that comprising the following steps:
(1) described APK program is written in SD card image file;
(2) described SD card image file is loaded in Android system;
(3) call PM manager and complete the installation of described APK program.
2. the method for Android simulator Fast Installation APK program according to claim 1, is characterized in that described (1) step specifically:
Open the SD card image file of simulator;
With SD card image file described in the format analysis of FAT32, the position that need to write to obtain described APK program;
Described APK program is written to above-mentioned position;
Close described SD card image file.
3. the method for Android simulator Fast Installation APK program according to claim 1, is characterized in that described (2) step specifically:
In the time that simulator normally starts, by simulator, described SD card image file is loaded in Android system automatically.
4. the method for Android simulator Fast Installation APK program according to claim 1, is characterized in that described (2) step specifically:
In the time that simulator starts from the image recovery of having preserved, first unload SD card, and then carry SD sticks into and described SD card image file is loaded in Android system.
5. a system for Android simulator Fast Installation APK program, is characterized in that comprising with lower module:
Writing module, for being written to SD card image file by described APK program;
Load-on module, for being loaded into Android system by described SD card image file;
Installation module, completes the installation of described APK program for calling PM manager.
6. the system of Android simulator Fast Installation APK program according to claim 5, is characterized in that said write module comprises following submodule:
Open submodule, for opening the SD card image file of simulator;
Analyzing sub-module, for SD card image file described in the format analysis with FAT32, the position that need to write to obtain described APK program;
Write submodule, for described APK program is written to above-mentioned position;
Close closed submodule, for closing described SD card image file.
7. the system of Android simulator Fast Installation APK program according to claim 5, is characterized in that:
Described load-on module is loaded into described SD card image file in Android system, specifically: in the time that simulator normally starts, by simulator, described SD card image file is loaded in Android system automatically.
8. the system of Android simulator Fast Installation APK program according to claim 5, is characterized in that:
Described load-on module is loaded into described SD card image file in Android system, specifically: in the time that simulator starts from the image recovery of having preserved, first unload SD card, and then carry SD sticks into and described SD card image file is loaded in Android system.
CN201210568108.1A 2012-12-24 2012-12-24 Method and system for rapidly installing APK program on Android simulator Active CN103902300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210568108.1A CN103902300B (en) 2012-12-24 2012-12-24 Method and system for rapidly installing APK program on Android simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210568108.1A CN103902300B (en) 2012-12-24 2012-12-24 Method and system for rapidly installing APK program on Android simulator

Publications (2)

Publication Number Publication Date
CN103902300A true CN103902300A (en) 2014-07-02
CN103902300B CN103902300B (en) 2017-08-04

Family

ID=50993642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210568108.1A Active CN103902300B (en) 2012-12-24 2012-12-24 Method and system for rapidly installing APK program on Android simulator

Country Status (1)

Country Link
CN (1) CN103902300B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183505A (en) * 2015-08-13 2015-12-23 深圳市金溢科技股份有限公司 Method for implementing silent installation of application and handheld device
CN105700923A (en) * 2016-01-08 2016-06-22 深圳市创想天空科技股份有限公司 Method and system for installing application program
CN107203386A (en) * 2017-06-09 2017-09-26 山东超越数控电子有限公司 A kind of android system based on ARM platforms accelerates startup method
CN109062579A (en) * 2018-06-21 2018-12-21 上海二三四五网络科技有限公司 A kind of control method and control device of fast discharging application program
US10904361B2 (en) 2015-05-22 2021-01-26 Huawei Technologies Co., Ltd. Method, apparatus, and system for implementing JAVA application installation by means of cloud compilation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663285A (en) * 2012-03-21 2012-09-12 奇智软件(北京)有限公司 Extracting method and extracting device for APK (android package) virus characteristic code
CN102799445A (en) * 2012-05-03 2012-11-28 陈昊 Application upgrading method based on Android platform and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663285A (en) * 2012-03-21 2012-09-12 奇智软件(北京)有限公司 Extracting method and extracting device for APK (android package) virus characteristic code
CN102799445A (en) * 2012-05-03 2012-11-28 陈昊 Application upgrading method based on Android platform and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张利国 等: "《Android移动开发案例详解》", 28 February 2010, 人民邮电出版社 *
明日科技: "《Android从入门到精通》", 30 September 2012, 清华大学出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10904361B2 (en) 2015-05-22 2021-01-26 Huawei Technologies Co., Ltd. Method, apparatus, and system for implementing JAVA application installation by means of cloud compilation
CN105183505A (en) * 2015-08-13 2015-12-23 深圳市金溢科技股份有限公司 Method for implementing silent installation of application and handheld device
CN105700923A (en) * 2016-01-08 2016-06-22 深圳市创想天空科技股份有限公司 Method and system for installing application program
CN107203386A (en) * 2017-06-09 2017-09-26 山东超越数控电子有限公司 A kind of android system based on ARM platforms accelerates startup method
CN109062579A (en) * 2018-06-21 2018-12-21 上海二三四五网络科技有限公司 A kind of control method and control device of fast discharging application program
CN109062579B (en) * 2018-06-21 2021-07-20 上海二三四五网络科技有限公司 Control method and control device for quickly uninstalling application program

Also Published As

Publication number Publication date
CN103902300B (en) 2017-08-04

Similar Documents

Publication Publication Date Title
US8370835B2 (en) Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device
KR101928127B1 (en) Selective file access for applications
JP6166839B2 (en) System and method for replacing application methods at runtime
US8694981B2 (en) Shared resource dependencies
CN102662741B (en) Method, device and system for realizing virtual desktop
Gilbert et al. Pocket ISR: Virtual machines anywhere
TWI715762B (en) Method and apparatus for creating virtual machine
EP4018319B1 (en) Data preservation using memory aperture flush order
WO2018099292A1 (en) Process management method and apparatus
TWI608345B (en) Operating system recovery method, device and terminal equipment
CN105739961B (en) Starting method and device of embedded system
CN103902300B (en) Method and system for rapidly installing APK program on Android simulator
WO2017172163A1 (en) Dynamic addition of code in shared libraries
CN104484625A (en) Computer with dual operating systems and implementation method thereof
US7380087B2 (en) Reclaiming application isolated storage
US10459823B1 (en) Debugging using dual container images
US9405709B1 (en) Systems and methods for performing copy-on-write operations
US8473731B2 (en) System and method for physical to virtual disk re-layout
CN111782474A (en) Log processing method and device, electronic equipment and medium
WO2017020460A1 (en) Method and apparatus for integrating plugin
US20230185580A1 (en) Single node deployment of container platform
CN109634690A (en) Data clearing method, device, terminal and storage medium based on WinPE system
TW201133342A (en) Method for integrating OS into BIOS chip, and method for booting the OS
TWI382311B (en) Transmission control system and its method
US9202058B1 (en) Root volume encryption mechanism in para-virtualized virtual machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519070, six level 601F, 10 main building, science and technology road, Tangjia Bay Town, Zhuhai, Guangdong.

Co-patentee after: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

Patentee after: ZHUHAI JUNTIAN ELECTRONIC TECHNOLOGY Co.,Ltd.

Co-patentee after: Beijing Cheetah Mobile Technology Co.,Ltd.

Co-patentee after: Beijing Cheetah Network Technology Co.,Ltd.

Address before: 519015 8 Lanshan lane, Jida Jingshan Hill Road, Zhuhai, Guangdong

Co-patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

Patentee before: Zhuhai Juntian Electronic Technology Co.,Ltd.

Co-patentee before: SHELL INTERNET (BEIJING) SECURITY TECHNOLOGY Co.,Ltd.

Co-patentee before: BEIJING KINGSOFT NETWORK TECHNOLOGY Co.,Ltd.