CN111556195A - Permission changing method and device for application program - Google Patents

Permission changing method and device for application program Download PDF

Info

Publication number
CN111556195A
CN111556195A CN202010321747.2A CN202010321747A CN111556195A CN 111556195 A CN111556195 A CN 111556195A CN 202010321747 A CN202010321747 A CN 202010321747A CN 111556195 A CN111556195 A CN 111556195A
Authority
CN
China
Prior art keywords
application program
permission
call
user terminal
operating system
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.)
Pending
Application number
CN202010321747.2A
Other languages
Chinese (zh)
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.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software 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 Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN202010321747.2A priority Critical patent/CN111556195A/en
Publication of CN111556195A publication Critical patent/CN111556195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention relates to an authority changing method and an authority changing device of an application program, wherein the authority changing method of the application program comprises the following steps: monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call; and under the condition that the communication state is not changed, displaying guide information on a display interface of the user terminal, wherein the guide information is used for guiding the user to change the dialing authority of the application program. The invention at least solves the problem that the application program can not give prompt information or guide information after the dialing authority of the application program is forbidden in the related technology, and realizes the beneficial effect of guiding the user to change the dialing authority by giving the prompt information or the guide information.

Description

Permission changing method and device for application program
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for changing permissions of an application.
Background
For an application program installed on a user terminal of an android operating system, before a user uses a certain authority, the android system firstly detects whether the application program has a corresponding authority. In the related technology, when the authority is detected, whether the application program is configured with a certain authority or not is inquired in the authority list, if the authority configuration record of the application program is not inquired in the authority list, a pop-up box is popped out, and a user is informed to configure the authority; if it has been recorded in the permission list that the application is configured with a certain permission and the permission is configured to allow, or the application is configured to prohibit a certain permission and no longer notifies, the pop-up box is not popped out. From the perspective of the android operating system, the android system does not give any prompt to the user.
In addition, in some specific scenarios, the related art may fail in detecting the rights. For example, when a call is requested, if the version of the target software development suite of the android operating system is smaller than 23 and the version of the android operating system is more than 6.0, even if the call-making permission is rejected when the application program is installed, the related art cannot give a correct call-making permission configuration result when permission verification is performed, so that a prompt message cannot be given to notify that the user does not have the call-making permission.
Aiming at the problem that the application program cannot give prompt information or guide information after the dialing authority of the application program is forbidden in the related technology, an effective solution is not given at present.
Disclosure of Invention
Based on this, the invention provides an authority changing method and an authority changing device for an application program, which are used for at least solving the problem that the application program cannot give prompt information or guide information after the dialing authority of the application program is forbidden in the related technology.
In a first aspect, the present invention provides a method for changing permissions of an application, which is applied to an application installed on a user terminal using an android operating system, and includes:
monitoring whether the communication state of the user terminal changes or not after an application program requests to make a call;
and under the condition that the communication state is monitored not to be changed, displaying guide information on a display interface of the user terminal, wherein the guide information is used for guiding a user to change the dialing authority of the application program.
In a possible implementation manner, the monitoring whether the communication state of the ue changes includes:
monitoring the communication state by using a PhoneStateListener method;
judging whether the communication state changes or not according to the communication state, wherein the communication state changes and comprises the following steps: the communication state is changed from the idle state to the call state or the ring state.
In one possible implementation manner, after the application program requests to make a call, monitoring whether the communication state of the user terminal changes includes:
judging whether the android operating system supports permission verification on the application program or not;
and monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call under the condition that the android operating system does not support permission verification on the application program.
In a possible implementation manner, after the application program requests to make a call, monitoring whether a communication state of the user terminal changes further includes:
under the condition that the android operating system supports permission verification on the application program, judging whether the permission verification is the first permission verification of the application program;
and under the condition of judging that the authority is checked for the first time, popping up an authority pop-up box after the application program requests to make a call so as to prompt a user to set the call making authority of the application program.
In a possible implementation manner, after the application program requests to make a call, monitoring whether a communication state of the user terminal changes further includes:
and under the condition that the verification is judged not to be the first permission verification, monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call.
In a possible implementation manner, the determining whether the first permission check of the application program is performed includes:
detecting whether the authority of the application program for calling is in the authority list by using a checkSelfPermission method;
determining as a first permission check of the application program under the condition that the permission that the application program requests to make a call does not exist in the permission list;
and determining the permission to make a call to the application program for the non-first permission check if the permission that the application program requests to make a call exists in the permission list.
In a possible implementation manner, the determining whether the android operating system supports permission check on the application program includes:
acquiring parameters of the android operating system, wherein the parameters comprise targetSdkVersion and an android operating system version;
judging whether the targetSdkVersion is less than 23 and the android operating system version is greater than or equal to 6.0;
and under the condition that the targetSdkVersion is less than 23 and the version of the android operating system is more than or equal to 6.0, determining that the android operating system does not support permission verification on the application program.
In a possible implementation manner, the determining whether the android operating system supports permission check on the application program includes:
acquiring the model of the user terminal;
judging whether the model is a preset model or not;
determining that the android operating system supports permission verification on the application program under the condition that the machine type is judged to be a preset machine type;
and under the condition that the model is judged to be a non-preset model, determining that the android operating system does not support permission verification on the application program.
In one possible implementation manner, after the application program requests to make a call, monitoring whether the communication state of the user terminal changes includes:
judging whether the sim card is installed on the user terminal;
under the condition that the user terminal is judged not to be provided with the sim card, displaying prompt information on a display interface of the user terminal, wherein the prompt information is used for prompting a user that the sim card is not arranged on the user terminal;
and monitoring whether the communication state of the user terminal changes or not after an application program requests to make a call under the condition that the sim card is installed in the user terminal.
In a second aspect, the present invention provides an apparatus for modifying an authority of an application, the apparatus comprising:
the monitoring module is used for monitoring whether the communication state of the user terminal changes or not after an application program requests to make a call;
and the guiding module is used for displaying guiding information on a display interface of the user terminal under the condition that the communication state is monitored not to change, wherein the guiding information is used for guiding a user to change the dialing authority of the application program.
The invention provides an application program permission changing method and an application program permission changing device, wherein the application program permission changing method comprises the following steps: monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call; and under the condition that the communication state is not changed, displaying guide information on a display interface of the user terminal, wherein the guide information is used for guiding the user to change the dialing authority of the application program. The invention at least solves the problem that the application program can not give prompt information or guide information after the dialing authority of the application program is forbidden in the related technology, and realizes the beneficial effect of guiding the user to change the dialing authority by giving the prompt information or the guide information.
Drawings
In order to more clearly illustrate the embodiments of the present invention or technical solutions in related arts, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive labor.
Fig. 1 is a flowchart of a method for modifying permissions of an application according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interface for guiding a user to change the right to make a call according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface for guiding a user to modify the dialing privileges of an application, in accordance with an embodiment of the present invention;
FIG. 4 is a diagram of a dialing privilege change guidance interface according to an embodiment of the present invention;
FIG. 5 is an overall flow diagram of a privilege change of an application according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of a permission modification apparatus for an application according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a permission modification device for an application according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The embodiment provides an authority change method of an application program, which is applied to the application program installed on a user terminal using an android operating system. Fig. 1 is a flowchart of a method for modifying permissions of an application according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
step S102, after the application program requests to make a call, monitoring whether the communication state of the user terminal changes.
And step S104, under the condition that the communication state is not changed, displaying guide information on a display interface of the user terminal, wherein the guide information is used for guiding the user to change the dialing authority of the application program.
In step S102, the method for monitoring the communication state includes a phonestalistener method, which is commonly used for monitoring the communication state in the android operating system, and may capture the communication state of the user terminal after the application requests to make and out a call. The communication state comprises an idle state, a call state and a ring state. The communication state change comprises the following steps: the communication state is changed from the idle state to the call state or the ring state. If the communication state is changed from the idle state to the call state or the ring state after the call is dialed, the dialing authority is allowed.
In step S104, in the case that it is monitored that the communication state has not changed, that is, the communication state is always in the idle state, it is described that the right to make a call may be prohibited. In some cases, the user terminal cannot correctly detect the authority configuration, and cannot automatically prompt the user to change the dialing authority, the user does not know what reason causes the problem, and does not know how to solve the problem, so that the dialing function cannot be normally used. In order to solve the problem, in this embodiment, when it is monitored that the communication state is not changed, the guidance information is displayed on the display interface of the user terminal, and the guidance information is used for guiding the user to change the call-making permission of the application program.
Through the steps, the problem that the application program cannot give prompt information or guide information after the call-making permission of the application program is forbidden in the related technology is at least solved, and the beneficial effect of guiding the user to change the call-making permission by giving the prompt information or the guide information is realized. Meanwhile, the problem that the authority cannot be changed due to the fact that the authority configuration cannot be correctly detected in the related technology is solved, and the beneficial effects that the authority configuration can be correctly detected and the authority can be changed are achieved.
In some embodiments, after the application program requests to make a call, whether the android operating system supports permission verification on the application program is judged; and monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call under the condition that the android operating system does not support permission verification on the application program. According to the embodiment, before the communication state of the monitoring user terminal is changed, the self permission verification function of the android operating system is fully utilized, and the permission verification efficiency is improved.
In some embodiments, determining whether the android operating system supports permission checking of the application includes:
acquiring parameters of an android operating system, wherein the parameters comprise targetSdkVersion and an android operating system version, and the targetSdkVersion represents a target software development suite version; judging whether two conditions of targetSdkVersion being less than 23 and android operating system version being more than or equal to 6.0 are satisfied or not; and under the condition that the two conditions that the targetSdkVersion is less than 23 and the version of the android operating system is greater than or equal to 6.0 are judged to be satisfied, determining that the android operating system does not support the permission verification of the application program.
After the application program requests to make a call, under the condition that the android operating system supports permission verification on the application program, the permission of making a call is set to be forbidden and is not notified any more, so that the permission of making a call cannot be obtained after the application program requests to make a call, the android operating system cannot start a self-contained permission verification program, and a user cannot obtain a guidance prompt for modifying the permission of making a call.
In order to solve the above problem, in this embodiment, after the application program requests to make a call, under the condition that it is determined that the android operating system supports permission verification on the application program, it is determined whether the permission verification is the first permission verification of the application program; and under the condition that the first permission verification is judged not to be carried out, monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call. Otherwise, under the condition that the first permission verification is judged, after the application program requests to make a call, a permission pop-up box is popped up to prompt the user to set the call making permission of the application program.
In some embodiments, determining whether the first permission check is for the application includes: detecting whether the authority of the application program for calling exists in the authority list by using a checkSelfPermission method; determining as the first permission verification of the application program under the condition that the permission of the application program for calling is not in the permission list; and in the case that the permission that the application program requests to make a call is detected to exist in the permission list, determining the permission to be checked for the non-first-time permission of the application program.
The checkSelfPermission method is an application program interface provided by an android operating system, and a user terminal of a general android operating system can detect whether an application program has the authority of requesting to make a call or not through the checkSelfPermission method, but the detection method is invalid for the user terminals of some android operating systems. To address this issue, in some embodiments, determining whether the android operating system supports permission checking for the application includes: acquiring the model of a user terminal; judging whether the model is a preset model or not; determining that the android operating system supports permission verification on the application program under the condition that the machine type is judged to be a preset machine type; and under the condition that the model is judged to be a non-preset model, determining that the android operating system does not support permission verification on the application program.
For mobile terminals with the same operating system, due to different research, development or production and manufacturing regions, the authority verification results of models produced in different regions are different for the checkSelfPermission method. The preset model comprises a mobile terminal which can detect whether an application program has the authority of requesting to make a call through a checkSelfPermission method. The non-default model includes a mobile terminal that cannot detect whether an application has a right to request a call making through the checkSelfPermission method.
The communication state of the user terminal is affected by other factors, such as whether a sim (subscriber identity module) card is installed, in addition to the call-making right. In some embodiments, monitoring whether the communication state of the user terminal changes after the application program requests to make a call includes: judging whether the sim card is installed on the user terminal; under the condition that the sim card is not installed in the user terminal, displaying prompt information on a display interface of the user terminal, wherein the prompt information is used for prompting the user that the sim card is not installed in the user terminal; and monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call under the condition that the sim card is installed in the user terminal.
The method for modifying the authority of the application program will be described below by using a preferred embodiment.
Fig. 2 is a schematic diagram of an interface for guiding a user to change a right to make a call according to an embodiment of the present invention, as shown in fig. 2, after the user requests the right to make a call, in a preferred embodiment, after a time delay, for example, 0.5s, the phone is monitored to determine whether a communication state of the mobile phone has changed by using a phonestateiriencer method. The delay time can be set according to a software program for dialing the call immediately after the user clicks 'dial the call'. For example, after the user clicks "dial call", the user does not immediately dial the call, but jumps out of the software program setting of the dial pad interface, and waits for a call connection.
If the communication state changes, such as from an idle state to a call state, it indicates that the right to make a call is allowed. If the communication state has not changed, such as being still in an idle state, it indicates that the right to make a call may be disabled. In this case, the embodiment automatically gives guidance information to the user, such as popping up a notification box on an android operating system interface, informing the user that the right to make a call is prohibited, and providing two buttons of "cancel" and "de-authorize" for the user to select whether to change the related right.
If the 'de-authorization' button is clicked by the user, the interface is jumped to guide the user to open the dialing telephone authority of the application program. The specific steps and implementation method are as follows:
acquiring a preset package name; setting a hidden schematic diagram; setting a jump path; and finding the information of the relevant application in the application management list of the setting example through the preset package name.
Fig. 3 is a diagram illustrating an interface for guiding a user to modify the dialing authority of an application according to an embodiment of the present invention, as shown in fig. 3. After the user clicks the authority management, the interface shown in fig. 4 is entered, and fig. 4 is a schematic diagram of a dialing authority change guidance interface according to an embodiment of the present invention.
Fig. 5 is an overall flowchart of permission modification of an application according to an embodiment of the present invention, and as shown in fig. 5, in a process of determining whether or not permission verification is performed in support of a checkSelfPermission according to a targetSdkVersion, a system version, and a model, as a specific implementation, it may be determined whether or not targetSdkVersion exceeds 23, and in a case where it is determined that targetSdkVersion exceeds 23, it is detected whether or not there is a call-making permission by using a checkSelfPermission method. For a preset model, whether the preset model has the authority can be detected by a checkSelfPermission method, if the authority for calling is not in the authority list and the fact that the authority is not set is proved, the authority request is carried out, and the type of the mobile phone is stored as the preset model; if the right of calling is in the permission list, the model identification is taken out from the identification storage tool of the android operating system, and the model identification corresponding to the model identification is true (logic true) and is expressed as a preset model, so that the call can be directly called. When the non-default model performs checkSelfPermission authority verification, the model identifier taken out from the identifier-storing tool is usually false (logic false), and is represented as the non-default model.
In addition, in some embodiments, when the user makes a call, whether the sim card is installed in the user terminal is also judged, and for the device without the sim card installed, a pop-up box is directly popped up to prompt that the sim card is not installed and the process is ended, so as to inform the user of the reason why the call cannot be made.
The invention also provides a device for changing the authority of the application program. Fig. 6 is a schematic structural diagram of an apparatus for modifying permissions of an application according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: a listening module 62, a boot module 64, wherein,
the monitoring module 62 is used for monitoring whether the communication state of the user terminal changes after the application program requests to make a call;
and the guiding module 64 is coupled to the monitoring module 62 and is used for displaying guiding information on a display interface of the user terminal when it is monitored that the communication state is not changed, wherein the guiding information is used for guiding the user to change the dialing authority of the application program.
In some embodiments, listening module 62 includes: the monitoring unit is used for monitoring the communication state by using a PhoneStateListener method; the first judging module is used for judging whether the communication state changes or not according to the communication state, wherein the communication state changes and comprises the following steps: the communication state is changed from the idle state to the call state or the ring state.
In some embodiments, the apparatus further comprises: the second judgment module is used for judging whether the android operating system supports permission verification on the application program; and monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call under the condition that the android operating system does not support permission verification on the application program.
In some embodiments, the apparatus further comprises: the third judgment module is used for judging whether the permission verification of the application program is the first permission verification of the application program or not under the condition that the android operating system supports permission verification of the application program; and the pop-up module is used for popping up an authority pop-up frame after the application program requests to make a call under the condition of judging that the authority is verified for the first time so as to prompt a user to set the call making authority of the application program.
In some embodiments, the monitoring module 62 is further configured to monitor whether the communication state of the user terminal changes after the application requests to make a call if it is determined that the permission is not checked for the first time.
In some embodiments, the apparatus further comprises: the detection module is used for detecting whether the authority of the application program for calling is in the authority list by using a checkSelfPermission method; determining as the first permission verification of the application program under the condition that the permission of the application program for calling is not in the permission list; and in the case that the permission that the application program requests to make a call is detected to exist in the permission list, determining the permission to be checked for the non-first-time permission of the application program.
In some embodiments, the apparatus further comprises: the android operating system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring parameters of an android operating system, and the parameters comprise targetSdkVersion and an android operating system version; the fourth judgment module is used for judging whether the targetSdkVersion is less than 23 and the android operating system version is greater than or equal to 6.0; the first determining module is used for determining that the android operating system does not support permission verification on the application program under the condition that the targetSdkVersion is less than 23 and the version of the android operating system is greater than or equal to 6.0.
In some embodiments, the apparatus further comprises: the second acquisition module is used for acquiring the model of the user terminal; the fifth judging module is used for judging whether the model is a preset model or not; the second determining module is used for determining that the android operating system supports permission verification on the application program under the condition that the machine type is judged to be the preset machine type; and under the condition that the model is judged to be a non-preset model, determining that the android operating system does not support permission verification on the application program.
In some embodiments, the apparatus further comprises: the sixth judgment module is used for judging whether the sim card is installed on the user terminal; the display module is used for displaying prompt information on a display interface of the user terminal under the condition that the sim card is not installed in the user terminal, wherein the prompt information is used for prompting a user that the sim card is not installed in the user terminal; the monitoring module 62 is configured to monitor whether a communication state of the user terminal changes after an application program requests to make a call when it is determined that the sim card is installed in the user terminal.
In addition, the method for modifying the authority of an application described in conjunction with fig. 1 may be implemented by an apparatus for modifying the authority of an application. Fig. 7 is a schematic diagram illustrating a hardware structure of an authority modifying device for an application according to an embodiment of the present invention, and as shown in fig. 7, the authority modifying device for an application may include a processor 71 and a storage 72 storing computer program instructions.
Specifically, the processor 71 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 72 may include mass storage for data or instructions. By way of example, and not limitation, memory 72 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 72 may include removable or non-removable (or fixed) media, where appropriate. The memory 72 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 72 is a non-volatile solid-state memory. In a particular embodiment, the memory 72 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 71 reads and executes the computer program instructions stored in the memory 72 to implement the method for changing the authority of any one of the application programs in the above-described embodiments.
In one example, the permission modification device of the application program may further include a communication interface 73 and a bus 70. As shown in fig. 7, the processor 71, the memory 72, and the communication interface 73 are connected via the bus 70 to complete mutual communication.
The communication interface 73 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
The bus 70 includes hardware, software, or both to couple the components of the convergence device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-E6press (PCI-6) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of these. Bus 110 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the invention, this application contemplates any suitable buses or interconnects.
The permission changing device of the application program may execute the permission changing method of the application program in the embodiment of the present invention based on the acquired communication state information, thereby implementing the permission changing method of the application program described in conjunction with fig. 1.
In addition, in combination with the method for changing the authority of the application program in the above embodiment, the embodiment of the present invention may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement the method for modifying permissions of an application in any of the above embodiments.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A permission changing method of an application program is applied to the application program installed on a user terminal using an android operating system, and is characterized by comprising the following steps:
monitoring whether the communication state of the user terminal changes or not after an application program requests to make a call;
and under the condition that the communication state is monitored not to be changed, displaying guide information on a display interface of the user terminal, wherein the guide information is used for guiding a user to change the dialing authority of the application program.
2. The method of claim 1, wherein monitoring whether the communication status of the ue changes comprises:
monitoring the communication state by using a PhoneStateListener method;
judging whether the communication state changes or not according to the communication state, wherein the communication state changes and comprises the following steps: the communication state is changed from the idle state to the call state or the ring state.
3. The method of claim 1, wherein monitoring whether a communication status of the user terminal changes after an application requests to make a call comprises:
judging whether the android operating system supports permission verification on the application program or not;
and monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call under the condition that the android operating system does not support permission verification on the application program.
4. The method of claim 3, wherein monitoring whether the communication status of the user terminal changes after the application requests to make a call further comprises:
under the condition that the android operating system supports permission verification on the application program, judging whether the permission verification is the first permission verification of the application program;
and under the condition of judging that the authority is checked for the first time, popping up an authority pop-up box after the application program requests to make a call so as to prompt a user to set the call making authority of the application program.
5. The method of claim 4, wherein monitoring whether a communication status of the user terminal changes after the application requests to make a call further comprises:
and under the condition that the verification is judged not to be the first permission verification, monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call.
6. The method of claim 4, wherein determining whether the first permission check of the application program is performed comprises:
detecting whether the authority of the application program for calling is in the authority list by using a checkSelfPermission method;
determining as a first permission check of the application program under the condition that the permission that the application program requests to make a call does not exist in the permission list;
and determining the permission to make a call to the application program for the non-first permission check if the permission that the application program requests to make a call exists in the permission list.
7. The method of claim 3, wherein determining whether the android operating system supports permission checking of the application comprises:
acquiring parameters of the android operating system, wherein the parameters comprise targetSdkVersion and an android operating system version;
judging whether the targetSdkVersion is less than 23 and the android operating system version is greater than or equal to 6.0;
and under the condition that the targetSdkVersion is less than 23 and the version of the android operating system is more than or equal to 6.0, determining that the android operating system does not support permission verification on the application program.
8. The method of claim 3, wherein determining whether the android operating system supports permission checking of the application comprises:
acquiring the model of the user terminal;
judging whether the model is a preset model or not;
determining that the android operating system supports permission verification on the application program under the condition that the machine type is judged to be a preset machine type;
and under the condition that the model is judged to be a non-preset model, determining that the android operating system does not support permission verification on the application program.
9. The method of claim 1, wherein monitoring whether a communication status of the user terminal changes after an application requests to make a call comprises:
judging whether the sim card is installed on the user terminal;
under the condition that the user terminal is judged not to be provided with the sim card, displaying prompt information on a display interface of the user terminal, wherein the prompt information is used for prompting a user that the sim card is not arranged on the user terminal;
and monitoring whether the communication state of the user terminal changes or not after an application program requests to make a call under the condition that the sim card is installed in the user terminal.
10. An apparatus for modifying an authority of an application, the apparatus comprising:
the monitoring module is used for monitoring whether the communication state of the user terminal changes or not after the application program requests to make a call;
and the guiding module is used for displaying guiding information on a display interface of the user terminal under the condition that the communication state is monitored not to change, wherein the guiding information is used for guiding a user to change the dialing authority of the application program.
CN202010321747.2A 2020-04-22 2020-04-22 Permission changing method and device for application program Pending CN111556195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010321747.2A CN111556195A (en) 2020-04-22 2020-04-22 Permission changing method and device for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010321747.2A CN111556195A (en) 2020-04-22 2020-04-22 Permission changing method and device for application program

Publications (1)

Publication Number Publication Date
CN111556195A true CN111556195A (en) 2020-08-18

Family

ID=72002550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010321747.2A Pending CN111556195A (en) 2020-04-22 2020-04-22 Permission changing method and device for application program

Country Status (1)

Country Link
CN (1) CN111556195A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017085391A (en) * 2015-10-29 2017-05-18 株式会社エイビット Telephone set system
CN109981873A (en) * 2017-12-27 2019-07-05 珠海市君天电子科技有限公司 A kind of address list permission open method, device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017085391A (en) * 2015-10-29 2017-05-18 株式会社エイビット Telephone set system
CN109981873A (en) * 2017-12-27 2019-07-05 珠海市君天电子科技有限公司 A kind of address list permission open method, device and electronic equipment

Similar Documents

Publication Publication Date Title
US8626125B2 (en) Apparatus and method for securing mobile terminal
CN105873068B (en) Method and device for identifying pseudo base station
CN104767713B (en) Account binding method, server and system
CN108990059B (en) Verification method and device
US20110055917A1 (en) Valid access to mobile device application
EP3089068A1 (en) Application program management method, device, terminal, and computer storage medium
CN110719583B (en) Communication method and device
CN106934272B (en) Application information verification method and device
US9386394B2 (en) Mobile communication terminal and terminal control method
CN110866290A (en) Chip malicious tampering detection method and device, electronic equipment and storage medium
KR20160096646A (en) Method and device for managing blacklist
US20060225071A1 (en) Mobile communications terminal having a security function and method thereof
CN107766094B (en) Method, device and equipment for controlling mutual starting of application programs
US20130252666A1 (en) Communication terminal device and control method
CN111556195A (en) Permission changing method and device for application program
CN109699030B (en) Unmanned aerial vehicle authentication method, device, equipment and computer readable storage medium
CN108494765B (en) Account processing method and device and computer readable storage medium
CN109040937B (en) Microphone blockage reminding method and related device
KR101417334B1 (en) Method of blocking intrusion in mobile device and mobile device enabling the method
WO2020087418A1 (en) Method and device for handling pseudo base station, mobile terminal, and storage medium
CN113179505B (en) Bluetooth playing device restarting and reconnecting method, bluetooth playing device and electronic equipment
CN107809758B (en) SIM card information protection method and device
US10419599B2 (en) Certificate loading method and related product
CN113836529A (en) Process detection method, device, storage medium and computer equipment
CN110795321A (en) Misoperation processing method and device and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200818

RJ01 Rejection of invention patent application after publication