Invention content
Therefore, the present invention is to solve the problem of existing application program safeguard procedures cannot meet demand for security.
In view of this, the present invention provides a kind of application program installation method, including:
Monitor whether to receive the instruction of executing application installation file;
When receiving described instruction, the characteristic information of the application program is determined according to the installation file;
The characteristic information is compared with predetermined information;
When the characteristic information is consistent with predetermined information, the installation file is performed.
Preferably, the characteristic information further includes at least one in name information, distributor information, authority information.
Preferably, simultaneously including name information and access authority information, the predetermined information includes pre- the characteristic information
Name information and the access authority information that prestores are deposited, wherein the access authority information that prestores described in name information correspondence that prestores;
It is described that the characteristic information is compared with predetermined information, including:
Judge whether the name information and the name information that prestores are identical;
According to the name information that prestores determine it is corresponding described in prestore access authority information;
Judge whether the access authority information is identical with the determining access authority information that prestores;
When the access authority information is identical with the determining access authority information that prestores, judge the characteristic information with it is pre-
It is consistent to determine information.
Preferably, the characteristic information is described predetermined simultaneously including name information, distributor information and access authority information
Information includes prestore name information, the distributor information that prestores and the access authority information that prestores, wherein the name information pair that prestores
Described should prestore distributor information and the access authority information that prestores;
It is described that the characteristic information is compared with predetermined information, including:
Judge whether the name information and the name information that prestores are identical;
When the name information is identical with the name information that prestores, according to the name information that prestores determine it is corresponding described in
The distributor information that prestores and the access authority information that prestores;
Judge whether the distributor information identical with the determining distributor information that prestores and the access authority information
It is whether identical with the determining access authority information that prestores;
When the distributor information is identical with the distributor information that prestores, and the access authority information and the determining visit that prestores
When asking that authority information is identical, judge that the characteristic information is consistent with predetermined information.
Preferably, it is described to judge whether the distributor information identical with the determining distributor information that prestores and the visit
Ask whether authority information is identical with the determining access authority information that prestores, including:
Judge whether the distributor information is identical with the determining distributor information that prestores;
When the distributor information is identical with the distributor information that prestores, judge the access authority information whether with determining
The access authority information that prestores it is identical.
Correspondingly, the present invention also provides a kind of application program erecting device, including:
Monitoring unit, for monitoring whether to receive the instruction of executing application installation file;
Feature acquiring unit, for when receiving described instruction, the application program to be determined according to the installation file
Characteristic information;
Comparing unit, for the characteristic information to be compared with predetermined information;
Execution unit, for when the characteristic information is consistent with predetermined information, performing the installation file.
Preferably, the characteristic information further includes at least one in name information, distributor information, authority information.
Preferably, simultaneously including name information and access authority information, the predetermined information includes pre- the characteristic information
Name information and the access authority information that prestores are deposited, wherein the access authority information that prestores described in name information correspondence that prestores;
The comparing unit includes:
Title judging unit, for judging whether the name information and the name information that prestores are identical;
Predetermined information determination unit, for when the name information is identical with the name information that prestores, being prestored according to described
Name information determines the corresponding access authority information that prestores;
Permission judging unit, for judge the access authority information whether with the determining access authority information phase that prestores
Together;
Identifying unit, for when the access authority information is identical with the determining access authority information that prestores, judging institute
It is consistent with predetermined information to state characteristic information.
Preferably, the characteristic information is described predetermined simultaneously including name information, distributor information and access authority information
Information includes prestore name information, the distributor information that prestores and the access authority information that prestores, wherein the name information pair that prestores
Described should prestore distributor information and the access authority information that prestores;
The comparing unit includes:
Title judging unit, for judging whether the name information and the name information that prestores are identical;
Predetermined information determination unit, for when the name information is identical with the name information that prestores, being prestored according to described
Name information determines corresponding prestore distributor information and the access authority information that prestores;
Publisher and permission judging unit, for judge the distributor information whether with the determining distributor information that prestores
Whether identical and described access authority information is identical with the determining access authority information that prestores;
Identifying unit, it is identical with the distributor information that prestores for working as the distributor information, and the access authority information
When identical with the determining access authority information that prestores, judge that the characteristic information is consistent with predetermined information.
Preferably, the publisher and permission judging unit, including:
Publisher's judging unit, for judging whether the distributor information is identical with the determining distributor information that prestores;
Permission judging unit, for when the distributor information is identical with the distributor information that prestores, judging the access
Whether authority information is identical with the determining access authority information that prestores.
The application program installation method and device provided according to embodiments of the present invention, by receiving executing application peace
When filling the instruction of file, the characteristic information of application program is determined according to installation file, it may be determined that by application program to be mounted
Feature;Then access authority information with predetermined information is compared, peace is performed when characteristic information is consistent with predetermined information
File is filled, it is possible thereby to strictly be verified to application program, only installation complies fully with the application program of predetermined information, comes with this
Improve the safety of operating system.
Specific embodiment
Technical scheme of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation
Example is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's all other embodiments obtained without making creative work, shall fall within the protection scope of the present invention.
In addition, technical characteristic involved in invention described below different embodiments is as long as they do not conflict with each other
It can be combined with each other.
First embodiment of the invention provides a kind of application program installation method, and this method can be applied to vehicle electrical subsystem
System.Fig. 1 shows a kind of vehicle electronic system, including vehicle processor 11, IP multimedia subsystem, IMS 12, navigation subsystem
13rd, display subsystem 14, information storage subsystem 15, above-mentioned subsystems pass through bus (being usually CAN bus) and vehicle
Processor 11 is connected with each other, and wherein vehicle processor 11 can receive exterior terminal, clothes as the component with PERCOM peripheral communication
Data, the application programs such as the application program installation files of transmissions such as business device can be installed in vehicle processor 11, and whole
Vehicle processor 11 can send setting to above-mentioned subsystems by bus, access, the instructions such as inquiry, i.e. application program can be with
Above-mentioned subsystems are controlled or accessed according to permission.
Application program installation method provided in this embodiment can be performed by vehicle processor 11, the party as shown in Figure 2
Method includes:
S1 monitors whether to receive the instruction of executing application installation file, when receiving instruction, performs step
Otherwise S2 is continued to monitor.Specifically, installation file can be remote server push or actively download or
It is that user is sent by exterior terminal.Installation file usually requires to be confirmed whether to perform by user, such as operating system can
With prompted the user whether when receiving installation file perform this document, then by user's input validation or postpone instruction namely
Execute instruction can be input by user;Alternatively, operating system can carry out installation action automatically when receiving installation file,
I.e. installation instruction can also be that operating system is sent out automatically.
S2, the characteristic information of application program is determined according to installation file, and characteristic information can include the title of application program
Any one or more in information, distributor information, authority information, wherein access authority information is used to represent the application program
Access rights to be used are needed, which is typically directly documented in installation file, can directly be read into.
Characteristic information is compared S3 with predetermined information, and whether judging characteristic information is consistent with predetermined information, such as sentences
Whether the access rights that disconnected application program needs meet whether scheduled access rights, title meet predetermined title, publisher is
No is scheduled publisher.Predetermined information can be stored in local, can also be obtained from predeterminated target (server).Due to intelligence
The particularity of energy vehicular field, the publisher for the application program that car-mounted terminal can be applicable in will not be arbitrary publisher, and usual
It is vehicle manufacturer, therefore vehicle processor can obtain above-mentioned predetermined information, such as root from scheduled vehicle vendor server
Local is stored according to its corresponding predetermined information of the acquisition of information such as the title of application program, type.When characteristic information is with making a reservation for
When information is consistent, step S4 is performed,;Otherwise represent that the source of the installation file is abnormal, it is likely that be not that predetermined publisher carries
The installation file of confession has distorted file content by third party, therefore can not perform file and prompt user file abnormal.
S4 performs installation file, to install the application program.
The application program installation method provided according to embodiments of the present invention, by receiving executing application installation file
Instruction when, the characteristic information of application program is determined according to installation file, it may be determined that by the feature of application program to be mounted;
Then access authority information with predetermined information is compared, installation file is performed when characteristic information is consistent with predetermined information,
It is possible thereby to strictly be verified to application program, only installation complies fully with the application program of predetermined information, is grasped with this to improve
Make the safety of system.
Features described above information can include one in name information, person's distributor information, while further include access rights
Information.Help to further determine that including two kinds of information simultaneously and improve detection efficiency and safety.With simultaneously including name information
For access authority information, correspondingly, predetermined information includes prestore name information and the access authority information that prestores, wherein prestoring
Name information corresponds to the access authority information that prestores.The access rights of application program usually have multiple namely access authority information can
To be multiple, and there are one name information or distributor informations, then predetermined information can be following correspondence:It prestores
Title a corresponds to prestore permission a1, a2 and a3;The title that prestores b corresponds to prestore permission b1, b2 and b3.In the case, above-mentioned steps
S3 may include steps of:
S31 judges whether name information and the name information that prestores are identical, when name information is identical with the name information that prestores
When, step S32 is performed, otherwise, title differs, and can directly judge that installation file abends subsequent operation.
S32 determines the corresponding access authority information that prestores according to the name information that prestores;Assuming that the name information got is
A, title a is consistent with prestoring, it is possible thereby to determine corresponding permission a1, a2 and the a3 of prestoring of title a that prestore;
S33 judges whether access authority information is identical with the determining access authority information that prestores, that is, judges in installation file
Authority information and prestore permission a1, a2 and a3 it is whether completely the same.When access authority information and the determining access rights that prestore
When information is identical, step S34 is performed, otherwise can be determined that installation file abends subsequent operation.
S34, judgement characteristic information are consistent with predetermined information.
Above-mentioned preferred embodiment first determines whether the name information of application program and predetermined title are consistent, only consistent
In the case of, just further judge whether the authority information of application program and predetermined right information are consistent, and predetermined right information
It can be determined by predetermined title, program synthesis name information and authority information judge whether installation file is normal, with this
To improve the efficiency and the safety that judge operation.
An alternative embodiment of the invention additionally provides a kind of application program installation method, the characteristic information in the present embodiment
Simultaneously including these three information of name information, distributor information and access authority information, correspondingly, predetermined information includes the name that prestores
Claim information, the distributor information that prestores and the access authority information that prestores, wherein the name information correspondence that prestores prestores distributor information and
Prestore access authority information.Predetermined information can be following correspondence:The title that prestores a corresponds to publisher aa, the power of prestoring of prestoring
Limit a1, a2 and a3;The title that prestores b corresponds to prestore publisher ba, the permission that prestores b1, b2 and b3.In the case, the present embodiment carries
The application program installation method of confession includes the following steps:
S ' 1 monitors whether to receive the instruction of executing application installation file, when receiving described instruction, performs
Step S ' 2;
S ' 2 determines the characteristic information of the application program according to the installation file;
S ' 3 judges whether name information and the name information that prestores are identical, when name information is identical with the name information that prestores
When, step S ' 4 is performed, otherwise title differs, and can directly judge that installation file abends subsequent operation.
S ' 4 determines corresponding distributor information and the access authority information that prestores of prestoring, it is assumed that obtain according to the name information that prestores
The name information got is a, and title a is consistent with prestoring, it is possible thereby to the corresponding publisher aa that prestore of title a that determine to prestore, pre-
Deposit permission a1, a2 and a3;
S ' 5, judge distributor information whether and access authority information identical with the determining distributor information that prestores whether
It is identical with the determining access authority information that prestores namely judge whether are distributor information in installation file and the publisher aa that prestores
Whether the access authority information and prestore permission a1, a2 and a3 unanimously and in installation file are consistent.When two kinds of information all sames
When, step S ' 6 is performed, if wherein there is any information to be differed with prestored information, judges that installation file abends subsequently
Operation.
S ' 6 performs the installation file.
Method provided in an embodiment of the present invention integrates name information, distributor information and authority information and judges that installation file is
It is no normal, thus further improve the safety of application program.
As a preferred embodiment, above-mentioned steps S ' 5 may include steps of:
S ' 51 judges whether distributor information is identical with the determining distributor information that prestores, when distributor information is with prestoring
Distributor information is mutually performed simultaneously step S ' 52, otherwise can be determined that installation file abends subsequent operation.
S ' 52 judges whether access authority information is identical with the determining access authority information that prestores.
Above-mentioned preferred embodiment first determines whether the distributor information of application program and predetermined publisher are consistent, only one
In the case of cause, just further judge whether the authority information of application program and predetermined right information are consistent, and predetermined right
Information can be determined by predetermined title, and the efficiency of judgement operation is improved with this.
Another embodiment of the present invention additionally provides a kind of application program erecting device, as shown in figure 4, the device can wrap
It includes:
Monitoring unit 41, for monitoring whether to receive the instruction of executing application installation file;
Feature acquiring unit 42, for when receiving described instruction, being determined according to the installation file described using journey
The characteristic information of sequence;
Comparing unit 43, for the characteristic information to be compared with predetermined information;
Execution unit 44, for when the characteristic information is consistent with predetermined information, performing the installation file.
The application program erecting device provided according to embodiments of the present invention, by receiving executing application installation file
Instruction when, the characteristic information of application program is determined according to installation file, it may be determined that by the feature of application program to be mounted;
Then access authority information with predetermined information is compared, installation file is performed when characteristic information is consistent with predetermined information,
It is possible thereby to strictly be verified to application program, only installation complies fully with the application program of predetermined information, is grasped with this to improve
Make the safety of system.
Optionally, the characteristic information further includes at least one in name information, distributor information, authority information.
Optionally, simultaneously including name information and access authority information, the predetermined information includes pre- the characteristic information
Name information and the access authority information that prestores are deposited, wherein the access authority information that prestores described in name information correspondence that prestores;
The comparing unit includes:
Title judging unit, for judging whether the name information and the name information that prestores are identical;
Predetermined information determination unit, for when the name information is identical with the name information that prestores, being prestored according to described
Name information determines the corresponding access authority information that prestores;
Permission judging unit, for judge the access authority information whether with the determining access authority information phase that prestores
Together;
Identifying unit, for when the access authority information is identical with the determining access authority information that prestores, judging institute
It is consistent with predetermined information to state characteristic information.
Above-mentioned preferred embodiment first determines whether the name information of application program and predetermined title are consistent, only consistent
In the case of, just further judge whether the authority information of application program and predetermined right information are consistent, and predetermined right information
It can be determined by predetermined title, program synthesis name information and authority information judge whether installation file is normal, with this
To improve the efficiency and the safety that judge operation.
Optionally, the characteristic information is described predetermined simultaneously including name information, distributor information and access authority information
Information includes prestore name information, the distributor information that prestores and the access authority information that prestores, wherein the name information pair that prestores
Described should prestore distributor information and the access authority information that prestores;
The comparing unit includes:
Title judging unit, for judging whether the name information and the name information that prestores are identical;
Predetermined information determination unit, for when the name information is identical with the name information that prestores, being prestored according to described
Name information determines corresponding prestore distributor information and the access authority information that prestores;
Publisher and permission judging unit, for judge the distributor information whether with the determining distributor information that prestores
Whether identical and described access authority information is identical with the determining access authority information that prestores;
Identifying unit, it is identical with the distributor information that prestores for working as the distributor information, and the access authority information
When identical with the determining access authority information that prestores, judge that the characteristic information is consistent with predetermined information.
Above-mentioned preferred embodiment synthesis name information, distributor information and authority information judge whether installation file is normal, by
This further improves the safety of application program.
Optionally, the publisher and permission judging unit, including:
Publisher's judging unit, for judging whether the distributor information is identical with the determining distributor information that prestores;
Permission judging unit, for when the distributor information is identical with the distributor information that prestores, judging the access
Whether authority information is identical with the determining access authority information that prestores.
Above-mentioned preferred embodiment first determines whether the distributor information of application program and predetermined publisher are consistent, only one
In the case of cause, just further judge whether the authority information of application program and predetermined right information are consistent, and predetermined right
Information can be determined by predetermined title, and the efficiency of judgement operation is improved with this.
Obviously, the above embodiments are merely examples for clarifying the description, and is not intended to limit the embodiments.It is right
For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or
It changes.There is no necessity and possibility to exhaust all the enbodiments.And the obvious variation thus extended out or
Among changing still in the protection domain of the invention.