CN108595226A - Dynamic loading method, device and computer readable storage medium - Google Patents

Dynamic loading method, device and computer readable storage medium Download PDF

Info

Publication number
CN108595226A
CN108595226A CN201810437000.6A CN201810437000A CN108595226A CN 108595226 A CN108595226 A CN 108595226A CN 201810437000 A CN201810437000 A CN 201810437000A CN 108595226 A CN108595226 A CN 108595226A
Authority
CN
China
Prior art keywords
files
apk
linker
dynamic load
dynamic
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.)
Granted
Application number
CN201810437000.6A
Other languages
Chinese (zh)
Other versions
CN108595226B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810437000.6A priority Critical patent/CN108595226B/en
Publication of CN108595226A publication Critical patent/CN108595226A/en
Application granted granted Critical
Publication of CN108595226B publication Critical patent/CN108595226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of dynamic loading method, device and computer readable storage mediums, belong to field of computer technology.The method includes:During intended application is run, the dynamic load Android installation kit APK of intended application is obtained from specified folder, dynamic load APK includes at least one sharing DLL SO files, and dynamic load APK is the APK for carrying out silent load during intended application is run for terminal of intended application;SO file linkers are run, SO file linkers are obtained after being installed to the SO file linkers APK that server is sent;SO files are loaded from dynamic load APK by SO files linker.Technical solution provided by the present application can improve the success rate of APK dynamic loads, ensure the reliability of APK dynamic loads.

Description

Dynamic loading method, device and computer readable storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of dynamic loading method, device and computer-readable deposit Storage media.
Background technology
APK (Android Package, Android installation kit) Dynamic loading technique is a kind of quiet during application operation The silent technology for loading APK, wherein usually the APK for carrying out silent load using APK Dynamic loading techniques can be known as dynamic and added Carry APK.For example, when needing to upgrade application, terminal can download the APK applied after upgrading from server and (that is to say Dynamic load APK), and during application operation, the APK applied after the upgrading is loaded using APK Dynamic loading techniques, from And achieve the effect that upgrade application under the premise of not interfering user.Under normal conditions, APK includes SO (shared Object, sharing DLL) file, load the important link that the SO files in APK are APK Dynamic loading techniques.
In the related technology, during dynamic load, terminal can unzip it dynamic load APK processing, and Multiple files that decompression obtains are stored into specified folder, then, terminal can one by one be loaded with calling system interface should Decompress the SO files that obtained multiple files include.
Since system interface is only capable of loading the SO files obtained after decompression, the relevant technologies are into action When state loads, need to unzip it processing to APK.However, during decompression it is easy to appear de-compression failure or After decompression the problem of file corruption, simultaneously as terminal is required for calling primary system interface when loading every SO files, Therefore, the relevant technologies are likely to require frequent calling system interface in a short time when carrying out dynamic load, these all can shadow The success rate for ringing APK dynamic loads, causes the reliability of APK dynamic loads relatively low.
Apply for content
The embodiment of the present application provides a kind of dynamic loading method, device and computer readable storage medium, can solve The relatively low problem of APK dynamic load reliabilities.The technical solution is as follows:
On the one hand, a kind of dynamic loading method is provided, the method includes:
During intended application is run, the dynamic load Android peace of the intended application is obtained from specified folder Dress packet APK, the dynamic load APK includes at least one sharing DLL SO files, and the dynamic load APK is described The APK for carrying out silent load during the intended application is run for terminal of intended application;
SO file linkers are run, the SO files linker is carried out to the SO file linkers APK that server is sent It is obtained after installation;
SO files are loaded from the dynamic load APK by the SO files linker.
On the one hand, a kind of dynamic loading device is provided, described device includes:
Acquisition module, for during intended application is run, the intended application to be obtained from specified folder Dynamic load Android installation kit APK, the dynamic load APK include at least one sharing DLL SO files, described dynamic State load APK is the intended application for carrying out silent load during the intended application is run for terminal APK;
Module is run, for running SO file linkers, the SO files linker is the SO files sent to server What linker APK was obtained after being installed;
First load-on module, for loading SO files from the dynamic load APK by the SO files linker.
On the one hand, provide a kind of terminal, the terminal includes processor and memory, be stored in the memory to A few instruction, described instruction are loaded by the processor and are executed to realize dynamic load side provided by the embodiments of the present application Method.
On the one hand, provide a kind of computer readable storage medium, be stored in the computer readable storage medium to A few instruction, described instruction are loaded by processor and are executed to realize dynamic loading method provided by the embodiments of the present application.
The advantageous effect that technical solution provided by the embodiments of the present application is brought is:
By the way that during dynamic load APK, SO texts are loaded directly from dynamic load APK using SO files linker Part, wherein the SO file linkers are obtained after being installed to the SO file linkers APK that server is sent so that eventually End need not unzip it dynamic load APK in dynamic load APK processing, also not need calling system interface, to The success rate of APK dynamic loads can be improved, ensures the reliability of APK dynamic loads.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment provided by the embodiments of the present application.
Fig. 2 is a kind of flow chart of dynamic loading method provided by the embodiments of the present application.
Fig. 3 is a kind of flow chart of dynamic loading method provided by the embodiments of the present application.
Fig. 4 is a kind of flow chart of dynamic loading method provided by the embodiments of the present application.
Fig. 5 is a kind of flow chart of dynamic loading method provided by the embodiments of the present application.
Fig. 6 is a kind of structural schematic diagram of dynamic loading device provided by the embodiments of the present application.
Fig. 7 is a kind of structural schematic diagram of dynamic loading device provided by the embodiments of the present application.
Fig. 8 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Currently, APK (Android Package, Android installation kit) Dynamic loading technique is increasingly common.Example Such as, terminal can upgrade application using APK Dynamic loading techniques, in another example, when there is loophole in application, server The APK of reparation can be issued in terminal, during application operation, terminal can utilize APK Dynamic loading techniques The APK for loading the reparation, to repair using loophole, in another example, need certain functions that are of little use using application in user When, terminal can be from server download function modules A PK, during application operation, and terminal can utilize APK dynamic loads Technology loads function module APK, and function to be used is needed to provide to the user.
Under normal conditions, it in APK may include SO (Shared Object, sharing DLL) files and dex (Dalvik VM executes, Dalvik virtual machine executable program) file.Wherein, SO files are alternatively referred to as local library (English Text:Native library) file is Android (English:It is Android) a kind of in system to be write using C language or C Plus Plus, The binary file compiled using NDK (Native Development Kit, primary development kit), is similar to Dll (Dynamic Link Library, dynamic link library) file in Windows systems.Dex files are by multiple classes (English: Class) file forms, and is a kind of executable file in Android system, the exe being similar in Windows systems (executable program, executable program) file.In practical application, dex files can call during execution SO files, to realize the function of SO files, wherein during dynamic load, the dex files in dynamic load APK are in quilt The SO files after being loaded in dynamic load APK can be called after load, to realize the function of SO files in dynamic load APK.
In the related technology, during APK dynamic loads, dynamic load APK can be unziped it processing by terminal, And store multiple files that decompression obtains into specified folder, then, terminal can be with calling system interface (English: System API) SO files in the specified folder are loaded one by one, wherein a SO file is often loaded, terminal is required for adjusting With primary system interface.
Since the relevant technologies need to unzip it processing to dynamic load APK when carrying out APK dynamic loads, and, It is required for calling primary system interface when loading every SO files, therefore, it is easy to appear dynamic load APK decompressions for the relevant technologies After contracting failure or decompression the problem of file corruption, meanwhile, the relevant technologies are likely to require frequent calling system in a short time Interface, these can all influence the success rate of APK dynamic loads, cause the reliability of APK dynamic loads relatively low.
The embodiment of the present application provides a kind of dynamic loading method, which can utilize SO file linkers SO files are loaded directly from dynamic load APK, this allows for terminal need not be to dynamic load APK in dynamic load APK Processing is unziped it, calling system interface is not needed yet, is damaged so as to avoid the occurrence of file after de-compression failure, decompression The problem of bad and frequent calling system interface, therefore, it is dynamic that dynamic loading method provided by the embodiments of the present application can improve APK The success rate of state load, ensures the reliability of APK dynamic loads.Further, since dynamic load side provided by the embodiments of the present application Method (need not that is to say serially) and be loaded to the SO files in dynamic load APK one by one, therefore, it is possible to reduce to dynamic It loads APK and carries out taking for dynamic load, improve the efficiency of APK dynamic loads.
In the following, by being illustrated to the implementation environment involved by dynamic loading method provided by the embodiments of the present application.
Fig. 1 is a kind of schematic diagram of implementation environment involved by dynamic loading method provided by the embodiments of the present application, such as Shown in Fig. 1, which may include terminal 101 and server 102.Wherein, terminal 101 and server 102 can pass through Wired or wireless mode is communicated, and terminal 101 can be smart mobile phone, computer, tablet computer, wearable device, MP3 Player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio Level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound Frequency level 4) player, E-book reader or mobile unit etc., terminal 101 can be equipped with Android operation system and at least One application, server 102 can be a server, or the server cluster being made of multiple servers.
Referring to FIG. 2, it illustrates a kind of flow chart of dynamic loading method provided by the embodiments of the present application, which adds Support method can be applied in the terminal 101 in Fig. 1.As shown in Fig. 2, the dynamic loading method may comprise steps of:
Step 201, during intended application is run, the dynamic that terminal obtains intended application from specified folder adds Carry APK.
The intended application can be any application for installing in terminal, for example, the intended application can be browser application, Video playing application, social networking application or instant messaging application etc..Dynamic load APK is to be carried out using APK Dynamic loading techniques The APK of silence load, that is to say, dynamic load APK is the process for being run in intended application for terminal of intended application The middle APK for carrying out silent load, dynamic load APK are the APK without decompression, dynamic load APK be according to The APK that APK encapsulation format is packaged, dynamic load APK are the compressed package files in Android system, dynamic load APK Can be the APK applied after upgrading, the APK or function module APK etc. of reparation, dynamic load APK may include at least One SO file, optionally, in the embodiment of the present application, dynamic load APK can also include at least one dex files.
It should be pointed out that in the embodiment of the present application, when intended application is browser application, dynamic load APK Can be browser kernel APK.
Step 202, terminal operating SO file linkers.
SO files linker (English:Linker it is) a kind of for loading the tool classes of SO files in Android system Sequence.In the embodiment of the present application, SO files linker can be that the SO file linkers APK that terminal-pair server is sent is pacified It is obtained after dress, which can be madness SO files linker (English:crazy linker).
Step 203, terminal load SO files by SO files linker from dynamic load APK.
In conclusion dynamic loading method provided by the embodiments of the present application, by during dynamic load APK, profit SO files are loaded directly from dynamic load APK with SO files linker, wherein the SO file linkers are sent to server SO file linkers APK installed after obtain so that terminal need not be to dynamic load APK in dynamic load APK Processing is unziped it, calling system interface is not needed yet, so as to improve the success rate of APK dynamic loads, ensures that APK is dynamic The reliability of state load.
Referring to FIG. 3, it illustrates a kind of flow chart of dynamic loading method provided by the embodiments of the present application, which adds Support method can be applied in the terminal 101 in Fig. 1.As shown in figure 3, the dynamic loading method may comprise steps of:
Step 301, terminal download the dynamic load APK of intended application from server, and by dynamic load APK store to In specified folder.
As described above, terminal can download dynamic load APK when needing to upgrade intended application from server, Dynamic load APK can be the APK of the intended application after upgrading, and in subsequent step, terminal can be by adding the dynamic It carries APK and carries out dynamic load and escalation target application.Terminal can also receive server when intended application starts a leak and issue Dynamic load APK, dynamic load APK can be the APK of reparation, and in subsequent step, terminal can be by dynamic to this State loads APK progress dynamic loads and repairs the loophole of intended application.Terminal can also be needed in user using intended application It is a certain be of little use function when from server download dynamic load APK, dynamic load APK can be function module APK, rear In continuous step, terminal can provide the function that is of little use to the user by carrying out dynamic load to dynamic load APK.When So, in the embodiment of the present application, terminal can also download the dynamic load of intended application under other opportunitys from server APK, the embodiment of the present application just do not repeat one by one herein.
After downloading to dynamic load APK in server, terminal can store dynamic load APK to specified text In part folder, wherein the specified folder can be a file under intended application installation directory, for example, the specified file Folder can be the data/packagename files under intended application installation directory.
Step 302, during intended application is run, terminal obtains dynamic load APK from specified folder.
After download obtains dynamic load APK, terminal can be during intended application be run to the dynamic load APK carries out dynamic load, wherein the technical process that terminal-pair dynamic load APK carries out dynamic load may include step 302 to Step 305.
In one possible implementation, terminal can be in the preset duration downloaded after obtaining dynamic load APK Dynamic load is carried out to dynamic load APK, that is to say, terminal can be when downloading default after obtaining dynamic load APK The step of dynamic load APK is obtained from specified folder is executed in long.Ensure that terminal can be at the first time in this way Dynamic load is carried out to dynamic load APK, so as to repair the loophole of intended application in time, alternatively, can be to use in time Family provides required function.It should be pointed out that the preset duration can in advance be set by technical staff, the application is implemented Example is not especially limited this.
In alternatively possible realization method, terminal can be periodically or real after download obtains dynamic load APK When detection terminal processor load, and when the load of processor is less than default load threshold to dynamic load APK into Mobile state loads, and that is to say, terminal can be executed when the load of processor is less than default load threshold from specified folder The step of obtaining dynamic load APK.Carrying out dynamic load to dynamic load APK when the load of processor is smaller can be to avoid dynamic State load affects the normal operation of intended application.Wherein, above-mentioned default load threshold can be pre- advanced by technical staff Row setting, the embodiment of the present application are not especially limited this.
Step 303, terminal operating SO file linkers.
After getting dynamic load APK in specified folder, terminal can run SO file linkers, SO texts Part linker is obtained after the SO file linkers APK that terminal-pair server is sent is installed.
In a kind of possible realization method, during intended application is run, it is dynamic that server can send this to terminal State loads APK and SO file linkers APK.
In this realization method, during intended application is run, the dynamic that terminal can receive server transmission adds APK and SO file linker APK are carried, then, terminal can store dynamic load APK into specified folder, and to this SO file linkers APK is installed, to obtain the SO file linkers.
It should be pointed out that in some cases, terminal may carry out dynamic load to other APK in history, It that is to say, the SO file linkers may be already installed in terminal.At this point, terminal can send instruction information to server, The instruction information, which is used to indicate in terminal, is already installed with SO file linkers, server after receiving the instructions, Intended application only can send dynamic load APK during running to terminal, without sending SO file linkers to terminal APK.Alternatively, in the case of being already installed with SO file linkers in the terminal, terminal can not send server in instruction letter Breath, but to the SO file linkers after the dynamic load APK and SO file linker APK for receiving server transmission APK is deleted.
Wherein, in the case where being already installed with SO file linkers, terminal to server sends instruction information and can keep away Exempt from server to repeat to send SO file linker APK, so as to save the communication bandwidth between server and terminal. In the case of being equipped with SO file linkers, terminal does not send instruction information to server, but is sent receiving server Dynamic load APK and SO file linker APK after SO file linkers APK is deleted, it is possible to reduce server Interaction times between terminal improve the efficiency of dynamic load so as to simplify the flow of dynamic load.
In alternatively possible realization method, when terminal installs the intended application, server can be sent to terminal Intended application APK's and SO file linkers APK, wherein intended application APK for terminal for being installed to obtain the mesh Mark application.
In this realization method, terminal during installation targets are applied, answer by the target that can receive server transmission With APK and SO file linker APK, then, terminal can install intended application APK, obtain the intended application, together When, terminal can install SO file linkers APK, obtain the SO file linkers.
In the embodiment of the present application, SO file linkers APK can be packaged in intended application APK, that is to say, the SO File linker APK can be located in intended application APK.
Step 304, terminal load SO files by SO files linker from dynamic load APK.
After having run SO file linkers, terminal can be by the SO files linker directly from dynamic load APK Middle load SO files, to realize the dynamic load to dynamic load APK.
In the following, the embodiment of the present application will load SO texts by SO files linker to terminal directly from dynamic load APK The technical process of part illustrates, which may include step A1 to step A4:
A1, terminal parse dynamic load APK by SO files linker, obtain SO files in dynamic load APK Offset address (English:offset).
Optionally, which can be under the premise of unziping it processing, from this to dynamic load APK The offset address of SO files is obtained in the compressed file information of dynamic load APK.
A2, terminal extract SO files by SO files linker according to the offset address from dynamic load APK.
A3, terminal are stored the SO files extracted into the designated position of memory by SO files linker.
Wherein, the SO files that designated position stores in memory for the dex files in dynamic load APK for being called.
The SO files of designated position are relocated in A4, terminal-pair memory.
So-called " reorientation " refers to:After SO files to be stored to the designated position to memory, establish SO files with it is current The mapping relations of storage location.
Directly the SO files in dynamic load APK can be stored to the designated position of memory by SO files linker In, in this way, the dex files in dynamic load APK can be called the SO files, to realize the function of SO files.
In actual implementation, certain SO file in dynamic load APK possibly relies on other SO files and (says for convenience It is bright, hereinafter unify others SO files being known as target SO files), wherein SO files A is referred to dependent on SO files B Dex files must first call SO file B when calling SO file A, if dex files call the B failures of SO files, dex files are just SO files A can not be called.
When certain SO file in dynamic load APK depends on target SO files, terminal needs to load target SO files It just can guarantee that certain SO file can be loaded dynamically the dex file normal calls in APK, wherein load target SO files refer to Be to store target SO files into the designated position of memory.
In the related technology, when certain SO file in dynamic load APK depends on target SO files, terminal can inquire behaviour Make the SO libraries (English of system:System library), it is stored with target SO files in the SO libraries of operating system When, terminal can load the target SO files in the SO libraries of the operating system with calling system interface.However, in operating system SO libraries in when not storing target SO files, terminal can not just load target SO files, in this case, should Certain SO file in dynamic load APK just can not be by dex file normal calls, to be likely to result in dynamic load APK's Load failure.
There is the possibility to fail to reduce dynamic load, in the embodiment of the present application, SO files linker can be tieed up A SO library is protected, can be stored with SO file linker history in the SO libraries which safeguards loaded SO files, optionally, in the embodiment of the present application, terminal can will be in above-mentioned dynamic load APK by SO files linker SO files store in the SO libraries safeguarded to the SO file linkers.When no storage mesh in the SO libraries of operating system When marking SO files, terminal can inquire the SO libraries of SO file linkers maintenance, with what is safeguarded in the SO file linkers When being stored with target SO files in SO libraries, target SO files are loaded.
Optionally, in the embodiment of the present application, terminal can be by SO files linker to being extracted in above step A2 SO files parsed, to determine whether the SO files literary dependent on others SO from the format information section of the SO files Part, and obtain the identification information (identification information that is to say target SO files) of the SO files of dependence.Terminal can be according to target The SO libraries of the identification information-enquiry operating system of SO files, it is literary when being stored with target SO in the SO libraries of the operating system When part, terminal can be loaded by 14 linker of SO files or by calling system interface in the SO libraries of the operating system Target SO files.When not being stored with target SO files in the SO libraries of the operating system, terminal can pass through SO files Linker, according to the SO libraries of the identification information-enquiry of target SO files SO file linkers maintenance, when the SO file chains It connects in the SO libraries of device maintenance when being stored with target SO files, terminal can be by SO files linker from the SO file chains It connects and obtains target SO files in the SO libraries of device maintenance, and the target SO files got are stored to the designated position of memory In.
Step 305, terminal pass through dex Classloaders (English:Dex Class Loader) it is loaded from dynamic load APK Dex files.
Dex Classloaders are a kind of included tool classes being used for dynamic load dex files or jar file of Android system Sequence, from the official document of dex Classloaders:Dex Classloaders are stored in file dalvik/system/ In DexClassLoader, the dalvik/system/DexClassLoader files and dalvik/system/ BaseClassLoader files are located in java/lang/ClassLoader files, the java/lang/ ClassLoader files are located in java/lang/object files.
During dynamic load APK, the dex files in dynamic load APK can be stored in interior by dex Classloaders In depositing, and the dex files are run in memory, which can call in memory designated position in the process of running SO files, to realize the function of SO files.
It should be pointed out that step 305 can execute after step 303 and step 304, can also in step 303 and It executes, can also be performed simultaneously with step 303 and step 304, the embodiment of the present application is to step 303, step before step 304 304 and step 305 execute sequencing be not construed as limiting.
Technical solution provided by the embodiments of the present application is understood for the ease of reader, in the following, the embodiment of the present application will be with target Using to be illustrated to technical solution provided by the embodiments of the present application for browser application:
As illustrated in the flow diagram of fig. 4, user need using browser application it is a certain be of little use function when, the browser Using that can execute step 21, in step 21, which can download browser kernel APK from server.Then, SDK in browser application can execute step 22, and in step 22, which can store browser kernel APK to specified In file, which can be the data/packagename files under browser application installation directory.Browsing Device application can execute step 23 in the process of running, and in step 23, which can be according to the demand of user Create a webpage.Then, the SDK in browser application can execute step 24, and in step 24, which can call dex Classloader, and dex files are loaded from browser kernel APK by dex Classloaders.Then, the kernel of browser application Step 25 can be executed, in step 25, the kernel of the browser application can run mad SO files linker, and by crazy Mad SO files linker loads the SO files in dynamic load APK.
As illustrated in the flow chart of figure 5, the step 25 in Fig. 4 may include sub-step 251 and sub-step 252, wherein browsing The kernel of device application can execute sub-step 251, and in sub-step 251, the kernel of browser application can be in the target of system It is obtained in file and runs mad SO files linker.Then, the kernel of browser application can execute sub-step 252, In sub-step 252, the kernel of browser application can load SO texts by mad SO files linker from browser kernel APK Part.
As shown in figure 5, the sub-step 252 may include sub-step 2521 to sub-step 2527, wherein mad SO files chain Sub-step 2521 can be executed by connecing device, and in sub-step 2521, mad SO files linker can parse browser kernel APK, To obtain the offset address of SO files in browser kernel APK.Then, mad SO files linker can execute sub-step 2522, in sub-step 2522, mad SO files linker can extract SO files from browser kernel APK, and will extraction SO files store to the designated position of memory.Mad SO files linker can execute sub-step 2523, in sub-step 2523 In, mad SO files linker can determine the target SO files that the SO files extracted are relied on.Then, mad SO files chain Sub-step 2524 can be executed by connecing device, and in sub-step 2524, mad SO files linker can be looked into system SO libraries Ask target SO files.When not inquiring target SO files in system SO libraries, mad SO files linker can be held Row sub-step 2525, in sub-step 2525, mad SO files linker can be in the SO texts that mad SO files linker is safeguarded Target SO files are inquired in part library.When inquiring target SO files in the SO libraries that mad SO files linker is safeguarded, Mad SO files linker can execute sub-step 2526, and in sub-step 2526, mad SO files linker can be by target SO files are stored to the designated position of memory.Then, mad SO files linker can execute sub-step 2527, in sub-step In 2527, mad SO files linker can relocate SO files.
In conclusion dynamic loading method provided by the embodiments of the present application, by during dynamic load APK, profit SO files are loaded directly from dynamic load APK with SO files linker, wherein the SO file linkers are sent to server SO file linkers APK installed after obtain so that terminal need not be to dynamic load APK in dynamic load APK Processing is unziped it, calling system interface is not needed yet, so as to improve the success rate of APK dynamic loads, ensures that APK is dynamic The reliability of state load.
Referring to FIG. 6, it illustrates a kind of block diagram of dynamic loading device 400 provided by the embodiments of the present application, the dynamic Loading device 400 can be configured in terminal 101 shown in FIG. 1.As shown in fig. 6, the dynamic loading device 400 may include: Acquisition module 401, operation module 402 and the first load-on module 403.
The acquisition module 401, for during intended application is run, the intended application to be obtained from specified folder Dynamic load APK, dynamic load APK includes at least one SO files, and dynamic load APK is intended application for supplying Terminal carries out the APK of silent load during intended application is run.
The operation module 402, for running SO file linkers, which is the SO texts sent to server What part linker APK was obtained after being installed.
First load-on module 403, for loading SO files from dynamic load APK by the SO files linker.
In one embodiment of the application, first load-on module 403, for dynamic to this by the SO files linker State load APK is parsed, and the offset address of SO files in dynamic load APK is obtained;According to the offset address, pass through the SO File linker extracts SO files from dynamic load APK;The SO files extracted are stored by the SO files linker Into memory, the SO files in the memory are used to be called for the dex files in dynamic load APK.
In one embodiment of the application, which is additionally operable to through the SO file linkers to carrying The SO files got are parsed, and determine that target SO files, target SO files are relied on by the SO files that this is extracted;Work as behaviour When making not being stored with target SO files in the SO libraries of system, which is inquired by the SO file linkers SO libraries, be stored with the SO files that the SO file linker history loaded in the SO libraries of the SO file linkers; When being stored with target SO files in the SO libraries of the SO file linkers, by the SO files linker from the SO files Target SO files are obtained in the SO libraries of linker, and the target SO files got are stored into the memory.
In one embodiment of the application, which is browser application, and dynamic load APK is in browser Core APK, the SO file linkers are madness SO file linkers.
Fig. 7 shows the block diagram of another dynamic loading device 500 provided by the embodiments of the present application, as shown in fig. 7, this is dynamic State loading device 500 can also include receiving module other than it may include modules that dynamic loading device 400 includes 404, memory module 405, installation module 406 and the second load-on module 407.
Wherein, the receiving module 404, the dynamic sent for during intended application is run, receiving server Load APK and SO file linkers APK.
The memory module 405, for storing dynamic load APK into the specified folder.
The installation module 406 obtains the SO file linkers for being installed to SO file linkers APK.
The receiving module 404 is additionally operable in installation targets in application, receiving the intended application APK of server transmission and being somebody's turn to do SO file linkers APK, wherein intended application APK for terminal for being installed to obtain intended application.
The installation module 406 obtains the intended application for being installed to intended application APK.
The installation module 406 obtains the SO file linkers for being installed to SO file linkers APK.
In one embodiment of the application, SO file linkers APK is located in intended application APK.
The memory module 405, for storing the SO files in dynamic load APK into the SO libraries.
Second load-on module 407, for loading dex files from dynamic load APK by dex Classloaders.
In conclusion dynamic loading method provided by the embodiments of the present application, by during dynamic load APK, profit SO files are loaded directly from dynamic load APK with SO files linker, wherein the SO file linkers are sent to server SO file linkers APK installed after obtain so that terminal need not be to dynamic load APK in dynamic load APK Processing is unziped it, calling system interface is not needed yet, so as to improve the success rate of APK dynamic loads, ensures that APK is dynamic The reliability of state load.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 shows the structure diagram for the terminal 600 that an illustrative embodiment of the invention provides.The terminal 600 can be with It is:Smart mobile phone, tablet computer, MP3 player, MP4 players, laptop or desktop computer.Terminal 600 be also possible to by Referred to as other titles such as user equipment, portable terminal, laptop terminal, terminal console.
In general, terminal 600 includes:Processor 601 and memory 602.
Processor 601 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- may be used in reason device 601 Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 601 can also include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state. In some embodiments, processor 601 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 601 can also wrap AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processors are for handling related machine learning Calculating operation.
Memory 602 may include one or more computer readable storage mediums, which can To be non-transient.Memory 602 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 602 can Storage medium is read for storing at least one instruction, at least one instruction is for performed to realize this Shen by processor 601 Please in embodiment of the method provide dynamic loading method.
In some embodiments, terminal 600 is also optional includes:Peripheral device interface 603 and at least one peripheral equipment. It can be connected by bus or signal wire between processor 601, memory 602 and peripheral device interface 603.Each peripheral equipment It can be connected with peripheral device interface 603 by bus, signal wire or circuit board.Specifically, peripheral equipment includes:Radio circuit 604, at least one of touch display screen 605, camera 606, voicefrequency circuit 607, positioning component 608 and power supply 609.
Peripheral device interface 603 can be used for I/O (Input/Output, input/output) is relevant at least one outer Peripheral equipment is connected to processor 601 and memory 602.In some embodiments, processor 601, memory 602 and peripheral equipment Interface 603 is integrated on same chip or circuit board;In some other embodiments, processor 601, memory 602 and outer Any one or two in peripheral equipment interface 603 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 604 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 604 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 604 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 604 wraps It includes:Antenna system, RF transceivers, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 604 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but not limited to:Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), wireless office Domain net and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 604 may be used also To include the related circuits of NFC (Near Field Communication, wireless near field communication), the application is not subject to this It limits.
Display screen 605 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their arbitrary combination.When display screen 605 is touch display screen, display screen 605 also there is acquisition to show The ability of the surface of screen 605 or the touch signal of surface.The touch signal can be used as control signal to be input to processor 601 are handled.At this point, display screen 605 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 605 can be one, and the front panel of terminal 600 is arranged;In other embodiments In, display screen 605 can be at least two, be separately positioned on the different surfaces of terminal 600 or in foldover design;In still other reality Apply in example, display screen 605 can be flexible display screen, be arranged on the curved surface of terminal 600 or fold plane on.Even, it shows Display screen 605 can also be arranged to non-rectangle irregular figure, namely abnormity screen.LCD (Liquid may be used in display screen 605 Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials prepare.
CCD camera assembly 606 is for acquiring image or video.Optionally, CCD camera assembly 606 include front camera and Rear camera.In general, the front panel in terminal is arranged in front camera, rear camera is arranged at the back side of terminal.One In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting functions or other fusions are clapped Camera shooting function.In some embodiments, CCD camera assembly 606 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, It can also be double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, be can be used for not With the light compensation under colour temperature.
Voicefrequency circuit 607 may include microphone and loud speaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 601, to be handled, or is input to radio circuit 604 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be multiple, be separately positioned on the different parts of terminal 600.Mike Wind can also be array microphone or omnidirectional's acquisition type microphone.Loud speaker is then used to that processor 601 or radio circuit will to be come from 604 electric signal is converted to sound wave.Loud speaker can be traditional wafer speaker, can also be piezoelectric ceramic loudspeaker.When When loud speaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 607 can also include Earphone jack.
Positioning component 608 is used for the current geographic position of positioning terminal 600, to realize navigation or LBS (Location Based Service, location based service).Positioning component 608 can be the GPS (Global based on the U.S. Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union The positioning component of Galileo system.
Power supply 609 is used to be powered for the various components in terminal 600.Power supply 609 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 609 includes rechargeable battery, which can support wired charging Or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 600 further include there are one or multiple sensors 610.The one or more sensors 610 include but not limited to:Acceleration transducer 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, Optical sensor 615 and proximity sensor 616.
The acceleration that acceleration transducer 611 can detect in three reference axis of the coordinate system established with terminal 600 is big It is small.For example, acceleration transducer 611 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 601 can With the acceleration of gravity signal acquired according to acceleration transducer 611, control touch display screen 605 is regarded with transverse views or longitudinal direction Figure carries out the display of user interface.Acceleration transducer 611 can be also used for game or the acquisition of the exercise data of user.
Gyro sensor 612 can be with the body direction of detection terminal 600 and rotational angle, and gyro sensor 612 can To cooperate with acquisition user to act the 3D of terminal 600 with acceleration transducer 611.Processor 601 is according to gyro sensor 612 Following function may be implemented in the data of acquisition:When action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 605 in terminal 600 can be arranged in pressure sensor 613.Work as pressure The gripping signal that user can be detected in the side frame of terminal 600 to terminal 600 is arranged in sensor 613, by processor 601 Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 613 acquires.When the setting of pressure sensor 613 exists When the lower layer of touch display screen 605, the pressure operation of touch display screen 605 is realized to UI circle according to user by processor 601 Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu At least one of control.
Fingerprint sensor 614 is used to acquire the fingerprint of user, collected according to fingerprint sensor 614 by processor 601 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 614 according to the identity of collected fingerprint recognition user.It is identifying When the identity for going out user is trusted identity, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 601 Include solution lock screen, check encryption information, download software, payment and change setting etc..Terminal can be set in fingerprint sensor 614 600 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 600, fingerprint sensor 614 can be with It is integrated with physical button or manufacturer Logo.
Optical sensor 615 is for acquiring ambient light intensity.In one embodiment, processor 601 can be according to optics The ambient light intensity that sensor 615 acquires controls the display brightness of touch display screen 605.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 605 is turned up;When ambient light intensity is relatively low, the display for turning down touch display screen 605 is bright Degree.In another embodiment, the ambient light intensity that processor 601 can also be acquired according to optical sensor 615, dynamic adjust The acquisition parameters of CCD camera assembly 606.
Proximity sensor 616, also referred to as range sensor are generally arranged at the front panel of terminal 600.Proximity sensor 616 The distance between front for acquiring user and terminal 600.In one embodiment, when proximity sensor 616 detects use When family and the distance between the front of terminal 600 taper into, touch display screen 605 is controlled from bright screen state by processor 601 It is switched to breath screen state;When proximity sensor 616 detects user and the distance between the front of terminal 600 becomes larger, Touch display screen 605 is controlled by processor 601 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 600 of structure shown in Fig. 8, can wrap It includes than illustrating more or fewer components, either combine certain components or is arranged using different components.
The embodiment of the present application also provides a kind of computer readable storage medium, which is situated between for non-volatile memories Matter is stored at least one instruction, at least one section of program, code set or instruction set in the storage medium, at least one instruction, At least one section of program, the code set or the instruction set is loaded by processor and is executed to realize that the above embodiments of the present application such as provide Dynamic loading method.
The embodiment of the present application also provides a kind of computer program product, it is stored with instruction in the computer program product, When run on a computer so that computer is able to carry out dynamic loading method provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of chip, which includes programmable logic circuit and/or program instruction, when The chip is able to carry out dynamic loading method provided by the embodiments of the present application when running.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on should be included within the protection domain of the application.

Claims (15)

1. a kind of dynamic loading method, which is characterized in that the method includes:
During intended application is run, the dynamic load Android installation kit of the intended application is obtained from specified folder APK, the dynamic load APK include at least one sharing DLL SO files, and the dynamic load APK is the target The APK for carrying out silent load during the intended application is run for terminal of application;
SO file linkers are run, the SO files linker is installed to the SO file linkers APK that server is sent It obtains afterwards;
SO files are loaded from the dynamic load APK by the SO files linker.
2. according to the method described in claim 1, it is characterized in that, described obtain the intended application from specified folder Before dynamic load Android installation kit APK, the method further includes:
During the intended application is run, the dynamic load APK and SO texts that the server is sent are received Part linker APK;
The dynamic load APK is stored into the specified folder;
The SO files linker APK is installed, the SO files linker is obtained.
3. according to the method described in claim 1, it is characterized in that, described obtain the intended application from specified folder Before dynamic load Android installation kit APK, the method further includes:
When installing the intended application, the intended application APK and the SO files linker that the server is sent are received APK, the intended application APK are used to be installed to obtain the intended application for the terminal;
The intended application APK is installed, the intended application is obtained;
The SO files linker APK is installed, the SO files linker is obtained.
4. according to the method described in claim 3, it is characterized in that, the SO files linker APK is located at the intended application In APK.
5. according to the method described in claim 1, it is characterized in that, described added by the SO files linker from the dynamic It carries and loads SO files in APK, including:
The dynamic load APK is parsed by the SO files linker, obtains SO files in the dynamic load APK Offset address;
According to the offset address, SO files are extracted from the dynamic load APK by the SO files linker;
The SO files extracted are stored into memory by the SO files linker, the SO files in the memory are for supplying Dex files in the dynamic load APK are called.
6. according to the method described in claim 5, it is characterized in that, the dynamic load APK includes at least one dex texts Part, the method further include:
Dex files are loaded from the dynamic load APK by dex Classloaders.
7. according to the method described in claim 5, it is characterized in that, described added by the SO files linker from the dynamic It carries in APK after extraction SO files, the method further includes:
The SO files extracted are parsed by the SO files linker, determine target SO files, the target SO texts Part is relied on by the SO files extracted;
When not being stored with the target SO files in the SO libraries of operating system, institute is inquired by the SO files linker The SO libraries of SO file linkers are stated, the SO files linker is stored in the SO libraries of the SO files linker and is gone through The SO files that history loaded;
When being stored with the target SO files in the SO libraries of the SO files linker, pass through the SO files linker The target SO files are obtained from the SO libraries of the SO files linker, and the target SO files got are deposited In storage to the memory.
8. the method according to the description of claim 7 is characterized in that the SO that will be extracted by the SO files linker After file is stored into memory, the method further includes:
SO files in the dynamic load APK are stored into the SO libraries of the SO files linker.
9. according to the method described in claim 1, it is characterized in that, the intended application is browser application, the dynamic adds Load APK is browser kernel APK, and the SO files linker is madness SO file linkers.
10. a kind of dynamic loading device, which is characterized in that described device includes:
Acquisition module, for during intended application is run, the dynamic of the intended application to be obtained from specified folder It includes at least one sharing DLL SO files to load Android installation kit APK, the dynamic load APK, and the dynamic adds Carry the APK for carrying out silent load during the intended application is run for terminal that APK is the intended application;
Module is run, for running SO file linkers, the SO files linker is the SO files link sent to server What device APK was obtained after being installed;
First load-on module, for loading SO files from the dynamic load APK by the SO files linker.
11. device according to claim 10, which is characterized in that first load-on module is used for:
The dynamic load APK is parsed by the SO files linker, obtains SO files in the dynamic load APK Offset address;
According to the offset address, SO files are extracted from the dynamic load APK by the SO files linker;
The SO files extracted are stored into memory by the SO files linker, the SO files in the memory are for supplying Dex files in the dynamic load APK are called.
12. according to the devices described in claim 11, which is characterized in that the dynamic load APK includes at least one dex texts Part, described device further include the second load-on module;
Second load-on module, for loading dex files from the dynamic load APK by dex Classloaders.
13. according to the devices described in claim 11, which is characterized in that first load-on module is additionally operable to:
The SO files extracted are parsed by the SO files linker, determine target SO files, the target SO texts Part is relied on by the SO files extracted;
When not being stored with the target SO files in the SO libraries of operating system, institute is inquired by the SO files linker The SO libraries of SO file linkers are stated, the SO files linker is stored in the SO libraries of the SO files linker and is gone through The SO files that history loaded;
When being stored with the target SO files in the SO libraries of the SO files linker, pass through the SO files linker The target SO files are obtained from the SO libraries of the SO files linker, and the target SO files got are deposited In storage to the memory.
14. a kind of terminal, which is characterized in that the terminal includes processor and memory, is stored at least in the memory One instruction, described instruction are loaded by the processor and are executed to realize the dynamic load as described in claim 1 to 9 is any Method.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium Item instructs, and described instruction is loaded by processor and executed to realize the dynamic loading method as described in claim 1 to 9 is any.
CN201810437000.6A 2018-05-09 2018-05-09 Dynamic loading method and device and computer readable storage medium Active CN108595226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810437000.6A CN108595226B (en) 2018-05-09 2018-05-09 Dynamic loading method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810437000.6A CN108595226B (en) 2018-05-09 2018-05-09 Dynamic loading method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108595226A true CN108595226A (en) 2018-09-28
CN108595226B CN108595226B (en) 2021-07-23

Family

ID=63635926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810437000.6A Active CN108595226B (en) 2018-05-09 2018-05-09 Dynamic loading method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108595226B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684846A (en) * 2018-12-28 2019-04-26 微梦创科网络科技(中国)有限公司 A kind of file extraction method and device
CN111866047A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Data decoding method and device, computer equipment and storage medium
CN112596821A (en) * 2021-01-24 2021-04-02 南京金盾公共安全技术研究院有限公司 Method for dynamically loading algorithm in android application
CN112612530A (en) * 2019-09-18 2021-04-06 华为技术有限公司 Class query method and device
CN112667285A (en) * 2021-01-25 2021-04-16 青岛海信传媒网络技术有限公司 Application upgrading method, display device and server
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113342396A (en) * 2021-06-07 2021-09-03 金陵科技学院 Method for pre-selecting target in Android system image recognition
WO2021180057A1 (en) * 2020-03-09 2021-09-16 林俊孝 Method, machine, and computer program product for dynamic connection to network communication channel
CN113742002A (en) * 2021-09-10 2021-12-03 上海达梦数据库有限公司 Method, device, equipment and storage medium for acquiring dependency relationship of dynamic library
WO2022206254A1 (en) * 2021-03-29 2022-10-06 北京字节跳动网络技术有限公司 So file repairing method and apparatus, device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160019073A1 (en) * 2013-03-14 2016-01-21 Bitvore Corp. Dynamically Loaded Plugin Architecture
CN106406945A (en) * 2016-09-09 2017-02-15 武汉斗鱼网络科技有限公司 Method and electronic equipment for loading so file of android system
CN106681828A (en) * 2016-12-09 2017-05-17 北京奇虎科技有限公司 Method and device for reinforcing dynamic link library SO file of Android installation package
CN107292132A (en) * 2016-03-30 2017-10-24 北京娜迦信息科技发展有限公司 Loading method and device for the shared object file of Android system
CN107357607A (en) * 2017-06-20 2017-11-17 腾讯科技(深圳)有限公司 The read method and device of file data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160019073A1 (en) * 2013-03-14 2016-01-21 Bitvore Corp. Dynamically Loaded Plugin Architecture
CN107292132A (en) * 2016-03-30 2017-10-24 北京娜迦信息科技发展有限公司 Loading method and device for the shared object file of Android system
CN106406945A (en) * 2016-09-09 2017-02-15 武汉斗鱼网络科技有限公司 Method and electronic equipment for loading so file of android system
CN106681828A (en) * 2016-12-09 2017-05-17 北京奇虎科技有限公司 Method and device for reinforcing dynamic link library SO file of Android installation package
CN107357607A (en) * 2017-06-20 2017-11-17 腾讯科技(深圳)有限公司 The read method and device of file data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANCHORER: "Android动态加载插件APK", 《HTTPS://SEGMENTFAULT.COM/A/1190000006132827》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684846A (en) * 2018-12-28 2019-04-26 微梦创科网络科技(中国)有限公司 A kind of file extraction method and device
CN111866047A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Data decoding method and device, computer equipment and storage medium
CN111866047B (en) * 2019-04-30 2023-07-07 北京达佳互联信息技术有限公司 Data decoding method, device, computer equipment and storage medium
CN112612530B (en) * 2019-09-18 2022-05-17 华为技术有限公司 Class query method and device
CN112612530A (en) * 2019-09-18 2021-04-06 华为技术有限公司 Class query method and device
WO2021180057A1 (en) * 2020-03-09 2021-09-16 林俊孝 Method, machine, and computer program product for dynamic connection to network communication channel
CN112596821A (en) * 2021-01-24 2021-04-02 南京金盾公共安全技术研究院有限公司 Method for dynamically loading algorithm in android application
CN112667285A (en) * 2021-01-25 2021-04-16 青岛海信传媒网络技术有限公司 Application upgrading method, display device and server
CN112667285B (en) * 2021-01-25 2023-11-03 Vidaa(荷兰)国际控股有限公司 Application upgrading method, display device and server
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
WO2022206254A1 (en) * 2021-03-29 2022-10-06 北京字节跳动网络技术有限公司 So file repairing method and apparatus, device, and storage medium
CN113342396A (en) * 2021-06-07 2021-09-03 金陵科技学院 Method for pre-selecting target in Android system image recognition
CN113742002A (en) * 2021-09-10 2021-12-03 上海达梦数据库有限公司 Method, device, equipment and storage medium for acquiring dependency relationship of dynamic library

Also Published As

Publication number Publication date
CN108595226B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN108595226A (en) Dynamic loading method, device and computer readable storage medium
US11222118B2 (en) Method for updating selinux security policy and terminal
CN106874037B (en) Application program installation method and device and mobile terminal
CN110308956B (en) Application interface display method and device and mobile terminal
CN110633090B (en) Patch method, related device and system
CN110837378B (en) Calling method and device for software development kit SDK function
CN107766747B (en) Method for verifying integrity of application program installation package, mobile terminal and server
CN108681473A (en) Application program generation, operation method, device, computer equipment and storage medium
CN104965722B (en) A kind of method and device of display information
CN110837473A (en) Application program debugging method, device, terminal and storage medium
US20180262522A1 (en) Malicious url detection method and apparatus, terminal, and computer storage medium
CN113867848A (en) Method, device and equipment for calling graphic interface and readable storage medium
CN110032384A (en) Method, apparatus, equipment and the storage medium of resource updates
CN110032702A (en) Webpage display process, device, equipment and storage medium
CN110677713B (en) Video image processing method and device and storage medium
CN111191227B (en) Method and device for preventing malicious code from executing
CN108984259B (en) Interface display method and device and terminal
CN112035153A (en) Application updating method, device, terminal and storage medium
CN107341032B (en) Data loading method, mobile terminal and computer readable storage medium
CN110109770A (en) Adjustment method, device, electronic equipment and medium
CN110399246B (en) Program repair method and device
CN109359259A (en) Load the method and device of webpage
CN110222224A (en) Identify the methods, devices and systems of song information
CN110502708B (en) Method, device and storage medium for communication based on JSbridge
CN110362330B (en) Application program updating method, device, terminal and storage medium

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