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
CN109981873B CN201711449330.9A CN201711449330A CN109981873B CN 109981873 B CN109981873 B CN 109981873B CN 201711449330 A CN201711449330 A CN 201711449330A CN 109981873 B CN109981873 B CN 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 Ltd filed Critical Zhuhai Juntian Electronic Technology Co Ltd
Priority to CN201711449330.9A priority Critical patent/CN109981873B/en
Publication of CN109981873A publication Critical patent/CN109981873A/en
Application granted granted Critical
Publication of CN109981873B publication Critical patent/CN109981873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27453Directories allowing storage of additional subscriber data, e.g. metadata
    • H04M1/27457Management thereof, e.g. manual editing of data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Library & Information Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

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 operation instruction 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 the information 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, the information 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, the information 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;
the information 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;
the information 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, the information 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;
the information 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, the information 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 operation instruction 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, the information 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 a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete mutual communication through the communication bus 304,
a memory 303 for storing a computer program;
the processor 301, when executing the program stored in the memory 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)

1. A method for opening address book authority is applied to a client and 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;
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 operation instruction is one of the following instructions:
dialing a telephone instruction, reading an address list contact person list instruction and an address list contact person detail editing instruction;
after receiving an operation instruction for an address book of an operating system, executing the operation instruction through a calling interface for calling the operation instruction, including:
after a call-making instruction aiming at an address book of an operating system is received, executing the call-making instruction by calling a calling interface provided by the operating system;
after receiving an address book contact list reading instruction aiming at an address book of an operating system, executing the instruction of reading the address book contact list by calling a calling interface provided by the operating system;
and after receiving an address book contact detail editing instruction aiming at an address book of the operating system, executing the address book contact detail editing instruction by calling a calling interface provided by the operating system.
2. The method according to claim 1, wherein the displaying of the authority setting information of the operation authority corresponding to the operation instruction comprises:
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.
3. The method of claim 2, further comprising, prior to said jumping from the current page to the configuration page of the operating system:
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.
4. The method of claim 1, wherein the operation instruction is a call placement 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.
5. The method of claim 1, wherein the operation command is a read contact list command;
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.
6. The method of claim 5, wherein after displaying the permission setting information of the contact list reading permission corresponding to the contact list reading command, the method further comprises:
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.
7. The method of claim 1, wherein 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.
8. The method of claim 7, wherein after displaying the permission setting information of the contact information modification permission corresponding to the contact detail editing instruction, the method further comprises:
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.
9. An address book permission opening device, which is located at a client, comprises:
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;
the information display module is used for displaying 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 to start and set the operation authority;
the operation instruction is one of the following instructions:
dialing a telephone instruction, reading an address list contact person list instruction and an address list contact person detail editing instruction;
the operation instruction execution module is specifically configured to:
after a call-making instruction aiming at an address book of an operating system is received, executing the call-making instruction by calling a calling interface provided by the operating system;
after receiving an address book contact list reading instruction aiming at an address book of an operating system, executing the instruction of reading the address book contact list by calling a calling interface provided by the operating system;
and after receiving an address book contact detail editing instruction aiming at an address book of the operating system, executing the address book contact detail editing instruction by calling a calling interface provided by the operating system.
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.
12. The apparatus of claim 9, wherein the operation instruction is a call placement 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.
13. The apparatus according to claim 9, wherein the operation command is a command to read a contact list in an address book;
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.
14. The device according to claim 13, wherein 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.
15. The apparatus of claim 9, wherein 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.
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.
17. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 8 when executing a program stored in the memory.
18. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-8.
CN201711449330.9A 2017-12-27 2017-12-27 Address book permission opening method and device and electronic equipment Active CN109981873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711449330.9A CN109981873B (en) 2017-12-27 2017-12-27 Address book permission opening method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711449330.9A CN109981873B (en) 2017-12-27 2017-12-27 Address book permission opening method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109981873A CN109981873A (en) 2019-07-05
CN109981873B true CN109981873B (en) 2021-01-12

Family

ID=67071211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711449330.9A Active CN109981873B (en) 2017-12-27 2017-12-27 Address book permission opening method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109981873B (en)

Families Citing this family (2)

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

Citations (3)

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

Family Cites Families (2)

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

Patent Citations (3)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
AU2019101572A4 (en) Method, system, and device for process triggering
CN108960839B (en) Payment method and device
CN105512033B (en) A kind of automated testing method of mobile terminal, device and mobile terminal
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
KR20140143028A (en) Method for operating program and an electronic device thereof
WO2016197461A1 (en) Application software permission recommendation method, apparatus and system, and storage medium
CN109086109B (en) Page display method and device, electronic equipment and medium
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
CN104750575B (en) The restoring method and device of a kind of mobile terminal operating system
CN108664301B (en) Menu generation method, system and terminal equipment
CN110581921A (en) Control method and device for folding screen equipment
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
CN111143830A (en) Method and device for limiting application use, terminal equipment and storage medium
CN111400091B (en) Factory setting restoration method, factory setting restoration device and mobile terminal
CN113157439B (en) Resource statistics method, device and terminal
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
CN111124627A (en) Method, device, terminal and storage medium for determining application program caller
CN110633196A (en) Automatic use case execution method and device of application program
CN106201930B (en) A kind of device port determining device, terminal and method
CN111666020B (en) Method and device for switching document pages, electronic equipment and storage medium
CN112948817A (en) Permission control method and device of application program, computer equipment and medium

Legal Events

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