Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making
Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
Embodiment of the method
As a example by the mobile terminal using Android operation system, the NAND of described mobile terminal
Flash, is equivalent to the hard disk of computer, for deposit operation system, application program etc..
It is the typical subregion of the NAND Flash of existing mobile terminal as follows:
Modem subregion: include the relevant partitions such as oeminfo, amss;
Boot subregion: deposit bootloader, is used for boot image of starting shooting;
System subregion: be used for storing operating system and application program;
Userdata subregion: for storing the file data of application program;
Cache subregion: the instruction used for storage system and application program and data cached;
Recovery subregion: be used for depositing recovery and dispatch from the factory mini system;
Misc subregion: be used for depositing recovery guidance information.
Generally, preset application program leaves system subregion in, under such as app catalogue, installs raw
The application program that application program is system-level authority become, user cannot be carried out unloading and deletes.
The third party application that user installs voluntarily is the application program of Authority, can be by user
Unload voluntarily.The installation kit of this third party application installed voluntarily is generally all at userdata subregion
Under one catalogue, it it is such as app catalogue;When installing this application program, the file data of generation is also placed in
Userdata subregion;When user unloads the third party application of installation, install under userdata subregion
Application program generate file data will be deleted, and system scanning userdata subregion under app
Catalogue, by the installation kit of the third party application under app catalogue, deletes in the lump.
As shown in Figure 1, the embodiment of the present invention, as a example by the mobile phone using Android operation system, carries
Supply the management method of the preset application program of a kind of mobile terminal, but it is readily understood that, this not structure
Become limitation ot it.
Wherein, the memory space of described mobile terminal adds at least one catalogue, described at least one
The installation kit of at least one preset application program is deposited under catalogue.
At least one catalogue described can be increased in the existing subregion of mobile terminal, such as can move
The system subregion (system partitioning) of terminal, userdata subregion (user data subregion) respectively increase by one
Individual catalogue, is the most all customized for delapp catalogue, for depositing the installation kit of preset application program, i.e.
The installation kit of preset application program is deposited under system/delapp, userdata/delapp catalogue increased.
Preferably, at least one subregion can be increased, such as on the basis of the existing subregion of mobile terminal
Named cust subregion, for independently depositing customization data, such as customized parameter etc., can be considered as system
The extension subregion of subregion.At least one catalogue of described increase can be arranged on the cust subregion of increase, this
Sample is easy to the management of system.
Understand for convenience, the present embodiment with increase catalogue delapp at the existing subregion of mobile terminal
It is described as a example by system, userdata are upper, i.e. system/delapp, userdata/delapp, but this
It is not intended that the restriction to it.
With reference to Fig. 1, the method comprises the following steps:
Step 11, starts described mobile terminal;
After mobile terminal starts, Package Manager Service, Package Manager can be started
After Service scanning system application catalog, add self-defined catalogue delapp described in code scans
Catalogue, that is to say scanning system/delapp, userdata/delapp catalogue;
Step 12, automatically scanning at least one catalogue described;
Step 13, by the installation of at least one preset application program described under at least one catalogue described
Bag is automatically installed and is generated the preset application program with application layer authority;
Package Manager Service is when scanning Package LI, by the installation under delapp catalogue
Bag carries out default installation;The file data that application program after installation generates is placed under userdata subregion.
The when of installation, automatically by the installation kit under delapp catalogue, install with Authority, thus
Generate the preset application program with Authority;Wherein, described Authority, refer to that user can
Carry out including the operable authority of unloading, the preset application program of so-called Authority, refer to permissible
Support the preset application program that user unloads voluntarily.
Preferably, self-defined labelling can be increased, such as installing when
PARSE_IS_REMOVABLE_PREINSTALLED, is used for being different from and installs with system-level authority
Application program, so carry the preset application program of this labelling, can be equivalent to what user installed voluntarily
The third party application with Authority is unloaded.
Further, the method that the embodiment of the present invention provides, it is also possible to select factory reset user
Time, by the state of unloaded preset application recovery to application program preset when dispatching from the factory.To this end,
Described method also includes: when unloading the preset application program in mobile terminal, unloads described unloading
Preset application program, retains the installation kit of preset application program of described unloading in delapp catalogue.This
Sample, the preset application program of unloading is deleted at the file data of userdata subregion, and application program is unloaded
Carry, but the installation kit of unloaded preset application program is also present in delapp catalogue, when mobile whole
After end is resumed Default Value, it is also possible to by its default installation again, return to application preset when dispatching from the factory
The state of program.
Preferably, it is possible to use the unloading mechanism of existing mobile terminal retains unloaded preset application
The installation kit of program.Existing unloader is made as, when unloading has the third-party application journey of Authority
During sequence, first mobile terminal deletes this application program file data under userdata subregion, sweeps simultaneously
Retouch the app catalogue of the installation kit for depositing third party application under userdata subregion, by app
The installation kit of the third party application to be unloaded under catalogue is deleted in the lump.It is pre-owing to the present embodiment being incited somebody to action
Program of putting is installed with Authority, is equivalent to the third party application that user installs voluntarily, to this end,
Described method can also include: when the application program with Authority unloaded in mobile terminal
(including preset application program and the third party application just having Authority), scan userdata
App catalogue under subregion, it is judged that whether the described installation kit with Authority to be unloaded is present in
App catalogue;If the installation kit of the described application program with Authority to be unloaded does not puts into app
During catalogue, it is meant that this application program is the preset application program with Authority, therefore mobile terminal
Unloading the described application program with Authority to be unloaded, retain described unloading has user class
The installation of the application program of authority is wrapped in delapp catalogue.So, it is the application of Authority equally
Program, the installation kit of the third party application installed voluntarily due to user is present in userdata/app mesh
Under record, the most not only the file data of application program is deleted, and the installation kit of application program is also deleted
Remove;And the installation kit of preset application program is not deposited under userdata/app catalogue, and leave in
Under system/delapp, userdata/delapp catalogue, therefore, the file data of only application program
It is deleted, and the installation kit of application program is carried over into system/delapp, userdata/delapp catalogue
Under;So when mobile terminal is after being resumed Default Value, it is also possible to by its default installation, recovery again
State to application program preset when dispatching from the factory.
Preferably, can be by configuring mobile terminal, so that preset application program can show that unloading is pressed
Knob thus realize unloading, such as can revise init Uninstall in Installed App Details
Buttons interface and on Click interface, revise delete Package at Package Manager Service
LI interface.
Further, described in step 13 install generate at least one have Authority preset should
After program, described method also includes: add mark file;Wherein, described mark file record mark
Know mobile terminal and the information of preset application program had been installed.This mark file can with named booted,
Add under the data catalogue under userdata subregion, i.e. userdata/data/booted.
Further, after step 11, described method also includes: judge whether described mark
File;
If there is no described mark file, it is meant that mobile terminal is to start, or be considered as the first time
Starting for the first time, described mobile terminal performs at least one catalogue described in described scanning, by described at least one
The installation kit of at least one the preset application program described under individual catalogue is installed generation and is had application layer authority
The step of preset application program.
If there is described mark, it is meant that mobile terminal is not the most to start for the first time, has installed
Preset, described mobile terminal normal boot-strap, wait other operational orders.Thus it is not repeated to install
Preset application program under delapp catalogue, unloaded after preset application program, would not again be pacified
Dress.
It is easily understood that when mobile terminal factory reset, booted mark file will be by certainly
Dynamic deletion;Certainly, booted mark file can also be deleted as required by user.
Further, as required, it is also possible to make preset application program by permanent de-ballast.At this moment, increase
Delapp catalogue, it is impossible to arrange under system subregion, because the data of system subregion are not
Operable.So, generate after the installation kit of the preset application program under system/delapp catalogue is installed
The preset application program with Authority can be unloaded, but can not be by permanent de-ballast.Below with
Preset application program under userdata/delapp catalogue describes the preset application program of permanent de-ballast, catches up with
It is similar that face is introduced, and the installation kit of preset application program is mounted with Authority;Answer when unloading is preset
When using program, the file data under usterdata subregion is deleted, will be present in userdata/delapp simultaneously
The installation kit of the preset application program under catalogue is deleted in the lump.Or, it is also possible to utilize mobile terminal existing
Unloading mechanism carry out the preset application program of permanent de-ballast, specifically include: the tool in unloading mobile terminal
(preset application program and the third party with Authority is included when having the application program of Authority
Application program), by add code make app catalogue under mobile scanning terminal userdata subregion and
Delapp catalogue, it is judged that whether one of them of app catalogue and delapp catalogue the two catalogue exists desire
The installation kit of the application program with Authority of unloading, if it has, delete in the lump.So, in advance
The application program put is taken as third party application by permanent de-ballast, once by permanent de-ballast, just cannot
Recover.
During preferably for unloading preset application program, can be with setting options, user can select to be to unload
Carry (can be with factory reset), or permanent de-ballast.
Although in embodiments of the present invention, described preset application program is under the catalogue leaving increase in, this
It is to, on the basis of not changing existing setting, facilitate the preset application program under this catalogue of system identification
Should install with Authority, and preset application journey can be increased or decreased the most easily
Sequence, but this is not intended that the restriction to it, as long as can know with Authority installation by guiding terminal
Preset application program.
In the embodiment of the present invention, owing to the memory space kind of mobile terminal adds a delapp catalogue,
By put into this catalogue preset application program decompress after, install with Authority, the most preset should
It is equivalent to the third party application that user installs voluntarily, it is allowed to unloaded voluntarily by user by program;Separately
Outward, the installation kit of unloaded preset application program is still retained in delapp, so works as mobile terminal
Being resumed when dispatching from the factory, unloaded preset application program can also return to factory state;Answer additionally, preset
With program unloaded time, it is also possible to be arranged to the application program installation kit deleting under delapp catalogue in the lump,
The most preset application program can also be permanently deleted.
Apparatus embodiments
As shown in Figure 2, embodiments provide a kind of mobile terminal, this mobile terminal include with
Lower module:
Memory module 21, for depositing at least one catalogue of increase, has deposited at least one under this catalogue
The installation kit of individual preset application program;
Start module 22, be used for starting described mobile terminal;
Scan module 23, at least one catalogue described of scanning automatically;
Module 24 is installed, by least one preset application program described under at least one catalogue described
Installation kit is automatically installed and is generated the preset application program with Authority;
Wherein, there is described in Authority and refer to that user can carry out including the exercisable power of unloading operation
Limit.
Further, described mobile terminal also includes:
Select module 25, for receiving the unloading order of user, determine described in there is Authority
One or more in preset application program is as the preset application program to be unloaded;
Unload module 26, for unloading the described preset application program to be unloaded, and retains described being unloaded
The installation kit of the preset application program carried.
Further, described memory module 21 includes system partitioning, wherein, and at least the one of described increase
Individual catalogue is not at described system partitioning;Described Unload module 26, be additionally operable to unload described to be unloaded pre-
Put application program, and delete the described preset application journey to be unloaded deposited at least one catalogue described
The installation kit of sequence.
Further, described memory module also includes a user data subregion, wherein, described user data
Subregion also includes another catalogue, another catalogue described deposit have Authority third party should
With the installation kit of program, described mobile terminal also includes: judge module 27;
Described selection module 25, is additionally operable to receive the unloading order of user, determines have Authority
Application program in one or more as the application program to be unloaded, wherein, this has user class
The application program of authority has the preset application program of Authority and has user class described in including
The third party application of authority;
Described scan module 23, is additionally operable to scanning another catalogue described;
Described judge module 27, is used for the application program described in being unloaded with Authority
Installation kit whether be present in another catalogue described;
Described Unload module 26, is additionally operable to the application program with Authority that ought described be unloaded
Installation kit when not putting into another catalogue described, unload the described application with Authority to be unloaded
Program, retains the installation kit of the described application program with Authority to be unloaded.
Further, described scan module 23 is additionally operable to another catalogue and described increase described in scanning extremely
A few catalogue;
Described judge module 27, the application program with Authority being additionally operable to judge to be unloaded
Whether installation kit deposits in another catalogue described or at least one catalogue of described increase;
Described Unload module 26, be additionally operable to when described judge module judge described to be unloaded there is use
The installation kit of the application program of family level authority deposits at least one of another catalogue described or described increase
During catalogue, unload the described application program with Authority to be unloaded, and described in deletion, there is use
The installation kit of the application program of family level authority.
Further, described mobile terminal also includes: mark management module 28, in described generation
After at least one has the preset application program of Authority, add mark file;Or, it is used for
When described mobile terminal is resumed Default Value, delete described mark file;Or, for receiving
When deleting the instruction of described mark file to user, delete described mark file;Wherein, described mark literary composition
Part have recorded mark mobile terminal and installed the information of preset application program.
After described judge module 27 is additionally operable to start described mobile terminal, it may be judged whether there is described mark
File;
When described judge module judges not exist described mark file, described scan module 23 scans
At least one catalogue described;Described installation module 24 is by described under at least one catalogue described at least one
The installation kit of individual preset application program is installed and is generated the preset application program with application layer authority.
Related work principle in the embodiment of the present invention and work process, be referred to embodiment of the method,
This repeats no more,
In the embodiment of the present invention, the memory module 21 of mobile terminal is deposited at least one catalogue of increase,
Deposit the installation kit of at least one preset application program under this catalogue, start mobile when starting module 22
After terminal, scan module 23 scans at least one catalogue described, installs module 24, by described at least one
The installation kit of at least one the preset application program described under individual catalogue is installed generation and is had application layer authority
Preset application program, due to Authority preset application program allow user unload voluntarily,
As the third party application that the most preset application program just can be installed with user voluntarily as required
Unloading;It addition, when unloading preset application program, Unload module 25 can unload described unloading
Described preset application program, retain that leave at least one catalogue described described to be unloaded is described
The installation kit of preset application program, or described installation kit is deleted in the lump, so, unloaded is preset
Application program can also return to factory state, or is permanently deleted.
One of ordinary skill in the art will appreciate that all or part of stream realizing in above-described embodiment method
Journey, can be by computer program and completes to instruct relevant hardware, and described program can be stored in
In one computer read/write memory medium, this program is upon execution, it may include such as the enforcement of above-mentioned each method
The flow process of example.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body
(Read-Only Memory, ROM) or random store-memory body (Random Access Memory,
RAM) etc..
In a word, the foregoing is only presently preferred embodiments of the present invention, be not intended to limit the present invention's
Protection domain.All within the spirit and principles in the present invention, any amendment, the equivalent made, change
Enter, should be included within the scope of the present invention.