Content of the invention
The technical problem to be solved is, provides a kind of new technical scheme for managing application program,Can either solve the problems, such as that application program repeats to install the space waste causing, can solve the problem that because system is to application program againThe problem that the application program existing under certain system that compatibility causes cannot normally run, the experience of lifting user.
In view of this, the present invention provides a kind of terminal, including:Subregion division unit, in the memory space of described terminal,Divide the different subregions using for one or more of described terminal operating system;Data detecting unit, whether detection dataThe different operating system of described terminal can be used for;Data Management Unit, if described data can be used for multiple in described terminalOperating system, then leave in the shared partition being used in conjunction with for the plurality of operating system of division, such as by described dataReally described data is deposited for the single operating in described terminal, then by described data leave in division for described listIn the exclusive subregion that individual operating system is used alone.In this technical scheme, by the division of shared partition and independent partitions, bothEnsure that data will not repeat to deposit and take up room, in turn ensure that the data under each system can normally use.HerePlace, data is not limited to application program, also includes specific format video for some operating systems, audio file, or standbyPart file.Assume that present terminal has tri- operating systems of A, B and C, then at most need to divide 7 subregions, include respectively for A, B andThe exclusive subregion that tri- operating systems of C are used alone, and share use respectively for A and B, B and C, C and A dual system threeShared partition, and a shared partition being used in conjunction with for A, B and C.
It is preferable if described data is the file of application program in technique scheme, described data detecting unitWhen installing described application program, detect the compatibility to described application program for the application programming interfaces of described different operating systemProperty, and judge whether application program can be used for the different operating system of described terminal according to testing result.In this technical scheme,Can ensure that application program will not repeat to install and take up room, ensure that the application program under each operating system can simultaneouslyUsed with normal.
It is preferable that described data detecting unit according to the data type of described data and/or is taken in technique schemeInformation, judges whether described data can be used for the different operating system of terminal.In this technical scheme, generally download from networkDuring application program, record this application program can run under which system, and to the video of specific format, audio frequency, backupData etc., then can judge, from its suffix name, the use data which system it is.
Carrying a critically important information in information is version number, this is because judging whether are application program and operating systemCompatibility, is that the version number according to system api interface confirms, such as 1.0,1.1,2.0, in release application program, and Ke YigenSpecify its corresponding system compatibility version number according to the compatibility of application program, and be cured to conduct in application program and carry information(if application program is based on 1.1 system developments, then specifying its system compatibility version number to be 1.1).In the technical program, whenWhen application program is installed, it is cured to the system compatibility version number in application program, the API version with each operating system by parsingCompare for this number, if the API version number of operating system is more than or equal to the system compatibility version number of application program, recognizeFor being compatible, on the contrary then incompatible.Such as, the system compatibility version number of application program is 1.1, then the operation to 2.0,1.1System is compatible, and the operating system for 1.0 is then incompatible.
It is preferable that also including in technique scheme:Notes of Key Data unit, if appointing in multiple operating systemsUnder one operating system, described data is left in the shared partition being used in conjunction with for the plurality of operating system, then runningDuring other operating systems in the plurality of operating system, show described data deposits information, and/or points out the described data canUse.In this technical scheme, can immediately user be reminded, it is to avoid user repeats to deposit and timely uses applicationThe data such as program.
It is preferable that also including in technique scheme:Data record unit, is carried out to the subregion of depositing of described dataRecord, and be saved in the subregion specified.It is ensured that user can recognize at any time in this technical scheme, in which pointWhich data housed in area, is easy to user and data is managed.
The present invention also provides a kind of data partition management method, including:Step 402, in the memory space of terminal, dividesThe different subregions using for one or more of described terminal operating system;Step 404, whether detection data can be used for describedThe different operating system of terminal;Step 406, if described data can be used for the multiple operating systems in described terminal, by instituteState in the shared partition being used in conjunction with for the plurality of operating system that data leaves division in, if described data is only capable of usingSingle operating in described terminal, then leave described data in division individually make for described single operatingIn exclusive subregion.In this technical scheme, by the division of shared partition and independent partitions, both ensure that data will not weighDeposit again and take up room, in turn ensure that the data under each system can normally use.Herein, data is not limited to shouldWith program, also include specific format video for some operating systems, audio file, or backup file.Assume currently eventuallyThere are tri- operating systems of A, B and C at end, then at most need to divide 7 subregions, independent including supplying tri- operating systems of A, B and C respectivelyThe exclusive subregion using, and three shared partitions of use are shared respectively for A and B, B and C, C and A dual system, and supply A, BA shared partition being used in conjunction with C.
It is preferable that described step 404 specifically includes in technique scheme:If described data is application programFile, when installing described application program, the application programming interfaces detecting described different operating system are to described application programCompatibility, and judge whether application program can be used for the different operating system of described terminal according to testing result.In this technical sideIt is ensured that application program will not repeat to install and take up room in case, ensure that the application journey under each operating system simultaneouslySequence can normally use.
It is preferable that described step 404 specifically includes in technique scheme:Data type according to described data and/Or carry information, judge whether described data can be used for the different operating system of terminal.In this technical scheme, generally from networkDownload application program when, recorded this application program can run under which system, and to the video of specific format, audio frequency,Backup Data etc., then can judge, from its suffix name, the use data which system it is.
Carrying a critically important information in information is version number, this is because judging whether are application program and operating systemCompatibility, is that the version number according to system api interface confirms, such as 1.0,1.1,2.0, in release application program, and Ke YigenSpecify its corresponding system compatibility version number according to the compatibility of application program, and be cured to conduct in application program and carry information(if application program is based on 1.1 system developments, then specifying its system compatibility version number to be 1.1).In the technical program, whenWhen application program is installed, it is cured to the system compatibility version number in application program, the API version with each operating system by parsingCompare for this number, if the API version number of operating system is more than or equal to the system compatibility version number of application program, recognizeFor being compatible, on the contrary then incompatible.Such as, the system compatibility version number of application program is 1.1, then the operation to 2.0,1.1System is compatible, and the operating system for 1.0 is then incompatible.
It is preferable that described step 406 also includes in technique scheme:If arbitrary in multiple operating systemsUnder operating system, described data is left in the shared partition being used in conjunction with for the plurality of operating system, then running instituteWhen stating other operating systems in multiple operating systems, show described data deposits information, and/or points out described data can makeWith.In this technical scheme, can immediately user be reminded, it is to avoid user repeats to deposit and timely use application journeyThe data such as sequence.
It is preferable that also including in technique scheme:The subregion of depositing of described data is recorded, and is saved inIn the subregion specified.It is ensured that user can recognize at any time in this technical scheme, in which subregion, which housesData, is easy to user and data is managed.
According to above technical scheme, it is possible to achieve a kind of terminal and a kind of data partition management method, can either solve shouldRepeat to install the problem of the space waste causing with program, can solve the problem that again and due to system, the compatibility of application program is causedThe problem that the application program existing under certain system cannot normally run, the experience of lifting user.
Specific embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specifically realMode of applying is further described in detail to the present invention.
Elaborate a lot of details in the following description in order to fully understand the present invention, but, the present invention also may be usedTo be implemented different from other modes described here using other, therefore, the present invention is not limited to following public concrete realityApply the restriction of example.
Fig. 3 is the block diagram of terminal according to an embodiment of the invention.
As shown in figure 3, the present invention provides a kind of terminal 300, including:Subregion division unit 302, in described terminal 300In memory space, divide the different subregions using for one or more of described terminal 300 operating system;Data detecting unit304, whether detection data can be used for the different operating system of described terminal 300;Data Management Unit 306, if described dataThe multiple operating systems in described terminal 300 can be used for, then by what described data left division in for the plurality of operation beUnite in the shared partition being used in conjunction with, if described data is simply possible to use in the single operating in described terminal 300, by instituteState in the exclusive subregion being used alone for described single operating that data leaves division in.In this technical scheme, lead toCross shared partition and the division of independent partitions, both ensure that data will not repeat to deposit and take up room, and in turn ensure that each wasData under system can normally use.Herein, data is not limited to application program, also includes for some operating systemsSpecific format video, audio file, or backup file.Assume that present terminal has tri- operating systems of A, B and C, then at most needDivide 7 subregions, including the exclusive subregion being used alone for tri- operating systems of A, B and C respectively, and supply A and B, B respectivelyShare three shared partitions of use, and a shared partition being used in conjunction with for A, B and C with C, C and A dual system.
In technique scheme, if described data is the file of application program, described data detecting unit 304 is in peaceWhen filling described application program, detect the compatibility to described application program for the application programming interfaces of described different operating system, andJudge whether application program can be used for the different operating system of described terminal 300 according to testing result.In this technical scheme, canTaken up room with ensureing application program will not repeat to install, ensure that the application program under each operating system can simultaneouslyNormal use.
In technique scheme, described data detecting unit 304 according to the data type of described data and/or carries letterBreath, judges whether described data can be used for the different operating system of terminal 300.In this technical scheme, generally download from networkDuring application program, record this application program can run under which system, and to the video of specific format, audio frequency, backupData etc., then can judge, from its suffix name, the use data which system it is.
Carrying a critically important information in information is version number, this is because judging whether are application program and operating systemCompatibility, is that the version number according to system api interface confirms, such as 1.0,1.1,2.0, in release application program, and Ke YigenSpecify its corresponding system compatibility version number according to the compatibility of application program, and be cured to conduct in application program and carry information(if application program is based on 1.1 system developments, then specifying its system compatibility version number to be 1.1).In the technical program, whenWhen application program is installed, it is cured to the system compatibility version number in application program, the API version with each operating system by parsingCompare for this number, if the API version number of operating system is more than or equal to the system compatibility version number of application program, recognizeFor being compatible, on the contrary then incompatible.Such as, the system compatibility version number of application program is 1.1, then the operation to 2.0,1.1System is compatible, and the operating system for 1.0 is then incompatible.
In technique scheme, also include:Notes of Key Data unit 308, if the arbitrary behaviour in multiple operating systemsMake under system, described data is left in the shared partition being used in conjunction with for the plurality of operating system, then described in operationDuring other operating systems in multiple operating systems, show described data deposits information, and/or points out described data can makeWith.In this technical scheme, can immediately user be reminded, it is to avoid user repeats to deposit and timely use application journeyThe data such as sequence.
In technique scheme, also include:Data record unit 310, records to the subregion of depositing of described data,And be saved in the subregion specified.Which it is ensured that user can recognize at any time in this technical scheme, deposit in subregionPut which data, has been easy to user and data is managed.
Fig. 4 is the flow chart of data partition management method according to an embodiment of the invention.
As shown in figure 4, the present invention also provides a kind of data partition management method, including:Step 402, in the storage of terminalIn space, divide the different subregions using for one or more of described terminal operating system;Step 404, detection data isThe no different operating system that can be used for described terminal;Step 406, if described data can be used for the multiple operations in described terminalSystem, then leave in described data in the shared partition being used in conjunction with for the plurality of operating system of division, if instituteState the single operating that data is simply possible to use in described terminal, then by described data leave in division for described single behaviourIn the exclusive subregion that system is used alone.In this technical scheme, by the division of shared partition and independent partitions, both ensuredData will not repeat to deposit and takes up room, and in turn ensure that the data under each system can normally use.Herein, numberAccording to being not limited to application program, also include specific format video for some operating systems, audio file, or backup literary compositionPart.Assume that present terminal has tri- operating systems of A, B and C, then at most need to divide 7 subregions, including respectively for A, B and C tri-The exclusive subregion that individual operating system is used alone, and share for three that A shares use with B, B and C, C and A dual system respectivelySubregion, and a shared partition being used in conjunction with for A, B and C.
In technique scheme, described step 404 specifically includes:If described data is the file of application program,When described application program is installed, detect the compatibility to described application program for the application programming interfaces of described different operating system,And judge whether application program can be used for the different operating system of described terminal according to testing result.In this technical scheme, canTaken up room with ensureing application program will not repeat to install, ensure that the application program under each operating system can simultaneouslyNormal use.
In technique scheme, described step 404 specifically includes:Data type according to described data and/or carryInformation, judges whether described data can be used for the different operating system of terminal.In this technical scheme, generally downloading from network shouldWhen using program, record this application program can run under which system, and to the video of specific format, audio frequency, backup numberAccording to etc., then can judge, from its suffix name, the use data which system it is.
Carrying a critically important information in information is version number, this is because judging whether are application program and operating systemCompatibility, is that the version number according to system api interface confirms, such as 1.0,1.1,2.0, in release application program, and Ke YigenSpecify its corresponding system compatibility version number according to the compatibility of application program, and be cured to conduct in application program and carry information(if application program is based on 1.1 system developments, then specifying its system compatibility version number to be 1.1).In the technical program, whenWhen application program is installed, it is cured to the system compatibility version number in application program, the API version with each operating system by parsingCompare for this number, if the API version number of operating system is more than or equal to the system compatibility version number of application program, recognizeFor being compatible, on the contrary then incompatible.Such as, the system compatibility version number of application program is 1.1, then the operation to 2.0,1.1System is compatible, and the operating system for 1.0 is then incompatible.
In technique scheme, described step 406 also includes:If any operation system in multiple operating systemsUnder, described data is left in the shared partition being used in conjunction with for the plurality of operating system, is then running the plurality of behaviourWhen making other operating systems in system, show described data deposits information, and/or points out described data can use.At thisIn technical scheme, can immediately user be reminded, it is to avoid user repeats to deposit and timely use the number such as application programAccording to.
In technique scheme, also include:The subregion of depositing of described data is recorded, and be saved in specify pointQu Zhong.It is ensured that user can recognize at any time in this technical scheme, which subregion houses which data, justIn user, data is managed.
Fig. 5 is that the subregion of terminal according to an embodiment of the invention divides schematic diagram.
The terminal providing in one embodiment of the present of invention, solves prior art and leads to multisystem space waste, answersCan not be shared with data, software incompatibility problem.
The interface of existing multiple systems is inconsistent, and such as some new systems have done a large amount of expansions to primary android systemExhibition, increased much new api interface, software and hardware function is abundanter.But the application based on standard Android SDK exploitationProgram APK bag (i.e. installation kit), can get up in two systems, but the application program APK bag based on the exploitation of new system SDKThen can only run in new system.New system is a superset of primary android system.
In order to more preferably solve multisystem sharing application program, and the compatibility issue of solution application program, the present embodimentIn terminal adopt subregion isolation method, individually divide subregion and the exclusive application program of new system be installed, and two systems are compatibleApplication programs be then installed to shared partition.
Specifically as shown in fig. 5, it is assumed that being mounted with operating system 1,2,3 in the terminal of the present embodiment:
First, the api interface according to three systems supports situation, divides a shared partition 4, for operating system 1,2,3It is used in conjunction with, next also needs to divide other three shared partitions, and wherein, shared partition 1 is used in conjunction with for operating system 1,2,Shared partition 2 is used in conjunction with for operating system 2,3, and shared partition 3 is used in conjunction with for operating system 1,3, needs again to divide threeIndividual exclusive subregion 1,2,3, is used alone for operating system 1,2,3 respectively.If (there are more operating systems in terminal,At most need to divideIndividual subregion.)
Under any one operating system during set up applications (or depositing data), the application program of detection operating systemThe compatibility of api interface, to judge the system that this application program is suitable for, and this application program is arranged on corresponding subregionUnder, for example, such as certain application program can be in operating system 1 and 2 times operations, but can not be in 3 times operations of operating system, then should by thisIt is installed to shared partition 1 with program.If the operating system of installation environment is operating system 1, then it is switched to behaviour in userWhen making system 2, meeting automatically prompting user, this application program has been installed, can be for users to use.
By above technical scheme, the Flash space in mobile phone terminal can be made full use of, different system can be solved softPart incompatibility problem, the application data simultaneously installed in different systems also can be shared well.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this areaFor art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repairChange, equivalent, improvement etc., should be included within the scope of the present invention.