CN102902566A - Method and device for installing and starting application software - Google Patents

Method and device for installing and starting application software Download PDF

Info

Publication number
CN102902566A
CN102902566A CN2012103768856A CN201210376885A CN102902566A CN 102902566 A CN102902566 A CN 102902566A CN 2012103768856 A CN2012103768856 A CN 2012103768856A CN 201210376885 A CN201210376885 A CN 201210376885A CN 102902566 A CN102902566 A CN 102902566A
Authority
CN
China
Prior art keywords
application software
executable file
storage space
storage
described application
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.)
Pending
Application number
CN2012103768856A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN2012103768856A priority Critical patent/CN102902566A/en
Publication of CN102902566A publication Critical patent/CN102902566A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and a device for installing and starting an application software, which is suitable for the technical field of mobile terminals. The method comprises the steps as follows: reserving a storage space in an external memory; when the installation of the application software is detected, storing an executable file of the application software into the reserved storage space; and when application software starting information is received, loading the executable file corresponding to the application software from the reserved storage space. Due to the method and the device, problems that the application software can not be installed when an internal storage space is small and the executable file installed with the application software can not be erased from an internal memory when the external memory is replaced by a user are effectively solved.

Description

A kind of installation of application software and starting method and device
Technical field
The invention belongs to technical field of mobile terminals, relate in particular to installation and starting method and the device of application software under a kind of Android system.
Background technology
Existing mobile phone support based on Android (Android) system is installed to external memory storage with application software, but need to be with the executable file of the application software of installing, and namely DEX (Dalvik Executable Format) file is stored to internal storage.Yet, in order to guarantee the performance of system, can preset a threshold value, when internal system storage space during less than this threshold value, even external memory storage also has enough storage spaces, new application software also can't be installed.And, when the user changes external memory storage, the internally core dump memory clear of DEX file of application software has been installed, the waste internal storage space.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of installation and starting method of application software, when application software is installed to external memory storage, still take certain internal memory space to solve prior art, and at internal storage space than the problem that hour application software can't be installed and the internally core dump memory clear of DEX file of application software has been installed.
The embodiment of the invention is achieved in that a kind of installation and starting method of application software, and described method comprises:
Externally storer is reserved a storage space;
When detecting the application software installation, the executable file of described application software is stored to the storage space of described reservation;
When receiving the information that starts described application software, load executable file corresponding to described application software from the storage space of described reservation.
Further, described when detecting application software and install, the storage space that the executable file of described application software is stored to described reservation specifically comprises:
When detecting the application software installation, judge whether described application software needs to be installed to external memory storage, perhaps whether the residual memory space of described internal storage is less than threshold value, if, the executable file of described application software is stored to the storage space of described reservation, and the described application software of mark is the external memory storage application software.
Further, described externally storer is reserved a storage space and is specially:
Externally storer /the mnt/asec/ root directory under, create a dalvik-cache catalogue, with the executable file of the application software that will install be stored to/the mnt/asec/dalvik-cache catalogue under.
Further, described when receiving the information that starts described application software, the executable file that loads described application software from the storage space of described reservation specifically comprises:
When receiving the information that starts described application software, judge whether this application software is the external memory storage application software, if, from described external memory storage /load corresponding executable file under the mnt/asec/dalvik-cache catalogue.
Further, the described information that starts described application software that receives comprises the described application software instructions of startup that the user sends, the trigger message of the described application software of startup that perhaps produces according to the default time interval.
Another purpose of the embodiment of the invention is to provide a kind of installation and starter gear of application software, and described device comprises:
The space to be preserved unit is used for externally storer and reserves a storage space;
Storage unit is used for the executable file of described application software being stored to the storage space of described reservation when detecting the application software installation;
Start unit is used for when receiving the information that starts described application software, loads executable file corresponding to described application software from the storage space of described reservation.
Further, described storage unit specifically is used for, when detecting the application software installation, judge whether described application software needs to be installed to external memory storage, perhaps whether the residual memory space of described internal storage is less than threshold value, if the executable file of described application software is stored to the storage space of described reservation, and the described application software of mark is the external memory storage application software.
Further, described space to be preserved unit specifically is used for, externally storer /the mnt/asec/ root directory under, create a dalvik-cache catalogue, with the executable file of the application software that will install be stored to/the mnt/asec/dalvik-cache catalogue under.
Further, described start unit specifically is used for, and when receiving the information that starts described application software, judges whether this application software is the external memory storage application software, if, from described external memory storage /load corresponding executable file under the mnt/asec/dalvik-cache catalogue.
Further, the described information that starts described application software that receives comprises the described application software instructions of startup that the user sends, the trigger message of the described application software of startup that perhaps produces according to the default time interval.
The beneficial effect that the embodiment of the invention compared with prior art exists is: externally storer is reserved a storage space, when detecting the application software installation, the executable file of described application software can be stored to the storage space of described reservation, when receiving the information that starts described application software, load executable file corresponding to described application software from the storage space of described reservation, even inner like this residual memory space reaches threshold value, as long as external memory storage also has storage space, still can realize the installation of application software.And because the executable file of application software is installed in external memory storage, when the user changes external memory storage, can not stay unnecessary executable file at internal storage, effectively the internal storage space of saves valuable has stronger ease for use and practicality.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the installation of the application software that provides of the embodiment of the invention one and the realization flow figure of starting method;
Fig. 2 is the installation of the application software that provides of the embodiment of the invention two and the composition structural drawing of starter gear.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, describe below by specific embodiment.
Embodiment one:
Fig. 1 shows the installation of the application software that the embodiment of the invention one provides and the realization flow of starting method, and details are as follows for the method process:
In step S101, externally storer is reserved a storage space.
Take based on the portable terminal of Android system as example (being not limited to this), under the Android system, create on its external memory storage hiding catalogue/mnt/asec is arranged, the source APMB package that is used for depositing each application software (is the apk file, AndroidPackage) and the lib library file that comprises, present embodiment creates a dalvik-cache catalogue under the root directory in this path, with the DEX executable file of the application software of depositing installation.
In step S 102, when detecting the application software installation, the executable file of described application software is stored to the storage space of described reservation.
Specifically comprise: when detecting the application software installation, judge described application software whether need to be installed to external memory storage (as the user initiatively arrange with as described in application software be installed to external memory storage), perhaps whether the residual memory space of described internal storage is less than threshold value, if, the executable file of described application software is stored to the storage space (namely/mnt/asec/dalvik-cache catalogue under) of described reservation, and the described application software of mark is the external memory storage application software.
Need to prove, when present embodiment is stored to the storage space of described reservation at the executable file with described application software, also set up at the storage space of described reservation mapping table is arranged, described mapping table is used for recording the mapping relations of described application software and executable file, so that when starting described application software, can find fast corresponding executable file.
In addition, need to be installed to internal storage in described application software, when perhaps the residual memory space of described internal storage is not less than threshold value, then the executable file of described application software is stored to internal storage /the data/dalvik-cache catalogue under.
In step S103, when receiving the information that starts described application software, load executable file corresponding to described application software from the storage space of described reservation.
Concrete is, when receiving the information that starts described application software, whether be the external memory storage application software according to this application software of described marker for judgment, if, from described external memory storage /load corresponding executable file under the mnt/asec/dalvik-cache catalogue, if not, internally storer /load corresponding executable file under the data/dalvik-cache catalogue.
In the present embodiment, the described information that starts described application software that receives comprises the described application software instructions of startup that the user sends, the trigger message of the described application software of startup that perhaps produces according to the default time interval.
Present embodiment is when installing application software, the executable file of the application software of installing is stored to external memory storage, so that the application software of installing does not need to take internal storage space, when application software initiated, directly load corresponding executable file from external memory storage.And, when the user changes external memory storage, can not stay unnecessary executable file at internal storage, effectively the internal storage space of saves valuable has stronger ease for use and practicality.
Embodiment two:
Fig. 2 shows the installation of the application software that the embodiment of the invention two provides and the composition structure of starter gear, for convenience of explanation, only shows the part relevant with the embodiment of the invention.
The installation of this application software and starter gear can be to run on the unit that software unit, hardware cell or software and hardware in the portable terminal (such as mobile phone, panel computer etc.) combine, and also can be used as independently, suspension member is integrated in the application system of described portable terminal.
The installation of this application software and starter gear comprise space to be preserved unit 21, storage unit 22 and start unit 23.Wherein, the concrete function of each unit is as follows:
Space to be preserved unit 21 is used for externally storer and reserves a storage space;
Storage unit 22 is used for the executable file of described application software being stored to the storage space of described reservation when detecting the application software installation;
Start unit 23 is used for when receiving the information that starts described application software, loads executable file corresponding to described application software from the storage space of described reservation.
Further, described storage unit 22 specifically is used for, when detecting the application software installation, judge whether described application software needs to be installed to external memory storage, perhaps whether the residual memory space of described internal storage is less than threshold value, if the executable file of described application software is stored to the storage space of described reservation, and the described application software of mark is the external memory storage application software.
Further, described space to be preserved unit 21 specifically is used for, externally storer /the mnt/asec/ root directory under, create a dalvik-cache catalogue, with the executable file of the application software that will install be stored to/the mnt/asec/dalvik-cache catalogue under.
Further, described start unit 23 specifically is used for, and when receiving the information that starts described application software, judges whether this application software is the external memory storage application software, if, from described external memory storage /load corresponding executable file under the mnt/asec/dalvik-cache catalogue.
In the present embodiment, the described information that starts described application software that receives comprises the described application software instructions of startup that the user sends, the trigger message of the described application software of startup that perhaps produces according to the default time interval.
The installation of the application software that present embodiment provides and starter gear can use at the installation of the application software of aforementioned correspondence and starting method, and details do not repeat them here referring to the installation of above-mentioned application software and the associated description of starting method embodiment one.
One of ordinary skill in the art will appreciate that as embodiment two included units are to divide according to function logic, but be not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In sum, the embodiment of the invention is reserved a storage space by storer externally, when detecting the application software installation, the executable file of described application software is stored to the storage space of described reservation, when receiving the information that starts described application software, load executable file corresponding to described application software from the storage space of described reservation, even inner like this residual memory space reaches threshold value, as long as external memory storage also has storage space, still can realize the installation of application software.And because the executable file of application software is installed in external memory storage, when the user changes external memory storage, can not stay unnecessary executable file at internal storage, effectively the internal storage space of saves valuable has stronger ease for use and practicality.
Those of ordinary skills it is also understood that, realize that all or part of step in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium comprises ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the installation of an application software and starting method is characterized in that, described method comprises:
Externally storer is reserved a storage space;
When detecting the application software installation, the executable file of described application software is stored to the storage space of described reservation;
When receiving the information that starts described application software, load executable file corresponding to described application software from the storage space of described reservation.
2. the method for claim 1 is characterized in that, and is described when detecting application software and install, and the storage space that the executable file of described application software is stored to described reservation specifically comprises:
When detecting the application software installation, judge whether described application software needs to be installed to external memory storage, perhaps whether the residual memory space of described internal storage is less than threshold value, if, the executable file of described application software is stored to the storage space of described reservation, and the described application software of mark is the external memory storage application software.
3. the method for claim 1 is characterized in that, described externally storer is reserved a storage space and is specially:
Externally storer /the mnt/asec/ root directory under, create a dalvik-cache catalogue, with the executable file of the application software that will install be stored to/the mnt/asec/dalvik-cache catalogue under.
4. the method for claim 1 is characterized in that, and is described when receiving the information that starts described application software, and the executable file that loads described application software from the storage space of described reservation specifically comprises:
When receiving the information that starts described application software, judge whether this application software is the external memory storage application software, if, from described external memory storage /load corresponding executable file under the mnt/asec/dalvik-cache catalogue.
5. such as each described method of claim 1 to 4, it is characterized in that, the described information that starts described application software that receives comprises the described application software instructions of startup that the user sends, the trigger message of the described application software of startup that perhaps produces according to the default time interval.
6. the installation of an application software and starter gear is characterized in that, described device comprises:
The space to be preserved unit is used for externally storer and reserves a storage space;
Storage unit is used for the executable file of described application software being stored to the storage space of described reservation when detecting the application software installation;
Start unit is used for when receiving the information that starts described application software, loads executable file corresponding to described application software from the storage space of described reservation.
7. device as claimed in claim 6, it is characterized in that, described storage unit specifically is used for, when detecting the application software installation, judge whether described application software needs to be installed to external memory storage, perhaps whether the residual memory space of described internal storage less than threshold value, if, the executable file of described application software is stored to the storage space of described reservation, and the described application software of mark is the external memory storage application software.
8. device as claimed in claim 6, it is characterized in that, described space to be preserved unit specifically is used for, externally storer /the mnt/asec/ root directory under, create a dalvik-cache catalogue, with the executable file of the application software that will install be stored to/the mnt/asec/dalvik-cache catalogue under.
9. device as claimed in claim 6, it is characterized in that, described start unit specifically is used for, when receiving the information that starts described application software, judge whether this application software is the external memory storage application software, if, from described external memory storage /load corresponding executable file under the mnt/asec/dalvik-cache catalogue.
10. such as each described device of claim 6 to 9, it is characterized in that, the described information that starts described application software that receives comprises the described application software instructions of startup that the user sends, the trigger message of the described application software of startup that perhaps produces according to the default time interval.
CN2012103768856A 2012-09-29 2012-09-29 Method and device for installing and starting application software Pending CN102902566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103768856A CN102902566A (en) 2012-09-29 2012-09-29 Method and device for installing and starting application software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103768856A CN102902566A (en) 2012-09-29 2012-09-29 Method and device for installing and starting application software

Publications (1)

Publication Number Publication Date
CN102902566A true CN102902566A (en) 2013-01-30

Family

ID=47574812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103768856A Pending CN102902566A (en) 2012-09-29 2012-09-29 Method and device for installing and starting application software

Country Status (1)

Country Link
CN (1) CN102902566A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461655A (en) * 2014-12-29 2015-03-25 北京网秦天下科技有限公司 Method for automatically selecting application installation position and mobile terminal
CN104461590A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104484215A (en) * 2014-12-31 2015-04-01 青岛海信移动通信技术股份有限公司 Application installation method, device and intelligent terminal
CN104536783A (en) * 2014-12-23 2015-04-22 小米科技有限责任公司 Method and device for setting reserved space
CN104598258A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Application software starting method and device
CN105700787A (en) * 2015-12-31 2016-06-22 上海摩软通讯技术有限公司 Mobile terminal and function control method of application software thereof
CN105912373A (en) * 2016-05-12 2016-08-31 乐视控股(北京)有限公司 Application program installing method and device
WO2017166531A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Application installation system and method for handheld device
CN108733426A (en) * 2017-04-21 2018-11-02 海马云(天津)信息技术有限公司 The method, apparatus and electronic equipment of electronic equipment operation application
CN108762821A (en) * 2017-04-18 2018-11-06 海马云(天津)信息技术有限公司 Device and method, the electronic equipment of electronic equipment operation application

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193389A1 (en) * 2004-02-26 2005-09-01 Murphy Robert J. System and method for a user-configurable, removable media-based, multi-package installer
US20080120439A1 (en) * 2006-11-16 2008-05-22 International Business Machines Corporation Automated solution to provide immediate requisite access to data and applications on an attached external device
CN102314366A (en) * 2011-09-08 2012-01-11 福州博远无线网络科技有限公司 npk packaging tool and method for making and installing NPK format installation package of Android program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193389A1 (en) * 2004-02-26 2005-09-01 Murphy Robert J. System and method for a user-configurable, removable media-based, multi-package installer
US20080120439A1 (en) * 2006-11-16 2008-05-22 International Business Machines Corporation Automated solution to provide immediate requisite access to data and applications on an attached external device
CN102314366A (en) * 2011-09-08 2012-01-11 福州博远无线网络科技有限公司 npk packaging tool and method for making and installing NPK format installation package of Android program

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461590A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104598258A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Application software starting method and device
CN104536783A (en) * 2014-12-23 2015-04-22 小米科技有限责任公司 Method and device for setting reserved space
CN104536783B (en) * 2014-12-23 2018-02-06 小米科技有限责任公司 Headspace method to set up and device
CN104461655A (en) * 2014-12-29 2015-03-25 北京网秦天下科技有限公司 Method for automatically selecting application installation position and mobile terminal
CN104484215A (en) * 2014-12-31 2015-04-01 青岛海信移动通信技术股份有限公司 Application installation method, device and intelligent terminal
CN104484215B (en) * 2014-12-31 2018-03-27 青岛海信移动通信技术股份有限公司 One kind applies installation method, device and intelligent terminal
CN105700787A (en) * 2015-12-31 2016-06-22 上海摩软通讯技术有限公司 Mobile terminal and function control method of application software thereof
WO2017166531A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Application installation system and method for handheld device
CN105912373A (en) * 2016-05-12 2016-08-31 乐视控股(北京)有限公司 Application program installing method and device
CN108762821A (en) * 2017-04-18 2018-11-06 海马云(天津)信息技术有限公司 Device and method, the electronic equipment of electronic equipment operation application
CN108733426A (en) * 2017-04-21 2018-11-02 海马云(天津)信息技术有限公司 The method, apparatus and electronic equipment of electronic equipment operation application

Similar Documents

Publication Publication Date Title
CN102902566A (en) Method and device for installing and starting application software
KR101311116B1 (en) Dynamic allocation of power budget for a system having a non-volatile memory
US8386537B2 (en) Method for trimming data on non-volatile flash media
CN103365644B (en) A kind of method and device of expanding software function
US8195971B2 (en) Solid state disk and method of managing power supply thereof and terminal including the same
CN103677654A (en) Method and electronic equipment for storing data
US20120246390A1 (en) Information processing apparatus, program product, and data writing method
CN102073526B (en) Software transfer installation method and system for mobile terminal
CN102662690A (en) Method and apparatus for starting application program
WO2014005328A1 (en) Method and device for allocating resource
CN101727395A (en) Flash memory device and management system and method thereof
CN101840345A (en) Configuration parameter-identifying method, system and embedded equipment
CN101859253A (en) Method and system for customizing applications and displaying application information
CN103377079B (en) Terminal and application running gear and method, the method running application program
CN102279784A (en) Electronic equipment and method and system for reminding user of use condition of system resource of electronic equipment
CN105022701A (en) Method for storing running state and parameters of air conditioner
US8423730B2 (en) Method and apparatus for supporting diverse memory access schemes
KR20160048173A (en) Storage processing method, device and terminal
CN104808953A (en) Device and method for controlling data storage and mobile terminal
CN102981721A (en) Method and device and mobile terminal for deleting application program
CN102117245B (en) Embedded device and method for loading and starting operation of cutting system executable file thereof
CN101354660B (en) Method, apparatus and system for operating embedded software program
CN107748678A (en) A kind of system and method for improving heterogeneous system starting up speed
CN105138294A (en) Hard disc equipment and information processing method
CN102760061B (en) The method of shielding solid state hard disc memory interface difference and storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130130