CN112000949B - Program package calling method, system, terminal device and computer readable storage medium - Google Patents

Program package calling method, system, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN112000949B
CN112000949B CN202010870686.5A CN202010870686A CN112000949B CN 112000949 B CN112000949 B CN 112000949B CN 202010870686 A CN202010870686 A CN 202010870686A CN 112000949 B CN112000949 B CN 112000949B
Authority
CN
China
Prior art keywords
package
application program
calling
program
call
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010870686.5A
Other languages
Chinese (zh)
Other versions
CN112000949A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202010870686.5A priority Critical patent/CN112000949B/en
Publication of CN112000949A publication Critical patent/CN112000949A/en
Application granted granted Critical
Publication of CN112000949B publication Critical patent/CN112000949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure provides a method, a system, a terminal device and a computer readable storage medium for invoking a program package, wherein the method comprises the following steps: receiving a package calling request sent by a first application program; judging whether the program package is called by a second application program or not, if the program package is not called by the second application program, judging whether the first application program has the authority to call the program package or not; and if the first application program has the authority to call the program package, responding to the program package call request of the first application program. The method and the device at least can effectively solve the problems of process suspension, repeated restarting and the like caused by repeated calling of program packages among applications.

Description

Program package calling method, system, terminal device and computer readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a package calling method, a package calling system, a terminal device, and a computer readable storage medium.
Background
Along with the continuous development of communication technology, application scenes are gradually complicated and diversified, applications in different fields are crossed and combined to become necessary, along with the substantial increase of service types and quantity on terminals, the calling access frequency among applications is greatly improved, calling relations tend to be complicated, the situation that the same application package (Application package, APK for short) is repeatedly called sometimes happens, a large amount of system resources are occupied, the process is suspended and unresponsive, the application use condition is greatly affected, and the use experience of users is further reduced.
Disclosure of Invention
The present disclosure provides a package calling method, system, terminal device, and computer-readable storage medium to solve at least the above-mentioned problems.
According to an aspect of the disclosed embodiments, there is provided a package calling method, including:
receiving a package calling request sent by a first application program;
judging whether the program package is called by a second application program or not;
if the program package is not called by the second application program, judging whether the first application program has the authority to call the program package or not;
and if the first application program has the authority to call the program package, responding to the program package call request of the first application program.
In one embodiment, the method further comprises:
establishing a program package calling list; the method comprises the steps of,
storing a plurality of application programs with the permission of calling the program package in the program package calling list;
the judging whether the first application program has the authority to call the program package specifically comprises:
judging whether the first application program is in the package calling list or not, and if the first application program is in the package calling list, judging that the first application program has the authority to call the package.
In one embodiment, the method further comprises:
distributing calling priorities for a plurality of application programs with the permission of calling the program package;
after the determining whether the package has been invoked by the second application program, the method further includes:
if the package is called by the second application program, judging whether package calling requests sent by other application programs except the first application program and the second application program are received before receiving the package calling requests sent by the first application program;
if the package calling request sent by other application programs is not received, responding to the package calling request of the first application program after the second application program finishes calling the package;
and if the package calling request sent by other application programs is received, after the second application program finishes calling the package, sequentially responding to the package calling requests of the first application program and the other application programs according to the calling priority.
In one embodiment, before responding to the package call requests of the first application program and the other application programs in turn according to the call priority, the method further includes:
acquiring the number of received package calling requests sent by other application programs;
judging whether the number of received package calling requests of other application programs is less than a preset number;
and if the number of the program packages is less than the preset number, executing the step of responding to the package calling requests of the first application program and the other application programs in sequence according to the calling priority after the second application program finishes calling the package.
In one embodiment, the responding to the package call request of the first application program includes:
judging whether the package calling request is a nested calling request or not;
if the request is not the nested call request, sending a response notification to the first application program so that the first application program runs the program package based on a preset call configuration;
if yes, acquiring upper program package nesting information from local nesting configuration data; the method comprises the steps of,
and sending a response notice to the first application program, wherein the response notice carries the upper-level package nesting information so that the first application program runs the package in the upper-level package according to the upper-level package nesting information and a preset calling configuration.
According to a second aspect of embodiments of the present disclosure, there is provided a package invocation system, including:
the receiving module is used for receiving a program package calling request sent by the first application program;
a first determination module configured to determine whether the package has been invoked by a second application;
the second judging module is used for judging whether the first application program has the authority of calling the program package or not when the first judging module judges that the program package is not called by the second application program;
and the response module is used for responding to the package calling request of the first application program when the second judging module judges that the first application program has the right of calling the package.
In one embodiment, the system further comprises:
a list creation module configured to create a package invocation list; the method comprises the steps of,
a storage module configured to store a number of application programs having the right to call the package in the package call list;
the second judging module is specifically configured to judge whether the first application program is in the package calling list, and if the first application program is in the package calling list, determine that the first application program has the authority to call the package.
In one embodiment, the system further comprises:
a priority allocation module configured to allocate a call priority to a plurality of applications having the right to call the package;
a third judging module configured to judge whether package calling requests sent by other application programs than the first application program and the second application program are received before receiving the package calling request sent by the first application program when the first judging module judges that the package has been called by the second application program;
the response module is further configured to respond to the package calling request of the first application program after the second application program finishes calling the package when the third judgment module judges that the package calling request sent by other application programs is not received;
the response module is further configured to, when the third judging module judges that a package calling request sent by another application program is received, sequentially respond to package calling requests of the first application program and the other application programs according to the calling priority after the second application program finishes calling the package.
According to still another aspect of the embodiments of the present disclosure, there is provided a terminal device including a memory and a processor, the memory storing a computer program, the processor executing the package calling method when the processor runs the computer program stored in the memory.
According to yet another aspect of the disclosed embodiments, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the package calling method.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the package calling method provided by the embodiment of the disclosure, after a package calling request sent by a first application program is received, whether the package is called by a second application program is judged, if the package is not called by the second application program, whether the first application program has the authority to call the package is judged, and if the first application program has the authority to call the package, the package calling request of the first application program is responded. The method and the device at least can effectively solve the problems of process suspension, repeated restarting and the like caused by repeated calling of program packages among applications.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the disclosure. The objectives and other advantages of the disclosure will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosed embodiments and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain, without limitation, the disclosed embodiments.
Fig. 1 is a flowchart of a package calling method according to an embodiment of the disclosure;
fig. 2 is a schematic flow chart of step S103 in fig. 1;
FIG. 3 is a flowchart illustrating a package calling method according to another embodiment of the present disclosure;
FIG. 4 is a flowchart of a package calling method according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a package calling system according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the following detailed description of the specific embodiments of the present disclosure will be given with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order; moreover, embodiments of the present disclosure and features of embodiments may be arbitrarily combined with each other without conflict.
Wherein the terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present disclosure, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
At present, repeated program package calling (APK calling for short) is closed by manual operation of a user, or a system is closed to make an ongoing call to respond to a new call request, so that an ongoing application is often interrupted accidentally, a called process is hidden by kill, or an APK background operation user does not feel, repeated operation or long-time waiting is caused, and differentiated control and response cannot be carried out on actual calling conditions of the APK and calling requirements of the application.
Aiming at the problems, the embodiment of the disclosure provides a program package calling method, which adopts proper response measures according to the agreed APK calling relation and calling configuration and the running condition of APK; the method is also suitable for a multi-level nested call scene, can realize multi-level nested call response according to the agreed nested relation and nested path, and can effectively avoid the problems of process suspension, repeated restarting and the like caused by repeated call, and the problems of call conflict among applications, waiting overtime and the like caused by concurrent call.
In this embodiment, the policy is first configured, and the configuration mainly includes APK, a main application, a call list, a wait list, a call priority, a start flag, a nest flag, and a call configuration.
APK, APK package requested to be invoked, its expression form is not limited, and may be UI, URL, background APK, plug-in, etc.
The main application, the application program for requesting to call the APK, is not limited in form, and can be APP, community, website and the like. Typically, the APK is located in the same operating system or terminal.
And the program package calling list is used for recording the main application with calling relation with the APK. One APK may correspond to multiple host applications and vice versa. Typically, an APK responds to only the invocation of a master application at the same time.
Call priority, which is used to describe the response priority order of each main application when multiple call requests are concurrent (e.g. APK busy, multi-call concurrency). The priorities may be time ordered, or ordered by a preset application call level, with higher priority responses. In addition, the embodiment of the disclosure can establish a waiting list based on the APK, and is used for recording the call requests needing to wait (such as the busy APK and the multi-call concurrency), and the list is ordered according to the call priority; and setting a start flag and a nest flag for describing whether the call has been started, i.e. whether the call request is repeated. Default to 0, called or waiting, flag set to 1, no longer starts new call request, avoiding repeated call; the nesting mark is used for describing the nesting condition of the APK call, 1 is nesting, and represents that the APK has superior nesting (application, control and the like), 0 is non-nesting, and represents that the APK is directly called from the application, and the APK has no multi-level nesting. One APK may correspond to multiple nested relationships, with one nested relationship (nested flag, upper level nesting) only being valid in a particular call relationship. The present disclosure takes two-level nesting as an example, and so on for a multi-level nesting scenario.
And calling configuration, namely setting based on a specific calling relation (a certain APK and a certain main application), presetting default starting configuration when calling is carried out for the certain APK and the main application with the calling relation, wherein the configuration only takes effect in the relation calling, and recovering the original configuration of the APK after the calling is finished. It will be appreciated that the call configuration, whether direct call or nested call, is based on settings between the APK and the first application.
Referring to fig. 1, fig. 1 is a flowchart of a package calling method according to an embodiment of the disclosure, where the method includes steps S101 to S103.
In step S101, a package calling request sent by a first application is received,
in step S102, it is determined whether the package has been called by the second application, if not, step S103 is executed, otherwise, the flow is ended.
Specifically, after receiving a call request of a main application, main application information in the request, such as AID (Application Identifier ) and the like, package information of the call request is firstly obtained, and whether the package is already called by other main applications is judged, that is, whether the package is running, in order to avoid the condition that the package is currently running and repeated call is caused, the embodiment firstly judges whether the package of the call request is called by other programs, if the package is already called by other application programs, the process is ended, and if the package is already called by other application programs, the process is ended, it is understood that the other application programs can be package self application programs or other programs except the first application program, and the package self application program is self-running on the package, which is called together. In some embodiments, after determining that the package is invoked by another application, a wait may be entered, waiting for the package to be invoked to end, and then responding to the package with a call request according to the call priority.
In the current package calling scheme, the package is usually hidden in the background, that is, the package may not be found by the first package due to the first package being hidden in the background, in this case, the embodiment may further detect whether the package has been called by the first application, if the package has been called by the first application, a flag call start flag, for example, a start flag of "1", indicates that the call relationship has been started, a start flag of "0" indicates that the call relationship has not been started, and then the package is displayed from the background to the interface of the foreground, so as to directly complete the response to the first application.
In step S103, it is determined whether the first application program has the authority to call the package, if so, step S104 is executed, otherwise, the flow is ended.
Specifically, before the package is called, the system may pre-configure the call authority of the package, by creating a package call list, storing an application Cheng Xun capable of calling the package in the package call list, when a package call request of a first application program is received, inquiring whether the first application program is in the list, if so, indicating that the first application program has the call authority of the package, and executing the subsequent steps to complete the response to the request, otherwise, indicating that the first application program does not have the call authority of the package, rejecting the request and ending the flow.
In step S104, a package call request of the first application program is responded.
Specifically, a response notification is sent to the first application program according to the package calling request, the first application program inquires that the calling configuration directly runs the package, and the calling is executed.
Further, referring to fig. 2, in order to satisfy both nested calls and non-nested calls of the application program, the present embodiment further divides step S103 into steps S103a-S103d.
In step S103a, determining whether the package calling request is a nested calling request, if yes, executing step S103c, otherwise, executing step S103b;
in step S103b, a response notification is sent to the first application program, so that the first application program runs the program package based on a preset calling configuration;
in step S103c, upper package nesting information is obtained from the local nesting configuration data; the method comprises the steps of,
in step S103d, a response notification is sent to the first application program, where the response notification carries the upper-level package nesting information, so that the first application program runs the package in the upper-level package according to the upper-level package nesting information and a preset calling configuration.
Specifically, for the nested call, a nested flag bit may be set, for example, set to "1", if the nested call is not the nested call, the flag is "0", when a package call request of the first application program is received, firstly, a call configuration corresponding to the call relationship may be obtained according to the APK and application information of the first application program, then the nested flag is read, and for a request of direct call (the nested flag is 0), the APK is directly operated according to the call configuration, and the call is executed. And for the nested call (the nested mark is 1), acquiring upper-level nested information, enabling the first application program to perform nested call in an upper-level APK, running the APK according to call configuration in the upper-level nested APK, and executing the call. Further, when the APK finishes calling (the state is changed to idle), if the calling waiting sequence of the APK is not idle, a response notification is sent to the corresponding application program, the specific response process is as above, otherwise, the task is ended.
Referring to fig. 3, fig. 3 is a flow chart of a package calling method according to another embodiment of the disclosure, compared with the previous embodiment, in this embodiment, an APK calling relationship is clarified by establishing a package calling list, and a permission determination scheme of an application program requesting to call a package is further illustrated, specifically, the embodiment further includes step S301 and step S302, and step S102 is further divided into S102b.
In step S301, a package calling list is established;
in step S302, storing a plurality of application programs having the right to call the package in the package call list;
in step S102b, it is determined whether the first application is in the package calling list, and if the first application is in the package calling list, it is determined that the first application has the authority to call the package.
Referring to fig. 4, fig. 4 is a flow chart of a package calling method according to another embodiment of the disclosure, and compared with the previous embodiment, the method further includes steps S401-S406 by allocating a calling priority to an application program having a calling authority, and sequentially responding to a calling request based on the calling priority under a plurality of calling request conditions.
In step S401, a call priority is assigned to a plurality of applications having the right to call the package.
After the step S101, steps S402 to S406 are further included.
In step S402, if the package is called by the second application program, it is determined whether package calling requests sent by other application programs except the first application program and the second application program are received before receiving the package calling request sent by the first application program, if yes, step S404 is executed, otherwise, step S403 is executed.
In step S403, after the second application completes the call to the package, a package call request of the first application is responded;
in step S404, the number of package calling requests sent by the received other application programs is obtained;
in step S405, it is determined whether the number of received package calling requests of the other application programs is less than a preset number, if yes, step S406 is executed, otherwise, the response request is refused and the flow is ended.
In step S406, after the second application completes the call to the package, the package call requests of the first application and the other applications are sequentially responded according to the call priority.
In this embodiment, the system presets the upper limit of the number of call requests, so as to avoid that the waiting time of an application program is too long, and the call efficiency is affected, specifically, when a new call request is received, the requested APK information can be obtained, the APK call list is checked, the number of the waiting requests (i.e., the number of package requests of other applications) is compared with the preset number, and if the number is equal to or greater than the preset number, the request is refused if the list is saturated (exceeds the preset waiting threshold value); if the list is empty or unsaturated, updating the waiting list ordering according to the new request time for repeated requests in the waiting sequence, and waiting for response notification; and for a call request of the new application, searching the APK call list according to the APK and main application information in the request, acquiring the priority order of the main application, and adding the new request into a waiting list. In some embodiments, call priorities may be assigned to only a portion of the applications, then for non-prioritized, request-time ordered, waiting for response notification.
Based on the same technical concept, the embodiment of the disclosure correspondingly provides a package calling system, as shown in fig. 5, which includes a receiving module 51, a first judging module 52, a second judging module 53 and a responding module 54, wherein,
the receiving module 51 is configured to receive a package calling request sent by the first application program;
the first judging module 51 is configured to judge whether the package has been called by the second application program;
the second judging module 52 is configured to judge whether the first application program has the authority to call the package when the first judging module judges that the package is not called by the second application program;
the response module 53 is configured to respond to a package calling request of the first application program when the second determination module determines that the first application program has the right to call the package.
In one embodiment, the system further comprises:
a list creation module configured to create a package invocation list; the method comprises the steps of,
a storage module configured to store a number of application programs having the right to call the package in the package call list;
the second judging module is specifically configured to judge whether the first application program is in the package calling list, and if the first application program is in the package calling list, determine that the first application program has the authority to call the package.
In one embodiment, the system further comprises:
a priority allocation module configured to allocate a call priority to a plurality of applications having the right to call the package;
a third judging module configured to judge whether package calling requests sent by other application programs than the first application program and the second application program are received before receiving the package calling request sent by the first application program when the first judging module judges that the package has been called by the second application program;
the response module is further configured to respond to the package calling request of the first application program after the second application program finishes calling the package when the third judgment module judges that the package calling request sent by other application programs is not received;
the response module is further configured to, when the third judging module judges that a package calling request sent by another application program is received, sequentially respond to package calling requests of the first application program and the other application programs according to the calling priority after the second application program finishes calling the package.
In one embodiment, the method further comprises:
an obtaining module, configured to obtain the number of received package calling requests sent by other application programs before the response module responds to the package calling requests of the first application program and the other application programs;
a fourth judging module configured to judge whether the number of received package calling requests of the other application programs is less than a preset number;
the response module is further configured to respond to package calling requests of the first application program and the other application programs in sequence according to the calling priority after the second application program finishes calling the package when the fourth judgment module judges that the number of the packages is less than the preset number;
the response module is further configured to reject a package call request for responding to the first application program when the fourth determination module determines that the number is greater than or equal to the preset number.
In one embodiment, the response module includes:
a judging unit configured to judge whether the package calling request is a nested calling request;
the first response unit is used for sending a response notification to the first application program when the judging unit judges that the first application program is not a nested call request, so that the first application program runs the program package based on a preset call configuration;
the second response unit is used for acquiring upper-level package nesting information from the local nesting configuration data when the judging unit judges that the package is a nesting call request; and sending a response notification to the first application program, wherein the response notification carries the upper-level package nesting information, so that the first application program runs the package in the upper-level package according to the upper-level package nesting information and a preset calling configuration.
Based on the same technical concept, the embodiment of the present disclosure correspondingly provides a terminal device, as shown in fig. 6, where the terminal device includes a memory 61 and a processor 62, where the memory 61 stores a computer program, and when the processor 62 runs the computer program stored in the memory, the processor executes the package calling method.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a computer readable storage medium, on which a computer program is stored, which when executed by a processor, performs the package calling method.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present disclosure, and not for limiting the same; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (9)

1. A package calling method, comprising:
receiving a package calling request sent by a first application program;
judging whether the program package is called by a second application program or not;
if the program package is not called by the second application program, judging whether the first application program has the authority to call the program package or not;
if the first application program has the authority to call the program package, responding to a program package call request of the first application program;
the responding to the package calling request of the first application program comprises the following steps:
judging whether the package calling request is a nested calling request or not;
if the request is not the nested call request, sending a response notification to the first application program so that the first application program runs the program package based on a preset call configuration;
if yes, acquiring upper program package nesting information from local nesting configuration data; the method comprises the steps of,
and sending a response notice to the first application program, wherein the response notice carries the upper-level package nesting information so that the first application program runs the package in the upper-level package according to the upper-level package nesting information and a preset calling configuration.
2. The method as recited in claim 1, further comprising:
establishing a program package calling list; the method comprises the steps of,
storing a plurality of application programs with the permission of calling the program package in the program package calling list;
the judging whether the first application program has the authority to call the program package specifically comprises:
judging whether the first application program is in the package calling list or not, and if the first application program is in the package calling list, judging that the first application program has the authority to call the package.
3. The method as recited in claim 2, further comprising:
distributing calling priorities for a plurality of application programs with the permission of calling the program package;
after the determining whether the package has been invoked by the second application program, the method further includes:
if the package is called by the second application program, judging whether package calling requests sent by other application programs except the first application program and the second application program are received before receiving the package calling requests sent by the first application program;
if the package calling request sent by other application programs is not received, responding to the package calling request of the first application program after the second application program finishes calling the package;
and if the package calling request sent by other application programs is received, after the second application program finishes calling the package, sequentially responding to the package calling requests of the first application program and the other application programs according to the calling priority.
4. A method according to claim 3, further comprising, prior to responding in turn to package call requests of the first application and the other applications according to the call priority, the steps of:
acquiring the number of received package calling requests sent by other application programs;
judging whether the number of received package calling requests of other application programs is less than a preset number;
and if the number of the program packages is less than the preset number, executing the step of responding to the package calling requests of the first application program and the other application programs in sequence according to the calling priority after the second application program finishes calling the package.
5. A package invocation system, comprising:
the receiving module is used for receiving a program package calling request sent by the first application program;
a first determination module configured to determine whether the package has been invoked by a second application;
the second judging module is used for judging whether the first application program has the authority of calling the program package or not when the first judging module judges that the program package is not called by the second application program;
the response module is used for responding to a package calling request of the first application program when the second judging module judges that the first application program has the right of calling the package;
the response module comprises:
a judging unit configured to judge whether the package calling request is a nested calling request;
the first response unit is used for sending a response notification to the first application program when the judging unit judges that the first application program is not a nested call request, so that the first application program runs the program package based on a preset call configuration;
the second response unit is used for acquiring upper-level package nesting information from the local nesting configuration data when the judging unit judges that the package is a nesting call request; and sending a response notification to the first application program, wherein the response notification carries the upper-level package nesting information, so that the first application program runs the package in the upper-level package according to the upper-level package nesting information and a preset calling configuration.
6. The system of claim 5, further comprising:
a list creation module configured to create a package invocation list; the method comprises the steps of,
a storage module configured to store a number of application programs having the right to call the package in the package call list;
the second judging module is specifically configured to judge whether the first application program is in the package calling list, and if the first application program is in the package calling list, determine that the first application program has the authority to call the package.
7. The system of claim 6, further comprising:
a priority allocation module configured to allocate a call priority to a plurality of applications having the right to call the package;
a third judging module configured to judge whether package calling requests sent by other application programs than the first application program and the second application program are received before receiving the package calling request sent by the first application program when the first judging module judges that the package has been called by the second application program;
the response module is further configured to respond to the package calling request of the first application program after the second application program finishes calling the package when the third judgment module judges that the package calling request sent by other application programs is not received;
the response module is further configured to, when the third judging module judges that a package calling request sent by another application program is received, sequentially respond to package calling requests of the first application program and the other application programs according to the calling priority after the second application program finishes calling the package.
8. A terminal device comprising a memory and a processor, the memory having stored therein a computer program, which when executed by the processor performs the package invocation method according to any of claims 1 to 4.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the package invocation method according to any of claims 1-4.
CN202010870686.5A 2020-08-26 2020-08-26 Program package calling method, system, terminal device and computer readable storage medium Active CN112000949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010870686.5A CN112000949B (en) 2020-08-26 2020-08-26 Program package calling method, system, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010870686.5A CN112000949B (en) 2020-08-26 2020-08-26 Program package calling method, system, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112000949A CN112000949A (en) 2020-11-27
CN112000949B true CN112000949B (en) 2023-06-16

Family

ID=73471058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010870686.5A Active CN112000949B (en) 2020-08-26 2020-08-26 Program package calling method, system, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112000949B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662636A (en) * 2012-03-27 2012-09-12 北京华如科技股份有限公司 Two-layer virtual machines-based concurrent job scheduling method
CN105744504A (en) * 2016-03-31 2016-07-06 中国联合网络通信集团有限公司 Communication method of terminal and card applications and terminal
CN105978930A (en) * 2016-04-15 2016-09-28 深圳市永兴元科技有限公司 Network data exchange method and device
CN106027487A (en) * 2016-04-28 2016-10-12 广州广电运通金融电子股份有限公司 Hardware equipment access management method and system
CN107944258A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
CN109587187A (en) * 2017-09-28 2019-04-05 华为技术有限公司 For calling the methods, devices and systems of network function service
CN110308955A (en) * 2019-06-05 2019-10-08 阿里巴巴集团控股有限公司 A kind of interface call method, system and equipment
CN110659131A (en) * 2019-08-15 2020-01-07 中国平安人寿保险股份有限公司 Task processing method, electronic device, computer device, and storage medium
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN110781010A (en) * 2019-09-24 2020-02-11 贝壳技术有限公司 Method, device, equipment and medium for transmitting data between page components

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030185372A1 (en) * 2000-07-28 2003-10-02 Volker Henz Method for putting through at least one call having a predeterminable priority

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662636A (en) * 2012-03-27 2012-09-12 北京华如科技股份有限公司 Two-layer virtual machines-based concurrent job scheduling method
CN105744504A (en) * 2016-03-31 2016-07-06 中国联合网络通信集团有限公司 Communication method of terminal and card applications and terminal
CN105978930A (en) * 2016-04-15 2016-09-28 深圳市永兴元科技有限公司 Network data exchange method and device
CN106027487A (en) * 2016-04-28 2016-10-12 广州广电运通金融电子股份有限公司 Hardware equipment access management method and system
CN109587187A (en) * 2017-09-28 2019-04-05 华为技术有限公司 For calling the methods, devices and systems of network function service
CN107944258A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Start control method, device, storage medium and the terminal of application with method of service
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN110308955A (en) * 2019-06-05 2019-10-08 阿里巴巴集团控股有限公司 A kind of interface call method, system and equipment
CN110659131A (en) * 2019-08-15 2020-01-07 中国平安人寿保险股份有限公司 Task processing method, electronic device, computer device, and storage medium
CN110781010A (en) * 2019-09-24 2020-02-11 贝壳技术有限公司 Method, device, equipment and medium for transmitting data between page components

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
5G技术发展与行业应用探讨;严斌峰等;《中兴通讯技术》;第25卷(第6期);第34-41页 *
Android软件动态行为监测系统的设计和实现;吕晓庆;《中国优秀硕士学位论文全文数据库》;信息科技辑 I138-345 *
Multiagent models for police resource allocation and dispatch;Ricardo Guedes等;《2014 IEEE Joint Intelligence and Security Informatics Conference》;第288-291页 *
移动互联下的智能卡能力开放研究;翟京卿等;《信息通信技术》;第10卷(第5期);第73-80段 *

Also Published As

Publication number Publication date
CN112000949A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
US11083044B2 (en) Data charging during charging function outages
CN110278288B (en) Method and device for pre-allocating container IP, computer equipment and storage medium
US11083004B2 (en) Data transmission method and apparatus
CN108667744B (en) Flow control method and device
WO2020063773A1 (en) Radio frequency resource allocation method, user equipment, and device having storage function
CN110795244A (en) Task allocation method, device, equipment and medium
US20180199007A1 (en) Control method, system, and apparatus for conference terminal rights, and storage medium
EP3897020A1 (en) Method and apparatus for verifying subscriber identification module, electronic device, and storage medium
CN110677462A (en) Access processing method, system, device and storage medium for multi-block chain network
CN111212099A (en) Micro-service management method and device
CN106557404B (en) Application control method and mobile terminal
CN112000949B (en) Program package calling method, system, terminal device and computer readable storage medium
CN107360334B (en) Channel idle reminding method, computer device and readable storage medium
CN112616143B (en) Method and device for distributing communication numbers, electronic equipment and storage medium
CN112600765B (en) Method and device for scheduling configuration resources
WO2021012974A1 (en) Cloud-platform-based network flow control method and apparatus for containerized application, and device and storage medium
US20220350666A1 (en) Resource allocation method, device and audio-visual playback terminal
CN112243201B (en) Channel distribution method, device and system in 5G RCS message sending
CN115150403A (en) Calculation power resource allocation method and device based on business intention
CN113242543A (en) USIM-based application control method, USIM, terminal and medium
CN110365839B (en) Shutdown method, shutdown device, shutdown medium and electronic equipment
WO2021077747A1 (en) Method and device for implementing application loading, computer storage medium and terminal
CN112689008A (en) Network connection pool management method, device, equipment and storage medium
CN108255820B (en) Method and device for data storage in distributed system and electronic equipment
CN112822792A (en) Distribution method, device, equipment and storage medium of bearing identification

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