CN112000949A - 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
CN112000949A
CN112000949A CN202010870686.5A CN202010870686A CN112000949A CN 112000949 A CN112000949 A CN 112000949A CN 202010870686 A CN202010870686 A CN 202010870686A CN 112000949 A CN112000949 A CN 112000949A
Authority
CN
China
Prior art keywords
program
calling
package
application
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010870686.5A
Other languages
Chinese (zh)
Other versions
CN112000949B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a program package calling method, a system, a terminal device and a computer readable storage medium, wherein the method comprises: receiving a program package calling request sent by a first application program; judging whether the program package is called by a second application program, if not, judging whether the first application program has the authority of calling the program package; and responding to the program package calling request of the first application program if the first application program has the permission of calling the program package. The embodiment of the disclosure can at least effectively solve the problems of process hang-up, repeated restart and the like caused by repeated calling of the program packages among the 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 method for calling a program package, a system for calling a program package, a terminal device, and a computer-readable storage medium.
Background
With the continuous development of communication technology, Application scenes are gradually complicated and diversified, applications in different fields are intersected and combined to be used inevitably, with the increase of the types and the number of services on a terminal, the calling access frequency between applications is greatly increased, the calling relation also tends to be complicated, and the situation that the same Application Package (APK) is repeatedly called sometimes results in the occupation of a large amount of system resources, the suspension of a process has no response, the Application use condition is greatly influenced, and the use experience of a user is further reduced.
Disclosure of Invention
The present disclosure provides a method, a system, a terminal device and a computer readable storage medium for calling a program package, so as to solve at least the above problems.
According to an aspect of the embodiments of the present disclosure, there is provided a method for calling a package, including:
receiving a program 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 a second application program, judging whether the first application program has the authority of calling the program package;
and responding to the program package calling request of the first application program if the first application program has the permission of calling the program package.
In one embodiment, the method further comprises:
establishing a program package calling list; and the number of the first and second groups,
storing a plurality of application programs with the program package calling authority in the program package calling list;
the judging whether the first application program has the authority of calling the program package specifically comprises the following steps:
and judging whether the first application program is in the program package calling list, and if the first application program is in the program package calling list, judging that the first application program has the authority of calling the program package.
In one embodiment, the method further comprises:
distributing calling priorities for a plurality of application programs with the program package calling authority;
after the determining whether the package has been called by the second application, the method further includes:
if the program package is called by a second application program, judging whether program package calling requests sent by other application programs except the first application program and the second application program are received before the program package calling requests sent by the first application program are received;
if the program package calling request sent by other application programs is not received, responding to the program package calling request of the first application program after the second application program completes the calling of the program package;
and if the program package calling requests sent by other application programs are received, after the second application program completes the calling of the program package, sequentially responding to the program package calling requests of the first application program and the other application programs according to the calling priority.
In one embodiment, before sequentially responding to the package call requests of the first application program and the other application programs according to the call priority, the method further includes:
acquiring the number of received program package calling requests sent by other application programs;
judging whether the number of the received program package calling requests of the other application programs is less than a preset number;
and if the number of the application programs is less than the preset number, executing a step of sequentially responding to the program package calling requests of the first application program and the other application programs according to the calling priority after the second application program completes the calling of the program package.
In one embodiment, the responding to the package call request of the first application includes:
judging whether the program package calling request is a nested calling request;
if the nested calling request is not the nested calling request, sending a response notice to the first application program so that the first application program runs the program package based on preset calling configuration;
if the program package is the nested calling request, acquiring the superior program package nested information from the local nested configuration data; and the number of the first and second groups,
and sending a response notice to the first application program, wherein the response notice carries the nesting information of the superior program package, so that the first application program operates the program package in the superior program package according to the nesting information of the superior program package and preset calling configuration.
According to a second aspect of the embodiments of the present disclosure, there is provided a package calling system including:
the receiving module is used for receiving a program package calling request sent by a first application program;
a first judging module configured to judge whether the package has been called by a second application;
the second judging module is set to judge whether the first application program has the authority of calling the program package when the first judging module judges that the program package is not called by a second application program;
and the response module is set to respond to the program package calling request of the first application program when the second judging module judges that the first application program has the authority of calling the program package.
In one embodiment, the system further comprises:
a list establishing module configured to establish a package call list; and the number of the first and second groups,
the storage module is set to store a plurality of application programs with the authority of calling the program package in the program package calling list;
the second determining module is specifically configured to determine whether the first application program is in the program package call list, and if the first application program is in the program package call list, determine that the first application program has the authority to call the program package.
In one embodiment, the system further comprises:
the priority distribution module is set to distribute calling priorities for a plurality of application programs with the program package calling authority;
a third judging module configured to judge whether a package calling request transmitted by another application program other than the first application program and the second application program is received before receiving the package calling request transmitted by the first application program when the first judging module judges that the package is called by the second application program;
the response module is further configured to respond to the program package calling request of the first application program after the second application program completes the calling of the program package when the third judgment module judges that the program package calling request sent by other application programs is not received;
the response module is further configured to, when the third determination module determines that the program package call request sent by the other application program is received, sequentially respond to the program package call requests of the first application program and the other application programs according to the call priority after the second application program completes the call of the program package.
According to another aspect of the embodiments of the present disclosure, there is provided a terminal device, including a memory and a processor, where the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the package calling method.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor executes the package calling method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method for calling the program package, after a program package calling request sent by a first application program is received, whether the program package is called by a second application program is judged, if the program package is not called by the second application program, whether the first application program has the authority of calling the program package is judged, and if the first application program has the authority of calling the program package, the program package calling request of the first application program is responded. The embodiment of the disclosure can at least effectively solve the problems of process hang-up, repeated restart and the like caused by repeated calling of the program packages among the applications.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the disclosure. The objectives and other advantages of the disclosure may 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 example serve to explain the principles of the disclosure and not to limit the disclosure.
Fig. 1 is a schematic flowchart of a method for calling a package according to an embodiment of the present disclosure;
FIG. 2 is a schematic flowchart of step S103 in FIG. 1;
fig. 3 is a flowchart illustrating a procedure of a package calling method according to another embodiment of the disclosure;
fig. 4 is a flowchart illustrating a procedure of a package calling method according to another embodiment of the 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
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, specific embodiments of the present disclosure are described below in detail with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order; also, the embodiments and features of the embodiments in the present disclosure may be arbitrarily combined with each other without conflict.
In which 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 the disclosed embodiments 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" used to denote elements are used only for the convenience of explanation of the present disclosure, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
At present, repeated program package calling (hereinafter referred to as APK calling) is closed mainly by means of manual operation of a user, or a system closes ongoing calling to respond to a new calling request, so that an ongoing application is interrupted unexpectedly, a called process is kill, or an APK background runs without perception of a user, repeated operation or long-time waiting is caused, and differential control and response cannot be performed on the actual calling condition of the APK and the calling requirement of the application.
In order to solve the above problems, the embodiments of the present disclosure provide a method for calling a package, which takes appropriate response measures according to an agreed APK calling relationship and calling configuration, in combination with an APK running condition; and the method is also suitable for a multilevel nested calling scene, can realize the calling response of multilevel nesting according to the appointed nesting relation and the nesting path, and can effectively avoid the problems of process hang-up, repeated restart and the like caused by repeated calling and the problems of calling conflict between applications, waiting overtime and the like caused by concurrent calling.
In this embodiment, a policy is first configured, and the configuration mainly includes an APK, a master application, a call list, a wait list, a call priority, a start flag, a nested flag, a call configuration, and the like.
The expression form of the APK and the APK program package which is requested to be called is not limited and can be UI, URL, background APK, plug-in and the like.
The main application is an application program requesting to call the APK, and the form is not limited, and the application program can be APP, a community, a website and the like. Typically, it is located in the same operating system or terminal as the APK.
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 master applications and vice versa. Typically, an APK responds to only one primary application call at a time.
The calling priority is used for describing the priority order of response to each main application when a plurality of calling requests are concurrent (such as APK busy and multi-calling concurrence). The priority can be ordered according to time or according to the calling level of the preset application, and the priority responses with high levels are ordered. In addition, the embodiment of the disclosure may establish a waiting list based on the APK, which is used to record (e.g., busy APK, multi-call concurrence) call requests that need to wait, and the list is sorted according to the call priority; and setting a start flag and a nesting flag for describing whether the call has been started, i.e. whether the call is a repeated call request. Default to 0, called or waited, the flag is set to 1, no new calling request is started, and repeated calling is avoided; the nesting mark is used for describing the nesting condition of the APK call, wherein 1 is nesting and indicates that the APK has superior nesting (applications, controls and the like), and 0 is non-nesting and indicates that the APK and the applications are directly called without multi-stage nesting. One APK may correspond to multiple nested relationships, and one nested relationship (nested flag, upper level nesting) is only effective in a specific call relationship. The present disclosure takes two-level nesting as an example, and analogizes in sequence for a multi-level nested scenario.
And calling configuration, setting based on a specific calling relationship (an APK and a main application), presetting default starting configuration during calling for the APK and the main application with the calling relationship, enabling the configuration to be effective only during the calling of the relationship, and recovering the original configuration of the APK after the calling is finished. It will be appreciated that the call configuration, whether a direct call or a nested call, is based on settings between the APK and the first application.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a procedure of a package calling method according to an embodiment of the present disclosure, where the method includes steps S101 to S103.
In step S101, a package call 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 process is ended.
Specifically, after receiving a call request of a primary Application, first obtaining primary Application information in the request, for example, AID (Application Identifier), etc., requesting called package information, and determining whether the package has been called by other primary applications, that is, the package is in operation, to avoid a situation that the package is currently running, causing repeated calls, etc., the present embodiment first determines whether the package requesting to be called is called by other programs, and if so, ends the flow. In some embodiments, after determining that the package is called by other applications, the method may enter into waiting, wait for the end of the package call, and then respond to the call request for the package according to the call priority.
In the current packet calling scheme, the calling of the packet is usually hidden in the background, that is, the packet may have been already called by the first program and cannot be found because it is hidden in the background, in this case, this embodiment may further detect whether the packet has been called by the first application, and if the packet has been called by the first application, the flag between the first application and the packet calls a start flag, for example, the start flag is "1", which indicates that the calling relationship is started, and the start flag is "0", which indicates that the calling relationship is not started temporarily, and flags it as "1", and then the packet is called from the background to the interface of the foreground for displaying, and the response to the first application is completed directly.
In step S103, it is determined whether the first application has the authority to call the package, if so, step S104 is executed, otherwise, the process is ended.
Specifically, before the program package is called, the system pre-configures the calling authority of the program package, can establish a program package calling list, store the application programs capable of calling the program package in the program package calling list, inquire whether the first application program is in the list when receiving a program package calling request of the first application program, if so, indicate that the first application program has the calling authority of the program package, and execute subsequent steps to finish the response to the request, otherwise, indicate that the first application program does not have the calling authority of the program package, reject the request and finish the flow.
In step S104, a package call request of the first application is responded.
Specifically, a response notification is sent to the first application program according to the program package calling request, and the first application program queries and calls the configuration to directly run the program package and execute the call.
Further, referring to fig. 2, in order to satisfy the nested call and the non-nested call of the application program at the same time, the embodiment further divides step S103 into steps S103a-S103 d.
In step S103a, it is determined whether the package call request is a nested call request, if yes, step S103c is executed, otherwise, step S103b is executed;
in step S103b, sending a response notification to the first application program, so that the first application program runs the package based on a preset calling configuration;
in step S103c, acquiring upper level program package nesting information from the local nesting configuration data; and the number of the first and second groups,
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 according to a preset calling configuration.
Specifically, for the nested call, the nested flag bit may also be set, for example, the nested call is set to "1", and if the nested call is not the nested call, the flag is "0", and when a package call request of the first application program is received, first, the call configuration corresponding to the call relationship may be obtained according to the APK and the application information of the first application program, then, the nested flag is read, and for a request for direct call (where the nested flag is 0), the APK is directly run according to the call configuration, and the call is executed. And for nested calling (the nested mark is 1), acquiring superior nested information, enabling the first application program to carry out nested calling in a superior APK, operating the APK in the superior nested APK according to calling configuration, and executing the calling. Further, when the APK finishes calling (the state is changed to idle), if the calling waiting sequence of the APK is not empty, a response notification is sent to the corresponding application program, the specific response process is as above, otherwise, the task is finished.
Referring to fig. 3, fig. 3 is a flowchart illustrating a procedure of a package calling method according to another embodiment of the present disclosure, in comparison with the previous embodiment, the present embodiment defines an APK calling relationship by establishing a package calling list, and further illustrates an authority determination scheme of an application requesting to call a package, specifically, the present embodiment further includes step S301 and step S302, and step S102 is further divided into step S102 b.
In step S301, a package call list is established;
in step S302, storing a plurality of application programs having the authority to call the package in the package call list;
in step S102b, it is determined whether the first application is in the package call list, and if the first application is in the package call list, it is determined that the first application has the authority to call the package.
Referring to fig. 4, fig. 4 is a flowchart illustrating a procedure of a package calling method according to another embodiment of the present disclosure, in which, compared with the previous embodiment, in this embodiment, a calling priority is allocated to an application with a calling permission, and the calling requests are sequentially responded based on the calling priority under a condition of multiple calling requests, so as to implement an ordered and efficient calling of a package among applications, and specifically, the method further includes steps S401 to S406.
In step S401, call priorities are assigned to the applications having the right to call the package.
After the step S101, steps S402-S406 are also included.
In step S402, if the package has been called by the second application, it is determined whether a package calling request sent by another application except the first application and the second application is received before the package calling request sent by the first application is received, if so, step S404 is executed, otherwise, step S403 is executed.
In step S403, after the second application completes the call to the package, responding to the package call request of the first application;
in step S404, the number of received package call requests sent by other application programs is acquired;
in step S405, it is determined whether the number of the received package call requests of the other application programs is less than a preset number, if so, step S406 is executed, otherwise, the request is rejected and the process 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 sets an upper limit of the number of call requests in advance, so as to avoid that the call efficiency is affected by too long waiting time of the application program, and specifically, when a new call request is received, obtains requested APK information, checks the APK call list, compares the number of the wait requests (i.e., the number of requests of the package of other applications) with the preset number, and rejects the request if the number is equal to or greater than the preset number, which indicates that the list is saturated (exceeds a preset wait threshold); if the list is empty or not saturated, updating the sequencing of the waiting list according to the new request time for the repeated requests in the waiting sequence, and waiting for response notification; and for the calling request of the new application, searching the APK calling list according to the APK and the main application information in the request, acquiring the priority sequence of the main application, and adding the new request into a waiting list. In some embodiments, only a portion of the applications may be assigned a call priority, and then for non-prioritized applications, sorted by request time, waiting for a response notification.
Based on the same technical concept, the embodiment of the present disclosure correspondingly provides a package calling system, as shown in fig. 5, the system includes a receiving module 51, a first determining module 52, a second determining module 53 and a responding module 54, wherein,
the receiving module 51 is configured to receive a package calling request sent by a first application program;
the first judging module 51 is configured to judge whether the package is called by a second application program;
the second judging module 52 is configured to judge whether the first application has the authority to call the program package when the first judging module judges that the program package is not called by a second application;
the response module 53 is configured to respond to the package calling request of the first application program when the second determination module determines that the first application program has the authority to call the package.
In one embodiment, the system further comprises:
a list establishing module configured to establish a package call list; and the number of the first and second groups,
the storage module is set to store a plurality of application programs with the authority of calling the program package in the program package calling list;
the second determining module is specifically configured to determine whether the first application program is in the program package call list, and if the first application program is in the program package call list, determine that the first application program has the authority to call the program package.
In one embodiment, the system further comprises:
the priority distribution module is set to distribute calling priorities for a plurality of application programs with the program package calling authority;
a third judging module configured to judge whether a package calling request transmitted by another application program other than the first application program and the second application program is received before receiving the package calling request transmitted by the first application program when the first judging module judges that the package is called by the second application program;
the response module is further configured to respond to the program package calling request of the first application program after the second application program completes the calling of the program package when the third judgment module judges that the program package calling request sent by other application programs is not received;
the response module is further configured to, when the third determination module determines that the program package call request sent by the other application program is received, sequentially respond to the program package call requests of the first application program and the other application programs according to the call priority after the second application program completes the call of the program package.
In one embodiment, the method further comprises:
an obtaining module configured to obtain the number of received package call requests sent by the other application programs before the response module responds to the package call requests of the first application program and the other application programs;
the fourth judging module is configured to judge whether the number of the received program package calling requests of the other application programs is less than a preset number;
the response module is further configured to, when the fourth determination module determines that the number of the second application programs is less than the preset number, sequentially respond to the program package calling requests of the first application program and the other application programs according to the calling priority after the second application program completes the calling of the program packages;
the response module is further configured to reject to respond to the package call request of the first application program when the fourth determination module determines that the number of the first application programs 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 call request is a nested call request;
a first response unit configured to send a response notification to the first application program so that the first application program runs the package based on a preset calling configuration when the determination unit determines that the first application program is not the nested calling request;
a second response unit configured to acquire upper-level program package nesting information from the local nesting configuration data when the judgment unit judges that the request is the nesting call request; and sending a response notice to the first application program, wherein the response notice carries the nesting information of the superior program package, so that the first application program operates the program package in the superior program package according to the nesting information of the superior program package and 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, the memory 61 stores a computer program, and when the processor 62 runs the computer program stored in the memory, the processor executes the program package calling method.
Based on the same technical concept, embodiments of the present disclosure correspondingly provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor executes the package calling method.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between 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 by several physical components in cooperation. 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 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 is well known to those of ordinary skill 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 accessed by a computer. In addition, 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 as known to those skilled in the art.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.

Claims (10)

1. A method for calling a package, comprising:
receiving a program 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 a second application program, judging whether the first application program has the authority of calling the program package;
and responding to the program package calling request of the first application program if the first application program has the permission of calling the program package.
2. The method of claim 1, further comprising:
establishing a program package calling list; and the number of the first and second groups,
storing a plurality of application programs with the program package calling authority in the program package calling list;
the judging whether the first application program has the authority of calling the program package specifically comprises the following steps:
and judging whether the first application program is in the program package calling list, and if the first application program is in the program package calling list, judging that the first application program has the authority of calling the program package.
3. The method of claim 2, further comprising:
distributing calling priorities for a plurality of application programs with the program package calling authority;
after the determining whether the package has been called by the second application, the method further includes:
if the program package is called by a second application program, judging whether program package calling requests sent by other application programs except the first application program and the second application program are received before the program package calling requests sent by the first application program are received;
if the program package calling request sent by other application programs is not received, responding to the program package calling request of the first application program after the second application program completes the calling of the program package;
and if the program package calling requests sent by other application programs are received, after the second application program completes the calling of the program package, sequentially responding to the program package calling requests of the first application program and the other application programs according to the calling priority.
4. The method of claim 3, further comprising, prior to sequentially responding to package call requests of the first application and the other applications according to the call priority:
acquiring the number of received program package calling requests sent by other application programs;
judging whether the number of the received program package calling requests of the other application programs is less than a preset number;
and if the number of the application programs is less than the preset number, executing a step of sequentially responding to the program package calling requests of the first application program and the other application programs according to the calling priority after the second application program completes the calling of the program package.
5. The method of claim 1, wherein responding to the package call request of the first application comprises:
judging whether the program package calling request is a nested calling request;
if the nested calling request is not the nested calling request, sending a response notice to the first application program so that the first application program runs the program package based on preset calling configuration;
if the program package is the nested calling request, acquiring the superior program package nested information from the local nested configuration data; and the number of the first and second groups,
and sending a response notice to the first application program, wherein the response notice carries the nesting information of the superior program package, so that the first application program operates the program package in the superior program package according to the nesting information of the superior program package and preset calling configuration.
6. A package call system, comprising:
the receiving module is used for receiving a program package calling request sent by a first application program;
a first judging module configured to judge whether the package has been called by a second application;
the second judging module is set to judge whether the first application program has the authority of calling the program package when the first judging module judges that the program package is not called by a second application program;
and the response module is set to respond to the program package calling request of the first application program when the second judging module judges that the first application program has the authority of calling the program package.
7. The system of claim 6, further comprising:
a list establishing module configured to establish a package call list; and the number of the first and second groups,
the storage module is set to store a plurality of application programs with the authority of calling the program package in the program package calling list;
the second determining module is specifically configured to determine whether the first application program is in the program package call list, and if the first application program is in the program package call list, determine that the first application program has the authority to call the program package.
8. The system of claim 7, further comprising:
the priority distribution module is set to distribute calling priorities for a plurality of application programs with the program package calling authority;
a third judging module configured to judge whether a package calling request transmitted by another application program other than the first application program and the second application program is received before receiving the package calling request transmitted by the first application program when the first judging module judges that the package is called by the second application program;
the response module is further configured to respond to the program package calling request of the first application program after the second application program completes the calling of the program package when the third judgment module judges that the program package calling request sent by other application programs is not received;
the response module is further configured to, when the third determination module determines that the program package call request sent by the other application program is received, sequentially respond to the program package call requests of the first application program and the other application programs according to the call priority after the second application program completes the call of the program package.
9. A terminal device comprising a memory and a processor, wherein the memory stores therein a computer program, and when the processor executes the computer program stored in the memory, the processor executes the package calling method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, executes a package calling method according to any one of claims 1 to 5.
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 true CN112000949A (en) 2020-11-27
CN112000949B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114518899A (en) * 2022-02-11 2022-05-20 北京云思智学科技有限公司 Reverse software package tracking management method, system and storage medium

Citations (11)

* 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
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

Patent Citations (11)

* 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
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
RICARDO GUEDES等: "Multiagent models for police resource allocation and dispatch", 《2014 IEEE JOINT INTELLIGENCE AND SECURITY INFORMATICS CONFERENCE》, pages 288 - 291 *
严斌峰等: "5G技术发展与行业应用探讨", 《中兴通讯技术》, vol. 25, no. 6, pages 34 - 41 *
吕晓庆: "Android软件动态行为监测系统的设计和实现", 《中国优秀硕士学位论文全文数据库》, pages 138 - 345 *
翟京卿等: "移动互联下的智能卡能力开放研究", 《信息通信技术》, vol. 10, no. 5, pages 73 - 80 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114518899A (en) * 2022-02-11 2022-05-20 北京云思智学科技有限公司 Reverse software package tracking management method, system and storage medium

Also Published As

Publication number Publication date
CN112000949B (en) 2023-06-16

Similar Documents

Publication Publication Date Title
CN110795244B (en) Task allocation method, device, equipment and medium
US11044729B2 (en) Function scheduling method, device, and system
WO2020167458A1 (en) Data charging during charging function outages
EP3897020A1 (en) Method and apparatus for verifying subscriber identification module, electronic device, and storage medium
CN111212099A (en) Micro-service management method and device
WO2016127612A1 (en) Monitoring processing method and device
EP3996431A1 (en) Network element registration method and system, and network function repository function
CN114364031A (en) Service providing method, device and storage medium
US20180199007A1 (en) Control method, system, and apparatus for conference terminal rights, and storage medium
CN111901881B (en) Transmission method and device
CN113055972A (en) Session processing method in wireless communication and terminal equipment
EP3979690A1 (en) Congestion control method and apparatus, computer storage medium and terminal
CN112416594A (en) Micro-service distribution method, electronic equipment and computer storage medium
CN112000949B (en) Program package calling method, system, terminal device and computer readable storage medium
CN111147468A (en) User access method, device, electronic equipment and storage medium
CN107094238B (en) Key distribution processing method of smart television and smart television
CN112616143B (en) Method and device for distributing communication numbers, electronic equipment and storage medium
CN112243201B (en) Channel distribution method, device and system in 5G RCS message sending
WO2021012974A1 (en) Cloud-platform-based network flow control method and apparatus for containerized application, and device and storage medium
CN113242543A (en) USIM-based application control method, USIM, terminal and medium
CN109548020B (en) Compensation method and device after authentication failure, server and storage medium
CN110167064B (en) Method, network element, terminal and system for controlling terminal access
CN112689008A (en) Network connection pool management method, device, equipment and storage medium
CN115460695A (en) Paging priority access method, base station, and computer-readable storage medium
EP4322502A1 (en) Internet-of-vehicles based traffic scheduling method and apparatus, device and medium

Legal Events

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