Movatterモバイル変換


[0]ホーム

URL:


CN109981873B - Address book permission opening method and device and electronic equipment - Google Patents

Address book permission opening method and device and electronic equipment
Download PDF

Info

Publication number
CN109981873B
CN109981873BCN201711449330.9ACN201711449330ACN109981873BCN 109981873 BCN109981873 BCN 109981873BCN 201711449330 ACN201711449330 ACN 201711449330ACN 109981873 BCN109981873 BCN 109981873B
Authority
CN
China
Prior art keywords
instruction
authority
contact
operating system
permission
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
CN201711449330.9A
Other languages
Chinese (zh)
Other versions
CN109981873A (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.)
Zhuhai Juntian Electronic Technology Co Ltd
Original Assignee
Zhuhai Juntian Electronic Technology 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 Zhuhai Juntian Electronic Technology Co LtdfiledCriticalZhuhai Juntian Electronic Technology Co Ltd
Priority to CN201711449330.9ApriorityCriticalpatent/CN109981873B/en
Publication of CN109981873ApublicationCriticalpatent/CN109981873A/en
Application grantedgrantedCritical
Publication of CN109981873BpublicationCriticalpatent/CN109981873B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention provides an address book permission opening method, an address book permission opening device and electronic equipment, wherein the address book permission opening method comprises the following steps: after receiving an operation instruction aiming at an address book of an operating system, executing the operation instruction through a calling interface for calling the operation instruction, wherein the calling interface is provided for the operating system; and after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction for prompting to start and set the operation authority. The problem that the client cannot know the operation authority state of the address book due to the fact that part of the operating systems do not have the address book authority state checking interface is solved.

Description

Address book permission opening method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to an address book permission opening method and device and electronic equipment.
Background
With the rapid development of smart phone technology and the increasing variety of beautifying application software, the requirements of people on the aesthetic degree of the interface are continuously improved in the process of using mobile equipment and application software.
Because the interface between the address book and the dial pad built in the Android system is generally monotonous and the user-defined beautifying settings such as changing skin and changing icons cannot be carried out, third-party address book application software capable of carrying out interface style change according to the user requirements appears.
Before the third-party address book application software is used, the following three address book authorities need to be acquired firstly: the call dialing authority, the contact list reading authority and the contact information modification authority. At present, versions of Android systems are various, equipment brands using the Android systems are different, only a part of the Android systems provide a state checking interface of the three authorities, third-party address book application software can check states of the three authorities through the interface, and when a certain authority is in a forbidden state, the authority request information can be obtained through display to prompt a user to manually obtain the corresponding authority. However, for the Android system without the state check interface with the three permissions, the states of the three permissions cannot be obtained, and therefore, subsequent operations such as permission acquisition cannot be performed, so that the third-party address book application software cannot be normally used.
Disclosure of Invention
The embodiment of the invention aims to provide an address book permission opening method, an address book permission opening device and electronic equipment, which are used for solving the problem that a client cannot acquire the operation permission state of an address book because the existing Android system does not have an address book permission state check interface. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an address book permission opening method, including:
after receiving an operation instruction aiming at an address book of an operating system, executing the operation instruction through a calling interface for calling the operation instruction, wherein the calling interface is provided for the operating system;
and after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction for prompting to start and set the operation authority.
Further, the displaying the authority setting information of the operation authority corresponding to the operation instruction includes:
jumping to a configuration page of the operating system from a current page, wherein the configuration page comprises an operation authority corresponding to the operation instruction; or
And displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client.
Further, before the jumping from the current page to the configuration page of the operating system, the method further includes:
displaying prompt information for prompting that the operation authority is not started;
and after the operation aiming at the prompt message is detected, executing the step of jumping from the current page to the configuration page of the operating system.
Further, the operation instruction is one of the following instructions:
and dialing a telephone instruction, reading an address list contact person list instruction, and editing an address list contact person detail instruction.
Further, the operation instruction is a call dialing instruction;
after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction, including:
after the time length after the call dialing instruction is executed reaches a first preset time length, if a call interface is not started, displaying authority setting information of the call dialing authority corresponding to the call dialing instruction;
or
And after receiving an interface call failure result returned by the operating system, displaying the authority setting information of the call making authority corresponding to the call making instruction.
Further, the operation instruction is an instruction for reading a contact list of the address list;
after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction, including:
and when the return result of the operating system is empty or a preset abnormal result, displaying the permission setting information of the contact list reading permission corresponding to the contact list reading command.
Further, after the displaying the permission setting information of the contact list reading permission corresponding to the contact list reading instruction, the method further includes:
and repeatedly executing the instruction for reading the contact list of the address list every second preset time length until the instruction is successfully executed or repeatedly executed for preset times.
Further, the operation instruction is a contact detail editing instruction;
after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction, including:
when the return value of the operating system is a numerical value less than or equal to 0 or a preset character string is returned, displaying the permission setting information of the contact person information modification permission corresponding to the contact person detail editing instruction;
or
And within a third preset time after the contact detail editing instruction is executed, if a feedback result of the operating system is not received, displaying permission setting information of the contact information modification permission corresponding to the contact detail editing instruction.
Further, after the displaying the permission setting information of the contact information modification permission corresponding to the contact detail editing instruction, the method further includes:
and repeatedly executing the contact detail editing instruction every fourth preset time length until the contact detail editing instruction is successfully executed or repeatedly executed for preset times.
In a second aspect, an embodiment of the present invention provides an address book permission opening apparatus, including:
the operating instruction execution module is used for executing the operating instruction by calling a calling interface of the operating instruction after receiving the operating instruction aiming at the address book of the operating system, wherein the calling interface is provided for the operating system;
and the information display module is used for displaying the authority setting information of the operation authority corresponding to the operation instruction after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, and is used for prompting the start setting of the operation authority.
Further, the information display module is specifically configured to jump to a configuration page of the operating system from a current page after determining that the calling interface calling the operation instruction fails and a failure reason is that an operation right corresponding to the operation instruction is in a prohibited state, where the configuration page includes the operation right corresponding to the operation instruction and is used to prompt to start and set the operation right; or displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client, wherein the authority setting information is used for prompting the start setting of the operation authority.
Further, the information display module is specifically configured to display a prompt message for prompting that the operation authority is not turned on after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state; after the operation aiming at the prompt message is detected, the step of jumping from the current page to a configuration page of the operating system is executed, wherein the configuration page comprises the operation authority corresponding to the operation instruction and is used for prompting the start setting of the operation authority; or displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client, wherein the authority setting information is used for prompting the start setting of the operation authority.
Further, the operation instruction is one of the following instructions:
and dialing a telephone instruction, reading an address list contact person list instruction, and editing an address list contact person detail instruction.
Further, the operation instruction is a call dialing instruction;
the information display module is specifically used for displaying the authority setting information of the call making authority corresponding to the call making instruction if a call interface is not started after the time length after the call making instruction is executed reaches a first preset time length, and is used for prompting the start setting of the call making authority; or after receiving an interface call failure result returned by the operating system, displaying authority setting information of the call dialing authority corresponding to the call dialing instruction, and prompting to start and set the call dialing authority.
Further, the operation instruction is an instruction for reading a contact list of the address list;
the information display module is specifically configured to display permission setting information of a contact list reading permission corresponding to the contact list reading instruction when a return result of the operating system is null or a preset abnormal result, and is used to prompt to start and set the contact list reading permission.
Further, the information display module is specifically configured to display permission setting information of a contact list reading permission corresponding to the contact list reading instruction when a return result of the operating system is null or a preset abnormal result, and is used to prompt to start and set the contact list reading permission; and repeatedly executing the instruction for reading the contact list of the address list every second preset time length until the instruction is successfully executed or repeatedly executed for preset times.
Further, the operation instruction is a contact detail editing instruction;
the information display module is specifically configured to display permission setting information of a contact information modification permission corresponding to the contact detail editing instruction when a return value of the operating system is a numerical value smaller than or equal to 0 or a preset character string is returned, and is used for prompting to start and set the contact information modification permission; or within a third preset time after the contact detail editing instruction is executed, if the feedback result of the operating system is not received, displaying permission setting information of the contact information modification permission corresponding to the contact detail editing instruction, wherein the permission setting information is used for prompting to start and set the contact information modification permission.
Further, the information display module is specifically configured to display permission setting information of a contact information modification permission corresponding to the contact detail editing instruction when the return value of the operating system is a numerical value smaller than or equal to 0 or a preset character string is returned, and is used to prompt to start and set the contact information modification permission; or within a third preset time after the contact detail editing instruction is executed, if a feedback result of the operating system is not received, displaying permission setting information of a contact information modification permission corresponding to the contact detail editing instruction, wherein the permission setting information is used for prompting to start and set the contact information modification permission; and repeatedly executing the contact detail editing instruction every fourth preset time length until the contact detail editing instruction is successfully executed or repeatedly executed for preset times.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any address book permission opening method when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer is enabled to execute any one of the above address book permission opening methods.
In a fifth aspect, an embodiment of the present invention further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned address book permission opening methods.
According to the address book permission opening method, the address book permission opening device and the electronic equipment, after an operation instruction for an address book of an operating system is received, the operation instruction is executed by calling a calling interface of the operation instruction, wherein the calling interface is provided for the operating system; and after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction for prompting to start and set the operation authority. According to the scheme, the operation instruction is executed through a calling interface, and after the calling interface for calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, the operation authority is prompted to be started and set. The problem that the client cannot know the operation authority state of the address book due to the fact that part of the operating systems do not have the address book authority state checking interface is solved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an address book permission opening method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an address book permission opening device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of an address book permission opening method according to an embodiment of the present invention, including:
step 101, after receiving an operation instruction for an address book of an operating system, executing the operation instruction by calling a calling interface of the operation instruction, wherein the calling interface is provided for the operating system.
And step 102, after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction, wherein the authority setting information is used for prompting to start and set the operation authority.
In the address book permission opening method shown in fig. 1 provided in the embodiment of the present invention, after receiving an operation instruction for an address book of an operating system, the operation instruction is executed through a call interface, and after determining that the call interface for calling the operation instruction fails and the reason of the failure is that an operation permission corresponding to the operation instruction is in a prohibited state, an opening setting for the operation permission is prompted. The problem that the client cannot know the operation authority state of the address book due to the fact that part of the operating systems do not have the address book authority state checking interface is solved.
The method, the device and the electronic device for opening the address book permission provided by the embodiment of the invention are described in detail below with reference to the accompanying drawings.
Still referring to fig. 1, an embodiment of the present invention provides an address book permission opening method, which specifically includes the following steps:
step 101, after receiving an operation instruction for an address book of an operating system, executing the operation instruction by calling a calling interface of the operation instruction, wherein the calling interface is provided for the operating system.
The operation instruction in this step may be any one of a call making instruction, an instruction for reading a contact list in an address list, and an instruction for editing contact details in the address list.
After receiving a call-making instruction for the address book of the operating system (for example, a user inputs a certain telephone number on a dialing interface), the client may call a call interface provided by the operating system, for example: the API can be an application program interface provided by an operating system for dialing a call to execute a call-making finger; after receiving an address book contact list reading instruction aiming at an address book of an operating system, a client can execute the instruction of reading the address book contact list by calling a calling interface provided by the operating system; similarly, after receiving an address book contact detail editing instruction for an address book of an operating system, the client may execute the instruction for editing the address book contact detail by calling a calling interface provided by the operating system, specifically, may execute the instruction for editing the address book contact detail by adding a certain preset information (e.g., preset address information) to an address book contact detail editing page.
And step 102, after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction, wherein the authority setting information is used for prompting to start and set the operation authority.
Further, in this step, displaying the authority setting information of the operation authority corresponding to the operation instruction may include: jumping to a configuration page of the operating system from a current page, wherein the configuration page comprises an operation authority corresponding to the operation instruction; or displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client.
Further, displaying the authority setting information of the operation authority corresponding to the operation instruction may include: displaying prompt information for prompting that the operation authority is not started; and after the operation aiming at the prompt message is detected, executing the step of jumping from the current page to the configuration page of the operating system.
In this step, for example, the prompt information for prompting that the operation authority is not turned on may be: and when the user clicks the 'confirm' button, executing a step of jumping from the current page to a configuration page of the operating system.
Further, when the operation instruction is a call instruction, after it is determined that the call interface for calling the operation instruction fails and the reason for the failure is that the operation right corresponding to the operation instruction is in a disabled state, displaying right setting information of the operation right corresponding to the operation instruction, including:
after the time length after the call dialing instruction is executed reaches a first preset time length, if a call interface is not started, displaying authority setting information of the call dialing authority corresponding to the call dialing instruction;
or
And after receiving an interface call failure result returned by the operating system, displaying the authority setting information of the call making authority corresponding to the call making instruction.
In this step, the first preset duration may be set according to experience. When the client executes the instruction of making a call, a background thread timer can be started to start timing, and when the time length after the instruction of making a call is executed reaches a first preset time length, if the call interface is not started, the authority setting information of the call making authority corresponding to the instruction of making a call is displayed.
Further, when the operation instruction is an instruction for reading a contact list in an address book, after it is determined that the call interface for calling the operation instruction fails and the reason for the failure is that the operation right corresponding to the operation instruction is in a prohibited state, displaying right setting information of the operation right corresponding to the operation instruction, which may include:
and when the return result of the operating system is empty or a preset abnormal result, displaying the authority setting information of the contact list reading authority corresponding to the contact list reading instruction.
The preset exception may be a plurality Of exception results preset according to experience, for example, an input/output stream error, an Out-Of-memory (Out-Of-memory), or the like, and is not limited herein.
Further, after displaying the permission setting information of the contact list reading permission corresponding to the contact list reading instruction, the method may further include:
and repeatedly executing the instruction for reading the contact list of the address list every second preset time length until the instruction is successfully executed or repeatedly executed for preset times.
And when the return result of the operating system is not null or the preset abnormal result, the command for reading the contact list of the address list is considered to be successfully executed.
Further, when the operation instruction is a contact detail editing instruction, after it is determined that the call interface for calling the operation instruction fails and the reason for the failure is that the operation right corresponding to the operation instruction is in a disabled state, displaying right setting information of the operation right corresponding to the operation instruction, which may include:
when the return value of the operating system is a numerical value less than or equal to 0 or a preset character string is returned, displaying the permission setting information of the contact person information modification permission corresponding to the contact person detail editing instruction;
or
And within a third preset time after the contact detail editing instruction is executed, if a feedback result of the operating system is not received, displaying permission setting information of the contact information modification permission corresponding to the contact detail editing instruction.
Further, after displaying the authority setting information of the contact information modification authority corresponding to the contact detail editing instruction, the method may further include:
and repeatedly executing the contact detail editing instruction every fourth preset time length until the contact detail editing instruction is successfully executed or repeatedly executed for preset times.
Here, after referring to the return value of the operating system as a numerical value greater than 0, it can be considered that the execution of the contact detail editing instruction is successful.
In the address book permission opening method shown in fig. 1 provided in the embodiment of the present invention, after receiving an operation instruction for an address book of an operating system, the operation instruction is executed through a call interface, and after determining that the call interface for calling the operation instruction fails and the reason of the failure is that an operation permission corresponding to the operation instruction is in a prohibited state, an opening setting for the operation permission is prompted. The problem that the client cannot know the operation authority state of the address book due to the fact that part of the operating systems do not have the address book authority state checking interface is solved.
Based on the same inventive concept, according to the address book permission opening method provided in the above embodiment of the present invention, correspondingly, an embodiment of the present invention further provides an address book permission opening device, a schematic structural diagram of which is shown in fig. 2, including:
the operationinstruction execution module 201 is configured to execute an operation instruction by calling a call interface of the operation instruction after receiving the operation instruction for the address book of the operation system, where the call interface is provided by the operation system.
And theinformation display module 202 is configured to display permission setting information of the operation permission corresponding to the operation instruction after determining that the call interface that calls the operation instruction fails and the failure reason is that the operation permission corresponding to the operation instruction is in a prohibited state, so as to prompt to start and set the operation permission.
Further, theinformation display module 202 is specifically configured to jump to a configuration page of the operating system from a current page after determining that the call interface that calls the operation instruction fails and a failure reason is that an operation right corresponding to the operation instruction is in a prohibited state, where the configuration page includes the operation right corresponding to the operation instruction and is used to prompt to start and set the operation right; or displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client, wherein the authority setting information is used for prompting the start setting of the operation authority.
Further, theinformation display module 202 is specifically configured to display a prompt message for prompting that the operation right is not opened after determining that the call interface for calling the operation instruction fails and that a reason of the failure is that the operation right corresponding to the operation instruction is in a prohibited state; after the operation aiming at the prompt message is detected, the step of jumping from the current page to a configuration page of the operating system is executed, wherein the configuration page comprises the operation authority corresponding to the operation instruction and is used for prompting the start setting of the operation authority; or displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client, wherein the authority setting information is used for prompting the start setting of the operation authority.
Further, the operation instruction is one of the following instructions:
and dialing a telephone instruction, reading an address list contact person list instruction, and editing an address list contact person detail instruction.
Further, the operation instruction is a call dialing instruction;
theinformation display module 202 is specifically configured to, after a duration elapsed after the execution of the call dialing instruction reaches a first preset duration, if a call interface is still not started, display permission setting information of a call dialing permission corresponding to the call dialing instruction, and be used to prompt to set a call dialing permission to be opened; or after receiving an interface call failure result returned by the operating system, displaying authority setting information of the call dialing authority corresponding to the call dialing instruction, and prompting to start and set the call dialing authority.
Further, the operation instruction is an instruction for reading a contact list of the address list;
theinformation display module 202 is specifically configured to display permission setting information of a contact list reading permission corresponding to the contact list reading instruction when a return result of the operating system is null or a preset abnormal result, and is used to prompt to start and set the contact list reading permission.
Further, theinformation display module 202 is specifically configured to display permission setting information of a contact list reading permission corresponding to the contact list reading instruction when a return result of the operating system is null or a preset abnormal result, and is used to prompt to start and set the contact list reading permission; and repeatedly executing the instruction for reading the contact list of the address list every second preset time length until the instruction is successfully executed or repeatedly executed for preset times.
Further, the operation instruction is a contact detail editing instruction;
theinformation display module 202 is specifically configured to display permission setting information of a contact information modification permission corresponding to the contact detail editing instruction when the return value of the operating system is a numerical value smaller than or equal to 0 or a preset character string is returned, and is used to prompt to open and set the contact information modification permission; or within a third preset time after the contact detail editing instruction is executed, if the feedback result of the operating system is not received, displaying permission setting information of the contact information modification permission corresponding to the contact detail editing instruction, wherein the permission setting information is used for prompting to start and set the contact information modification permission.
Further, theinformation display module 202 is specifically configured to display, when the return value of the operating system is a numerical value smaller than or equal to 0 or a preset character string, permission setting information of a contact information modification permission corresponding to the contact detail editing instruction, and is used to prompt to start and set the contact information modification permission; or within a third preset time after the contact detail editing instruction is executed, if a feedback result of the operating system is not received, displaying permission setting information of a contact information modification permission corresponding to the contact detail editing instruction, wherein the permission setting information is used for prompting to start and set the contact information modification permission; and repeatedly executing the contact detail editing instruction every fourth preset time length until the contact detail editing instruction is successfully executed or repeatedly executed for preset times.
The functions of the above modules may correspond to the corresponding processing steps in the flow shown in fig. 1, and are not described herein again.
In the address book permission opening device provided by the embodiment of the invention, firstly, after receiving an operation instruction for an address book of an operating system, an operationinstruction execution module 201 executes the operation instruction by calling a calling interface of the operation instruction; then, after determining that the calling interface calling the operation instruction fails and the reason for the failure is that the operation right corresponding to the operation instruction is in a forbidden state, theinformation display module 202 displays the right setting information of the operation right corresponding to the operation instruction, which is used for prompting to start and set the operation right. The problem that the client cannot know the operation authority state of the address book due to the fact that part of the operating systems do not have the address book authority state checking interface is solved.
The embodiment of the present invention further provides an electronic device, as shown in fig. 3, which includes aprocessor 301, acommunication interface 302, amemory 303, and a communication bus 304, where theprocessor 301, thecommunication interface 302, and thememory 303 complete mutual communication through the communication bus 304,
amemory 303 for storing a computer program;
theprocessor 301, when executing the program stored in thememory 303, implements the following steps:
after receiving an operation instruction aiming at an address book of an operating system, executing the operation instruction through a calling interface for calling the operation instruction, wherein the calling interface is provided for the operating system;
and after determining that the calling interface calling the operation instruction fails and the failure reason is that the operation authority corresponding to the operation instruction is in a forbidden state, displaying authority setting information of the operation authority corresponding to the operation instruction for prompting to start and set the operation authority.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Further, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is enabled to execute any one of the above-mentioned address book permission opening methods in the above-mentioned embodiments.
In another embodiment of the present invention, a computer program product containing instructions is provided, which when run on a computer, causes the computer to execute any of the above-mentioned address book permission opening methods.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described above in accordance with the embodiments of the invention may be generated, in whole or in part, when the computer program instructions described above are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
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. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, apparatus embodiments, electronic device embodiments, computer-readable storage medium embodiments, and computer program product embodiments comprising instructions are substantially similar to method embodiments, so that the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (18)

10. The apparatus according to claim 9, wherein the information display module is specifically configured to jump from a current page to a configuration page of the operating system after determining that the call interface that calls the operation instruction fails and a failure reason is that an operation right corresponding to the operation instruction is in a disabled state, where the configuration page includes the operation right corresponding to the operation instruction and is used to prompt to perform an open setting on the operation right; or displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client, wherein the authority setting information is used for prompting the start setting of the operation authority.
11. The apparatus according to claim 10, wherein the information display module is specifically configured to display a prompt message for prompting that the operation right is not opened after determining that the call interface for calling the operation instruction fails and a reason of the failure is that the operation right corresponding to the operation instruction is in a disabled state; after the operation aiming at the prompt message is detected, the step of jumping from the current page to a configuration page of the operating system is executed, wherein the configuration page comprises the operation authority corresponding to the operation instruction and is used for prompting the start setting of the operation authority; or displaying the authority setting information of the operation authority corresponding to the operation instruction in the page of the client, wherein the authority setting information is used for prompting the start setting of the operation authority.
the information display module is specifically configured to display permission setting information of a contact information modification permission corresponding to the contact detail editing instruction when a return value of the operating system is a numerical value smaller than or equal to 0 or a preset character string is returned, and is used for prompting to start and set the contact information modification permission; or within a third preset time after the contact detail editing instruction is executed, if the feedback result of the operating system is not received, displaying permission setting information of the contact information modification permission corresponding to the contact detail editing instruction, wherein the permission setting information is used for prompting to start and set the contact information modification permission.
16. The apparatus according to claim 15, wherein the information display module is specifically configured to display permission setting information of a contact information modification permission corresponding to the contact detail editing instruction, when a return value of the operating system is a numerical value less than or equal to 0 or a return preset character string, for prompting to open and set the contact information modification permission; or within a third preset time after the contact detail editing instruction is executed, if a feedback result of the operating system is not received, displaying permission setting information of a contact information modification permission corresponding to the contact detail editing instruction, wherein the permission setting information is used for prompting to start and set the contact information modification permission; and repeatedly executing the contact detail editing instruction every fourth preset time length until the contact detail editing instruction is successfully executed or repeatedly executed for preset times.
CN201711449330.9A2017-12-272017-12-27Address book permission opening method and device and electronic equipmentActiveCN109981873B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711449330.9ACN109981873B (en)2017-12-272017-12-27Address book permission opening method and device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711449330.9ACN109981873B (en)2017-12-272017-12-27Address book permission opening method and device and electronic equipment

Publications (2)

Publication NumberPublication Date
CN109981873A CN109981873A (en)2019-07-05
CN109981873Btrue CN109981873B (en)2021-01-12

Family

ID=67071211

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711449330.9AActiveCN109981873B (en)2017-12-272017-12-27Address book permission opening method and device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN109981873B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111338542B (en)*2020-02-192021-08-17北京字节跳动网络技术有限公司Shortcut generation method and device and computer readable storage medium
CN111556195A (en)*2020-04-222020-08-18浙江大搜车软件技术有限公司Permission changing method and device for application program

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105354489A (en)*2015-10-292016-02-24小米科技有限责任公司Right granting method and apparatus
CN106778117A (en)*2016-09-182017-05-31腾讯科技(深圳)有限公司Authority open method, apparatus and system
CN106886692A (en)*2017-03-232017-06-23北京金山安全软件有限公司Application program using method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102663320A (en)*2012-04-122012-09-12福建联迪商用设备有限公司Method for terminal identification developers and dividing developers with different permissions
CN106874748A (en)*2015-12-112017-06-20北京奇虎科技有限公司A kind of method and apparatus that user data is provided

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105354489A (en)*2015-10-292016-02-24小米科技有限责任公司Right granting method and apparatus
CN106778117A (en)*2016-09-182017-05-31腾讯科技(深圳)有限公司Authority open method, apparatus and system
CN106886692A (en)*2017-03-232017-06-23北京金山安全软件有限公司Application program using method and device and electronic equipment

Also Published As

Publication numberPublication date
CN109981873A (en)2019-07-05

Similar Documents

PublicationPublication DateTitle
US10509644B2 (en)Method and system for controlling integrated software components
EP3032418A1 (en)Permission control method and device
CN107329750A (en)The recognition methods of advertisement page, jump method and mobile terminal in application program
CN105512033B (en)A kind of automated testing method of mobile terminal, device and mobile terminal
AU2016347047B2 (en)Method, system, and device for process triggering
CN108960839B (en)Payment method and device
WO2016197461A1 (en)Application software permission recommendation method, apparatus and system, and storage medium
CN104793836A (en)Information processing method and device based on user operations and terminal
CN109684795B (en)Method and device for anti-debugging of application program and electronic equipment
KR102071530B1 (en)Apparatas and method for proposing a response manual of occurring denial in an electronic device
CN109981873B (en)Address book permission opening method and device and electronic equipment
CN110581921A (en)Control method and device for folding screen equipment
CN108509228B (en)Page loading method, terminal equipment and computer readable storage medium
CN111400091B (en)Factory setting restoration method, factory setting restoration device and mobile terminal
CN112988549A (en)Method for obtaining log based on vehicle machine system and electronic equipment
CN108664301B (en)Menu generation method, system and terminal equipment
CN106874718A (en) Privacy processing method, device and terminal
CN107368738B (en) Anti-Root method and device for smart device
AU2021473334A1 (en)Method and apparatus for running quantitative transaction strategy
CN110633196A (en)Automatic use case execution method and device of application program
CN109995931B (en)Method and device for realizing automatic calling
CN110580221A (en)Control testing method and device, storage medium and electronic equipment
CN106933666B (en)Method for calling information input program and electronic equipment
CN106201930B (en)A kind of device port determining device, terminal and method
CN111124627A (en)Method, device, terminal and storage medium for determining application program caller

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp