CN108205452A - The execution control method and device of software - Google Patents

The execution control method and device of software Download PDF

Info

Publication number
CN108205452A
CN108205452A CN201611166524.3A CN201611166524A CN108205452A CN 108205452 A CN108205452 A CN 108205452A CN 201611166524 A CN201611166524 A CN 201611166524A CN 108205452 A CN108205452 A CN 108205452A
Authority
CN
China
Prior art keywords
provider
software
global variable
value
underlying services
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
CN201611166524.3A
Other languages
Chinese (zh)
Other versions
CN108205452B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611166524.3A priority Critical patent/CN108205452B/en
Publication of CN108205452A publication Critical patent/CN108205452A/en
Application granted granted Critical
Publication of CN108205452B publication Critical patent/CN108205452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The disclosure is directed to a kind of execution control method and device of software.This method includes:The value of the corresponding provider's global variable of the software is determined by the middle layer of the software;In the case where the value of provider's global variable is empty, the corresponding underlying services of each provider in provider's list that the middle layer is safeguarded are loaded;It is successful in the corresponding underlying services loading of the first provider, assign the value of the corresponding global variable of first provider to provider's global variable, wherein, first provider is any one provider in provider's list.The disclosure can support multiple providers, realize the dynamic compatibility of the underlying services provided multiple providers.

Description

The execution control method and device of software
Technical field
The execution control method and device of disclosure design software technical field more particularly to software.
Background technology
In primary Android system, software architecture is broadly divided into three layers:Application layer, middle layer and bottom.With fingerprint software For framework, application layer can be unlocking program or the various means of payment etc..Application layer does not have to be concerned about the specific implementation of fingerprint Details, as long as calling the typing interface that middle layer provides and identification interface.The major function of middle layer is to bottom layer realization Details is abstracted.By taking fingerprint software framework as an example, middle layer is used to the standard feature of fingerprint being supplied to application layer.Bottom is straight It connects and communicates with fingerprint sensor, be the place of fingerprint various functions specific implementation.Since the technology used in each supplier is different, There is the implementation of each supplier in each supplier, therefore underlying services are different, and there is different moulds in different suppliers Block.
A supplier can only be configured in the relevant technologies, in the software architecture of a software, in other words, a software can only The underlying services that a supplier is supported to provide.And in practical engineering project, cell phone manufacturer generally require two or three of introducing, Even more suppliers.Software architecture in the relevant technologies can not meet the support to multiple suppliers, can not realize to more The dynamic compatibility for the underlying services that a supplier provides.
Invention content
To overcome the problems in correlation technique, the disclosure provides a kind of execution control method and device of software.
According to the embodiment of the present disclosure in a first aspect, provide a kind of execution control method of software, including:
The value of the corresponding provider's global variable of the software is determined by the middle layer of the software;
In the case where the value of provider's global variable is empty, load in provider's list that the middle layer is safeguarded The corresponding underlying services of each provider;
It is successful in the corresponding underlying services loading of the first provider, by the corresponding overall situation of first provider The value of variable assigns provider's global variable, wherein, first provider is any one in provider's list A provider.
For the above method, in a kind of possible realization method, determined in the middle layer by the software described soft After the value of the corresponding provider's global variable of part, the method further includes:
In the case where the value of provider's global variable is not empty, the value for loading provider's global variable corresponds to Underlying services.
For the above method, in a kind of possible realization method, corresponded in the value for loading provider's global variable Underlying services after, the method further includes:
In the case of the corresponding underlying services loading failure of value of provider's global variable, the provider is loaded The corresponding underlying services of each provider in list;
It is successful in the corresponding underlying services loading of the second provider, by the corresponding overall situation of second provider The value of variable assigns provider's global variable, wherein, second provider is any one in provider's list A provider.
For the above method, in a kind of possible realization method, the method further includes:
In the case where needing to increase newly for the software and providing the provider of underlying services, provider that will be newly-increased adds in institute It states in provider's list.
For the above method, in a kind of possible realization method, the software is determined by the middle layer of the software The value of corresponding provider's global variable, including:
In the software initialization, determine that the corresponding provider's overall situation of the software becomes by the middle layer of the software The value of amount.
For the above method, in a kind of possible realization method, the underlying services include at least one of following:
Fingerprint recognition service, touch sensible service and camera service.
According to the second aspect of the embodiment of the present disclosure, a kind of execution control device of software is provided, including:
Global variable determining module, for determining that the corresponding provider of the software is global by the middle layer of the software The value of variable;
First underlying services load-on module in the case of being empty in the value of provider's global variable, loads institute State the corresponding underlying services of each provider in provider's list of middle layer maintenance;
First global variable assignment module, for successful in the corresponding underlying services loading of the first provider, Assign the value of the corresponding global variable of first provider to provider's global variable, wherein, first provider For any one provider in provider's list.
For above device, in a kind of possible realization method, described device further includes:
Second underlying services load-on module, in the case of being not empty in the value of provider's global variable, loading The corresponding underlying services of value of provider's global variable.
For above device, in a kind of possible realization method, described device further includes:
Third underlying services load-on module, for being lost in the corresponding underlying services loading of the value of provider's global variable In the case of losing, the corresponding underlying services of each provider in provider's list are loaded;
Second global variable assignment module, for successful in the corresponding underlying services loading of the second provider, Assign the value of the corresponding global variable of second provider to provider's global variable, wherein, second provider For any one provider in provider's list.
For above device, in a kind of possible realization method, described device further includes:
Provider increases module newly, in the case where needing to increase newly for the software and providing the provider of underlying services, Newly-increased provider is added in provider's list.
For above device, in a kind of possible realization method, the global variable determining module is used for:
In the software initialization, determine that the corresponding provider's overall situation of the software becomes by the middle layer of the software The value of amount.
For above device, in a kind of possible realization method, the underlying services include at least one of following:
Fingerprint recognition service, touch sensible service and camera service.
According to the third aspect of the embodiment of the present disclosure, a kind of execution control device of software is provided, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The value of the corresponding provider's global variable of the software is determined by the middle layer of the software;
In the case where the value of provider's global variable is empty, load in provider's list that the middle layer is safeguarded The corresponding underlying services of each provider;
It is successful in the corresponding underlying services loading of the first provider, by the corresponding overall situation of first provider The value of variable assigns provider's global variable, wherein, first provider is any one in provider's list A provider.
The technical scheme provided by this disclosed embodiment can include the following benefits:It is determined by the middle layer of software The value of the corresponding provider's global variable of the software, in the case where the value of provider's global variable is empty, loading middle layer dimension The corresponding underlying services of each provider in provider's list of shield, and the loading of the first provider corresponding underlying services into In the case of work(, the value of the corresponding global variable of the first provider is assigned to provider's global variable, it is multiple thus, it is possible to support Provider realizes the dynamic compatibility of the underlying services provided multiple providers.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and for explaining the principle of the disclosure together with specification.
Fig. 1 is the flow chart according to a kind of execution control method of software shown in an exemplary embodiment.
Fig. 2 is the signal of the software architecture in a kind of execution control method of software shown in an exemplary embodiment Figure.
Fig. 3 is the flow according to a kind of execution control method of software shown in an example of an exemplary embodiment Figure.
Fig. 4 is the block diagram of the execution control device according to a kind of software shown in an exemplary embodiment.
Fig. 5 is the block diagram of the execution control device according to a kind of software shown in an example of an exemplary embodiment.
Fig. 6 is the block diagram according to a kind of device 800 of execution control for software shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is the flow chart according to a kind of execution control method of software shown in an exemplary embodiment.This method can To be applied in the terminals such as mobile phone or tablet computer.As shown in Figure 1, this method includes the following steps.
In step s 11, the value of the corresponding provider's global variable of the software is determined by the middle layer of software.
In the present embodiment, provider global variable (such as Global_ can be read by the middle layer of software Variable value).Wherein, provider can refer to the supplier of underlying services.By taking underlying services is fingerprint recognition services as an example, Provider can be the supplier of fingerprint recognition service.The value of provider's global variable can be with supplier's phase of offer underlying services It is corresponding.
As an example of the present embodiment, in initial setting up provider's global variable, provider's global variable is set Value be empty (such as Global_variable=NULL).
In a kind of possible realization method, determine that the corresponding provider's overall situation of the software becomes by the middle layer of the software The value of amount, including:In the software initialization, the corresponding provider's global variable of the software is determined by the middle layer of the software Value., can be in the software initialization in the realization method, such as the software can be passed through when the software starts Middle layer determines the value of the corresponding provider's global variable of the software.
In alternatively possible realization method, it can need to call the corresponding underlying services of provider's global variable In the case of, the value of the corresponding provider's global variable of the software is determined by the middle layer of the software.With fingerprint software (such as Unlock software, payment software etc.) for, the fingerprint software can be passed through in the case where needing to call fingerprint recognition service Middle layer determines the value of the corresponding provider's global variable of the fingerprint software.
In step s 12, in the case where the value of provider's global variable is empty, the provider that loading middle layer is safeguarded arranges The corresponding underlying services of each provider in table.
In the present embodiment, provider's list is safeguarded in the middle layer of software, which can include multiple carry The information of supplier.
It is each in provider's list that loading middle layer is safeguarded in the case of being empty by the value in provider's global variable The corresponding underlying services of a provider, can realize the dynamic detection to the provider of underlying services.
Fig. 2 is the signal of the software architecture in a kind of execution control method of software shown in an exemplary embodiment Figure.As an example of the present embodiment, the software architecture of the software includes application layer, middle layer and bottom.Wherein, middle layer Safeguard provider's list, which can record the value of the corresponding global variable of each provider, for example, provider couple The value for the global variable answered is including A, B, C, D etc..In this example, it is empty (such as Global_ in the value of provider's global variable Variable=NULL in the case of), each provider that can be loaded successively in provider's list of middle layer maintenance corresponds to Underlying services, until the corresponding underlying services of a certain provider load successfully.For example, the provider recorded in provider's list The value of corresponding global variable, then can be according to the sequence by A to D, since the corresponding underlying services of A including A, B, C, D etc. Loading, until the corresponding underlying services of a certain provider load successfully.
In a kind of possible realization method, underlying services include at least one of following:Fingerprint recognition service, touch sensible Service and camera service.Wherein, fingerprint recognition service can be provider provide with the relevant underlying services of fingerprint recognition;It touches Touch sensing service can for provider provide with the relevant underlying services of touch screen induction;Camera service can be carried for provider What is supplied applies relevant underlying services with camera.It should be noted that underlying services can also include each biography with terminal The relevant underlying services of sensor, are not limited thereto.
In step s 13, it is successful in the corresponding underlying services loading of the first provider, by the first provider couple The value for the global variable answered assigns provider's global variable, wherein, the first provider carries for any one in provider's list Supplier.
For example, in the corresponding underlying services loading of the first provider successfully, such as the first provider is corresponding The value of global variable is B, then provider's global variable is assigned a value of B (such as making Global_variable=B).
By successful in the corresponding underlying services loading of the first provider, by the corresponding overall situation of the first provider The value of variable assigns provider's global variable, can directly add after software restarting or after terminal restarting Carry provider's global variable the corresponding underlying services of value (such as the corresponding underlying services of B), without repeat to provider into Mobile state detects, and thus, it is possible to improve the startup speed of software and/or the reaction speed of underlying services.
The present embodiment can support multiple providers, realize the dynamic compatibility of the underlying services provided multiple providers.
In a kind of possible realization method, determine that the corresponding provider of the software is global in the middle layer by the software After the value of variable, this method further includes:In the case where the value of provider's global variable is not empty, the loading provider overall situation becomes The corresponding underlying services of value of amount.In the realization method in the case where the value of provider's global variable is not empty, directly add The corresponding underlying services of value of provider's global variable are carried, the provider for providing underlying services is examined into Mobile state without repeating It surveys, thus, it is possible to improve the startup speed of software and/or the reaction speed of underlying services.
Fig. 3 is the flow according to a kind of execution control method of software shown in an example of an exemplary embodiment Figure.As shown in figure 3, this method includes:
In step S31, the value of the corresponding provider's global variable of the software is determined by the middle layer of the software.
Description to step S11 above is participated in step S31.
In step s 32, in the case where the value of provider's global variable is empty, the provider that loading middle layer is safeguarded arranges The corresponding underlying services of each provider in table.
Description to step S12 above is participated in step S32.
It is successful in the corresponding underlying services loading of the first provider in step S33, by the first provider couple The value for the global variable answered assigns provider's global variable, wherein, the first provider carries for any one in provider's list Supplier.
Description to step S13 above is participated in step S33.
In step S34 in the case where the value of provider's global variable is not empty, the value of provider's global variable is loaded Corresponding underlying services.
For example, in the case where the value of provider's global variable is B, the corresponding underlying services of loading B.
In step s 35, in the case of the corresponding underlying services loading failure of the value of provider's global variable, loading carries The corresponding underlying services of each provider in supplier's list.
In this example, in the case of by the corresponding underlying services loading failure of value in provider's global variable, add The corresponding underlying services of each provider in provider's list are carried, can dynamic detection be carried out to provider again.For example, it sells If original-pack B family's fingerprint sensor is changed into A family's fingerprint sensor by repair afterwards, software automatic identification and can reload The corresponding underlying services of A.
It is successful in the corresponding underlying services loading of the second provider in step S36, by the second provider couple The value for the global variable answered assigns provider's global variable, wherein, the second provider carries for any one in provider's list Supplier.
By successful in the corresponding underlying services loading of the second provider, by the corresponding overall situation of the second provider The value of variable assigns provider's global variable, can directly add after software restarting or after terminal restarting The corresponding underlying services of value of provider's global variable are carried, without repeating dynamic detection, thus, it is possible to improve the startup of software The reaction speed of speed and/or underlying services.
In a kind of possible realization method, this method further includes:Underlying services are provided needing to increase newly for the software In the case of provider, newly-increased provider is added in provider's list.In the realization method, need it is new for the software In the case of increasing the provider that underlying services are provided, it is only necessary to increase one newly in provider's list and dynamic support can be realized.
Fig. 4 is the block diagram of the execution control device according to a kind of software shown in an exemplary embodiment.It, should with reference to Fig. 4 Device includes global variable determining module 41, the first underlying services load-on module 42 and the first global variable assignment module 43.It should Global variable determining module 41 is configured as determining the corresponding provider's global variable of the software by the middle layer of the software Value.The first underlying services load-on module 42 is configured as in the case where the value of provider's global variable is empty, and loading is intermediate The corresponding underlying services of each provider in provider's list that layer is safeguarded.The first global variable assignment module 43 is configured It is successful in the corresponding underlying services loading of the first provider, the value of the corresponding global variable of the first provider is assigned Provider's global variable is given, wherein, the first provider is any one provider in provider's list.
Fig. 5 is the block diagram of the execution control device according to a kind of software shown in an example of an exemplary embodiment. With reference to Fig. 5:
In a kind of possible realization method, which further includes the second underlying services load-on module 44.Second bottom Service load-on module 44 is configured as in the case where the value of provider's global variable is not empty, loading provider's global variable It is worth corresponding underlying services.
In a kind of possible realization method, which further includes the global change of third underlying services load-on module 45 and second Measure assignment module 46.The third underlying services load-on module 45 is configured as the corresponding bottom clothes of value in provider's global variable In the case of business loading failure, the corresponding underlying services of each provider in provider's list are loaded.Second global variable Assignment module 46 is configured as in the corresponding underlying services loading of the second provider that successfully, the second provider being corresponded to Global variable value assign provider's global variable, wherein, the second provider provides for any one in provider's list Side.
In a kind of possible realization method, which further includes provider and increases module 47 newly.The provider increases module newly 47 are configured as, in the case where needing to increase newly for the software and providing the provider of underlying services, newly-increased provider being added in and is carried In supplier's list.
In a kind of possible realization method, global variable determining module 41 is configured as in the software initialization, is led to The middle layer for crossing the software determines the value of the corresponding provider's global variable of the software.
In a kind of possible realization method, underlying services include at least one of following:Fingerprint recognition service, touch sensible Service and camera service.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The present embodiment can support multiple providers, realize the dynamic compatibility of the underlying services provided multiple providers, And it can realize dynamic detection to provider.It, will by successful in the corresponding underlying services loading of the first provider The value of the corresponding global variable of first provider assigns provider's global variable, can be after software restarting, Huo Zhe After terminal restarting, be loaded directly into the corresponding underlying services of value of provider's global variable, without repeat to provider into Mobile state detects, and thus, it is possible to improve the startup speed of software and/or the reaction speed of underlying services.Need it is new for the software In the case of increasing the provider that underlying services are provided, it is only necessary to increase one newly in provider's list and dynamic support can be realized.
Fig. 6 is the block diagram according to a kind of device 800 of execution control for software shown in an exemplary embodiment.Example Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and tablet is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Fig. 6, device 800 can include following one or more components:Processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814 and Communication component 816.
The integrated operation of 802 usual control device 800 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 802 can refer to including one or more processors 820 to perform It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 can include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application program or method for being operated on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 800.
Multimedia component 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or During video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loud speaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detect opening/closed state of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 804 of instruction, above-metioned instruction can be performed to complete the above method by the processor 820 of device 800.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. a kind of execution control method of software, which is characterized in that including:
The value of the corresponding provider's global variable of the software is determined by the middle layer of the software;
In the case where the value of provider's global variable is empty, load each in provider's list that the middle layer is safeguarded The corresponding underlying services of a provider;
It is successful in the corresponding underlying services loading of the first provider, by the corresponding global variable of first provider Value assign provider's global variable, wherein, first provider is that any one in provider's list carries Supplier.
2. the execution control method of software according to claim 1, which is characterized in that in the middle layer by the software After the value for determining the corresponding provider's global variable of the software, the method further includes:
In the case where the value of provider's global variable is not empty, the corresponding bottom of value of provider's global variable is loaded Layer service.
3. the execution control method of software according to claim 2, which is characterized in that become loading provider's overall situation After the corresponding underlying services of value of amount, the method further includes:
In the case of the corresponding underlying services loading failure of value of provider's global variable, provider's list is loaded In the corresponding underlying services of each provider;
It is successful in the corresponding underlying services loading of the second provider, by the corresponding global variable of second provider Value assign provider's global variable, wherein, second provider is that any one in provider's list carries Supplier.
4. the execution control method of software according to claim 1, which is characterized in that the method further includes:
In the case where needing to increase newly for the software and providing the provider of underlying services, provider that will be newly-increased add in described in carry In supplier's list.
5. the execution control method of software according to claim 1, which is characterized in that the middle layer by the software is true Determine the value of the corresponding provider's global variable of the software, including:
In the software initialization, the corresponding provider's global variable of the software is determined by the middle layer of the software Value.
6. the execution control method of software as claimed in any of claims 1 to 5, which is characterized in that the bottom Service includes at least one of following:
Fingerprint recognition service, touch sensible service and camera service.
7. a kind of execution control device of software, which is characterized in that including:
Global variable determining module, for determining the corresponding provider's global variable of the software by the middle layer of the software Value;
First underlying services load-on module, in the case of being empty in the value of provider's global variable, during loading is described The corresponding underlying services of each provider in provider's list that interbed is safeguarded;
First global variable assignment module, for successful in the corresponding underlying services loading of the first provider, by institute The value for stating the corresponding global variable of the first provider assigns provider's global variable, wherein, first provider is institute State any one provider in provider's list.
8. the execution control device of software according to claim 7, which is characterized in that described device further includes:
Second underlying services load-on module, in the case of being not empty in the value of provider's global variable, described in loading The corresponding underlying services of value of provider's global variable.
9. the execution control device of software according to claim 8, which is characterized in that described device further includes:
Third underlying services load-on module, in the corresponding underlying services loading failure of the value of provider's global variable In the case of, load the corresponding underlying services of each provider in provider's list;
Second global variable assignment module, for successful in the corresponding underlying services loading of the second provider, by institute The value for stating the corresponding global variable of the second provider assigns provider's global variable, wherein, second provider is institute State any one provider in provider's list.
10. the execution control device of software according to claim 7, which is characterized in that described device further includes:
Provider increases module newly, will be new in the case where needing to increase newly for the software and providing the provider of underlying services The provider of increasing is added in provider's list.
11. the execution control device of software according to claim 7, which is characterized in that the global variable determining module For:
In the software initialization, the corresponding provider's global variable of the software is determined by the middle layer of the software Value.
12. the execution control device of the software according to any one in claim 7 to 11, which is characterized in that the bottom Layer service includes at least one of following:
Fingerprint recognition service, touch sensible service and camera service.
13. a kind of execution control device of software, which is characterized in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The value of the corresponding provider's global variable of the software is determined by the middle layer of the software;
In the case where the value of provider's global variable is empty, load each in provider's list that the middle layer is safeguarded The corresponding underlying services of a provider;
It is successful in the corresponding underlying services loading of the first provider, by the corresponding global variable of first provider Value assign provider's global variable, wherein, first provider is that any one in provider's list carries Supplier.
CN201611166524.3A 2016-12-16 2016-12-16 Software execution control method and device Active CN108205452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611166524.3A CN108205452B (en) 2016-12-16 2016-12-16 Software execution control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611166524.3A CN108205452B (en) 2016-12-16 2016-12-16 Software execution control method and device

Publications (2)

Publication Number Publication Date
CN108205452A true CN108205452A (en) 2018-06-26
CN108205452B CN108205452B (en) 2021-05-18

Family

ID=62602064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611166524.3A Active CN108205452B (en) 2016-12-16 2016-12-16 Software execution control method and device

Country Status (1)

Country Link
CN (1) CN108205452B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7584452B1 (en) * 2004-09-29 2009-09-01 The Math Works, Inc. System and method for controlling the visibility and use of data in a programming environment
CN101819526A (en) * 2009-09-18 2010-09-01 华为技术有限公司 Method and device for calling bottom software and embedded system
CN102520918A (en) * 2011-09-27 2012-06-27 深圳市五巨科技有限公司 Method and device for increasing list refreshing frequency
CN103150162A (en) * 2013-02-22 2013-06-12 烽火通信科技股份有限公司 Method for improving code-sharing degree of embedded software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7584452B1 (en) * 2004-09-29 2009-09-01 The Math Works, Inc. System and method for controlling the visibility and use of data in a programming environment
CN101819526A (en) * 2009-09-18 2010-09-01 华为技术有限公司 Method and device for calling bottom software and embedded system
CN102520918A (en) * 2011-09-27 2012-06-27 深圳市五巨科技有限公司 Method and device for increasing list refreshing frequency
CN103150162A (en) * 2013-02-22 2013-06-12 烽火通信科技股份有限公司 Method for improving code-sharing degree of embedded software

Also Published As

Publication number Publication date
CN108205452B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN104484200A (en) Method and device for updating firmware
CN105160239A (en) Application program access restriction method and apparatus
CN103916468B (en) Method for upgrading system, terminal, server and upgrade-system
CN105117101B (en) The display methods and device of application program
CN105426200A (en) Communication module firmware and plug-in generation method and apparatus
CN105511686A (en) Incoming call processing method and device and electronic terminal equipment
CN105654302A (en) Payment method and device
CN104020990B (en) Date selects control display methods and device
CN106991005A (en) The switching method and device of operating system
CN105871913A (en) Identity authentication method and system
CN104714826A (en) Application theme loading method and device
CN107330391A (en) Product information reminding method and device
CN108958574A (en) Briefing method, apparatus and storage medium
CN105187671A (en) Recording method and device
CN107544818A (en) The loading method and device of system software
CN105260221A (en) Application installation method and device
CN108446226A (en) Using abnormal processing method
CN107632835A (en) Using installation method and device
CN104765646B (en) Component call method and device
CN107491238A (en) The display methods and device of pushed information
CN104951337B (en) File increment update method and device
CN109471714A (en) Platform deployment method, apparatus, equipment and storage medium
CN106775240A (en) The triggering method of application program, device and terminal
CN106354432A (en) Data modification method and device
CN106162612A (en) Control the method and device of Root authority

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