[go: up one dir, main page]

CN104731665B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN104731665B
CN104731665B CN201510144836.3A CN201510144836A CN104731665B CN 104731665 B CN104731665 B CN 104731665B CN 201510144836 A CN201510144836 A CN 201510144836A CN 104731665 B CN104731665 B CN 104731665B
Authority
CN
China
Prior art keywords
dynamic link
link library
memory space
electronic equipment
application program
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
CN201510144836.3A
Other languages
Chinese (zh)
Other versions
CN104731665A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510144836.3A priority Critical patent/CN104731665B/en
Publication of CN104731665A publication Critical patent/CN104731665A/en
Application granted granted Critical
Publication of CN104731665B publication Critical patent/CN104731665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A kind of information processing method of present invention offer and electronic equipment, the method are applied in an electronic equipment, the method includes:During os starting in the electronic equipment, judge whether the state that the first dynamic link library is loaded using the operating system is abnormal, obtain the first judging result, wherein first dynamic link library is stored in memory space as defined in the operating system;When first judging result is to be, obtain the second dynamic link library, second dynamic link library is stored in the first memory space, and first memory space is application program in the electronic equipment in start-up course, the occupied memory space of application program;Calling system interface loads second dynamic link library using the application program.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to technical field of information processing more particularly to a kind of information processing methods and electronic equipment.
Background technology
As electronic equipment is used more and more widely, the central processing unit of electronic equipment is also by original single Arm processor develops to two kinds of processors:Arm processor and X 86 processor.
Currently, dynamic link library is widely used in the application program installed in electronic equipment, application program is in load dynamic Before chained library, it is necessary to know that the central processing unit of current electronic device is arm processor or X 86 processor, could load Corresponding dynamic link library.If dynamic link library load failure, will cause application program that can not run.In the prior art in order to It realizes that application program loads dynamic link library corresponding with the central processing unit of electronic equipment, provides following solution:
The dynamic link library of application program is divided into two sets of dynamic link libraries:Dynamic link library corresponding with arm processor Then this two sets of dynamic link libraries are stored in the operating system of electronic equipment by dynamic link library corresponding with X 86 processor Defined position, operating system load corresponding dynamic link library automatically according to the central processing unit of electronic equipment.
But present inventor has found above-mentioned technology extremely during inventive technique scheme in realizing the embodiment of the present application It has the following technical problems less:
In the prior art, the operating system of electronic equipment has different versions, and the hardware in different electronic equipments is not Together, it due to a large amount of operating system version and deposits and the difference of hardware, leads to a large amount of ROM (system firmware) versions and deposit. Due to the error of ROM developer, cause operating system can not normal load application program dynamic link library.Therefore, existing skill Art is:The success rate of the dynamic link library of electronic equipment loading application programs is low.
Invention content
A kind of information processing method of offer of the embodiment of the present invention and electronic equipment, for solving electronics of the existing technology The low success rate of technical problem of the dynamic link library of equipment loading application programs provides a kind of new loading application programs The method of dynamic link library, the first dynamic link library in operating system load store memory space as defined in operating system When abnormal, second dynamic link of the load store in application program in the occupied memory space of the application program in start-up course Library improves the success rate of the dynamic link library of electronic equipment loading application programs.
On the one hand, the embodiment of the present invention provides a kind of information processing method, is applied in an electronic equipment, the method packet It includes:
During os starting in the electronic equipment, judge dynamic using operating system load first Whether the state of state chained library is abnormal, obtains the first judging result, wherein first dynamic link library is stored in the operation Memory space as defined in system;
When first judging result is to be, the second dynamic link library is obtained, second dynamic link library is stored in First memory space, first memory space are the application program in the electronic equipment described in start-up course The occupied memory space of application program;
Calling system interface loads second dynamic link library using the application program.
Optionally, before the second dynamic link library of the acquisition, the method further includes:
Judge that first memory space whether there is dynamic link library, obtains the second judging result;
When second judging result is to be, whether the dynamic link library verified in first memory space is effective, Obtain verification result;
When the verification result is no or when second judging result is no, step is executed:Obtain the second dynamic Chained library.
Optionally, the second dynamic link library of the acquisition, including:
Third dynamic link library is obtained from memory space as defined in the application program;
The third dynamic link library is copied to first memory space;
Using the dynamic link library in first memory space as second dynamic link library.
Optionally, the version of the third dynamic link library is first version or the second edition, and the electronic equipment energy It is enough that the first version is converted into the second edition that can be run on the electronic equipment.
Optionally, before the second dynamic link library of the acquisition, the method further includes:
During the os starting, version information is determined, the version information is can be in the electronics The version of the dynamic link library run in equipment;
The second dynamic link library of the acquisition, including:
The third dynamic link library being consistent with the version information is obtained from memory space as defined in the application program, The third dynamic link library of at least two versions is stored in memory space as defined in the application program;
The third dynamic link library of acquisition is copied to first memory space;
Using the dynamic link library in first memory space as second dynamic link library.
On the other hand, the embodiment of the present invention provides a kind of electronic equipment, including:
First judging unit during being used for the os starting in the electronic equipment, judges using described Whether the state that operating system loads the first dynamic link library is abnormal, obtains the first judging result, wherein first dynamic chain Connect library storage memory space as defined in the operating system;
First obtains unit, when for being when first judging result, the second dynamic link library of acquisition, described second Dynamic link library is stored in the first memory space, and first memory space is the application program in the electronic equipment The occupied memory space of the application program described in start-up course;
Loading unit is used for calling system interface, and second dynamic link library is loaded using the application program.
Optionally, the electronic equipment further includes:
Second judgment unit, for before the second dynamic link library of the acquisition, judging that first memory space is No there are dynamic link libraries, obtain the second judging result;
Authentication unit, for when second judging result is to be, verifying the dynamic chain in first memory space It whether effective connects library, obtains verification result;
Processing unit, for when the verification result is no or when second judging result is no, executing step: Obtain the second dynamic link library.
Optionally, the first obtains unit includes:
First obtains module, for obtaining third dynamic link library from memory space as defined in the application program;
First replication module, for the third dynamic link library to be copied to first memory space;
First processing module, for using the dynamic link library in first memory space as second dynamic link Library.
Optionally, the version of the third dynamic link library is first version or the second edition, and the electronic equipment energy It is enough that the first version is converted into the second edition that can be run on the electronic equipment.
Optionally, the electronic equipment further includes:
Determination unit is used for before the second dynamic link library of the acquisition, during the os starting, Determine that version information, the version information are the version for the dynamic link library that can be run on the electronic equipment;
The first obtains unit includes:
Second obtains module, is consistent with the version information for being obtained from memory space as defined in the application program Third dynamic link library, the third dynamic link of at least two versions is stored in memory space as defined in the application program Library;
Second replication module, for the third dynamic link library of acquisition to be copied to first memory space;
Second processing module, for using the dynamic link library in first memory space as second dynamic link Library.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
The specific implementation process of the method for the dynamic link library of loading application programs provided in an embodiment of the present invention is:It is first First, during os starting in the electronic equipment, judge to load the first dynamic chain using the operating system Whether the state for connecing library is abnormal, obtains the first judging result, wherein first dynamic link library is stored in the operating system Defined memory space;When first judging result is to be, the second dynamic link library, second dynamic link library are obtained It is stored in the first memory space, first memory space is the application program in the electronic equipment in start-up course Described in the occupied memory space of application program;Then, calling system interface loads described second using the application program Dynamic link library.
When the first dynamic link library exception in operating system load store memory space as defined in operating system, add The second dynamic link library being stored in the occupied memory space of application program application program in start-up course is carried, is improved The success rate of the dynamic link library of electronic equipment loading application programs.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of information processing method provided in an embodiment of the present invention;
Fig. 2 is the detail flowchart of step 12 in the embodiment of the present invention;
Fig. 3 is the detail flowchart of the method for load dynamic link library provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of another electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
A kind of information processing method of offer of the embodiment of the present invention and electronic equipment, for solving electronics of the existing technology Equipment intercepts the low technical problem of efficiency of sensitive function module, provides a kind of method of new interception sensitive function module, Without considering the hardware platform or operating system of current electronic device, function module and coding in current electronic device need to be only obtained Correspondence, improve intercept sensitive function module efficiency.
A kind of information processing method of offer of the embodiment of the present invention and electronic equipment, for solving electronics of the existing technology The low success rate of technical problem of the dynamic link library of equipment loading application programs provides a kind of new loading application programs The method of dynamic link library, the first dynamic link library in operating system load store memory space as defined in operating system When abnormal, second dynamic link of the load store in application program in the occupied memory space of the application program in start-up course Library improves the success rate of the dynamic link library of electronic equipment loading application programs.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The terms "and/or", only a kind of incidence relation of description affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/", it is a kind of relationship of "or" to typically represent forward-backward correlation object.
Detailed description of embodiments of the present invention below in conjunction with the accompanying drawings.
The present embodiment provides a kind of information processing methods, are applied in an electronic equipment, which can be intelligence Mobile phone, tablet computer, laptop etc..Application program is installed, application program can be that electronics is set in the electronic equipment It is when standby manufacture built-in, it can also be that user downloads and installed from application market.Application program needs to use dynamic link Library can run success, and dynamic link library is to be encapsulated some most basic function modules by the developer of application program 's.The dynamic link library of commonly used program is stored in memory space as defined in the operating system of electronic equipment.
Referring to FIG. 1, Fig. 1 is the flow chart of information processing method provided in an embodiment of the present invention.This method includes:
Step 11:During os starting in the electronic equipment, judge to add using the operating system Whether the state for carrying the first dynamic link library is abnormal, obtains the first judging result, wherein first dynamic link library is stored in Memory space as defined in the operating system;
Step 12:When first judging result is to be, the second dynamic link library, second dynamic link library are obtained It is stored in the first memory space, first memory space is the application program in the electronic equipment in start-up course Described in the occupied memory space of application program;
Step 13:Calling system interface loads second dynamic link library using the application program.
In the prior art, during the os starting of electronic equipment, operating system loads the first dynamic automatically Chained library, i.e., the dynamic link library that memory space as defined in operating system is stored in automatic load are applied if loaded successfully Program is run successfully, if load is unsuccessful, application program operation failure.
As it can be seen that being directed to the case where operating system loads the failure of the first dynamic link library automatically in the prior art, do not suggest that Alternative scheme, once the failure of the first dynamic link library of load, application program just run failure to operating system automatically.
In order to solve the above technical problems, the embodiment of the present invention proposes:In addition to being deposited as defined in the operating system in electronic equipment Storage space is stored outside the dynamic link library of a set of application program, and also memory space storage is a set of as defined in application program applies journey The dynamic link library of sequence.
Step 11 is first carried out, judges whether the state of operating system the first dynamic link library of automatic load is abnormal, obtains First judging result.According to the first judging result, step 12 is executed.
Specifically, when the first judging result is to be, namely:Operating system the first dynamic link library of load failure automatically When, it obtains and is stored in the second dynamic link library of the first memory space, the first memory space be to install answering in the electronic device With program in start-up course the occupied memory space of application program.
Because the application program of installation in the electronic device can occupy certain memory space, be during startup Description is convenient, and by application program, occupied memory space is known as the first memory space during startup.First storage is empty Between be memory space that application program can directly be written and read operation in start-up course, so application program can be from first The second dynamic link library is obtained in memory space, is then started using the second dynamic link library, and then run successfully.
In the embodiment of the present invention, the dynamic link library for a set of application program that the memory space as defined in application program is stored For third dynamic link library, due to application program during startup cannot to the memory space of application procedure stipulation directly into Row read-write operation can only directly be written and read operation to the first memory space, so loading the first dynamic automatically in operating system After chained library failure, following steps can be executed:
Judge that first memory space whether there is dynamic link library, obtains the second judging result;Sentence when described second When disconnected result is no, step is executed:Obtain the second dynamic link library.
Specifically, if application program running before is successfully using being stored in dynamic chain in the first memory space Library is connect, then can directly obtain the second dynamic link library from the first memory space.
So before obtaining the second dynamic link library, can first judge to whether there is dynamic chain in the first memory space Library is connect, if it is present directly obtaining the second dynamic link library from the first memory space.
Or execute following steps:
Judge that first memory space whether there is dynamic link library, obtains the second judging result;
When second judging result is to be, whether the dynamic link library verified in first memory space is effective, Obtain verification result;
When the verification result is no or when second judging result is no, step is executed:Obtain the second dynamic Chained library.
During specific implementation, other applications distort the dynamic chain being stored in the first memory space in order to prevent Connect library, can in judging the first memory space there are dynamic link library after, to the dynamic link library in the first memory space It is verified, whether the dynamic link library verified in the first memory space is complete and effective, dynamic in the first memory space When state chained library is complete and effective, the second dynamic link library is directly obtained from the first memory space.Specific verification method can To be:It is just no longer superfluous herein because MD5 is the prior art using MD5 (Message Digest Algorithm MD5) It states.
If it is determined that there is no the dynamic links in the second dynamic link library or the first memory space for the first memory space Library is no longer valid or imperfect, thens follow the steps 12:The second dynamic link library is obtained, referring to FIG. 2, step 12 is specifically wrapped It includes:
Step 121:Third dynamic link library is obtained from memory space as defined in the application program;
Step 122:The third dynamic link library is copied to first memory space;
Step 123:Using the dynamic link library in first memory space as second dynamic link library.
Specifically, it is empty using storage as defined in operating system is stored in if application program is being run successfully before Between in the first dynamic link library, then the first memory space and run before there is no dynamic link library or application program It is successfully to utilize the dynamic link library being stored in the first memory space, but the dynamic link library in the first memory space is Failure is imperfect, and the dynamic link library for storing memory space as defined in application program is needed to be copied to the first storage at this time Space, as the second dynamic link library.
Because the embodiment of the present invention proposes that the memory space as defined in application program stores the dynamic chain of a set of application program Library is connect, so, third dynamic link library can be obtained from memory space as defined in application program, then by third dynamic link Library is copied to the first memory space, and application program is started using the dynamic link library in the first memory space, and then runs Success.
Specifically started using the dynamic link library in the first memory space, is specifically included:
Calling system interface loads second dynamic link library using the application program.
Specifically, operating system load the first dynamic link library failure after, application program can with calling system interface, Second dynamic link library is loaded by application program, the second dynamic link library can be stored in the first memory space in itself, Can also be to copy to the first memory space from the memory space that application program is specified.
Referring to FIG. 3, Fig. 3 is the detail flowchart of the method for load dynamic link library provided in an embodiment of the present invention.Add The method for carrying dynamic link library includes the following steps:
The first step:Receive the instruction of application program launching;
Second step:During os starting, operating system is waited for load the first dynamic link library;
Third walks:Obtain the state that operating system loads the first dynamic link library;
4th step:Judge whether the state that operating system loads the first dynamic link library has exception, if so, being transferred to the 5th Step, ends processing if not;
5th step:Judge that the first memory space whether there is dynamic link library, if it does, the 6th step is executed, if not In the presence of the 8th step of execution;
6th step:Whether the dynamic link library verified in the first memory space is effective, if effectively, executing the 7th step, such as Fruit is invalid, executes the 8th step;
7th step:Calling system interface loads the dynamic link library in the first memory space using application program;
8th step:Dynamic link library is obtained from memory space as defined in application program;
9th step:The dynamic link library obtained from memory space as defined in application program is copied to the first storage sky Between, it is transferred to the 7th step.
In the embodiment of the present invention, the version of the third dynamic link library is first version or the second edition, and the electricity The first version can be converted to the second edition that can be run on the electronic equipment by sub- equipment.
Specifically, since the dynamic link library of application program is divided into two sets of dynamic link libraries:It is corresponding with arm processor Dynamic link library and dynamic link library corresponding with X 86 processor, so the central processing unit in electronic equipment is arm processor And electronic equipment can will and the corresponding dynamic link library of X 86 processor be translated as dynamic link library corresponding with arm processor Under the premise of, the third dynamic link library stored in the memory space as defined in application program can be corresponding with X 86 processor Dynamic link library.Certainly, the third dynamic link library stored in the memory space as defined in application program can be at ARM Manage the corresponding dynamic link library of device.
Or in the central processing unit of electronic equipment it is that X 86 processor and electronic equipment can will be corresponding with arm processor Dynamic link library be translated as dynamic link library corresponding with X 86 processor under the premise of, stored as defined in application program empty Between the third dynamic link library of middle storage can be dynamic link library corresponding with arm processor.Certainly, it is provided in application program Memory space in the third dynamic link library that stores can be dynamic link library corresponding with X 86 processor.
In another embodiment of the present invention, before the second dynamic link library of the acquisition, the method further includes:
During os starting, version information is determined, the version information is can be in the electronic equipment The version of the dynamic link library of upper operation;
The second dynamic link library of the acquisition, including:
The third dynamic link library being consistent with the version information is obtained from memory space as defined in the application program, The third dynamic link library of at least two versions is stored in memory space as defined in the application program;
The third dynamic link library of acquisition is copied to first memory space;
Using the dynamic link library in first memory space as second dynamic link library.
Specifically, since the dynamic link library of application program is divided into two sets of dynamic link libraries:It is corresponding with arm processor Dynamic link library and dynamic link library corresponding with X 86 processor, thus electronic equipment can not be corresponding with X 86 processor Dynamic link library and dynamic link library corresponding with arm processor between mutually translate under the premise of, application program advise Fixed memory space will store two sets of dynamic link libraries:Dynamic link library corresponding with arm processor and corresponding with X 86 processor Dynamic link library.
During os starting, the dynamic link library that the central processing unit of electronic equipment can utilize is obtained Version information, namely it is arm processor or X 86 processor to obtain the central processing unit of electronic equipment, if electronic equipment Central processing unit is arm processor, then dynamic chain corresponding with arm processor is obtained from memory space as defined in application program Library is connect, the first memory space is then copied to;If the central processing unit of electronic equipment is X 86 processor, from application program Dynamic link library corresponding with X 86 processor is obtained in defined memory space, is then copied to the first memory space.
Based on inventive concept identical with information processing method shown in FIG. 1, the embodiment of the present invention additionally provides a kind of electricity Sub- equipment, referring to FIG. 4, Fig. 4 is the schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.Electronic equipment includes:
First judging unit 41 during being used for the os starting in the electronic equipment, judges to utilize institute Whether the state for stating operating system the first dynamic link library of load is abnormal, obtains the first judging result, wherein first dynamic Chained library is stored in memory space as defined in the operating system;
First obtains unit 42, for when first judging result is to be, obtaining the second dynamic link library, described the Two dynamic link libraries are stored in the first memory space, and first memory space is the application journey in the electronic equipment The occupied memory space of sequence application program described in start-up course;
Loading unit 43 is used for calling system interface, and second dynamic link library is loaded using the application program.
Optionally, the electronic equipment further includes:
Second judgment unit, for before the second dynamic link library of the acquisition, judging that first memory space is No there are dynamic link libraries, obtain the second judging result;
Authentication unit, for when second judging result is to be, verifying the dynamic chain in first memory space It whether effective connects library, obtains verification result;
Processing unit, for when the verification result is no or when second judging result is no, executing step: Obtain the second dynamic link library.
Optionally, the first obtains unit 42 includes:
First obtains module, for obtaining third dynamic link library from memory space as defined in the application program;
First replication module, for the third dynamic link library to be copied to first memory space;
First processing module, for using the dynamic link library in first memory space as second dynamic link Library.
Optionally, the version of the third dynamic link library is first version or the second edition, and the electronic equipment energy It is enough that the first version is converted into the second edition that can be run on the electronic equipment.
Optionally, the electronic equipment further includes:
Determination unit is used for before the second dynamic link library of the acquisition, during the os starting, Determine that version information, the version information are the version for the dynamic link library that can be run on the electronic equipment;
The first obtains unit 42 includes:
Second obtains module, is consistent with the version information for being obtained from memory space as defined in the application program Third dynamic link library, the third dynamic link of at least two versions is stored in memory space as defined in the application program Library;
Second replication module, for the third dynamic link library of acquisition to be copied to first memory space;
Second processing module, for using the dynamic link library in first memory space as second dynamic link Library.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
The specific implementation process of the method for the dynamic link library of loading application programs provided in an embodiment of the present invention is:It is first First, during os starting in the electronic equipment, judge to load the first dynamic chain using the operating system Whether the state for connecing library is abnormal, obtains the first judging result, wherein first dynamic link library is stored in the operating system Defined memory space;When first judging result is to be, the second dynamic link library, second dynamic link library are obtained It is stored in the first memory space, first memory space is the application program in the electronic equipment in start-up course Described in the occupied memory space of application program;Then, calling system interface loads described second using the application program Dynamic link library.
When the first dynamic link library exception in operating system load store memory space as defined in operating system, add The second dynamic link library being stored in the occupied memory space of application program application program in start-up course is carried, is improved The success rate of the dynamic link library of electronic equipment loading application programs.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of a kind of information processing method in the embodiment of the present application can be deposited It stores up on CD, hard disk, the storage mediums such as USB flash disk, when computer program corresponding with information processing method refers in storage medium It enables and is read or be performed by an electronic equipment, include the following steps:
During os starting in the electronic equipment, judge dynamic using operating system load first Whether the state of state chained library is abnormal, obtains the first judging result, wherein first dynamic link library is stored in the operation Memory space as defined in system;
When first judging result is to be, the second dynamic link library is obtained, second dynamic link library is stored in First memory space, first memory space are the application program in the electronic equipment described in start-up course The occupied memory space of application program;
Calling system interface loads second dynamic link library using the application program.
Optionally, be also stored with other computer instruction in the storage medium, these computer instructions with step Suddenly:The second dynamic link library is obtained, corresponding computer instruction, which is performed before, to be performed, and includes following step when executed Suddenly:
Judge that first memory space whether there is dynamic link library, obtains the second judging result;
When the judging result is to be, whether the dynamic link library verified in first memory space is effective, obtains Verification result;
When the verification result is no or when second judging result is no, step is executed:Obtain the second dynamic Chained library.
Optionally, stored in the storage medium and step:Obtain the second dynamic link library, corresponding computer instruction During specific be performed, specially:
Third dynamic link library is obtained from memory space as defined in the application program;
The third dynamic link library is copied to first memory space;
Using the dynamic link library in first memory space as second dynamic link library.
Optionally, the version of the third dynamic link library is first version or the second edition, and the electronic equipment energy It is enough that the first version is converted into the second edition that can be run on the electronic equipment.
Optionally, be also stored with other computer instruction in the storage medium, these computer instructions with step Suddenly:The second dynamic link library is obtained, corresponding computer instruction, which is performed before, to be performed, and includes following step when executed Suddenly:
During the application program launching, version information is determined, the version information is can be in the electronics The version of the dynamic link library run in equipment;
The second dynamic link library of the acquisition, including:
The third dynamic link library being consistent with the version information is obtained from memory space as defined in the application program, The third dynamic link library of at least two versions is stored in memory space as defined in the application program;
The third dynamic link library of acquisition is copied to first memory space;
Using the dynamic link library in first memory space as second dynamic link library.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of information processing method is applied in electronic equipment, the method includes:
During os starting in the electronic equipment, judge to load the first dynamic chain using the operating system Whether the state for connecing library is abnormal, obtains the first judging result, wherein first dynamic link library is stored in the operating system Defined memory space;
When first judging result is to be, the second dynamic link library is obtained, second dynamic link library is stored in first Memory space, first memory space are that the application program in the electronic equipment is applied described in start-up course The occupied memory space of program;
Calling system interface loads second dynamic link library using the application program.
2. the method as described in claim 1, which is characterized in that before the second dynamic link library of the acquisition, the method Further include:
Judge that first memory space whether there is dynamic link library, obtains the second judging result;
When second judging result is to be, whether the dynamic link library verified in first memory space is effective, obtains Verification result;
When the verification result is no or when second judging result is no, step is executed:Obtain the second dynamic link Library.
3. method as claimed in claim 2, which is characterized in that the second dynamic link library of the acquisition, including:
Third dynamic link library is obtained from memory space as defined in the application program;
The third dynamic link library is copied to first memory space;
Using the dynamic link library in first memory space as second dynamic link library.
4. method as claimed in claim 3, which is characterized in that the version of the third dynamic link library is first version or the Two versions, and the first version can be converted to can be run on the electronic equipment described by the electronic equipment Two versions.
5. the method as described in claim 1, which is characterized in that before the second dynamic link library of the acquisition, the method Further include:
During the os starting, version information is determined, the version information is can be in the electronic equipment The version of the dynamic link library of upper operation;
The second dynamic link library of the acquisition, including:
The third dynamic link library being consistent with the version information is obtained from memory space as defined in the application program, it is described The third dynamic link library of at least two versions is stored in memory space as defined in application program;
The third dynamic link library of acquisition is copied to first memory space;
Using the dynamic link library in first memory space as second dynamic link library.
6. a kind of electronic equipment, including:
First judging unit during being used for the os starting in the electronic equipment, judges to utilize the operation Whether the state of the first dynamic link library of system loads is abnormal, obtains the first judging result, wherein first dynamic link library It is stored in memory space as defined in the operating system;
First obtains unit, for when first judging result is to be, obtaining the second dynamic link library, second dynamic Chained library is stored in the first memory space, and first memory space is that the application program in the electronic equipment is opening The occupied memory space of application program during dynamic;
Loading unit is used for calling system interface, and second dynamic link library is loaded using the application program.
7. electronic equipment as claimed in claim 6, which is characterized in that the electronic equipment further includes:
Second judgment unit, for before the second dynamic link library of the acquisition, judging whether first memory space is deposited In dynamic link library, the second judging result is obtained;
Authentication unit, for when second judging result is to be, verifying the dynamic link library in first memory space Whether effectively, verification result is obtained;
Processing unit, for when the verification result is no or when second judging result is no, executing step:It obtains Second dynamic link library.
8. electronic equipment as claimed in claim 7, which is characterized in that the first obtains unit includes:
First obtains module, for obtaining third dynamic link library from memory space as defined in the application program;
First replication module, for the third dynamic link library to be copied to first memory space;
First processing module, for using the dynamic link library in first memory space as second dynamic link library.
9. electronic equipment as claimed in claim 8, which is characterized in that the version of the third dynamic link library is first version Or the second edition, and the first version can be converted to the institute that can be run on the electronic equipment by the electronic equipment State the second edition.
10. electronic equipment as claimed in claim 6, which is characterized in that the electronic equipment further includes:
Determination unit, for before the second dynamic link library of the acquisition, during the os starting, determining Version information, the version information are the version for the dynamic link library that can be run on the electronic equipment;
The first obtains unit includes:
Second obtains module, for obtaining be consistent with the version information the from memory space as defined in the application program Three dynamic link libraries are stored with the third dynamic link library of at least two versions in memory space as defined in the application program;
Second replication module, for the third dynamic link library of acquisition to be copied to first memory space;
Second processing module, for using the dynamic link library in first memory space as second dynamic link library.
CN201510144836.3A 2015-03-30 2015-03-30 A kind of information processing method and electronic equipment Active CN104731665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510144836.3A CN104731665B (en) 2015-03-30 2015-03-30 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510144836.3A CN104731665B (en) 2015-03-30 2015-03-30 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104731665A CN104731665A (en) 2015-06-24
CN104731665B true CN104731665B (en) 2018-08-31

Family

ID=53455578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510144836.3A Active CN104731665B (en) 2015-03-30 2015-03-30 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104731665B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783261B (en) * 2018-12-14 2023-06-06 平安科技(深圳)有限公司 Crash processing method and device for terminal application, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7739325B1 (en) * 2000-04-24 2010-06-15 Aspect Software, Inc. Apparatus and method for extensible real-time workflows
CN101930377A (en) * 2009-06-22 2010-12-29 深圳市融创天下科技发展有限公司 Link library compiling method by dynamically acquiring UID
CN102819439A (en) * 2011-06-10 2012-12-12 中兴通讯股份有限公司 Method and device of dynamically loading multi-system application programs based on relocation
CN102999354A (en) * 2012-11-15 2013-03-27 北京奇虎科技有限公司 File loading method and file loading device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7739325B1 (en) * 2000-04-24 2010-06-15 Aspect Software, Inc. Apparatus and method for extensible real-time workflows
CN101930377A (en) * 2009-06-22 2010-12-29 深圳市融创天下科技发展有限公司 Link library compiling method by dynamically acquiring UID
CN102819439A (en) * 2011-06-10 2012-12-12 中兴通讯股份有限公司 Method and device of dynamically loading multi-system application programs based on relocation
CN102999354A (en) * 2012-11-15 2013-03-27 北京奇虎科技有限公司 File loading method and file loading device

Also Published As

Publication number Publication date
CN104731665A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
JP6166839B2 (en) System and method for replacing application methods at runtime
US10031743B2 (en) Method and apparatus for kernel repair and patching
CN105786538B (en) software upgrading method and device based on android system
US9875175B2 (en) Unit-level formal verification for vehicular software systems
CN110995825B (en) Intelligent contract issuing method, intelligent node equipment and storage medium
CN104137057A (en) Generating and caching software code
CN108717374B (en) Method and device for preheating during starting of Java virtual machine and computer equipment
CN103177210A (en) Method of implanting dynamic stain analysis module in Android
CN104615933A (en) Method for preventing software decompilation and method and device for preventing decompilation software from starting
CN108509215A (en) System software replacing method and device, terminal equipment and storage medium
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
CN106909409A (en) A kind of method and device of the APK plug-in units for running application program
CN106909406A (en) A kind of method and device of the APK plug-in units of loading application programs
CN111090442B (en) Application updating method, device and storage medium
US20110209004A1 (en) Integrating templates into tests
CN109150956A (en) A kind of implementation method, device, equipment and computer storage medium pushing SDK
CN104731665B (en) A kind of information processing method and electronic equipment
EP4402589A1 (en) Pointer authentication failure detection
CN113902458A (en) Malicious user identification method and device and computer equipment
CN116679971A (en) Thermal repair method, device, electronic equipment and storage medium
CN113407490B (en) Method, device, electronic device and storage medium for exporting private directory files
US12093723B2 (en) Dynamically assigning applications to workspaces based on context
CN109656611A (en) Three-dimensional visualization applies hot update method, device and terminal
CN113590166A (en) Application program updating method and device and computer readable storage medium
KR101562282B1 (en) System and Method for Verifying Integrity of an ODEX

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant