CN108170491B - APP dynamic link library configuration method, terminal and computer readable storage medium - Google Patents
APP dynamic link library configuration method, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108170491B CN108170491B CN201711429632.XA CN201711429632A CN108170491B CN 108170491 B CN108170491 B CN 108170491B CN 201711429632 A CN201711429632 A CN 201711429632A CN 108170491 B CN108170491 B CN 108170491B
- Authority
- CN
- China
- Prior art keywords
- dynamic link
- link library
- app
- identification information
- matched
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method for configuring an APP dynamic link library, which comprises the following steps: when a first running instruction of any application program APP is received, judging whether any APP carries a preset dynamic link library or not; under the condition that any APP does not carry a preset dynamic link library, obtaining architecture identification information of a Central Processing Unit (CPU); and downloading a dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any APP is operated. The invention also discloses a terminal and a computer readable storage medium, by implementing the scheme, the capacity of the APP is effectively reduced, the speed of downloading the APP by the user is improved, the flow charge expense of downloading the APP through the wireless communication network is reduced, and the waste of the terminal system resources caused by the excessive occupation of the terminal system resources due to the overlarge capacity of the APP is avoided.
Description
Technical Field
The invention relates to the technical field of application programs, in particular to a configuration method of an APP dynamic link library, a terminal and a computer readable storage medium.
Background
At present, with the rapid development of a terminal, versions of an operating system (e.g., an Android system) in the terminal are also rapidly iterated, and more CPU (Central Processing Unit) architectures are required to be supported by an APP (Application) installed in the terminal. Therefore, after the dynamic link libraries (such as So libraries) corresponding to all the CPU architectures are packed into the APP, the storage capacity of the APP is greatly increased, and further, the traffic cost for downloading the APP is too high when the user uses the mobile internet; meanwhile, the storage capacity of the APP is too large, the APP occupies too large storage capacity of the terminal, and the APP occupies too large terminal system resources.
Disclosure of Invention
The invention provides a configuration method of an APP dynamic link library, a terminal and a computer readable storage medium, which are used for solving the problem that the APP storage capacity is overlarge due to the fact that an APP carries the dynamic link library matched with all CPU architectures in the prior art.
The technical scheme adopted by the invention is that the method for configuring the APP dynamic link library comprises the following steps:
when a first running instruction of any application program APP is received, judging whether any APP carries a preset dynamic link library or not;
under the condition that any APP does not carry a preset dynamic link library, obtaining architecture identification information of a Central Processing Unit (CPU);
and downloading a dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any AP is operated.
Optionally, the method further includes:
under the condition that any APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when any AP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any AP is operated.
Optionally, the downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the any AP is operated includes:
judging whether a dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any AP is operated;
otherwise, loading the preset dynamic link library when any AP is operated.
Optionally, the method further includes:
under the condition that any APP carries a preset dynamic link library, judging whether the dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any AP is operated;
otherwise, loading the preset dynamic link library when any AP is operated.
Optionally, the loading the preset dynamic link library when the any AP is running includes:
judging whether the CPU supports the preset dynamic link library or not according to the architecture identification information;
if the CPU is judged to support the preset dynamic link library, loading the preset dynamic link library when any AP is operated;
otherwise, stopping running any APP.
The invention also provides a terminal, which comprises a processor and a memory;
the processor is used for executing a configuration program of the dynamic link library stored in the memory so as to realize the following steps:
when a first running instruction of any application program APP is received, judging whether any APP carries a preset dynamic link library or not;
under the condition that any APP does not carry a preset dynamic link library, obtaining architecture identification information of a Central Processing Unit (CPU);
and downloading a dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any AP is operated.
Optionally, the processor is further configured to execute a configuration program of the dynamic link library to implement the following steps:
under the condition that any APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when any AP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any AP is operated.
Optionally, the downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the any AP is operated includes:
judging whether a dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any AP is operated;
otherwise, loading the preset dynamic link library when any AP is operated.
Optionally, the processor is further configured to execute a configuration program of the dynamic link library to implement the following steps:
under the condition that any APP carries a preset dynamic link library, judging whether the dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any AP is operated;
otherwise, loading the preset dynamic link library when any AP is operated.
Optionally, the loading the preset dynamic link library when the any AP is running includes:
judging whether the CPU supports the preset dynamic link library or not according to the architecture identification information;
if the CPU is judged to support the preset dynamic link library, loading the preset dynamic link library when any AP is operated;
otherwise, stopping running any APP.
The present invention also provides a computer readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the above-mentioned method for configuring an APP dynamic link library.
By adopting the technical scheme, the invention at least has the following advantages:
the method for configuring the APP dynamic link library, the terminal and the computer readable storage medium effectively reduce the storage capacity of the APP, improve the speed of downloading the APP by a user, reduce the flow charge overhead of downloading the APP through a wireless communication network, and avoid the excessive occupation of terminal system resources caused by the overlarge storage capacity of the APP and the further waste of the terminal system resources.
Drawings
FIG. 1 is a flowchart of a configuration method of an APP dynamic link library according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for configuring an APP dynamic link library according to a second embodiment, a third embodiment and a fifth embodiment of the present invention;
FIG. 3 is a flowchart of a method for configuring an APP dynamic link library according to a fourth and sixth embodiment of the present invention;
fig. 4 is a schematic structural view of a terminal assembly according to seventh to twelfth embodiments of the present invention;
fig. 5 is a flowchart of a method for configuring an APP dynamic link library according to a fourteenth embodiment of the present invention.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the intended purpose, the present invention will be described in detail with reference to the accompanying drawings and preferred embodiments.
A first embodiment of the present invention provides a method for configuring an APP dynamic link library, as shown in fig. 1, including the following specific steps:
step S101, when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
Optionally, the preset dynamic link library is a So library.
Step S102, acquiring architecture identification information of a Central Processing Unit (CPU) when the APP does not carry a preset dynamic link library.
Step S103, downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, step S103 includes:
and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
According to the method for configuring the APP dynamic link library, the APP and the dynamic link library corresponding to the APP are downloaded respectively, so that the storage capacity of the APP is effectively reduced, the speed of downloading the APP by a user is improved, the flow charge overhead of downloading the APP through a wireless communication network is reduced, the phenomenon that the terminal system resources are excessively occupied due to the fact that the storage capacity of the APP is too large, the waste of the terminal system resources is caused, the utilization rate of the terminal system resources is improved, and the operation efficiency of the APP is improved.
A second embodiment of the present invention provides a method for configuring an APP dynamic link library, as shown in fig. 2, including the following specific steps:
step S201, when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
Step S202, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, step S202 includes:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Step S203, under the condition that the APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the APP is operated.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
In the method for configuring the APP dynamic link library according to the second embodiment of the present invention, by downloading the APP and the dynamic link library corresponding to the APP respectively, the storage capacity of the APP is effectively reduced, the speed of downloading the APP by the user is increased, the traffic cost of downloading the APP through the wireless communication network is reduced, the terminal system resource waste caused by the excessive occupation of the terminal system resources due to the excessive storage capacity of the APP is avoided, the utilization rate of the terminal system resources is increased, and the operating efficiency of the APP is increased.
A third embodiment of the present invention provides a method for configuring an APP dynamic link library, as shown in fig. 2, including the following specific steps:
step S201, when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
Step S202, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, step S202 includes:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Step S203, under the condition that the APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the APP is operated.
Optionally, the method of downloading the dynamic link library matched with the architecture identification information and loading the dynamic link library matched with the architecture identification information when running the APP includes:
judging whether a dynamic link library matched with the framework identification information can be downloaded or not;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated;
otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
In the method for configuring an APP dynamic link library according to the third embodiment of the present invention, by downloading the APP and the dynamic link library corresponding to the APP, the storage capacity of the APP is effectively reduced, the speed of downloading the APP by the user is increased, the traffic cost of downloading the APP through the wireless communication network is reduced, the terminal system resource waste caused by the excessive occupation of the terminal system resources due to the excessive storage capacity of the APP is avoided, the utilization rate of the terminal system resources is increased, and the operating efficiency of the APP is increased.
A fourth embodiment of the present invention provides a method for configuring an APP dynamic link library, as shown in fig. 3, including the following specific steps:
step S401, when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
Step S402, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, step S402 includes:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Step S403, judging whether the dynamic link library matched with the architecture identification information can be downloaded under the condition that the APP carries a preset dynamic link library; if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated; otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
In the method for configuring an APP dynamic link library according to the fourth embodiment of the present invention, by downloading the APP and the dynamic link library corresponding to the APP, the storage capacity of the APP is effectively reduced, the speed of downloading the APP by the user is increased, the traffic cost of downloading the APP through the wireless communication network is reduced, the terminal system resource waste caused by the excessive occupation of the terminal system resources due to the excessive storage capacity of the APP is avoided, the utilization rate of the terminal system resources is increased, and the operating efficiency of the APP is increased.
A fifth embodiment of the present invention provides a method for configuring an APP dynamic link library, as shown in fig. 2, including the following specific steps:
step S201, when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
Step S202, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, step S202 includes:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Step S203, under the condition that the APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the APP is operated.
Optionally, the method of downloading the dynamic link library matched with the architecture identification information and loading the dynamic link library matched with the architecture identification information when running the APP includes:
judging whether a dynamic link library matched with the framework identification information can be downloaded or not;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated;
otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, loading a preset dynamic link library when running the APP, including:
judging whether the CPU supports a preset dynamic link library or not according to the architecture identification information;
if the CPU supports the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, the APP stops running.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
In the method for configuring an APP dynamic link library according to the fifth embodiment of the present invention, by downloading the APP and the dynamic link library corresponding to the APP respectively, the storage capacity of the APP is effectively reduced, the speed of downloading the APP by the user is increased, the traffic cost of downloading the APP through the wireless communication network is reduced, the terminal system resource waste caused by the excessive occupation of the terminal system resources due to the excessive storage capacity of the APP is avoided, the utilization rate of the terminal system resources is increased, and the operating efficiency of the APP is increased.
A sixth embodiment of the present invention provides a method for configuring an APP dynamic link library, as shown in fig. 3, including the following specific steps:
step S401, when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
Step S402, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, step S402 includes:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Step S403, judging whether the dynamic link library matched with the architecture identification information can be downloaded under the condition that the APP carries a preset dynamic link library; if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated; otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, loading a preset dynamic link library when running the APP, including:
judging whether the CPU supports a preset dynamic link library or not according to the architecture identification information;
if the CPU supports the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, the APP stops running.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
In the method for configuring an APP dynamic link library according to the sixth embodiment of the present invention, by downloading the APP and the dynamic link library corresponding to the APP respectively, the storage capacity of the APP is effectively reduced, the speed of downloading the APP by the user is increased, the traffic cost of downloading the APP through the wireless communication network is reduced, the terminal system resource waste caused by the excessive occupation of the terminal system resources due to the excessive storage capacity of the APP is avoided, the utilization rate of the terminal system resources is increased, and the operating efficiency of the APP is increased.
A seventh embodiment of the present invention, a terminal, as shown in fig. 4, includes the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform the following operations:
1) when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
Optionally, the preset dynamic link library is a So library.
2) Under the condition that the APP does not carry a preset dynamic link library, architecture identification information of a Central Processing Unit (CPU) is obtained.
3) And downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, the method of downloading the dynamic link library matched with the architecture identification information of the CPU and loading the dynamic link library matched with the architecture identification information of the CPU when running the APP includes:
and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
The terminal according to the seventh embodiment of the present invention effectively reduces the storage capacity of the APP by downloading the APP and the dynamic link library corresponding to the APP, increases the speed of downloading the APP by the user, reduces the traffic cost of downloading the APP through the wireless communication network, avoids the excessive occupation of the terminal system resources caused by the excessive storage capacity of the APP, further avoids the waste of the terminal system resources, increases the utilization rate of the terminal system resources, and increases the operation efficiency of the APP.
An eighth embodiment of the present invention is a terminal, as shown in fig. 4, including the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform the following operations:
1) when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
2) Under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of the CPU; the mode of downloading the dynamic link library matched with the architecture identification information of the CPU and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated comprises the following steps:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
3) Under the condition that the APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the APP is operated.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
The terminal according to the eighth embodiment of the present invention effectively reduces the storage capacity of the APP by downloading the APP and the dynamic link library corresponding to the APP, increases the speed of downloading the APP by the user, reduces the traffic cost of downloading the APP through the wireless communication network, avoids the excessive occupation of the terminal system resources caused by the excessive storage capacity of the APP, further avoids the waste of the terminal system resources, increases the utilization rate of the terminal system resources, and increases the operation efficiency of the APP.
A ninth embodiment of the present invention is a terminal, as shown in fig. 4, including the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform the following operations:
1) when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
2) Under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of the CPU; the mode of downloading the dynamic link library matched with the architecture identification information of the CPU and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated comprises the following steps:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
3) Under the condition that the APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the APP is operated.
Optionally, the method of downloading the dynamic link library matched with the architecture identification information and loading the dynamic link library matched with the architecture identification information when running the APP includes:
judging whether a dynamic link library matched with the framework identification information can be downloaded or not;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated;
otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
The terminal according to the ninth embodiment of the present invention effectively reduces the storage capacity of the APP by downloading the APP and the dynamic link library corresponding to the APP, increases the speed of downloading the APP by the user, reduces the traffic cost of downloading the APP through the wireless communication network, avoids the excessive occupation of the terminal system resources caused by the excessive storage capacity of the APP, further avoids the waste of the terminal system resources, increases the utilization rate of the terminal system resources, and increases the operation efficiency of the APP.
A tenth embodiment of the present invention is a terminal, as shown in fig. 4, including the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform the following operations:
1) when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
2) Under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of the CPU; the mode of downloading the dynamic link library matched with the architecture identification information of the CPU and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated comprises the following steps:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
3) Under the condition that the APP carries a preset dynamic link library, judging whether the dynamic link library matched with the framework identification information can be downloaded; if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated; otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
The terminal according to the tenth embodiment of the present invention effectively reduces the storage capacity of the APP by downloading the APP and the dynamic link library corresponding to the APP, increases the speed of downloading the APP by the user, reduces the traffic cost of downloading the APP through the wireless communication network, avoids the excessive occupation of the terminal system resources caused by the excessive storage capacity of the APP, further avoids the waste of the terminal system resources, increases the utilization rate of the terminal system resources, and increases the operation efficiency of the APP.
An eleventh embodiment of the present invention, a terminal, as shown in fig. 4, includes the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform the following operations:
1) when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
2) Under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of the CPU; the mode of downloading the dynamic link library matched with the architecture identification information of the CPU and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated comprises the following steps:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Step 3) under the condition that the APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when the APP is operated.
Optionally, the method of downloading the dynamic link library matched with the architecture identification information and loading the dynamic link library matched with the architecture identification information when running the APP includes:
judging whether a dynamic link library matched with the framework identification information can be downloaded or not;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated;
otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, loading a preset dynamic link library when running the APP, including:
judging whether the CPU supports a preset dynamic link library or not according to the architecture identification information;
if the CPU supports the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, the APP stops running.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
The terminal according to the eleventh embodiment of the present invention effectively reduces the storage capacity of the APP by downloading the APP and the dynamic link library corresponding to the APP, increases the speed of downloading the APP by the user, reduces the traffic cost of downloading the APP through the wireless communication network, avoids the excessive occupation of the terminal system resources caused by the excessive storage capacity of the APP, further avoids the waste of the terminal system resources, increases the utilization rate of the terminal system resources, and increases the operation efficiency of the APP.
A twelfth embodiment of the present invention is a terminal, as shown in fig. 4, including the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform the following operations:
1) when a first running instruction of any APP is received, whether the APP carries a preset dynamic link library is judged.
2) Under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of a CPU; and downloading the dynamic link library matched with the architecture identification information of the CPU, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
Optionally, under the condition that the APP does not carry a preset dynamic link library, obtaining architecture identification information of the CPU; the mode of downloading the dynamic link library matched with the architecture identification information of the CPU and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated comprises the following steps:
acquiring architecture identification information of a CPU (Central processing Unit) under the condition that the APP does not carry a preset dynamic link library; and downloading a dynamic link library matched with the architecture identification information of the CPU based on the downloading address information of the dynamic link library preset in the APP, and loading the dynamic link library matched with the architecture identification information of the CPU when the APP is operated.
3) Under the condition that the APP carries a preset dynamic link library, judging whether the dynamic link library matched with the framework identification information can be downloaded; if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when the APP is operated; otherwise, loading a preset dynamic link library when the APP is operated.
Optionally, loading a preset dynamic link library when running the APP, including:
judging whether the CPU supports a preset dynamic link library or not according to the architecture identification information;
if the CPU supports the preset dynamic link library, loading the preset dynamic link library when the APP is operated;
otherwise, the APP stops running.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
The terminal according to the twelfth embodiment of the present invention effectively reduces the storage capacity of the APP by downloading the APP and the dynamic link library corresponding to the APP, increases the speed of downloading the APP by the user, reduces the traffic cost of downloading the APP through the wireless communication network, avoids the excessive occupation of the terminal system resources caused by the excessive storage capacity of the APP, further avoids the waste of the terminal system resources, increases the utilization rate of the terminal system resources, and increases the operation efficiency of the APP.
A thirteenth embodiment of the present invention is a computer-readable storage medium.
The computer storage media may be RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
The computer readable storage medium stores one or more programs which are executable by one or more processors to implement some or all of the steps in any of the first to sixth embodiments of the present invention.
The computer-readable storage medium according to the thirteenth embodiment of the present invention effectively reduces the storage capacity of the APP, improves the speed of downloading the APP by the user, reduces the traffic cost of downloading the APP through the wireless communication network, avoids the excessive occupation of the terminal system resources due to the excessive storage capacity of the APP, improves the utilization rate of the terminal system resources, and improves the operating efficiency of the APP by downloading the APP and the dynamic link library corresponding to the APP.
A fourteenth embodiment of the present invention is, on the basis of the foregoing embodiments, an application example of the present invention is described with reference to fig. 5 by taking a configuration method of an APP dynamic link library as an example.
Step 1401, when receiving a first running instruction of any APP, obtaining architecture identification information of the CPU.
Step S1402 downloads the dynamic link library matched with the architecture identification information of the CPU.
In step S1403, in the case of downloading the dynamic link library matching the architecture identification information of the CPU, the dynamic link library matching the architecture identification information of the CPU is loaded when the APP is run.
Step S1404, under the condition that the dynamic link library matched with the architecture identification information of the CPU cannot be downloaded, detecting whether the CPU supports a preset dynamic link library in the APP;
if the CPU supports the preset dynamic link library in the APP, loading the preset dynamic link library when the APP is operated;
otherwise, exiting the APP.
Optionally, the preset dynamic link library is a So library of an armeabi architecture.
In the method for configuring an APP dynamic link library according to the fourteenth embodiment of the present invention, by downloading the APP and the dynamic link library corresponding to the APP respectively, the storage capacity of the APP is effectively reduced, the speed of downloading the APP by the user is increased, the traffic cost of downloading the APP through the wireless communication network is reduced, the terminal system resource waste caused by the excessive occupation of the terminal system resources due to the excessive storage capacity of the APP is avoided, the utilization rate of the terminal system resources is increased, and the operating efficiency of the APP is increased.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (9)
1. A configuration method of an application program APP dynamic link library is characterized by comprising the following steps:
when a first running instruction of any APP is received, judging whether the APP carries a preset dynamic link library or not;
under the condition that any APP does not carry a preset dynamic link library, obtaining architecture identification information of a Central Processing Unit (CPU);
downloading a dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any APP is operated;
under the condition that any APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when any APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any APP is operated.
2. The method of claim 1, wherein the downloading the dynamically linked library matching the architecture identification information and loading the dynamically linked library matching the architecture identification information while running any of the APPs comprises:
judging whether a dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any APP is operated;
otherwise, loading the preset dynamic link library when any APP is operated.
3. The method of claim 1, further comprising:
under the condition that any APP carries a preset dynamic link library, judging whether the dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any APP is operated;
otherwise, loading the preset dynamic link library when any APP is operated.
4. The method according to claim 2 or 3, wherein said loading said pre-defined dynamic link library while running said any APP comprises:
judging whether the CPU supports the preset dynamic link library or not according to the architecture identification information;
if the CPU is judged to support the preset dynamic link library, loading the preset dynamic link library when any APP is operated;
otherwise, stopping running any APP.
5. A terminal, characterized in that the terminal comprises a processor and a memory;
the processor is used for executing a configuration program of the dynamic link library stored in the memory so as to realize the following steps:
when a first running instruction of any application program APP is received, judging whether any APP carries a preset dynamic link library or not;
under the condition that any APP does not carry a preset dynamic link library, obtaining architecture identification information of a Central Processing Unit (CPU);
downloading a dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any APP is operated;
the processor is further configured to execute a configuration program of the dynamic link library to implement the following steps:
under the condition that any APP carries a preset dynamic link library, judging whether the architecture identification information is matched with the preset dynamic link library or not based on the mapping relation between the preset architecture identification information and the dynamic link library;
if the framework identification information is judged to be matched with the preset dynamic link library, loading the preset dynamic link library when any APP is operated;
otherwise, downloading the dynamic link library matched with the architecture identification information, and loading the dynamic link library matched with the architecture identification information when any APP is operated.
6. The terminal of claim 5, wherein the downloading the dynamic link library matching with the architecture identification information and loading the dynamic link library matching with the architecture identification information when running any of the APPs comprises:
judging whether a dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any APP is operated;
otherwise, loading the preset dynamic link library when any APP is operated.
7. The terminal of claim 5, wherein the processor is further configured to execute a configuration procedure of the dynamic link library to implement the following steps:
under the condition that any APP carries a preset dynamic link library, judging whether the dynamic link library matched with the architecture identification information can be downloaded;
if the dynamic link library matched with the architecture identification information can be downloaded, loading the dynamic link library matched with the architecture identification information when any APP is operated;
otherwise, loading the preset dynamic link library when any APP is operated.
8. The terminal according to claim 6 or 7, wherein the loading the preset dynamic link library when running any APP comprises:
judging whether the CPU supports the preset dynamic link library or not according to the architecture identification information;
if the CPU is judged to support the preset dynamic link library, loading the preset dynamic link library when any APP is operated;
otherwise, stopping running any APP.
9. A computer readable storage medium, storing one or more programs, which are executable by one or more processors, to implement the steps of the method for configuring an APP dynamic link library according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711429632.XA CN108170491B (en) | 2017-12-26 | 2017-12-26 | APP dynamic link library configuration method, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711429632.XA CN108170491B (en) | 2017-12-26 | 2017-12-26 | APP dynamic link library configuration method, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108170491A CN108170491A (en) | 2018-06-15 |
CN108170491B true CN108170491B (en) | 2022-01-28 |
Family
ID=62520972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711429632.XA Active CN108170491B (en) | 2017-12-26 | 2017-12-26 | APP dynamic link library configuration method, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108170491B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656571A (en) * | 2018-09-27 | 2019-04-19 | 深圳壹账通智能科技有限公司 | Loading method, device, terminal and computer readable storage medium |
CN111597570B (en) * | 2020-05-19 | 2023-04-07 | 展讯半导体(南京)有限公司 | Application program reinforcing method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561763A (en) * | 2009-04-30 | 2009-10-21 | 腾讯科技(北京)有限公司 | Method and device for realizing dynamic-link library |
CN103235722A (en) * | 2013-04-19 | 2013-08-07 | 南京莱斯信息技术股份有限公司 | ActiveX control framework technology achieving method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100552628C (en) * | 2005-09-02 | 2009-10-21 | 腾讯科技(深圳)有限公司 | In vedio on radio binary operation environment Platform Implementation dynamic link library method |
CN101820361B (en) * | 2010-03-26 | 2014-08-13 | 中兴通讯股份有限公司 | Method and device for managing multi-protocol communication components |
CN102664874B (en) * | 2012-03-29 | 2016-08-03 | 北京奇虎科技有限公司 | A kind of method and system for secure logging in |
US9443031B2 (en) * | 2014-02-13 | 2016-09-13 | Apteryx, Inc. | System and method to capture an image over the web |
CN105389182A (en) * | 2015-11-02 | 2016-03-09 | 广州华多网络科技有限公司 | Software upgrading method and apparatus |
-
2017
- 2017-12-26 CN CN201711429632.XA patent/CN108170491B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561763A (en) * | 2009-04-30 | 2009-10-21 | 腾讯科技(北京)有限公司 | Method and device for realizing dynamic-link library |
CN103235722A (en) * | 2013-04-19 | 2013-08-07 | 南京莱斯信息技术股份有限公司 | ActiveX control framework technology achieving method |
Also Published As
Publication number | Publication date |
---|---|
CN108170491A (en) | 2018-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108181B (en) | Function updating method and device of application program and computer readable storage medium | |
CN106569844B (en) | Processing method, device and equipment for updating program code | |
EP2907099B1 (en) | Testing framework for applications | |
CN105335187B (en) | Application processing method and device | |
US10713091B2 (en) | Streaming program execution method of intelligent terminal | |
CN108121594B (en) | Process management method and device | |
CN107193609B (en) | Function module calling method and device in application and electronic equipment | |
WO2021120327A1 (en) | Firmware updating method and apparatus, and headset and computer readable storage medium | |
CN104375849A (en) | Core loading method and device | |
CN109933350B (en) | Method and device for embedding codes in application and electronic equipment | |
CN108170491B (en) | APP dynamic link library configuration method, terminal and computer readable storage medium | |
CN111625260A (en) | Method and system based on mixed mobile application program upgrading | |
CN106293849B (en) | application updating method and terminal | |
CN110837391B (en) | Application program hot updating method and device, storage medium and electronic equipment | |
CN105740027A (en) | Application program updating method and device | |
CN106598662B (en) | Android-based application loading method and device | |
CN109213533B (en) | Advertisement SDK dynamic loading method, device and terminal | |
CN108595192B (en) | Application program installation method and terminal equipment | |
CN102377793B (en) | Flash interaction method and device based on mobile communication equipment terminal | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN113031996A (en) | OTA (over the air) upgrading method and device of electronic equipment, control terminal and medium | |
CN107179918B (en) | Software processing method, device and system | |
US7328007B2 (en) | System and method for organizing wireless communication device system software | |
CN112395034A (en) | Page display method and device, electronic equipment and storage medium | |
WO2015007183A1 (en) | Methods for adapting a dual-sim terminal, dual-sim terminal, and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |