CN113076258B - Method, device and equipment for applying permission and readable storage medium - Google Patents

Method, device and equipment for applying permission and readable storage medium Download PDF

Info

Publication number
CN113076258B
CN113076258B CN202110428330.0A CN202110428330A CN113076258B CN 113076258 B CN113076258 B CN 113076258B CN 202110428330 A CN202110428330 A CN 202110428330A CN 113076258 B CN113076258 B CN 113076258B
Authority
CN
China
Prior art keywords
application
information
feedback
authority
rights
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110428330.0A
Other languages
Chinese (zh)
Other versions
CN113076258A (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 Mobile Communications Group Co Ltd
China Mobile Group Shanxi Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Shanxi 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 Mobile Communications Group Co Ltd, China Mobile Group Shanxi Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110428330.0A priority Critical patent/CN113076258B/en
Publication of CN113076258A publication Critical patent/CN113076258A/en
Application granted granted Critical
Publication of CN113076258B publication Critical patent/CN113076258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test 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, equipment and a readable storage medium for authority application. The method comprises the following steps: receiving a test request of an application program authority application, wherein the test request comprises authorization requests of a plurality of application functions; responding to the test request, calling a preset test interface, and obtaining a test result of an authority application carried out on authorization requests of a 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 testing process of the authority application can be reduced, and the difficulty of developing and testing can be reduced.

Description

Method, device and equipment for applying permission and readable storage medium
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 applying rights.
Background
The mobile internet is rapidly developed, and various terminal applications are presented, which provide convenience for 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 after the user agrees, the application functions can be used continuously.
At present, application and limitation of rights are more and more strict, and because systems installed by different terminals are different, the systems installed by the terminals are continuously updated and upgraded, and in order to ensure that accurate feedback results are obtained when the rights application is initiated, the rights application process needs to be tested in application development. In the testing process of the authority application, different feedback results need to be processed differently, and as the transmission interface is required to be recalled after each authority application in development, and as the functions of the application are more and more, the authorities which need to be applied are associated, and more, the processing complexity of the feedback results in the testing process of the authority application is increased sharply, so that the difficulty of the development testing stage is increased.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a readable storage medium for applying rights, which can reduce the complexity of processing feedback results in the testing process of the rights application and reduce the difficulty of developing and testing.
In a first aspect, an embodiment of the present invention provides a method for applying rights, where the method includes:
receiving a test request of an application program authority application, wherein the test request comprises authorization requests of a plurality of application functions;
Responding to the test request, calling a preset test interface, and obtaining a test result of an authority application carried out on authorization requests of a plurality of application functions;
and determining the use permission of the application program according to the test result.
In some implementations of the first aspect, invoking a preset test interface to obtain a test result of a permission 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 authority specification information;
receiving first feedback information based on each of the outputted rights specification information;
and determining a test result according to the at least one 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 outputting at least one rights specification information includes:
outputting authority description information of a first application function, wherein the first application function is an application function positioned in a first preset application sequence in a plurality of application functions;
receiving first feedback information based on the rights specification information of each output, comprising:
receiving first feedback information based on authority description information of a 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 do not carry out authority application, acquiring the authority description information of a second application function, wherein the second application function is an application function which is located in a second preset application sequence in the plurality of application functions which do not carry out authority application.
In some implementations of the first aspect, obtaining rights specification information for a plurality of application functions, respectively, includes:
when the target description information of the application function is obtained, the target description information is used as the authority description information of the application function; the method comprises the steps of,
and saving the target specification information of the application function.
In some implementations of the first aspect, determining the test result according to the at least one first feedback information includes:
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 at least one first feedback information further includes:
when the first feedback information of the authority specification information of the at least one application function comprises the second feedback identification, determining the authority information corresponding to the second feedback identification as a test result.
In some implementations of the first aspect, outputting rights specification information of the first application function, 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 explanation 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 identifier, preset application information of authority description information of the first application function is generated; the method comprises the steps of,
outputting preset application information for receiving first feedback information of authority description information of a first application function;
when the second feedback information comprises a fourth feedback identifier, determining authority information corresponding to the fourth feedback identifier as a test result.
In some implementations of the first aspect, invoking a preset test interface to obtain a test result of an application of authority for authorization requests of a plurality of application functions, and further including:
acquiring authority description information of a plurality of application functions;
outputting a plurality of rights specification information;
receiving first feedback information based on the plurality of rights specification information;
When the plurality of first feedback information comprises a first feedback identifier, determining authority information corresponding to the first feedback identifier as a test result;
when the plurality of first feedback information comprises at least one second feedback identifier, determining 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 rights, where the apparatus includes:
the receiving module is used for receiving a test request of the application program authority application, wherein the test request comprises authorization requests of a plurality of application functions;
the testing module is used for responding to the testing request, calling a preset testing interface and obtaining the testing result of the authority application carried out 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 apparatus comprising: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the method of the rights application described in the first aspect or any of the realizations of the first aspect.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon computer program instructions which when executed by a processor implement the method of the rights application of the first aspect or any of the realizable forms of the first aspect.
The embodiment of the invention provides a method, a device, equipment and a readable storage medium for applying rights, which respond to a test request of an application program, and in the process of testing the application program, a test result of the application program of the rights, which is carried out by the authorization request of a plurality of application functions, can be obtained through one call according to a preset order of the application of the rights, so that the development test process is simplified, and then, the use rights of the application program can be rapidly determined according to the test result, so that only one call of a transmission interface is needed after each application of the rights in the development process, the development efficiency can be effectively improved, and the complexity of rights description processing in the development is simplified.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is a flow chart of a method for applying rights provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a method of applying for rights according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for applying for rights according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for applying rights 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 the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the invention only and 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 invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 like elements in a process, method, article or apparatus that comprises the element.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The mobile internet is rapidly developed, and various terminal applications are presented, which provide convenience for 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 after the user agrees, the application functions can be used continuously.
At present, application and limitation of rights are more and more strict, and because systems installed by different terminals are different, the systems installed by the terminals are continuously updated and upgraded, and in order to ensure that accurate feedback results are obtained when the rights application is initiated, the rights application process needs to be tested in application development. In the process of testing authority application, different feedback results are required to be processed differently, and as the transmission interface is required to be recalled after each authority application in development, and as the functions of the application are more and more, the authorities required to be applied are more and more relevant.
For example, the developer needs to perform different processing and user prompting according to the returned state. When a plurality of rights are applied at a time and the next right is applied, the result of the previous application right is required to be processed and then the results are buckled, so that the processing complexity of the feedback result in the testing process of the right application is increased sharply, and the difficulty of developing the testing stage is increased.
In order to solve the problems in the prior art, the embodiment of the invention provides a method for applying rights, which responds to a test request of an application program, and in the process of testing the application program, a test result of the application program of the rights application can be obtained through acquiring a plurality of rights of the application function which need to be applied according to a preset order of the application of the rights, and the authorization request of the plurality of application functions can be obtained through one call, so that the process of developing the test is simplified, and then, according to the test result, the use rights of the application program can be rapidly determined, so that only one call of a transmission interface is needed after each application of the rights in the development process, the development efficiency can be effectively improved, and the complexity of rights description processing in the development is simplified.
The following first describes the application of rights provided by the embodiment of the present invention.
FIG. 1 is a flow chart of a method of applying for rights according to one embodiment of the invention. As shown in fig. 1, the method may include the steps of:
s110, receiving a test request of an application program authority application, wherein the test request comprises authorization requests of a plurality of application functions.
In the embodiment of the present invention, more and more product services are provided by an application program installed on an electronic device, and multiple application functions may need to be used corresponding to each product service, and for example, when the 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 an application is able to provide video call services, the application functions that need to be used may include: speakers, connection networks, microphones, cameras, modification of storage space, etc.
After receiving the test request of the application program' S rights application, S120 may be performed next.
S120, responding to the test request, calling a preset test interface, and obtaining the test result of the authority application carried out on the authorization requests of the application functions.
In the test process, the embodiment of the invention provides a software development kit (Software Development Kit, SDK) capable of acquiring the authority application result. A test request for a rights application for an application may be received by the SDK.
The SDK provided by the embodiment of the invention is provided with the preset test interface, so that the test results of the authority application carried out by the authorization requests of a plurality of application functions can be informed to an applicant. In order to avoid the complexity of the results of the application, the preset test interface is therefore configured to be able to deliver two results, specifically for example: onSuccess () and onFailed ().
After the SDK receives the test request, S120 in the embodiment of the present invention may specifically include 121 to S124.
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 are required to be used, and an application sequence exists among the plurality of application functions, for example, authority application of other application functions can be performed after authority application is performed on one application function.
Wherein the rights specification information of each application function may be default rights specification information. The rights specification information may specifically include an introduction to the corresponding service product, an application introduction in the corresponding service product of the application function, and the like.
In addition, the target specification information of the application function may be specifically obtained, and when the SDK obtains the target specification information of the application function, the target specification information may be used as authority specification information of the application function; and saving the target specification information of the application function.
After acquiring the rights specification information of the application function, S122 may be performed next.
S122, outputting at least one piece of authority description information.
In the embodiment of the invention, after the authority description information of the application functions 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 permission specification information of the first application function may be output, where the first application function is an application function located in a first preset application order among the plurality of application functions.
S123, receiving first feedback information based on the authority description information output by each user.
Based on the rights specification information of the first application function output in S122, first feedback information based on the rights 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 facilitate the adaptation of various electronic terminals and obtain unified feedback information, 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 unified processing of the feedback information is facilitated.
S124, determining a test result according to at least one piece of first feedback information.
In an embodiment of the present invention, the first feedback identification 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 do not carry out authority application, acquiring the authority description information of a second application function, wherein the second application function is an application function which is located in a second preset application sequence in the plurality of application functions which do not carry out authority application.
That is, in the embodiment of the present invention, when the feedback information of the application function includes the first feedback identifier, as long as there are any application functions for which no rights application is performed, the rights specification information of the application functions for which no rights application is performed is continuously obtained until the rights application of all the application functions is completed, or the second feedback identifier is included in the received feedback information, and the continuation of the application is stopped.
In some embodiments, the determining the test result may include: 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, the application functions required for the use of the service products provided by the application program are allowed to be used, and therefore, the test result is determined to be that the corresponding service products in the application program are allowed to be used.
In one example, determining the test result according to the at least one first feedback information may specifically further include: when the first feedback information of the authority specification information of the at least one application function comprises the second feedback identification, determining the authority information corresponding to the second feedback identification as a test result. In an embodiment of the invention, the second feedback identification may represent disagreement, i.e. not allowing the use of the corresponding application function. Since the service products provided by the application program are required to be licensed for use by all application functions required for use, when one application function is not licensed, it is considered that the use of the service products provided in the application program is not allowed.
S130, determining the use permission of the application program according to the test result.
In the embodiment of the invention, after the test result is obtained, the use authority of the application program can be directly determined. For example, when determining that the authority information corresponding to the first feedback identifier is a test result, the application may be notified using onSuccess (), and the service product provided by the application program is allowed to be used; when the permission information corresponding to the second feedback identification is determined to be the test result, the applicant can be notified by using onFailed (), and the service product provided by the application program is not allowed to be used.
According to the method for applying the permission provided by the embodiment of the invention, the test request of the application program is responded, in the process of testing the application program, the test results of the application program of the permission application can be obtained through one call according to the preset permission application sequence by acquiring a plurality of permissions of the application function, the process of developing the test is simplified, and then, the use permission of the application program can be rapidly determined according to the test results, so that only one transmission interface is required to be called after each permission application in the development process, the development efficiency can be effectively improved, and the complexity of the permission description processing in the development is simplified.
In addition, in the embodiment of the present invention, in order to confirm that the user has already known the detailed rights specification information, the embodiment of the present invention further provides another method of rights application, which may include S221 to S227 after receiving the test request of the rights application of the application program.
S221, respectively acquiring authority description information of a plurality of application functions according to a preset authority application sequence.
The rights specification information of each application function may be default rights specification information. The rights specification information may specifically include an introduction to the corresponding service product, an application introduction in the corresponding service product of the application function, and the like. In order to facilitate confirmation of whether the user knows the detailed rights specification information, S222 may be performed next.
S222, acquiring description guide information of authority description information of the first application function.
The explanatory guidance information may be, for example, "whether to learn application introduction of an application function" or the like, and is not particularly limited herein.
S223, outputting the authority description information and the description guide information of the first application function.
The output authority description information can be used for describing the corresponding functions in detail, and the user can be guided to read and collect the corresponding feedback information through the description guide information.
S224, receiving second feedback information based on the explanatory 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 known an 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 application introduction.
S225 may be specifically performed when the second feedback information includes a third feedback identification. S227 may be specifically performed when the second feedback information includes a fourth feedback identification.
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 agree to use the application function" or the like.
S226, outputting preset application information for receiving first feedback information of authority description 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 may 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 no rights application is performed, the rights specification information and the description guidance information of the application function for which no rights application is performed are continuously acquired until the rights application of all the application functions is completed, or the received second feedback information includes the fourth feedback identifier, and the received first feedback information includes the second feedback identifier, so that the continuing application is stopped.
After receiving the second feedback information based on the description guide information, determining that the authority information corresponding to the first feedback identification is a test result when the received first feedback information of the authority description information of the plurality of application functions comprises the first feedback identification.
And S227, determining authority information corresponding to the fourth feedback identification as a test result.
And when the second feedback information comprises the fourth feedback identification, the user does not know the application function, or the user does not agree with the scene used by the application function in the application introduction. Since the service products provided by the application program are required to be licensed by all application functions required when the application program is used, when one application function is not licensed, the service products provided in the application program are not allowed to be used, so that the test result can be quickly determined.
S230, determining the use permission of the application program according to the test result.
In S230, the specific implementation method is the same as S130, and for brevity, description is omitted here.
In some embodiments, after receiving a test request for a rights application of an application, an SDK is provided according to an embodiment of the present invention. The test results of the rights application performed on the authorization requests of the plurality of application functions are obtained, and as shown in fig. 2, S301 to S305 may also be 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 acquiring feedback information of multiple application functions at the same time, so that the SDK provided in the embodiment of the present invention may acquire rights specification information of multiple application functions.
S302, outputting a plurality of right description information.
It is understood that the instruction guide information of the authority instruction information may be included corresponding to each of the outputted authority instruction information, so that it is convenient to collect whether the user knows the detailed authority instruction information.
S303, receiving first feedback information based on the plurality of right specification information.
It will be appreciated that in this step, second feedback information based on the explanatory guide information may also be received.
Since the output authority specification information and the specification guidance information are simultaneously output, the first feedback information or the second feedback information may be simultaneously received.
And S304, when the plurality of first feedback information comprises the first feedback identifiers, determining authority information corresponding to the first feedback identifiers as a test result.
It can be understood that, after the instruction guide information corresponding to each authority instruction information is output, it is required to determine that the authority information corresponding to the first feedback identifier is a test result, except that the first feedback information includes the first feedback identifier, and the second feedback information includes the third feedback identifier.
S305, when the plurality of first feedback information comprises at least one second feedback identifier, determining authority information corresponding to the second feedback identifier as a test result.
It can be understood that, after the instruction guide information corresponding to each piece of authority instruction information is output, the authority information corresponding to the second feedback identification is determined as the test result except that the plurality of first feedback information includes at least one second feedback identification or the plurality of second feedback information includes at least one fourth feedback identification.
According to the method for applying the permission provided by the embodiment of the invention, the test request of the application program is responded, in the process of testing the application program, the test result of the application program of the permission requested by the authorization request of the application functions can be obtained through one call according to the preset permission application sequence by acquiring the multiple permissions of the application functions, and the process of developing and testing is simplified. In addition, the explanation guide information of each authority explanation information is generated, so that whether a user knows detailed authority explanation information or not is conveniently collected, and a basis is provided for the application flow of the optimized authority of the tester. And then, according to the test result, the use authority of the application program can be rapidly determined, so that only one transmission interface is required 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 can be simplified.
Fig. 3 is a schematic structural diagram of an apparatus for applying for rights according to an embodiment of the present invention, as shown in fig. 3, an apparatus 300 for applying for rights 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 of an application program, where the test request includes authorization requests of a plurality of application functions;
the test module 320 is configured to call a preset test interface in response to the test request, and obtain a test result of the permission application performed on the authorization requests of the plurality of application functions;
and the processing module 330 is used for determining the use permission of the application program according to the test result.
In some embodiments, the apparatus 300 of the rights application further includes an output module and a receiving module. The test module 320 is further configured to obtain rights specification information of a plurality of application functions according to a preset rights application sequence;
the output module is used for outputting at least one piece of authority specification information;
the receiving module is used for receiving first feedback information based on the authority description information of each output;
the test module 320 is further configured to determine a test result according to at least one first feedback information.
In some embodiments, the first feedback information includes 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 positioned 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 description information of the first application function;
the test module 320 is further configured to obtain rights specification information of a second application function when the first feedback information of the rights specification information of the first application function includes a first feedback identifier and the plurality of application functions includes an application function that does not perform rights application, where the second application function is an application function that is located in a second preset application order among the plurality of application functions that do not perform rights application.
In some embodiments, the apparatus 300 of the rights application further comprises a save module.
The test module 320 is further configured to, when obtaining the target specification information of the application function, use the target specification information as the authority specification information of the application function.
And the storage module is used for storing the target description information of the application function.
The test module 320 is further configured to determine that the authority information corresponding to the first feedback identifier is a test result when the first feedback information of the authority description information of the plurality of application functions includes the first feedback identifier.
The test module 320 is further configured to determine, when the first feedback information of the rights specification information of the at least one application function includes the second feedback identifier, that the rights information corresponding to the second feedback identifier is a test result.
In some embodiments, the test module 320 is further configured to obtain description guidance information of the rights specification information of the first application function.
The output module is also used for outputting the authority description information and the description guide information of the first application function;
the receiving module is further used for receiving second feedback information based on the explanation guiding 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 permission 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 be used for receiving first feedback information of authority description information of the first application function;
the test module 320 is further configured to determine that the permission information corresponding to the fourth feedback identifier is a test result when the second feedback information includes the fourth feedback identifier.
In some embodiments, the test module 320 is further configured to obtain rights specification information of a plurality of application functions;
The output module is also used for outputting a plurality of right instruction information;
the receiving module is also used for receiving first feedback information based on the plurality of right specification information;
the test module 320 is further configured to determine that authority information corresponding to the first feedback identifier is a test result when the plurality of first feedback information includes the first feedback identifier;
the test module 320 is further configured to determine, when the plurality of first feedback information includes at least one second feedback identifier, permission information corresponding to the second feedback identifier as a test result.
It may be understood that the apparatus 300 for applying for rights in the embodiment of the present invention may correspond to an execution body of the method for applying for rights 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 rights may be referred to the description of corresponding parts in the method for applying for rights in the embodiment of the present invention, which is not repeated herein for brevity.
According to the device for applying the permission, provided by the embodiment of the invention, the test results of the permission application of the authorization requests of the plurality of application functions can be obtained through one call according to the preset permission application sequence by acquiring the plurality of permissions of the application functions to be applied in the process of testing the permission application in response to the test request of the application program, and the development and test processes are simplified. In addition, the explanation guide information of each authority explanation information is generated, so that whether a user knows detailed authority explanation information or not is conveniently collected, and a basis is provided for the application flow of the optimized authority of the tester. And then, according to the test result, the use authority of the application program can be rapidly determined, so that only one transmission interface is required 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 can be simplified.
Fig. 4 is a schematic structural diagram of an apparatus for applying rights according to an embodiment of the present invention. As shown in fig. 4, the device may include a processor 401 and a memory 402 in which computer program instructions are stored.
In particular, the processor 401 described above may include a central processing unit (Central Processing Unit, CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for information or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. In one example, the memory 402 may include removable or non-removable (or fixed) media, or the memory 402 is a non-volatile solid state memory. The memory 402 may be internal or external to the device of the rights application.
In one example, memory 402 may be 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 achieves the corresponding technical effects achieved by executing the method in the embodiment of the present invention, which is not described herein for brevity.
In one example, the device of the rights application 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 by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 410 includes hardware, software, or both that couple components of the online information-flow billing device to each other. By way of example, and not limitation, the buses may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, an infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (MCa) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards association local (VLB) Bus, or other suitable Bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
The device for applying the permission can execute the recommendation method of the enterprise user service in the embodiment of the invention, thereby realizing the corresponding technical effects of the method for applying the permission described in the embodiment of the invention.
In addition, in connection with the method of rights application in the above embodiment, the embodiment 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 a method of any of the rights applications of the above embodiments.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. 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 shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), suitable firmware, a plug-in, a 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 over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor Memory devices, read-Only Memory (ROM), flash Memory, erasable Read-Only Memory (Erasable Read Only Memory, EROM), floppy disks, compact discs (Compact Disc Read-Only Memory, CD-ROM), optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure 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, or may be performed in a different order from the order in the embodiments, or several steps 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 being, 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 which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (8)

1. A method of applying for rights, comprising:
receiving a test request of an application program authority application, wherein the test request comprises authorization requests of a plurality of application functions;
responding to the test request, calling a preset test interface, and obtaining a test result of an authority application carried out on the authorization requests of the application functions;
determining the use authority of the application program according to the test result;
the calling the preset test interface to obtain the test result of the authority application performed on the authorization requests of the application functions comprises the following steps:
Respectively acquiring authority description information of a plurality of application functions according to a preset authority application sequence;
outputting at least one piece of authority specification information;
receiving first feedback information based on each piece of output permission specification information, wherein the first feedback information comprises a first feedback identifier or a second feedback identifier;
determining the test result according to at least one piece of first feedback information;
wherein said outputting at least one of said rights specification information comprises:
outputting authority description information of a first application function, wherein the first application function is an application function positioned in a first preset application sequence in the plurality of application functions;
the receiving the first feedback information based on the rights specification information of each output includes:
receiving first feedback information based on authority description 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 do not carry out 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 do not carry out authority application;
Wherein, the outputting the authority description information of the first application function, the method further includes:
acquiring description guide information of authority description information of the first application function;
outputting the authority description information and the description guidance information of the first application function;
receiving second feedback information based on the descriptive guide information, wherein the second feedback information comprises a third feedback identification or a fourth feedback identification;
when the second feedback information comprises a third feedback identifier, generating preset application information of authority description information of the first application function; the method comprises the steps of,
outputting the preset application information to be used for receiving 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 authority information corresponding to the fourth feedback identifier as the test result.
2. The method according to claim 1, wherein the acquiring rights specification information of the plurality of application functions, respectively, includes:
when target description information of the application function is obtained, the target description information is used as authority description information of the application function; the method comprises the steps of,
And storing the target specification information of the application function.
3. The method of claim 1, wherein said determining said test result based on at least one of said first feedback information comprises:
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.
4. A method according to claim 3, wherein said determining said test result based on at least one of said first feedback information further comprises:
when the first feedback information of the authority specification 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.
5. The method of claim 1, wherein the invoking the preset test interface obtains a test result of the application of rights to the authorization request of the plurality of application functions, further comprising:
acquiring authority description information of a plurality of application functions;
outputting a plurality of right specification information;
receiving first feedback information based on a plurality of rights specification information;
When the plurality of first feedback information comprises a first feedback identifier, determining authority information corresponding to the first feedback identifier as the test result;
when the plurality of first feedback information comprises at least one second feedback identifier, determining authority information corresponding to the second feedback identifier as the test result.
6. An apparatus for applying for rights, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a test request of an application program authority application, wherein 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 obtaining a test result of an authority application carried out on the authorization requests of the application functions;
the processing module is used for determining the use permission of the application program according to the test result;
wherein, the device of rights application still includes:
the test module is also used for respectively acquiring authority description information of a plurality of application functions according to a preset authority application sequence;
the output module is used for outputting at least one piece of authority description information;
the receiving module is used for receiving first feedback information based on the authority description information of each output, wherein the first feedback information comprises a first feedback identifier or a second feedback identifier;
The test module is further used for determining the test result according to at least one piece of the first feedback information;
the output module is further configured to output authority specification information of a first application function, where 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 further used for receiving first feedback information based on the authority description information of the first application function;
the test module is further configured to obtain rights specification information of a second application function when the first feedback information of the rights specification information of the first application function includes a first feedback identifier and the plurality of application functions includes an application function for which a rights application is not performed, where the second application function is an application function located in a second preset application order among the plurality of application functions for which a rights application is not performed;
the test module is further used for acquiring description guiding information of the authority description information of the first application function;
the output module is further used for outputting the authority description information and the description guiding information of the first application function;
The receiving module is further configured to receive second feedback information based on the instruction guiding information, where the second feedback information includes a third feedback identifier or a fourth feedback identifier;
the test module is further configured to generate preset application information of the permission specification information of the first application function when the second feedback information includes a third feedback identifier; the method comprises the steps of,
the output module is further configured to output the preset application information, so as to receive the first feedback information of the permission specification information of the first application function;
and the test module is further used for determining that the authority information corresponding to the fourth feedback identifier is the test result when the second feedback information comprises the fourth feedback identifier.
7. A rights application apparatus, characterized in that the apparatus comprises: a processor and a memory storing computer program instructions;
the processor reads and executes the computer program instructions to implement the method of claim 1-5.
8. A readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method of claim 1-5.
CN202110428330.0A 2021-04-21 2021-04-21 Method, device and equipment for applying permission and readable storage medium Active CN113076258B (en)

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 CN113076258A (en) 2021-07-06
CN113076258B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114692093B (en) * 2022-05-27 2022-10-25 荣耀终端有限公司 Application program installation method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343620B2 (en) * 2003-08-13 2008-03-11 International Business Machines Corporation Method and apparatus for adopting authorizations
JP5228943B2 (en) * 2009-01-27 2013-07-03 富士通株式会社 Minimum privilege violation detection program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
M. Frank 等.Mining Permission Request Patterns from Android and Facebook Applications.《2012 IEEE 12th International Conference on Data Mining》.2013,870-875. *
张金鑫 等.基于权限分析的 Android 应用程序检测系统.《信息网络安全》.2014,(第07期),30-34. *

Also Published As

Publication number Publication date
CN113076258A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN109995877B (en) Information pushing method and device
CN108984389B (en) Application program testing method and terminal equipment
JP5710680B2 (en) System and method for reducing factory program time for wireless devices
CN107404358B (en) Radio frequency channel detection method, terminal and computer readable storage medium
CN111726242B (en) Electronic device and control method thereof
CN107205041B (en) Audio device upgrading method, audio device and intelligent sound box
CN113076258B (en) Method, device and equipment for applying permission and readable storage medium
WO2021115197A1 (en) Method for generating device identifier, electronic device, and computer readable medium
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN111163067B (en) Safety testing method and device and electronic equipment
CN108628712B (en) Application program testing method and terminal equipment
CN110780963A (en) Content display method and device and electronic equipment
CN110543428A (en) Application system testing method and device
CN114301765A (en) Fault positioning method and device, computer readable medium and electronic equipment
CN111065036B (en) Frequency response testing method and device of microphone array
CN109327836A (en) A kind of network authentication authentication method, device, equipment and medium
CN112083319B (en) Method, system, device and storage medium for testing power amplifier
CN113515447A (en) System automation test method and device
CN110543443A (en) method for controlling communication module, computer device and computer readable storage medium
CN112379967A (en) Simulator detection method, device, equipment and medium
CN110851150B (en) Method and apparatus for installing applications
CN114071648B (en) Information configuration method, device, equipment and medium
CN113553275B (en) Method, device, equipment and storage medium for determining connection relation
CN112817937A (en) Big data monitoring method and device, electronic equipment and computer storage medium
CN115695265A (en) Automatic circulation power-on and power-off test method and equipment for switch and storage medium

Legal Events

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