CN103530180B - Method and device for switching storage space of application programs - Google Patents

Method and device for switching storage space of application programs Download PDF

Info

Publication number
CN103530180B
CN103530180B CN201310492876.8A CN201310492876A CN103530180B CN 103530180 B CN103530180 B CN 103530180B CN 201310492876 A CN201310492876 A CN 201310492876A CN 103530180 B CN103530180 B CN 103530180B
Authority
CN
China
Prior art keywords
application program
memory space
switching
application
storage space
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.)
Active
Application number
CN201310492876.8A
Other languages
Chinese (zh)
Other versions
CN103530180A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310492876.8A priority Critical patent/CN103530180B/en
Publication of CN103530180A publication Critical patent/CN103530180A/en
Application granted granted Critical
Publication of CN103530180B publication Critical patent/CN103530180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and device for switching storage space of application programs. The method includes the steps of detecting the installed application programs in a current operating system, judging whether storage space switching can be carried out on the installed application programs or not, determining at least one object application program with the to-be-switched storage space in the application programs with the storage space capable of being switched, determining the object storage space, using identification information of the object application program and identification information of the object storage space as parameters, calling a system API used for switching the storage space of the application program so as to enable related files of the object application program to be conveniently switched to the object storage space, and when the object application program is started, calling the related files of the object application program from the object storage space to support running of the object application program. According to the method and device for switching the storage space of the application programs, batch rapid switching of the application programs can be achieved.

Description

The memory space changing method of application program and device
Technical field
The present invention relates to operation system technology field is and in particular to the memory space changing method of application program and device.
Background technology
The mobile terminal device that people are used, experienced from single function to the intellectuality that can meet the multiple demand of user The different phase of design.Mobile terminal device of today, has become as the scientific and technological product that multiple different field technology combine, its Development trend also increasingly trends towards diversification.With the development of mobile technology, the reduction of hardware cost, intelligentized movement sets Standby also obtain large-scale popularization.
The continuous lifting of hardware efficiency makes equipment have the ability to run the operating system of relatively large-scale, and mobile terminal device The variation of hardware and complication, also make its operating system carried become a kind of needs, as a kind of software resource, are moving The operating system carried on terminal unit, such as android Android operation system, the behaviour that its function and other platforms are installed There is something in common as system, including the software and hardware resources of equipment of being responsible for, control the operation of other programs, and be other journeys The operation of sequence provides service and support, and provides the user interactive operation interface etc..In the mobile terminal carrying operating system On equipment, user is essentially all to be completed by the support of operating system with interacting of equipment.
Carry operating system on Intelligent mobile terminal unit, using more work(on the communication equipment being in the possession of the user Can be more powerful, species more rich software creation condition.Widely apply the appearance of software with various platforms, various communications set Types of applications software in standby application platform also emerges in an endless stream.The service that various application softwaries can provide the user is more and more richer Richness, on the other hand, day by day huge with application market, the choice of user is also increasing, and the present situation causing is multiple It is arranged on the communication equipment of user so that the free memory of communication equipment becomes less and less while application program, And section communication equipment is limited by performance, installing excessive application program can affect the operational efficiency of equipment.On the one hand, user Need these softwares it is impossible to unload them;Another fermentation, mobile phone free memory is less and less to be continued it is impossible to meet user The demand of other software is installed.
Content of the invention
In view of the above problems it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State the memory space changing method of the application program of problem and the memory space switching device of corresponding application program, it is possible to achieve The batch of application program is switched fast.
According to one aspect of the present invention, there is provided a kind of memory space changing method of application program, comprising:
Mounted application program under detection current operation system;
Judge whether described mounted application program can be performed the switching of memory space;
Determine that the target of at least one to be switched memory space should in the application program that can be performed memory space switching With program, and determine target storage space;
With the identification information of described destination application and described target storage space as parameter, calling should for switching With the system application DLL api of program's memory space, so that the associated documents switching by described destination application To described target storage space;
When described destination application is activated, call the phase of described destination application from described target storage space Close file, to support the operation of described destination application.
Alternatively, also include:
Obtain the version information of described current operation system, judge the operating system of current version according to described version information Whether support the switching of application program memory space;
Mounted application program under described detection current operation system, comprising:
After the operating system judging current version can support the switching of application program memory space, detect current operation Mounted application program under system.
Alternatively, also include:
Detecting system stores with whether system extension storage shares same subregion substantially;
Mounted application program under described detection current operation system, comprising:
If described system is detected substantially store the unshared same subregion with described system extension storage, detection is current Mounted application program under operating system.
Alternatively, also include:
Packet analyzing api is installed parses mounted application program corresponding installation kit letter in current operation system by calling Breath, extracts the corresponding zone bit information of described mounted application program from described installation package informatin;
The described switching judging whether described mounted application program can be performed memory space, comprising:
Judge whether described mounted application program can be performed the switching of memory space according to described zone bit information.
Alternatively, described judge whether related application can be performed the shifting of storage location according to described zone bit information It is dynamic, comprising:
If containing flag_forward_lock in described zone bit information to forward lock flag bit and/or flag_system System property flag bit, then judge that related application can not be performed the switching of memory space.
Alternatively, described determine that at least one to be switched storage is empty in the application program that can be performed memory space switching Between destination application, comprising:
User interface is provided, the application journey of the switching of memory space described in displaying in described user interface, can be performed Sequence, and for selecting the selection entrance of described to be switched destination application;
Described to be switched memory space will be defined as by described selection entrance at least one application program selected Destination application.
Alternatively, also include:
Show, in described user interface, the application program being judged as not changeable memory space, and be used for pointing out this The not switchable information of application program memory space.
Alternatively, also include:
Whether detection current operation system login user obtains highest administrator authority, if it is,
The described switching judging whether described mounted application program can be performed memory space, comprising:
Apply for described highest administrator authority, described mounted application journey is judged with the execution of described highest administrator authority Whether sequence can be performed the operation of the switching of memory space;
The described system application DLL api calling for switching application program memory space, so that will be described The associated documents of destination application are switched to described target storage space, comprising:
Call internal system api under this authority with described highest administrator authority, so that by described destination application Associated documents be switched to described target storage space.
Alternatively, described internal system api called with described highest administrator authority under this authority, so that by described mesh The associated documents of mark application program are switched to described target storage space, comprising:
With the service node of the application program management service of described highest administrator authority acquiring current operation system, call Described highest administrator authority is corresponding, internal system api in the application package management interface in service node, will be described The associated documents of destination application are switched to described target storage space.
Alternatively, described target storage space is in different storage mediums from current memory space;Or target stores Space and current memory space are in the zones of different of same storage medium, and wherein said current memory space region includes Operating system region.
According to a further aspect in the invention, there is provided a kind of memory space switching device of application program, comprising:
Detector unit, for detecting mounted application program under current operation system;
Judging unit, for judging whether described mounted application program can be performed the switching of memory space;
Target determination unit, for determining that at least one is to be switched in the application program that can be performed memory space switching The destination application of memory space, and determine target storage space;
Memory space switch unit, for the identification information of described destination application and described target storage space For parameter, call the system application DLL api for switching application program memory space, so that should by described target It is switched to described target storage space with the associated documents of program;
File call unit, for when described destination application is activated, calling institute from described target storage space State the associated documents of destination application, to support the operation of described destination application.
Alternatively, also include:
System information identifying unit, for obtaining the version information of described current operation system, according to described version information Judge whether the operating system of current version supports the switching of application program memory space;
Described detector unit, specifically for:
After judging that the operating system of current version can support the switching of application program memory space, detect current operation Mounted application program under system.
Alternatively, also include:
Subarea detecting unit, stores with whether system extension storage shares same subregion for detecting system substantially;
Described detector unit, specifically for:
If described system is detected substantially store the unshared same subregion with described system extension storage, detection is current Mounted application program under operating system.
Alternatively, also include:
Flag bit extraction unit, for parsing mounted in current operation system answering by calling installation Packet analyzing api With program corresponding installation package informatin, from described installation package informatin, extract the corresponding flag bit of described mounted application program Information;
Described judging unit, comprising:
According to described zone bit information, first judgment sub-unit, for judging whether described mounted application program can quilt The switching of execution memory space.
Alternatively, described first judgment sub-unit, specifically for:
If containing flag_forward_lock in described zone bit information to forward lock flag bit and/or flag_system System property flag bit, then judge that related application can not be performed the switching of memory space.
Alternatively, described target determination unit, comprising:
Interface providing unit, for providing user interface, can be performed storage empty described in displaying in described user interface Between switching application program, and for selecting the selection entrance of described to be switched destination application;
Target determination subelement, is just defined as described by described selection entrance at least one application program selected The destination application of to be switched memory space.
Alternatively, also include:
Tip element, shows in described user interface and is judged as immovable application program, and be used for pointing out This immovable information of application program storage location.
Alternatively, also include:
Authority detector unit, for detecting whether current operation system login user obtains highest administrator authority;Described Highest administrator authority includes the root root authority under Android operation system;
Described judging unit, comprising:
Second judgment sub-unit, for applying for described highest administrator authority, is sentenced with the execution of described highest administrator authority Whether the described mounted application program that breaks can be performed the operation of the switching of memory space;
Described memory space switch unit, comprising:
Memory space switching subelement, for calling internal system api under this authority with described highest administrator authority, So that the associated documents of described destination application are switched to described target storage space.
Alternatively, described memory space switching subelement, specifically for:
With the service node of the application program management service of described highest administrator authority acquiring current operation system, call Described highest administrator authority is corresponding, internal system api in the application package management interface in service node, will be described The associated documents of destination application are switched to described target storage space.
Alternatively, described target storage space is in different storage mediums from current memory space;Or target stores Space and current memory space are in the zones of different of same storage medium, and wherein said current memory space region includes Operating system region.
The memory space changing method of application according to the present invention program and device, can detect and can be performed storage sky Between switching application information, and need to switch the destination application of memory space and target storage space determining Afterwards it is possible to directly with the identification information of destination application and target storage space as parameter, calling should for switching With system api of program's memory space, so that the associated documents of destination application are switched to target storage space.Wherein, During calling system api, do not need calling system details interface, directly execute handover operation, therefore, it can The batch realizing application program is switched fast.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred implementation, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
The flow chart that Fig. 1 shows method according to an embodiment of the invention;And,
Fig. 2 shows the schematic diagram of an apparatus in accordance with one embodiment of the invention.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, these embodiments are provided to be able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
In embodiments of the present invention, in the case of in order to be mounted with a lot of application programs in an operating system, it is to avoid due to Too many application program occupies excessive memory space in communication apparatus, so that impact equipment operating efficiency, can be by Install a part of application program transfer to other memory spaces (in the communication apparatus such as such as mobile phone, except locally stored it Outward it is also possible to there is the memory spaces such as sd card, accordingly, it is possible to be installed to the application program transfer of local storage space before To on sd card, thus discharging local storage space).When implementing it is provided that a in communication apparatus run application This application program (for the ease of description, is referred to as " mobile phone assistant " in the embodiment of the present invention, certain mobile phone assistant is acceptable by program Comprise other functions, the switching of application program memory space can be solely one of its numerous function), if the user while its communication sets It is mounted with the mobile phone assistant with application program memory space handoff functionality in standby, then need in its communication apparatus in user Application program is switched to during other memory spaces (for example on sd card) it is possible to directly open the application program in this mobile phone assistant The corresponding user interface of memory space handoff functionality, selects to need the application program of switching in this interface.When implementing, this In inventive embodiments, the acquisition of information of each executable program mounted in current operation system can be arrived by mobile phone assistant, And be shown to user in lists, user can select one or more application programs to carry out the switching of memory space.Tool During body switching, will not calling system details page, but directly invoke the related api of system, the destination application chosen cut Change to target storage space.In this manner it is achieved that disposably switching multiple application programs so that switching application program memory space Motility and convenience be improved.Below concrete implementation mode is described in detail.
Referring to Fig. 1, the embodiment of the present invention provide firstly a kind of memory space changing method of application program, and the method can To include:
S101: mounted application program under detection current operation system;
First, mobile phone assistant can detect which application program be mounted with current operation system.When implementing, handss Machine aided handss can pass through the api of call operation system, to realize the detection operation of this step, and operating system just can be by operation system In system, mounted application information returns to mobile phone assistant.Or, mobile phone assistant can also be by analyzing the side such as registration table Formula is detecting which application program be mounted with current operation system.
S102: judge whether described mounted application program can be performed the switching of memory space;
In actual applications, some application programs may can not be performed the switching of memory space, and for example, some apply journey Sequence is the application program of forwardlocked, includes the mark of flag_forward_lock in his application attribute Position, or, also some application programs are to include flag_system mark in system application, namely application attribute Position;These application programs typically all do not allow to carry out the switching of memory space.Therefore, when implementing, peace can be called The corresponding installation package informatin of mounted application program in dress Packet analyzing api parsing current operation system, from installing package informatin Extract the corresponding zone bit information of application program, then judge according to this zone bit information whether application program can be performed The switching of memory space.Specifically, if containing flag_forward_lock in described zone bit information to forward lock flag bit And/or flag_system system property flag bit, then judge that related application can not be performed the switching of memory space.Change Yan Zhi, for being performed the application program of memory space switching, should not comprise flag_forward_ in its flag bit Lock forwards lock flag bit and flag_system system property flag bit.
It should be noted that the operating system of some versions may not support that (for example, the memory space of application program switches The operating system of below android2.2 version, does not typically support the switching of application program memory space), therefore, in execution The version information of current operation system before above-mentioned steps s101 and s102, can also be obtained first, believed according to described version Breath judges whether the operating system of current version supports the switching of application program memory space, if supported, then executes the present invention Each step in embodiment, otherwise it is not necessary to execute.
It is further to note that target storage space is in different storage mediums from current memory space;Or mesh Mark memory space and current memory space can also be in the zones of different of same storage medium, and wherein current memory space is located Region generally refers to operating system region.Wherein, current memory space with target storage space relative to, ordinary circumstance Under, current memory space may refer to the basic storage area of system (the data subregion in such as mobile phone), and target storage space is Finger system extension storage (the sd card of such as mobile phone external), it is, destination application is switched to sd card from data subregion. Certainly, reverse switching is also possible, namely or from sd card, destination application is switched to data subregion.
Certainly, also in some communication apparatus, system substantially stores and may share same disk with system extension storage and divide Area, now, the not usually said external micro sd card that can plug of sd card, but a system simulation sd out Card, and the shared one piece of disk space of data subregion, the size of gross space, the size of remaining space are all the same, just look like to be one Two files above disk, any one file is disk space with completely, another one file also cannot be deposited again Put data.In this case, even if having carried out the switching of memory space, actually do not have saving communication apparatus local yet The effect of memory space.Therefore, before execution above-mentioned steps s101 and s102, can also judge that system substantially stores and is Whether system extension storage shares same disk partition, if it is not, triggering each step in execution Fig. 1 again.
S103: determine the mesh of at least one to be switched memory space in the application program that can be performed memory space switching Mark application program, and determine target storage space;
After the application program of memory space switching can be performed in getting operating system, mobile phone assistant can enter one Step determines which application program needs to carry out memory space switching.When implementing, mobile phone assistant can be automatically from each Support in the application program of switching, to select the destination application of to be switched memory space, for example, therefrom choose the ratio that takes up room Some larger application programs as to be switched destination application, etc..Or, under another kind of implementation, also may be used To provide the user user interface, when user entered by the application program handoff functionality of mobile phone assistant fashionable, can be in user circle Show, in face, the application program supporting the switching of application program memory space, and for selecting to be switched destination application Select entrance, so, user just can be manually selected and needed the target carrying out memory space switching to answer by this selection entrance With program, and then, mobile phone assistant just can determine, according to the selection operation of user, the target needing to carry out memory space switching Application program.It should be noted that when implementing, can also showing in the user interface and be judged as not changeable storage The application program in space, and be used for pointing out this application program memory space not switchable information, so that user knows More information.
After determining destination application, it may also be determined that target storage space, namely it needs to be determined that be by this mesh Which target storage space mark application program is switched to.When implementing, can be specific intended application journey manually by user Sequence specifies target storage space;Or it is also possible to automatically determined by mobile phone assistant.For example, only has data in Current communications equipment Area and sd card two such memory space, then the memory space being currently located according to destination application will be it is possible to automatically will Another memory space is defined as target storage space.Or, it is also possible to unite in advance in the case of there are multiple memory spaces One specifies target storage space.Wherein, different memory spaces typically has respective mark id, according to this mark id, handss Machine aided handss just can identify specific target storage space.
S104: with the identification information of described destination application and described target storage space as parameter, call for The system application DLL api of switching application program memory space, so that the related literary composition by described destination application Part is switched to described target storage space;
S105: when described destination application is activated, call described intended application journey from described target storage space The associated documents of sequence, to support the operation of described destination application.
That is, in embodiments of the present invention, the application program letter that can be performed memory space switching can be detected Breath, and determine need to switch the destination application of memory space and target storage space after it is possible to directly with The identification information of destination application and target storage space is parameter, calls for switch application program memory space and is System api, so that the associated documents of destination application are switched to target storage space.Wherein, in the process of calling system api In, do not need calling system details interface, directly execute handover operation, it is thereby achieved that the batch of application program It is switched fast.
Need exist for illustrating, when calling system api carries out the switching of application program memory space, operating system meeting Automatically the operation such as the switching of execution application program store path, Registry Modifications is so that the target after have switched memory space should Can normally be run with program.Specifically, when destination application is activated, can answer from target storage space invocation target With the associated documents of program, to support the operation of destination application.
It is further to note that in some operating systems, may be due to the restriction of user right it is impossible to be walked Judge whether mounted application program can be performed the operation of the switching of memory space in rapid s102, and step s104 In the system application DLL api calling for switching application program memory space so that by destination application Associated documents be switched to described target storage space etc. operation.Therefore, in embodiments of the present invention, can also detect in advance and work as Whether front operating system login user obtains highest administrator authority, wherein, under Android operation system, highest administration here Member's authority may generally refer to root root authority.If having obtained highest administrator authority, can be first in step s102 First to file highest administrator authority, to be executed with this highest administrator authority and to judge whether mounted application program can be performed The operation of the switching of memory space;It is also possible to be called in the system under this authority with highest administrator authority in step s104 Portion api, so that the associated documents of destination application are switched to target storage space.Wherein, more specifically, step s104 In can be with the service node (package of the application program management of highest administrator authority acquiring current operation system service The binder node of manager service), call that highest administrator authority is corresponding, the application package management in service node Internal system api(in interface such as ipackagemanager interface), the associated documents of destination application are switched to mesh Mark memory space.Wherein, binder is the communication mechanism of Android system.This process is it is to be understood that pass through private Api is obtaining the object of this class of ipackagemanager, and can use method therein (function).Here by obtaining Take the mode of highest administrator authority, can also realize some can not be performed the application program of memory space switching originally, Also other memory spaces can be switched to.
Corresponding with the memory space changing method of application program provided in an embodiment of the present invention, the embodiment of the present invention also carries Supply a kind of memory space switching device of application program, referring to Fig. 2, this device may include that
Detector unit 201, for detecting mounted application program under current operation system;
Judging unit 202, for judging whether described mounted application program can be performed the switching of memory space;
Target determination unit 203, for determining that at least one is treated in the application program that can be performed memory space switching The destination application of switching memory space, and determine target storage space;
Memory space switch unit 204, for the mark of described destination application and described target storage space Information is parameter, calls the system application DLL api for switching application program memory space, so that by described mesh The associated documents of mark application program are switched to described target storage space;
File call unit 205, for when described destination application is activated, calling from described target storage space The associated documents of described destination application, to support the operation of described destination application.
Wherein, described device can also include:
System information identifying unit, for obtaining the version information of described current operation system, according to described version information Judge whether the operating system of current version supports the switching of application program memory space;
Described detector unit, specifically for:
After judging that the operating system of current version can support the switching of application program memory space, detect current operation system Mounted application program under system.
Can also include:
Subarea detecting unit, stores with whether system extension storage shares same subregion for detecting system substantially;
Described detector unit, specifically for:
If described system is detected substantially store the unshared same subregion with described system extension storage, detection is current Mounted application program under operating system.
Can also include:
Flag bit extraction unit, for parsing mounted in current operation system answering by calling installation Packet analyzing api With program corresponding installation package informatin, from described installation package informatin, extract the corresponding flag bit of described mounted application program Information;
Described judging unit, comprising:
According to described zone bit information, first judgment sub-unit, for judging whether described mounted application program can quilt The switching of execution memory space.
Wherein, described first judgment sub-unit, specifically for:
If containing flag_forward_lock in described zone bit information to forward lock flag bit and/or flag_system System property flag bit, then judge that related application can not be performed the switching of memory space.
Described target determination unit, comprising:
Interface providing unit, for providing user interface, can be performed storage empty described in displaying in described user interface Between switching application program, and for selecting the selection entrance of described to be switched destination application;
Target determination subelement, is just defined as described by described selection entrance at least one application program selected The destination application of to be switched memory space.
This device can also include:
Tip element, shows in described user interface and is judged as immovable application program, and be used for pointing out This immovable information of application program storage location.
It can in addition contain include:
Authority detector unit, for detecting whether current operation system login user obtains highest administrator authority;Described Highest administrator authority includes the root root authority under Android operation system;
Described judging unit, comprising:
Second judgment sub-unit, for applying for described highest administrator authority, is sentenced with the execution of described highest administrator authority Whether the described mounted application program that breaks can be performed the operation of the switching of memory space;
Described memory space switch unit, comprising:
Memory space switching subelement, for calling internal system api under this authority with described highest administrator authority, So that the associated documents of described destination application are switched to described target storage space.
Described memory space switching subelement, specifically for:
With the service node of the application program management service of described highest administrator authority acquiring current operation system, call Described highest administrator authority is corresponding, internal system api in the application package management interface in service node, will be described The associated documents of destination application are switched to described target storage space.
Described target storage space is in different storage mediums from current memory space;Or target storage space with work as Front memory space is in the zones of different of same storage medium, and wherein said current memory space region includes operating system Region.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description above language-specific done is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, known method, structure are not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect an intention that i.e. required guarantor The application claims of shield more features than the feature being expressly recited in each claim.More precisely, it is such as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following specific embodiment are thus expressly incorporated in this specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly be combined into a module or unit or assembly, and can be divided in addition multiple submodule or subelement or Sub-component.In addition to such feature and/or at least some of process or unit exclude each other, can adopt any Combination is to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can carry out generation by the alternative features providing identical, equivalent or similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The all parts embodiment of the present invention can be realized with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (dsp) switch the memory space to realize application program according to embodiments of the present invention The some or all functions of some or all parts in device.The present invention is also implemented as being retouched here for execution Some or all equipment of the method stated or program of device (for example, computer program and computer program). Such program realizing the present invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtain, or on carrier signal provide, or with any its He provides form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware including some different elements and by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The application can apply to computer system/server, and it can be with numerous other universal or special computing system rings Border or configuration operate together.The well-known computing system that is suitable to be used together with computer system/server, environment and/ Or the example of configuration includes but is not limited to: personal computer system, server computer system, thin client, thick client computer, handss Hold or laptop devices, the system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC, small-sized meter Calculation machine system large computer system and the distributed cloud computing technology environment including any of the above described system, etc..
Computer system/server can be in computer system executable instruction (the such as journey being executed by computer system Sequence module) general linguistic context under describe.Generally, program module can include routine, program, target program, assembly, logic, number According to structure etc., they execute specific task or realize specific abstract data type.Computer system/server is permissible Distributed cloud computing environment is implemented, in distributed cloud computing environment, task is by long-range by communication network links The execution of reason equipment.In distributed cloud computing environment, program module may be located at the Local or Remote meter including storage device On calculation system storage medium.
The invention also discloses the memory space changing method of a1, a kind of application program, comprising:
Mounted application program under detection current operation system;
Judge whether described mounted application program can be performed the switching of memory space;
Determine that the target of at least one to be switched memory space should in the application program that can be performed memory space switching With program, and determine target storage space;
With the identification information of described destination application and described target storage space as parameter, calling should for switching With the system application DLL api of program's memory space, so that the associated documents switching by described destination application To described target storage space;
When described destination application is activated, call the phase of described destination application from described target storage space Close file, to support the operation of described destination application.
A2, the method as described in a1, also include:
Obtain the version information of described current operation system, judge the operating system of current version according to described version information Whether support the switching of application program memory space;
Mounted application program under described detection current operation system, comprising:
After the operating system judging current version can support the switching of application program memory space, detect current operation Mounted application program under system.
A3, the method as described in a1, also include:
Detecting system stores with whether system extension storage shares same subregion substantially;
Mounted application program under described detection current operation system, comprising:
If described system is detected substantially store the unshared same subregion with described system extension storage, detection is current Mounted application program under operating system.
A4, the method as described in a1, also include:
Packet analyzing api is installed parses mounted application program corresponding installation kit letter in current operation system by calling Breath, extracts the corresponding zone bit information of described mounted application program from described installation package informatin;
The described switching judging whether described mounted application program can be performed memory space, comprising:
Judge whether described mounted application program can be performed the switching of memory space according to described zone bit information.
According to described zone bit information, a5, the method as described in a4, described judge whether related application can be performed The movement of storage location, comprising:
If containing flag_forward_lock in described zone bit information to forward lock flag bit and/or flag_system System property flag bit, then judge that related application can not be performed the switching of memory space.
A6, the method as described in a1, described can be performed memory space switching application program in determine at least one The destination application of to be switched memory space, comprising:
User interface is provided, the application journey of the switching of memory space described in displaying in described user interface, can be performed Sequence, and for selecting the selection entrance of described to be switched destination application;
Described to be switched memory space will be defined as by described selection entrance at least one application program selected Destination application.
A7, the method as described in a6, also include:
Show, in described user interface, the application program being judged as not changeable memory space, and be used for pointing out this The not switchable information of application program memory space.
A8, the method as described in any one of a1-a7, also include:
Whether detection current operation system login user obtains highest administrator authority, if it is,
The described switching judging whether described mounted application program can be performed memory space, comprising:
Apply for described highest administrator authority, described mounted application journey is judged with the execution of described highest administrator authority Whether sequence can be performed the operation of the switching of memory space;
The described system application DLL api calling for switching application program memory space, so that will be described The associated documents of destination application are switched to described target storage space, comprising:
Call internal system api under this authority with described highest administrator authority, so that by described destination application Associated documents be switched to described target storage space.
A9, the method as described in a8, described internal system api called with described highest administrator authority under this authority, So that the associated documents of described destination application are switched to described target storage space, comprising:
With the service node of the application program management service of described highest administrator authority acquiring current operation system, call Described highest administrator authority is corresponding, internal system api in the application package management interface in service node, will be described The associated documents of destination application are switched to described target storage space.
A10, the method as described in a1, described target storage space is in different storage mediums from current memory space; Or target storage space and current memory space are in the zones of different of same storage medium, wherein said current memory space Region includes operating system region.
The invention also discloses the memory space switching device of b11, a kind of application program, comprising:
Detector unit, for detecting mounted application program under current operation system;
Judging unit, for judging whether described mounted application program can be performed the switching of memory space;
Target determination unit, for determining that at least one is to be switched in the application program that can be performed memory space switching The destination application of memory space, and determine target storage space;
Memory space switch unit, for the identification information of described destination application and described target storage space For parameter, call the system application DLL api for switching application program memory space, so that should by described target It is switched to described target storage space with the associated documents of program;
File call unit, for when described destination application is activated, calling institute from described target storage space State the associated documents of destination application, to support the operation of described destination application.
B12, the device as described in b11, also include:
System information identifying unit, for obtaining the version information of described current operation system, according to described version information Judge whether the operating system of current version supports the switching of application program memory space;
Described detector unit, specifically for:
After judging that the operating system of current version can support the switching of application program memory space, detect current operation system Mounted application program under system.
B13, the device as described in b11, also include:
Subarea detecting unit, stores with whether system extension storage shares same subregion for detecting system substantially;
Described detector unit, specifically for:
If described system is detected substantially store the unshared same subregion with described system extension storage, detection is current Mounted application program under operating system.
B14, the device as described in b11, also include:
Flag bit extraction unit, for parsing mounted in current operation system answering by calling installation Packet analyzing api With program corresponding installation package informatin, from described installation package informatin, extract the corresponding flag bit of described mounted application program Information;
Described judging unit, comprising:
According to described zone bit information, first judgment sub-unit, for judging whether described mounted application program can quilt The switching of execution memory space.
B15, the device as described in b14, described first judgment sub-unit, specifically for:
If containing flag_forward_lock in described zone bit information to forward lock flag bit and/or flag_system System property flag bit, then judge that related application can not be performed the switching of memory space.
B16, the device as described in b11, described target determination unit, comprising:
Interface providing unit, for providing user interface, can be performed storage empty described in displaying in described user interface Between switching application program, and for selecting the selection entrance of described to be switched destination application;
Target determination subelement, is just defined as described by described selection entrance at least one application program selected The destination application of to be switched memory space.
B17, the device as described in b16, also include:
Tip element, shows in described user interface and is judged as immovable application program, and be used for pointing out This immovable information of application program storage location.
B18, the device as described in any one of b11-b17, also include:
Authority detector unit, for detecting whether current operation system login user obtains highest administrator authority;Described Highest administrator authority includes the root root authority under Android operation system;
Described judging unit, comprising:
Second judgment sub-unit, for applying for described highest administrator authority, is sentenced with the execution of described highest administrator authority Whether the described mounted application program that breaks can be performed the operation of the switching of memory space;
Described memory space switch unit, comprising:
Memory space switching subelement, for calling the internal system under this authority with described highest administrator authority Api, so that the associated documents of described destination application are switched to described target storage space.
B19, the device as described in b18, described memory space switching subelement, specifically for:
With the service node of the application program management service of described highest administrator authority acquiring current operation system, call Described highest administrator authority is corresponding, internal system api in the application package management interface in service node, will be described The associated documents of destination application are switched to described target storage space.
B20, the device as described in b11, described target storage space is in different storage mediums from current memory space; Or target storage space and current memory space are in the zones of different of same storage medium, wherein said current memory space Region includes operating system region.

Claims (18)

1. the memory space changing method of a kind of application program, comprising:
Mounted application program under detection current operation system;
Packet analyzing api be installed parse the corresponding installation package informatin of mounted application program in current operation system by calling, Extract the corresponding zone bit information of described mounted application program from described installation package informatin;
Judge whether described mounted application program can be performed the switching of memory space according to described zone bit information;
The intended application journey of at least one to be switched memory space is determined in the application program that can be performed memory space switching Sequence, and determine target storage space;
With the identification information of described destination application and described target storage space as parameter, call for switching application journey The system application DLL api of sequence memory space, so that the associated documents of described destination application are switched to institute State target storage space;
The related literary composition of described destination application when described destination application is activated, is called from described target storage space Part, to support the operation of described destination application.
2. the method for claim 1, also includes:
Obtain the version information of described current operation system, the operating system judging current version according to described version information is whether Support the switching of application program memory space;
Mounted application program under described detection current operation system, comprising:
After the operating system judging current version can support the switching of application program memory space, detect current operation system Under mounted application program.
3. the method for claim 1, also includes:
Detecting system stores with whether system extension storage shares same subregion substantially;
Mounted application program under described detection current operation system, comprising:
If described system is detected substantially store the unshared same subregion with described system extension storage, detect current operation Mounted application program under system.
4. according to described zone bit information, the method for claim 1, described judges whether related application can be held The movement of row storage location, comprising:
If containing flag_forward_lock in described zone bit information to forward lock flag bit and/or flag_system system Attribute mark position, then judge that related application can not be performed the switching of memory space.
5. the method for claim 1, described can be performed memory space switching application program in determine at least one The destination application of individual to be switched memory space, comprising:
User interface is provided, the application program of the switching of memory space described in displaying in described user interface, can be performed, with And for selecting the selection entrance of described to be switched destination application;
By by the described target selecting entrance at least one application program selected to be defined as described to be switched memory space Application program.
6. method as claimed in claim 5, also includes:
Show, in described user interface, the application program being judged as not changeable memory space, and be used for pointing out this application The not switchable information of program's memory space.
7. the method as described in any one of claim 1-6, also includes:
Whether detection current operation system login user obtains highest administrator authority, if it is,
The described switching judging whether described mounted application program can be performed memory space, comprising:
Apply for described highest administrator authority, judge that described mounted application program is with the execution of described highest administrator authority The operation of the no switching being performed memory space;
The described system application DLL api calling for switching application program memory space, so that by described target The associated documents of application program are switched to described target storage space, comprising:
Call internal system api under this authority with described highest administrator authority, so that the phase by described destination application Close file and be switched to described target storage space.
8. method as claimed in claim 7, the described internal system called with described highest administrator authority under this authority Api, so that the associated documents of described destination application are switched to described target storage space, comprising:
With the service node of the application program management service of described highest administrator authority acquiring current operation system, call described Highest administrator authority is corresponding, internal system api in the application package management interface in service node, by described target The associated documents of application program are switched to described target storage space.
9. the method for claim 1, described target storage space is in different storage mediums from current memory space; Or target storage space and current memory space are in the zones of different of same storage medium, wherein said current memory space Region includes operating system region.
10. the memory space switching device of a kind of application program, comprising:
Detector unit, for detecting mounted application program under current operation system;
Flag bit extraction unit, for parsing mounted application journey in current operation system by calling installation Packet analyzing api Sequence corresponding installation package informatin, extracts described mounted application program corresponding flag bit letter from described installation package informatin Breath;
Judging unit, comprising: the first judgment sub-unit, for judging described mounted application journey according to described zone bit information Whether sequence can be performed the switching of memory space;
Target determination unit, for determining at least one to be switched storage in the application program that can be performed memory space switching The destination application in space, and determine target storage space;
Memory space switch unit, for the identification information of described destination application and described target storage space for ginseng Number, calls the system application DLL api for switching application program memory space, so that by described intended application journey The associated documents of sequence are switched to described target storage space;
File call unit, for when described destination application is activated, calling described mesh from described target storage space The associated documents of mark application program, to support the operation of described destination application.
11. devices as claimed in claim 10, also include:
System information identifying unit, for obtaining the version information of described current operation system, judges according to described version information Whether the operating system of current version supports the switching of application program memory space;
Described detector unit, specifically for:
After judging that the operating system of current version can support the switching of application program memory space, under detection current operation system Mounted application program.
12. devices as claimed in claim 10, also include:
Subarea detecting unit, stores with whether system extension storage shares same subregion for detecting system substantially;
Described detector unit, specifically for:
If described system is detected substantially store the unshared same subregion with described system extension storage, detect current operation Mounted application program under system.
13. devices as claimed in claim 10, described first judgment sub-unit, specifically for:
If containing flag_forward_lock in described zone bit information to forward lock flag bit and/or flag_system system Attribute mark position, then judge that related application can not be performed the switching of memory space.
14. devices as claimed in claim 10, described target determination unit, comprising:
Interface providing unit, for providing user interface, can be performed memory space described in displaying in described user interface The application program of switching, and for selecting the selection entrance of described to be switched destination application;
Target determination subelement, is just defined as described to be cut by described selection entrance at least one application program selected Change the destination application of memory space.
15. devices as claimed in claim 14, also include:
Tip element, shows in described user interface and is judged as immovable application program, and is used for pointing out this to answer With the immovable information of program location.
16. devices as described in any one of claim 10-15, also include:
Authority detector unit, for detecting whether current operation system login user obtains highest administrator authority;Described highest Administrator right includes the root root authority under Android operation system;
Described judging unit, comprising:
Second judgment sub-unit, for applying for described highest administrator authority, judges institute with the execution of described highest administrator authority State the operation whether mounted application program can be performed the switching of memory space;
Described memory space switch unit, comprising:
Memory space switching subelement, for calling internal system api under this authority with described highest administrator authority, so that The associated documents of described destination application are switched to described target storage space.
17. devices as claimed in claim 16, described memory space switching subelement, specifically for:
With the service node of the application program management service of described highest administrator authority acquiring current operation system, call described Highest administrator authority is corresponding, internal system api in the application package management interface in service node, by described target The associated documents of application program are switched to described target storage space.
18. devices as claimed in claim 10, described target storage space is in different storages from current memory space and is situated between Matter;Or target storage space and current memory space are in the zones of different of same storage medium, wherein said currently stored Space region includes operating system region.
CN201310492876.8A 2013-10-18 2013-10-18 Method and device for switching storage space of application programs Active CN103530180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310492876.8A CN103530180B (en) 2013-10-18 2013-10-18 Method and device for switching storage space of application programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310492876.8A CN103530180B (en) 2013-10-18 2013-10-18 Method and device for switching storage space of application programs

Publications (2)

Publication Number Publication Date
CN103530180A CN103530180A (en) 2014-01-22
CN103530180B true CN103530180B (en) 2017-02-01

Family

ID=49932218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310492876.8A Active CN103530180B (en) 2013-10-18 2013-10-18 Method and device for switching storage space of application programs

Country Status (1)

Country Link
CN (1) CN103530180B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445602A (en) * 2016-09-29 2017-02-22 北京珠穆朗玛移动通信有限公司 Application management system based on dual system, and mobile terminal
CN106557572A (en) * 2016-11-11 2017-04-05 武汉斗鱼网络科技有限公司 A kind of extracting method and system of Android application program file
CN111831206B (en) * 2019-04-15 2022-06-14 浙江宇视科技有限公司 Storage space switching method and back-end monitoring system
CN110048761B (en) * 2019-04-16 2021-06-29 上海微小卫星工程中心 Batch-production-oriented satellite data transmission ground automatic rapid data processing and analyzing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874563A (en) * 2006-06-15 2006-12-06 中山大学 Handset program, file management system and method
CN102073526A (en) * 2011-01-21 2011-05-25 奇智软件(北京)有限公司 Software transfer installation method and system for mobile terminal
CN102646042A (en) * 2012-02-28 2012-08-22 华为终端有限公司 Method and terminal equipment for storing application program data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512952B1 (en) * 2001-04-06 2009-03-31 Palmsource, Inc. Task switching with state preservation for programs running on an electronic device
JP5786730B2 (en) * 2012-01-24 2015-09-30 富士通株式会社 Information processing apparatus control method, information processing apparatus control program, and information processing apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874563A (en) * 2006-06-15 2006-12-06 中山大学 Handset program, file management system and method
CN102073526A (en) * 2011-01-21 2011-05-25 奇智软件(北京)有限公司 Software transfer installation method and system for mobile terminal
CN102646042A (en) * 2012-02-28 2012-08-22 华为终端有限公司 Method and terminal equipment for storing application program data

Also Published As

Publication number Publication date
CN103530180A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
US11150893B2 (en) Collaborative software development tool for resolving potential code-change conflicts in real time
US9811326B2 (en) Techniques for deploying virtual software applications on computers
CN100530100C (en) System and method for application execution allowable for storing in external drive
CN102981915B (en) A kind of inter-application communication method and device
JP5352890B2 (en) Computer system operation management method, computer system, and computer-readable medium storing program
CN104866342A (en) Method and device for simultaneously starting multiple same applications on intelligent terminal
US10489005B2 (en) Usability analysis for user interface based systems
US10019293B2 (en) Enhanced command selection in a networked computing environment
CN104317648B (en) A kind of method and apparatus of monitoring advertisement
CN106371826A (en) Application cross-system running method and apparatus
US9680715B2 (en) Assessing a service offering in a networked computing environment
CN103530180B (en) Method and device for switching storage space of application programs
CN103034546B (en) The method and device of inter-application communication in iOS system
CN108011739B (en) Deployment method, device and system of virtual network
US10908948B2 (en) Multiple application instances in operating systems that utilize a single process for application execution
CN103970563A (en) Dynamic Android class loading method
CN105117320A (en) Method for managing application in electronic terminal and electronic terminal thereof
CN108399331A (en) Application process trial method and system
US11178252B1 (en) System and method for intelligent distribution of integration artifacts and runtime requests across geographic regions
CN106681749A (en) Local code patch updating method and device based on Android platform
KR20170115543A (en) Desktop Sharing Method and Mobile Terminal
CN113449031A (en) Data synchronization management method and device and server
CN103186386A (en) Application loading method and system
US11061715B2 (en) Techniques for hybrid computer thread creation and management
CN108196747A (en) A kind of method and mobile terminal that application program is added in notifications column

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right