CN113076258A - Permission application method, device, equipment and readable storage medium - Google Patents
Permission application method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN113076258A CN113076258A CN202110428330.0A CN202110428330A CN113076258A CN 113076258 A CN113076258 A CN 113076258A CN 202110428330 A CN202110428330 A CN 202110428330A CN 113076258 A CN113076258 A CN 113076258A
- Authority
- CN
- China
- Prior art keywords
- application
- information
- authority
- feedback
- test
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a method, a device and equipment for permission application and a readable storage medium. The method comprises the following steps: receiving a test request for applying for the authority of the application program, wherein the test request comprises authorization requests of a plurality of application functions; responding to the test request, calling a preset test interface, and acquiring a test result of the permission application performed on the authorization requests of the plurality of application functions; and determining the use permission of the application program according to the test result. According to the embodiment of the invention, the complexity of processing the feedback result in the test process of the permission application can be reduced, and the difficulty of developing the test can be reduced.
Description
Technical Field
The invention belongs to the field of terminal development, and particularly relates to a method, a device, equipment and a readable storage medium for permission application.
Background
The mobile internet is rapidly developed, and various terminal applications are presented, which provide convenience to users by including various application functions. In order to protect the privacy of the user, part of application functions need to initiate permission application to the user before use, and the application functions can be continuously used after the user agrees.
At present, the application and limitation of the authority are more and more strict, and the system installed on the terminal is continuously updated and upgraded due to the fact that the system installed on different terminals is different, and in order to ensure that an accurate feedback result is obtained when the authority application is initiated, the authority application process needs to be tested in application development. In the test process of the authority application, different processing needs to be carried out on different feedback results, because a transmission interface needs to be called again after each authority application in the development, and because the applied functions are more and more, the authorities which need to be applied are not only related, but also more and more, the complexity of processing the feedback results in the test process of the authority application is increased sharply, and the difficulty in the development test stage is increased.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for authority application and a readable storage medium, which can reduce the complexity of processing a feedback result in the test process of the authority application and reduce the difficulty of development and test.
In a first aspect, an embodiment of the present invention provides a method for applying a permission, where the method includes:
receiving a test request for applying for the authority of the application program, wherein the test request comprises authorization requests of a plurality of application functions;
responding to the test request, calling a preset test interface, and acquiring a test result of the permission application performed on the authorization requests of the plurality of application functions;
and determining the use permission of the application program according to the test result.
In some implementation manners of the first aspect, invoking a preset test interface to obtain a test result of an authority application performed on authorization requests of a plurality of application functions includes:
respectively acquiring authority description information of a plurality of application functions according to a preset authority application sequence;
outputting at least one right description information;
receiving first feedback information based on each output authority specification information;
and determining a test result according to the at least one piece of first feedback information.
In some implementations of the first aspect, the first feedback information includes a first feedback identifier or a second feedback identifier, and the outputting at least one right specification information includes:
outputting authority description information of a first application function, wherein the first application function is an application function in a first preset application sequence in the plurality of application functions;
receiving first feedback information based on the authority specification information of each output, including:
receiving first feedback information based on authority specification information of the first application function;
when the first feedback information of the authority description information of the first application function comprises a first feedback identifier and the plurality of application functions comprise application functions which are not subjected to authority application, acquiring the authority description information of a second application function, wherein the second application function is an application function which is positioned in a second preset application sequence in the plurality of application functions which are not subjected to authority application.
In some implementations of the first aspect, the obtaining the permission specification information of the plurality of application functions respectively includes:
when target description information of the application function is acquired, the target description information is used as authority description information of the application function; and the number of the first and second groups,
target specification information of the application function is saved.
In some implementations of the first aspect, determining the test result according to the at least one first feedback information includes:
and when the first feedback information of the authority description information of the plurality of application functions comprises the first feedback identification, determining the authority information corresponding to the first feedback identification as a test result.
In some implementations of the first aspect, determining the test result according to the at least one piece of first feedback information further includes:
and when the first feedback information of the authority description information of at least one application function comprises a second feedback identifier, determining the authority information corresponding to the second feedback identifier as a test result.
In some implementations of the first aspect, the permission specification information of the first application function is output, and the method further includes:
acquiring description guide information of authority description information of a first application function;
outputting authority description information and description guide information of the first application function;
receiving second feedback information based on the description guide information, wherein the second feedback information comprises a third feedback identifier or a fourth feedback identifier;
when the second feedback information comprises a third feedback identification, generating preset application information of the authority description information of the first application function; and the number of the first and second groups,
outputting preset application information to receive first feedback information of authority description information of the first application function;
and when the second feedback information comprises a fourth feedback identifier, determining the authority information corresponding to the fourth feedback identifier as a test result.
In some implementation manners of the first aspect, invoking a preset test interface to obtain a test result of an authority application performed on authorization requests of a plurality of application functions further includes:
acquiring authority description information of a plurality of application functions;
outputting a plurality of right description information;
receiving first feedback information based on a plurality of right specification information;
when the plurality of pieces of first feedback information comprise first feedback identifications, determining authority information corresponding to the first feedback identifications as test results;
and when the plurality of pieces of first feedback information comprise at least one second feedback identifier, determining the authority information corresponding to the second feedback identifier as a test result.
In a second aspect, an embodiment of the present invention provides an apparatus for applying for a permission, where the apparatus includes:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a test request of an authority application of an application program, and the test request comprises authorization requests of a plurality of application functions;
the test module is used for responding to the test request, calling a preset test interface and acquiring a test result of the permission application performed on the authorization requests of the plurality of application functions;
and the processing module is used for determining the use permission of the application program according to the test result.
In a third aspect, the present invention provides a rights application device, including: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the method of the permission application described in the first aspect or any of the implementable forms of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer program instructions are stored, and the computer program instructions, when executed by a processor, implement the method for applying for rights set forth in the first aspect or any of the implementable manners of the first aspect.
The embodiment of the invention provides a method, a device, equipment and a readable storage medium for permission application, which respond to a test request for an application program, can obtain a test result of permission application of authorization requests of a plurality of application functions by acquiring a plurality of permissions of the application functions to be applied in the test process of the permission application and calling once according to a preset permission application sequence, thereby simplifying the process of development and test, and then can quickly determine the use permission of the application program according to the test result, so that only a transmission interface needs to be called once after each permission application in the development process, thereby effectively improving the development efficiency and simplifying the complexity of permission specification processing in development.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for applying for a permission according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a method for applying for a further permission provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for applying a permission according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for applying for a right according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The mobile internet is rapidly developed, and various terminal applications are presented, which provide convenience to users by including various application functions. In order to protect the privacy of the user, part of application functions need to initiate permission application to the user before use, and the application functions can be continuously used after the user agrees.
At present, the application and limitation of the authority are more and more strict, and the system installed on the terminal is continuously updated and upgraded due to the fact that the system installed on different terminals is different, and in order to ensure that an accurate feedback result is obtained when the authority application is initiated, the authority application process needs to be tested in application development. In the testing process of the authority application, different processing needs to be carried out on different feedback results, because a transmission interface needs to be called again after each authority application in the development, and because the application functions are more and more, the authorities which need to be applied are not only related but also more and more.
For example, the developer needs to perform different processing and user prompting according to the returned state. When a plurality of authorities are applied at one time and the next authority is applied, the result of the last authority application needs to be processed and then the processing is carried out, and the loops are buckled with each other, so that the processing complexity of the feedback result in the test process of the authority application is increased sharply, and the difficulty in the development test stage is increased.
In order to solve the problem of the prior art, an embodiment of the present invention provides a method for applying an authority, which responds to a test request for an application program, obtains a plurality of authorities of application functions that need to be applied in a test process of the authority application, and obtains a test result of the authority application performed by authorization requests of the plurality of application functions through one-time calling according to a preset authority application sequence, thereby simplifying a development test process.
The following first introduces the application of authority provided by the embodiment of the present invention.
Fig. 1 is a flowchart illustrating a method for applying for a permission according to an embodiment of the present invention. As shown in fig. 1, the method may include the steps of:
s110, receiving a test request of an authority application of the application program, wherein the test request comprises authorization requests of a plurality of application functions.
In the embodiment of the present invention, more and more application programs installed on the electronic device provide product services, and multiple application functions may need to be used corresponding to each product service, for example, when an application program is capable of providing a video playing service, the application functions that need to be used may include: speakers, modifying storage space, connecting networks, etc. When the application program can provide the video call service, the application functions to be used may include: speakers, connection networks, microphones, cameras, modification of storage space, etc.
After receiving the test request of the application for the authority application of the application program, S120 may be performed next.
And S120, responding to the test request, calling a preset test interface, and obtaining a test result of the permission application performed on the authorization requests of the plurality of application functions.
In the testing process, the embodiment of the invention provides a Software Development Kit (SDK) capable of acquiring the permission application result. The SDK can receive a test request for applying the authority of the application program.
The preset test interface is arranged in the SDK provided by the embodiment of the invention, so that the test result of the permission application performed by the authorization requests of a plurality of application functions can be informed to an applicant. To avoid the application result being complex, the predetermined test interface is configured to transmit two results, specifically for example: onSuccess () and onsaid ().
After the SDK receives the test request, S120 in this embodiment of the present invention may specifically include 121 to S124.
And S121, respectively acquiring authority description information of a plurality of application functions according to a preset authority application sequence.
In some embodiments, when the product service provided by the application program can be normally used, a plurality of application functions need to be used, and an application sequence exists among the plurality of application functions, for example, after an authority application needs to be performed on a certain application function, an authority application of other application functions can be performed.
The authority specification information of each application function may be default authority specification information. The authority specification information may specifically include an introduction to a corresponding service product, an application introduction in a service product corresponding to an application function, and the like.
In addition, the target description information may be specifically target description information of the application function, and when the SDK acquires the target description information of the application function, the target description information may be used as permission description information of the application function; and storing the target specification information of the application function.
After acquiring the right specification information of the application function, S122 may be executed next.
And S122, outputting at least one piece of authority description information.
In the embodiment of the invention, after the authority description information of the application function is acquired according to the preset authority application sequence, the authority description information of each application function can be sequentially output.
In one example, the authority specification information of the first application function may be output, wherein the first application function is an application function located in a first preset application order among the plurality of application functions.
And S123, receiving first feedback information based on the authority specification information output every time.
Based on the authority specification information of the first application function output in S122, first feedback information based on the authority specification information of the first application function may be received next; the first feedback information comprises a first feedback identifier or a second feedback identifier.
In order to conveniently adapt to various electronic terminals, uniform feedback information is obtained, and therefore, the first feedback information may include a first feedback identifier or a second feedback identifier, where the first feedback identifier may represent agreement and the second feedback identifier may represent disagreement, so that the feedback information is conveniently processed in a uniform manner.
And S124, determining a test result according to the at least one piece of first feedback information.
In an embodiment of the invention, the first feedback identity may represent consent. When the first feedback information of the authority description information of the first application function comprises a first feedback identifier and the plurality of application functions comprise application functions which are not subjected to authority application, acquiring the authority description information of a second application function, wherein the second application function is an application function which is positioned in a second preset application sequence in the plurality of application functions which are not subjected to authority application.
That is to say, in the embodiment of the present invention, when the feedback information of the received application function includes the first feedback identifier, as long as there is an application function for which the authority application has not been made, the authority description information of the application function for which the authority application has not been made is continuously acquired until the authority application of all the application functions is completed, or the received feedback information includes the second feedback identifier, and the application is stopped.
In some embodiments, the determining the test result according to the at least one piece of first feedback information may specifically include: and when the first feedback information of the authority description information of the plurality of application functions comprises the first feedback identification, determining the authority information corresponding to the first feedback identification as a test result. That is, all application functions required when the service product provided by the application program is used are allowed to be used, and therefore, the test result is determined as that the corresponding service product in the application program is allowed to be used.
In one example, determining the test result according to at least one piece of first feedback information may specifically include: and when the first feedback information of the authority description information of at least one application function comprises a second feedback identifier, determining the authority information corresponding to the second feedback identifier as a test result. In an embodiment of the invention, the second feedback identification may represent a disagreement, i.e. not allowing use of the corresponding application functionality. Since all application functions required for the service product provided by the application program are required to be licensed when used, when one application function is not licensed, it can be considered that the service product provided in the application program is not allowed to be used.
And S130, determining the use authority of the application program according to the test result.
In the embodiment of the invention, after the test result is obtained, the use permission of the application program can be directly determined. For example, when it is determined that the authority information corresponding to the first feedback identifier is a test result, the applicant may be notified by using onSuccess (), and a service product provided by the application program is allowed to be used; when the authority information corresponding to the second feedback identifier is determined as the test result, the applicant can be notified by using the onFailed (), and the service product provided by the application program is not allowed to be used.
According to the method for authority application provided by the embodiment of the invention, the test request of the application program is responded, in the test process of the authority application, the test result of the authority application of the authorization requests of a plurality of application functions can be obtained by acquiring a plurality of authorities of the application functions required to be applied and calling once according to the preset authority application sequence, the process of development and test is simplified, and then the use authority of the application program can be rapidly determined according to the test result, so that only one transmission interface needs to be called after each authority application in the development process, the development efficiency can be effectively improved, and the complexity of authority description processing in the development process is simplified.
In addition, in the embodiment of the present invention, in order to facilitate confirmation that the user has already known detailed rights expression information, another method for applying rights is further provided in the embodiment of the present invention, and after receiving a test request for applying rights to an application program, the method may include S221 to S227.
And S221, respectively acquiring authority description information of a plurality of application functions according to a preset authority application sequence.
The rights expression information of each application function may be default rights expression information. The authority specification information may specifically include an introduction to a corresponding service product, an application introduction in a service product corresponding to an application function, and the like. In order to confirm whether the user knows the detailed rights expression information, S222 may be performed next.
S222, obtaining the description guide information of the authority description information of the first application function.
The description guidance information may be, for example, "whether or not to know an application introduction of an application function", or the like, and is not particularly limited herein.
And S223, outputting the authority description information and the description guide information of the first application function.
The output permission description information can be used for describing the application function in detail, and the user can be guided to read and collect corresponding feedback information through the description guide information.
And S224, receiving second feedback information based on the description guide information.
The second feedback information comprises a third feedback identifier or a fourth feedback identifier.
Specifically, the third feedback identifier may indicate that the user has already solved the introduction to the application function, and the fourth feedback identifier may indicate that the user does not know the application function, or that the user does not agree with the scenario used by the application function in the introduction to the application.
When the second feedback information includes the third feedback flag, S225 may be specifically performed. When the second feedback information includes the fourth feedback flag, S227 may be specifically performed.
225. And generating preset application information of the authority description information of the first application function.
For example, the preset application information may be "whether to approve the use of the application function", or the like.
S226, outputting the preset application information to receive the first feedback information of the authority specification information of the first application function.
In the embodiment of the invention, whether the user agrees to use the application function can be determined by outputting the preset application information.
It can be understood that, in the embodiment of the present invention, when the received feedback information includes the first feedback identifier, as long as there is an application function for which an authority application has not been made, the authority description information and description guidance information of the application function for which the authority application has not been made are continuously obtained next until the authority application of all application functions is completed, or the fourth feedback identifier is included in the received second feedback information, and the second feedback identifier is included in the received first feedback information, and the application is stopped.
After second feedback information based on the description guide information is received, when first feedback information of the received authority description information of the plurality of application functions comprises a first feedback identifier, determining that the authority information corresponding to the first feedback identifier is a test result.
And S227, determining the authority information corresponding to the fourth feedback identifier as a test result.
When the second feedback information includes the fourth feedback identification, it indicates that the user does not know the application function, or the user does not agree with the scenario used by the application function in the application introduction. Since all application functions required for the service product provided by the application program are required to be licensed when the application program is used, when one application function is not licensed, the service product provided by the application program can be considered not to be used, so that the test result can be quickly determined.
And S230, determining the use authority of the application program according to the test result.
In S230, the specific implementation method is the same as S130, and for brevity, will not be described herein.
In some embodiments, after receiving a test request of an application for permission, the SDK provided in the embodiments of the present invention is used. The test result of the permission application performed on the authorization requests of the plurality of application functions is obtained, and as shown in fig. 2, the steps from S301 to S305 may be further performed.
S301, acquiring authority description information of a plurality of application functions.
In some embodiments, an application system installed on an electronic device where an application program is located may support obtaining feedback information of multiple application functions at the same time, and therefore, permission specification information of multiple application functions may be obtained based on the SDK provided in the embodiment of the present invention.
And S302, outputting a plurality of authority description information.
It can be understood that, the description guidance information of the right description information can be further included corresponding to each piece of right description information output, so as to facilitate collecting whether the user knows the detailed right description information.
S303, receiving first feedback information based on the plurality of authority specification information.
It is to be understood that second feedback information based on the description guidance information may also be received in this step.
Since the output right description information and the description guide information are output at the same time, the first feedback information or the second feedback information may be received at the same time.
S304, when the plurality of pieces of first feedback information comprise the first feedback identifications, determining the authority information corresponding to the first feedback identifications as test results.
It can be understood that, after the description guidance information corresponding to each right description information is output, in addition to that the plurality of first feedback information all include the first feedback identifier, it is also necessary to determine that the plurality of second feedback information all include the third feedback identifier, so that the right information corresponding to the first feedback identifier can be determined as the test result.
S305, when the plurality of pieces of first feedback information include at least one second feedback identification, determining that the authority information corresponding to the second feedback identification is a test result.
It can be understood that, after the description guidance information corresponding to each right description information is output, in addition to that the plurality of first feedback information includes at least one second feedback identifier or that the plurality of second feedback information includes at least one fourth feedback identifier, it is determined that the right information corresponding to the second feedback identifier is the test result.
According to the method for permission application provided by the embodiment of the invention, the test request of the application program is responded, in the test process of permission application, the test result of permission application performed by authorization requests of a plurality of application functions can be obtained by acquiring a plurality of permissions of the application functions required to be applied and calling once according to the preset permission application sequence, and the process of development and test is simplified. In addition, the description guide information of each permission description information is generated, so that whether the user knows the detailed permission description information or not is conveniently collected, and a basis is provided for an application process of optimizing the permission of a tester. And then, according to the test result, the use permission of the application program can be quickly determined, so that only one transmission interface needs to be called after each permission is applied in the development process, the development efficiency can be effectively improved, and the complexity of permission specification processing in the development can be simplified.
Fig. 3 is a schematic structural diagram of a device for applying for a right according to an embodiment of the present invention, and as shown in fig. 3, the device 300 for applying for a right may include: a receiving module 310, a testing module 320, and a processing module 330.
The receiving module 310 is configured to receive a test request for applying for permission to an application program, where the test request includes authorization requests for multiple application functions;
the test module 320 is configured to respond to the test request, invoke a preset test interface, and obtain a test result of an authority application performed on authorization requests of multiple application functions;
and the processing module 330 is configured to determine the usage right of the application program according to the test result.
In some embodiments, the apparatus 300 for permission application further includes an output module and a receiving module. The test module 320 is further configured to obtain permission specification information of the plurality of application functions according to a preset permission application sequence;
the output module is used for outputting at least one authority description message;
a receiving module for receiving first feedback information based on each output authority specification information;
the testing module 320 is further configured to determine a testing result according to the at least one first feedback information.
In some embodiments, the first feedback information comprises a first feedback identification or a second feedback identification.
The output module is further used for outputting authority description information of a first application function, wherein the first application function is an application function located in a first preset application sequence in the plurality of application functions;
the receiving module is also used for receiving first feedback information based on the authority specification information of the first application function;
the testing module 320 is further configured to obtain the authority description information of the second application function when the first feedback information of the authority description information of the first application function includes the first feedback identifier and the plurality of application functions include application functions that are not subject to authority application, where the second application function is an application function located in a second preset application order among the plurality of application functions that are not subject to authority application.
In some embodiments, the apparatus 300 for permission application further comprises a saving module.
The testing module 320 is further configured to, when the target description information of the application function is obtained, use the target description information as permission description information of the application function.
And the storage module is used for storing the target description information of the application function.
The testing module 320 is further configured to determine, when the first feedback information of the authority specification information of the multiple application functions all includes the first feedback identifier, that the authority information corresponding to the first feedback identifier is a testing result.
The testing module 320 is further configured to determine, when the first feedback information of the authority specification information of the at least one application function includes the second feedback identifier, that the authority information corresponding to the second feedback identifier is a testing result.
In some embodiments, the testing module 320 is further configured to obtain guidance information describing the right specification information of the first application function.
The output module is also used for outputting authority description information and description guide information of the first application function;
the receiving module is further used for receiving second feedback information based on the description guide information, wherein the second feedback information comprises a third feedback identifier or a fourth feedback identifier;
the test module 320 is further configured to generate preset application information of the authority specification information of the first application function when the second feedback information includes the third feedback identifier;
the output module is also used for outputting preset application information so as to receive first feedback information of the authority description information of the first application function;
the testing module 320 is further configured to determine, when the second feedback information includes a fourth feedback identifier, that the authority information corresponding to the fourth feedback identifier is a testing result.
In some embodiments, the testing module 320 is further configured to obtain permission specification information of a plurality of application functions;
the output module is also used for outputting a plurality of authority description information;
the receiving module is also used for receiving first feedback information based on the plurality of authority specification information;
the testing module 320 is further configured to determine, when the plurality of pieces of first feedback information each include a first feedback identifier, that the authority information corresponding to the first feedback identifier is a testing result;
the testing module 320 is further configured to determine, when the plurality of first feedback information includes at least one second feedback identifier, that the authority information corresponding to the second feedback identifier is a testing result.
It can be understood that the apparatus 300 for applying for a permission in the embodiment of the present invention may correspond to an execution main body of the method for applying for a permission provided in the embodiment of the present invention, and specific details of operations and/or functions of each module/unit of the apparatus 300 for applying for a permission may refer to the description of the corresponding part in the method for applying for a permission provided in the embodiment of the present invention, and are not described herein again for brevity.
The device for permission application of the embodiment of the invention responds to the test request of the application program, obtains a plurality of permissions required to be applied by the application functions in the permission application test process, and can obtain the test result of permission application performed by the authorization requests of the plurality of application functions through one-time calling according to the preset permission application sequence, thereby simplifying the development test process. In addition, the description guide information of each permission description information is generated, so that whether the user knows the detailed permission description information or not is conveniently collected, and a basis is provided for an application process of optimizing the permission of a tester. And then, according to the test result, the use permission of the application program can be quickly determined, so that only one transmission interface needs to be called after each permission is applied in the development process, the development efficiency can be effectively improved, and the complexity of permission specification processing in the development can be simplified.
Fig. 4 is a schematic structural diagram of a device for applying for a right according to an embodiment of the present invention. As shown in fig. 4, the apparatus may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present invention.
In one example, the Memory 402 may be a Read Only Memory (ROM). In one example, the ROM may be mask programmed ROM, programmable ROM (prom), erasable prom (eprom), electrically erasable prom (eeprom), electrically rewritable ROM (earom), or flash memory, or a combination of two or more of these.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the method described in the embodiment of the present invention, and achieve the corresponding technical effect achieved by the method executed in the embodiment of the present invention, which is not described herein again for brevity.
In one example, the device for which the rights apply may also include a communication interface 403 and a bus 410. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
The device for permission application can execute the method for recommending the enterprise user service in the embodiment of the invention, thereby realizing the corresponding technical effect of the method for permission application described in the embodiment of the invention.
In addition, in combination with the method of the rights application in the above embodiments, the embodiments of the present invention may be implemented by providing a readable storage medium. The readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement the method of any of the above embodiments of the rights application.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor Memory devices, Read-Only memories (ROMs), flash memories, Erasable Read-Only memories (EROMs), floppy disks, Compact disk Read-Only memories (CD-ROMs), optical disks, hard disks, optical fiber media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (11)
1. A method of rights application, comprising:
receiving a test request for an authority application of an application program, wherein the test request comprises authorization requests of a plurality of application functions;
responding to the test request, calling a preset test interface, and acquiring a test result of the permission application performed on the authorization requests of the plurality of application functions;
and determining the use permission of the application program according to the test result.
2. The method according to claim 1, wherein the invoking a preset test interface to obtain a test result of the permission application performed on the authorization requests of the plurality of application functions comprises:
respectively acquiring authority description information of a plurality of application functions according to a preset authority application sequence;
outputting at least one of the right description information;
receiving first feedback information based on each output authority specification information;
and determining the test result according to at least one piece of first feedback information.
3. The method of claim 2, wherein the first feedback information comprises a first feedback identifier or a second feedback identifier, and wherein outputting at least one of the rights expression information comprises:
outputting authority specification information of a first application function, wherein the first application function is an application function in a first preset application sequence in the plurality of application functions;
the receiving of the first feedback information based on the authority specification information of each output includes:
receiving first feedback information based on the authority specification information of the first application function;
and when the first feedback information of the authority description information of the first application function comprises a first feedback identifier and the plurality of application functions comprise application functions which are not subjected to authority application, acquiring authority description information of a second application function, wherein the second application function is an application function which is positioned in a second preset application order in the plurality of application functions which are not subjected to authority application.
4. The method according to claim 2, wherein the obtaining rights expression information of the plurality of application functions respectively comprises:
when target description information of the application function is acquired, the target description information is used as authority description information of the application function; and the number of the first and second groups,
and saving the target description information of the application function.
5. The method of claim 3, wherein determining the test result according to the at least one first feedback information comprises:
and when the first feedback information of the authority description information of the plurality of application functions comprises a first feedback identifier, determining the authority information corresponding to the first feedback identifier as the test result.
6. The method of claim 5, wherein determining the test result according to the at least one first feedback information further comprises:
and when the first feedback information of the authority description information of at least one application function comprises a second feedback identifier, determining the authority information corresponding to the second feedback identifier as the test result.
7. The method of claim 3, wherein the outputting of the information of the permission specification of the first application function further comprises:
acquiring description guide information of the authority description information of the first application function;
outputting the permission specification information and the specification guidance information of the first application function;
receiving second feedback information based on the description guide information, wherein the second feedback information comprises a third feedback identifier or a fourth feedback identifier;
when the second feedback information comprises a third feedback identification, generating preset application information of the authority description information of the first application function; and the number of the first and second groups,
outputting the preset application information to receive the first feedback information of the authority description information of the first application function;
and when the second feedback information comprises a fourth feedback identifier, determining the authority information corresponding to the fourth feedback identifier as the test result.
8. The method according to claim 2, wherein the invoking a preset test interface to obtain a test result of the permission application performed on the authorization requests of the plurality of application functions further comprises:
acquiring authority description information of a plurality of application functions;
outputting a plurality of the right description information;
receiving first feedback information based on a plurality of the authority specification information;
when the plurality of pieces of first feedback information comprise first feedback identifications, determining authority information corresponding to the first feedback identifications as the test results;
and when the plurality of pieces of first feedback information comprise at least one second feedback identification, determining the authority information corresponding to the second feedback identification as the test result.
9. An apparatus for rights application, the apparatus comprising:
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a test request of an authority application of an application program, and the test request comprises authorization requests of a plurality of application functions;
the test module is used for responding to the test request, calling a preset test interface and acquiring a test result of the permission application performed on the authorization requests of the plurality of application functions;
and the processing module is used for determining the use permission of the application program according to the test result.
10. A rights application device, comprising: a processor, and a memory storing computer program instructions;
the processor reads and executes the computer program instructions to implement the method of the rights application as claimed in any one of claims 1-8.
11. A readable storage medium, having stored thereon computer program instructions which, when executed by a processor, implement a method of a rights application according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110428330.0A CN113076258B (en) | 2021-04-21 | 2021-04-21 | Method, device and equipment for applying permission and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110428330.0A CN113076258B (en) | 2021-04-21 | 2021-04-21 | Method, device and equipment for applying permission and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113076258A true CN113076258A (en) | 2021-07-06 |
CN113076258B CN113076258B (en) | 2023-09-19 |
Family
ID=76618180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110428330.0A Active CN113076258B (en) | 2021-04-21 | 2021-04-21 | Method, device and equipment for applying permission and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113076258B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114692093A (en) * | 2022-05-27 | 2022-07-01 | 荣耀终端有限公司 | Application program installation method and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050039158A1 (en) * | 2003-08-13 | 2005-02-17 | International Business Machines Corporation | Method and apparatus for adopting authorizations |
US20100192229A1 (en) * | 2009-01-27 | 2010-07-29 | Fujitsu Limited | Privilege violation detecting program |
CN110929249A (en) * | 2019-11-22 | 2020-03-27 | 北京博睿宏远数据科技股份有限公司 | Screen recording method, device, equipment and storage medium for automatic test |
CN111221733A (en) * | 2020-01-06 | 2020-06-02 | 北京小米移动软件有限公司 | Information processing method and device, mobile terminal and storage medium |
CN111639021A (en) * | 2020-05-14 | 2020-09-08 | 深圳壹账通智能科技有限公司 | Permission testing method and device of application program and terminal equipment |
CN111931160A (en) * | 2020-08-13 | 2020-11-13 | 苏州朗动网络科技有限公司 | Authority verification method, device, terminal and storage medium |
CN112148597A (en) * | 2020-09-16 | 2020-12-29 | 北京基调网络股份有限公司 | Method for eliminating iOS device authorization dialog box, test method and storage medium |
CN112463599A (en) * | 2020-11-18 | 2021-03-09 | 平安消费金融有限公司 | Automatic testing method and device, computer equipment and storage medium |
-
2021
- 2021-04-21 CN CN202110428330.0A patent/CN113076258B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050039158A1 (en) * | 2003-08-13 | 2005-02-17 | International Business Machines Corporation | Method and apparatus for adopting authorizations |
US20100192229A1 (en) * | 2009-01-27 | 2010-07-29 | Fujitsu Limited | Privilege violation detecting program |
CN110929249A (en) * | 2019-11-22 | 2020-03-27 | 北京博睿宏远数据科技股份有限公司 | Screen recording method, device, equipment and storage medium for automatic test |
CN111221733A (en) * | 2020-01-06 | 2020-06-02 | 北京小米移动软件有限公司 | Information processing method and device, mobile terminal and storage medium |
CN111639021A (en) * | 2020-05-14 | 2020-09-08 | 深圳壹账通智能科技有限公司 | Permission testing method and device of application program and terminal equipment |
CN111931160A (en) * | 2020-08-13 | 2020-11-13 | 苏州朗动网络科技有限公司 | Authority verification method, device, terminal and storage medium |
CN112148597A (en) * | 2020-09-16 | 2020-12-29 | 北京基调网络股份有限公司 | Method for eliminating iOS device authorization dialog box, test method and storage medium |
CN112463599A (en) * | 2020-11-18 | 2021-03-09 | 平安消费金融有限公司 | Automatic testing method and device, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
M. FRANK 等: "Mining Permission Request Patterns from Android and Facebook Applications", 《2012 IEEE 12TH INTERNATIONAL CONFERENCE ON DATA MINING》, pages 870 - 875 * |
张金鑫 等: "基于权限分析的 Android 应用程序检测系统", 《信息网络安全》, no. 07, pages 30 - 34 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114692093A (en) * | 2022-05-27 | 2022-07-01 | 荣耀终端有限公司 | Application program installation method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113076258B (en) | 2023-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112996020B (en) | Bluetooth-based automatic test method and device and Bluetooth test terminal | |
WO2023035901A1 (en) | System software upgrading method and apparatus, and device and computer storage medium | |
CN113076258A (en) | Permission application method, device, equipment and readable storage medium | |
CN114385386A (en) | Method, device, equipment and storage medium for calling micro-service | |
CN114884912A (en) | Communication method, system, equipment and computer readable storage medium of SOA architecture | |
CN111046371A (en) | Method, electronic device and computer-readable medium for generating device identification | |
EP4123540A1 (en) | Payment function activation method, terminal device, server, system, and storage medium | |
CN109348451A (en) | The storage method and device of vehicle auxiliary transmission record | |
CN109699030B (en) | Unmanned aerial vehicle authentication method, device, equipment and computer readable storage medium | |
CN109474929B (en) | Power consumption mode adjusting method and device, electronic equipment and computer readable storage medium | |
CN115905145A (en) | File processing method, device, equipment and computer storage medium | |
CN109327836A (en) | Network authentication method, device, equipment and medium | |
CN116366275A (en) | Safety verification method, device, equipment and storage medium based on vehicle controller | |
CN114675822A (en) | AUTOSAR software component development method, device, equipment and storage medium | |
CN115174645A (en) | Automobile OTA (over the air) vehicle cloud interaction method and system | |
CN115202632A (en) | Matlab/Simulink-based AUTOSAR software assembly function interface development method | |
CN114338278A (en) | Tunnel communication method, device, equipment and medium | |
CN112835641A (en) | Configuration method and device for application program running function | |
CN107291618B (en) | Application storage method and device and terminal equipment | |
CN114205237B (en) | Authentication method and device for application program, electronic equipment and computer storage medium | |
CN116527284B (en) | Data storage security determination method, device, equipment and storage medium | |
CN111832003B (en) | Internet of vehicles alliance authentication method and device for application program | |
TWI767254B (en) | Authorization system and method thereof | |
CN114205239A (en) | Network slicing service determination method, device, equipment and computer storage medium | |
CN115983856A (en) | Shield testing method, device, equipment and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |