CN110275835B - Permission prompt interface adding method and device and computer readable storage medium - Google Patents

Permission prompt interface adding method and device and computer readable storage medium Download PDF

Info

Publication number
CN110275835B
CN110275835B CN201910557126.1A CN201910557126A CN110275835B CN 110275835 B CN110275835 B CN 110275835B CN 201910557126 A CN201910557126 A CN 201910557126A CN 110275835 B CN110275835 B CN 110275835B
Authority
CN
China
Prior art keywords
application
prompt interface
permission
starting instruction
permission prompt
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
CN201910557126.1A
Other languages
Chinese (zh)
Other versions
CN110275835A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910557126.1A priority Critical patent/CN110275835B/en
Publication of CN110275835A publication Critical patent/CN110275835A/en
Application granted granted Critical
Publication of CN110275835B publication Critical patent/CN110275835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/53Decompilation; Disassembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a permission prompt interface adding method, a permission prompt interface adding device and a computer readable storage medium, wherein the method comprises the following steps: when an application starting instruction is received, acquiring authority information of an application corresponding to the application starting instruction from a storage area; displaying a standard permission prompt interface, and displaying the permission information in a variable content area of the standard permission prompt interface; and when receiving the confirmation instruction, starting the application corresponding to the application starting instruction. According to the invention, when the application does not have a corresponding prompt interface, and when an application starting instruction is received, a corresponding permission prompt interface is added for each application in a targeted manner based on permission information required by the application in running. By comparing the differences of different application permission prompt interfaces, the commonality and the differences are separated, so that the problems encountered during CTS testing are conveniently and efficiently solved, the coupling to third party applications is reduced, and the development efficiency is improved.

Description

Permission prompt interface adding method and device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile terminals, and in particular, to a method and apparatus for adding a permission prompt interface, and a computer readable storage medium.
Background
In order to ensure that Android applications can run correctly on all Android-compliant devices and maintain a similar user experience, android provides a set of compatibility test case sets (Compatibility Test Suite, CTS) to certify whether the device running the Android system is fully compliant with the Android specification at the time of release of each version.
For example, before the product is released, it is required to ensure that each application, when started, explicitly tells the user which rights, such as network rights and telephone rights, the application will use during use. Some third party applications may not have a corresponding permission prompt interface and may cause CTS testing to fail.
Disclosure of Invention
The invention mainly aims to provide a method and a device for adding a permission prompt interface and a computer readable storage medium, and aims to solve the technical problem that the permission prompt interface does not exist in some applications in the prior art.
In order to achieve the above purpose, the present invention provides a method for adding a permission prompt interface, the method for adding a permission prompt interface includes the following steps:
When an application starting instruction is received, acquiring authority information of an application corresponding to the application starting instruction from a storage area;
Displaying a standard permission prompt interface, and displaying the permission information in a variable content area of the standard permission prompt interface;
And when receiving the confirmation instruction, starting the application corresponding to the application starting instruction.
Optionally, before the step of acquiring the permission information of the application corresponding to the application start instruction from the storage area when the application start instruction is received, the method further includes:
acquiring authority information corresponding to the application through a decompilation tool;
And storing the unique identification of the application and the corresponding authority information thereof in a storage area in an associated manner.
Optionally, the step of obtaining the authority information corresponding to the application through a decompilation tool includes:
acquiring an android management.xml configuration file of an application through a decompilation tool;
and acquiring the authority information of the application from the android management.
Optionally, before the step of displaying the standard permission prompt interface, the method further includes:
and storing the resource file of the standard permission prompt interface for loading the resource file, so as to display the standard permission prompt interface.
Optionally, when receiving the confirmation instruction, the step of starting the application corresponding to the application starting instruction includes:
When receiving the confirmation instruction, detecting whether legal verification information is acquired;
and if the legal verification information is acquired, starting the application corresponding to the application starting instruction.
Optionally, when receiving an application start instruction, the step of acquiring the authority information of the application corresponding to the application start instruction from the storage area includes:
when an application starting instruction is received, acquiring an application package name of an application corresponding to the application starting instruction;
detecting whether the application package name is the application package name of the third party application;
and if the application package name is the application package name of the third-party application, acquiring the authority information of the application corresponding to the application starting instruction from the storage area.
In addition, in order to achieve the above object, the present invention also provides a permission prompt interface adding device, where the permission prompt interface adding device includes a processor, a memory, and a permission prompt interface adding program stored in the memory and capable of running on the processor, where the permission prompt interface adding program implements the steps of the permission prompt interface adding method described above when executed by the processor.
In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium, on which a permission prompt interface addition program is stored, which when executed by a processor, implements the steps of the permission prompt interface addition method described above.
The invention provides a permission prompt interface adding method, a permission prompt interface adding device and a computer readable storage medium, wherein when an application starting instruction is received, permission information of an application corresponding to the application starting instruction is obtained from a storage area; displaying a standard permission prompt interface, and displaying the permission information in a variable content area of the standard permission prompt interface; and when receiving the confirmation instruction, starting the application corresponding to the application starting instruction. According to the invention, when the application does not have a corresponding prompt interface, and when an application starting instruction is received, a corresponding permission prompt interface is added for each application in a targeted manner based on permission information required by the application in running. By comparing the differences of different application permission prompt interfaces, the commonality and the differences are separated, so that the problems encountered during CTS testing are conveniently and efficiently solved, the coupling to third party applications is reduced, and the development efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an embodiment of a method for adding a permission prompt interface according to the present invention;
FIG. 4 is an interface diagram of a standard permission prompt interface according to an embodiment of the present invention;
Fig. 5 is an interface schematic diagram of displaying rights information in a variable content area of a standard rights suggestion interface in an embodiment of the rights suggestion interface adding method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a Portable media player (Portable MEDIA PLAYER, PMP), a navigation device, a wearable device, a smart bracelet, a pedometer, and the like, as well as fixed terminals such as a digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
The radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (GENERAL PACKET Radio Service), CDMA2000 (Code Division Multiple Access, code Division multiple Access 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility MANAGEMENT ENTITY ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (SERVING GATE WAY ) 2034, pgw (PDN GATE WAY, packet data network gateway) 2035, PCRF (Policy AND CHARGING Rules Function) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating an embodiment of a permission prompt interface adding method according to the present invention.
In this embodiment, the permission prompt interface adding method includes the following steps:
Step S10, when an application starting instruction is received, acquiring authority information of an application corresponding to the application starting instruction from a storage area;
The Android specification specifies that when an application is started, the user should be explicitly informed of which permissions are used in the running of the application. When some applications are started, the corresponding permission prompt interface is not displayed, and the operations can be directly started as long as the starting instructions are received. Which can result in the product failing CTS (Compatibility Test Suite)'s test.
In this embodiment, when an application start instruction is received, the start instruction is first intercepted, that is, the application start instruction is not immediately executed. Since the application is generally started by ACTIVITYTHREAD at present, when an application start instruction is received, the application start instruction may be intercepted in the HANDLERCREATEACTIVITY () method in ACTIVITYTHREAD.
In this embodiment, after the received application start instruction is intercepted successfully, the permission information of the application corresponding to the application start instruction is further obtained from the storage area. I.e. the rights information of the respective applications is stored in advance in the storage area.
Further, in an embodiment of the permission prompt interface adding method of the present invention, before step S10, the method further includes:
acquiring authority information corresponding to the application through a decompilation tool;
in this embodiment, permission information corresponding to the application is obtained through a decompilation tool. Specifically, the step of obtaining the authority information corresponding to the application through the decompilation tool includes:
acquiring an android management.xml configuration file of an application through a decompilation tool;
and acquiring the authority information of the application from the android management.
In this embodiment, since rights required by the application during running are all declared in the android management.xml configuration file, the application configuration file may be obtained through a decompilation tool (for example ApkTool), and then the rights information of the application may be obtained from the application configuration file. In this embodiment, the method mainly aims at third party applications, and when a plurality of third party applications exist, each third party application configuration file is obtained through a decompilation tool respectively, and then authority information of each third party application is obtained from each third party application configuration file. For example, the rights information acquired to the third party application 1 is: the network access, album access and short message access are needed; the rights information of the third party application 2 is obtained as follows: network access, album access and positioning information; the right information of the third party application 3 is obtained as follows: network access and short message … … access are needed
And storing the unique identification of the application and the corresponding authority information thereof in a storage area in an associated manner.
In this embodiment, after the permission information corresponding to the application is obtained, the unique identifier of the application and the permission information corresponding to the unique identifier are associated and stored in the storage area. For example, the rights information acquired to the third party application 1 is: the network access, album access and short message access are needed; the rights information of the third party application 2 is obtained as follows: network access, album access and positioning information; the right information of the third party application 3 is obtained as follows: network access and short message access are required. The unique identification of the third party application 1 is aa, the unique identification of the third party application 2 is bb, and the unique identification of the third party application 3 is cc. Aa is associated with the network to be accessed, the album to be accessed and the short message to be accessed to be stored in a storage area; the bb is associated with the network to be accessed, the album to be accessed and the positioning information to be positioned and stored in a storage area; and storing the cc, the network and the short message to be accessed in a storage area in an associated mode.
Generally, when the software of the system is started, the system has corresponding permission prompt interfaces, and when only a third party is applied to the system, the system has no corresponding permission prompt interface. Therefore, in an embodiment of the rights suggestion interface adding method of the present invention, step S10 includes:
when an application starting instruction is received, acquiring an application package name of an application corresponding to the application starting instruction;
detecting whether the application package name is the application package name of the third party application;
and if the application package name is the application package name of the third-party application, acquiring the authority information of the application corresponding to the application starting instruction from the storage area.
In this embodiment, when an application start instruction is received, the application start instruction may be intercepted in the HANDLERCREATEACTIVITY () method in ACTIVITYTHREAD, and after the received application start instruction is intercepted successfully, the application package name of the application corresponding to the application start instruction may be further obtained from REALTINTENT. And then comparing the application package name PackageName of the application with the pre-stored application package names of the self-contained applications of all the systems, if the application package names PackageName of the application are different from the pre-stored application package names of the self-contained applications of all the systems, indicating that the application to be started is a third party application, and adding a permission prompt interface for the third party application, thereby executing the step of acquiring permission information of the application corresponding to the application starting instruction from a storage area.
Step S20, displaying a standard permission prompt interface and displaying the permission information in a variable content area of the standard permission prompt interface;
In this embodiment, the layout formats of different application permission interfaces are basically the same, and the difference points are different from the contents of the permission list. Therefore, a common interface (standard authority prompt interface) can be shared, and different applications can display different authority list contents. Referring to fig. 4 and fig. 5, fig. 4 is an interface schematic diagram of a standard permission prompt interface according to an embodiment of the permission prompt interface adding method of the present invention. Fig. 5 is an interface schematic diagram of displaying rights information in a variable content area of a standard rights suggestion interface in an embodiment of the rights suggestion interface adding method of the present invention. As shown in fig. 4, no content is displayed in the variable content area in fig. 4. As shown in fig. 5, the authority information is: the network access, album access and positioning information display in the variable content area of the standard permission prompt interface are needed.
Further, in an embodiment of the permission prompt interface adding method of the present invention, before step S20, the method further includes:
and saving the resource file of the standard permission prompt interface.
In this embodiment, a resource file of the standard permission prompt interface shown in fig. 4 may be added in advance under the framework frameworks/base path. And then, using LayoutInflate to load the resource file, and displaying a standard permission prompt interface after loading.
Step S30, when a confirmation instruction is received, an application corresponding to the application starting instruction is started.
In this embodiment, after the permission information is displayed in the variable content area of the standard permission prompt interface, the user is considered to know which permissions the application will use when running, and if the confirmation instruction is further received, the application corresponding to the application start instruction is started.
In this embodiment, when an application start instruction is received, permission information of an application corresponding to the application start instruction is obtained from a storage area; displaying a standard permission prompt interface, and displaying the permission information in a variable content area of the standard permission prompt interface; and when receiving the confirmation instruction, starting the application corresponding to the application starting instruction. Through the embodiment, when the application does not have a corresponding prompt interface, and when an application starting instruction is received, a corresponding permission prompt interface is added for each application in a targeted manner based on permission information required by the application in running. By comparing the differences of different application permission prompt interfaces, the commonality and the differences are separated, so that the problems encountered during CTS testing are conveniently and efficiently solved, the coupling to third party applications is reduced, and the development efficiency is improved.
Further, in an embodiment of the permission prompt interface adding method of the present invention, step S30 includes:
When receiving the confirmation instruction, detecting whether legal verification information is acquired;
and if the legal verification information is acquired, starting the application corresponding to the application starting instruction.
In this embodiment, considering that some rights are obtained when the application runs, the running security of the terminal may be adversely affected. Therefore, it is necessary to detect whether the user triggering the confirmation instruction is a legitimate user, and only when the user triggering the confirmation instruction is detected as a legitimate user, the application corresponding to the application start instruction is started. In this embodiment, when receiving the confirmation instruction, the information acquisition device such as the camera, the fingerprint acquisition device, the verification code input device and the like acquires the verification information, then further compares the currently acquired verification information with the preset legal verification information, and if the comparison is consistent, the legal verification information is determined to be acquired, so that the application corresponding to the application start instruction can be started.
The invention also provides a permission prompt interface adding device.
The permission prompt interface adding device comprises a processor, a memory and a permission prompt interface adding program which is stored in the memory and can run on the processor, wherein the permission prompt interface adding program realizes the steps of the permission prompt interface adding method when being executed by the processor.
The method implemented when the permission prompt interface addition program is executed may refer to each embodiment of the permission prompt interface addition method of the present invention, which is not described herein.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the invention stores a permission prompt interface adding program, and the permission prompt interface adding program realizes the steps of the permission prompt interface adding method when being executed by a processor.
The method implemented when the permission prompt interface addition program is executed may refer to each embodiment of the permission prompt interface addition method of the present invention, which is not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (6)

1. The authority prompt interface adding method is characterized by comprising the following steps of:
When an application starting instruction is received, acquiring authority information of an application corresponding to the application starting instruction from a storage area;
Displaying a standard permission prompt interface, and displaying the permission information in a variable content area of the standard permission prompt interface;
When receiving the confirmation instruction, starting an application corresponding to the application starting instruction;
before the step of displaying the standard permission prompt interface, the method further comprises the following steps:
Storing a resource file of a standard permission prompt interface for loading the resource file, so as to display the standard permission prompt interface;
Before the step of acquiring the permission information of the application corresponding to the application starting instruction from the storage area when the application starting instruction is received, the method further comprises the following steps:
acquiring authority information corresponding to the application through a decompilation tool;
storing the unique identification of the application and the corresponding authority information thereof in a storage area in an associated manner;
When receiving an application starting instruction, the step of acquiring the authority information of the application corresponding to the application starting instruction from the storage area comprises the following steps:
when an application starting instruction is received, acquiring an application package name of an application corresponding to the application starting instruction;
detecting whether the application package name is the application package name of the third party application;
and if the application package name is the application package name of the third-party application, acquiring the authority information of the application corresponding to the application starting instruction from the storage area.
2. The method for adding a permission prompt interface according to claim 1, wherein the step of obtaining permission information corresponding to the application through a decompilation tool includes:
acquiring an android management.xml configuration file of an application through a decompilation tool;
and acquiring the authority information of the application from the android management.
3. The permission prompt interface adding method of claim 1, wherein when receiving the confirmation instruction, the step of starting the application corresponding to the application start instruction includes:
When receiving the confirmation instruction, detecting whether legal verification information is acquired;
and if the legal verification information is acquired, starting the application corresponding to the application starting instruction.
4. The authority prompt interface adding device is characterized by comprising a processor, a memory and an authority prompt interface adding program which is stored in the memory and can run on the processor, wherein the authority prompt interface adding program realizes the following steps when being executed by the processor:
When an application starting instruction is received, acquiring authority information of an application corresponding to the application starting instruction from a storage area;
Displaying a standard permission prompt interface, and displaying the permission information in a variable content area of the standard permission prompt interface;
When receiving the confirmation instruction, starting an application corresponding to the application starting instruction;
before the step of displaying the standard permission prompt interface, the method further comprises the following steps:
Storing a resource file of a standard permission prompt interface for loading the resource file, so as to display the standard permission prompt interface;
When the permission prompt interface adding program is executed by the processor, the following steps are further realized:
acquiring authority information corresponding to the application through a decompilation tool;
storing the unique identification of the application and the corresponding authority information thereof in a storage area in an associated manner;
when an application starting instruction is received, acquiring an application package name of an application corresponding to the application starting instruction;
detecting whether the application package name is the application package name of the third party application;
and if the application package name is the application package name of the third-party application, acquiring the authority information of the application corresponding to the application starting instruction from the storage area.
5. The rights presentation interface addition apparatus according to claim 4, wherein the rights presentation interface addition program, when executed by the processor, further implements the steps of the rights presentation interface addition method according to any one of claims 2 to 3.
6. A computer-readable storage medium, wherein a permission prompt interface addition program is stored on the computer-readable storage medium, and when executed by a processor, the permission prompt interface addition program implements the steps of the permission prompt interface addition method according to any one of claims 1 to 3.
CN201910557126.1A 2019-06-25 2019-06-25 Permission prompt interface adding method and device and computer readable storage medium Active CN110275835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910557126.1A CN110275835B (en) 2019-06-25 2019-06-25 Permission prompt interface adding method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910557126.1A CN110275835B (en) 2019-06-25 2019-06-25 Permission prompt interface adding method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110275835A CN110275835A (en) 2019-09-24
CN110275835B true CN110275835B (en) 2024-06-21

Family

ID=67963189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910557126.1A Active CN110275835B (en) 2019-06-25 2019-06-25 Permission prompt interface adding method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110275835B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557669A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of authority control method and device of application program installation process

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010077362A2 (en) * 2008-12-30 2010-07-08 The Regents Of The University Of California Application design and data flow analysis
CN103617380B (en) * 2013-11-28 2017-04-19 北京邮电大学 Application program authority dynamic control method and system
CN106570358A (en) * 2016-11-18 2017-04-19 广东欧珀移动通信有限公司 Method and device for setting application permissions
CN108235754B (en) * 2016-12-24 2021-05-11 华为技术有限公司 Method and device for prompting user to update application version
CN108833690B (en) * 2018-05-31 2021-11-16 努比亚技术有限公司 Authority control method, terminal and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557669A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of authority control method and device of application program installation process

Also Published As

Publication number Publication date
CN110275835A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN108391025B (en) Network access management method, mobile terminal and computer readable storage medium
CN109151169B (en) Camera authority management method, mobile terminal and computer readable storage medium
CN109618316B (en) Network sharing method, mobile terminal and storage medium
CN112799577B (en) Method, terminal and storage medium for projecting small window
CN108512625B (en) Anti-interference method for camera, mobile terminal and storage medium
CN109379735B (en) eSIM card operation method, mobile terminal and eSIM card device
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN108833690B (en) Authority control method, terminal and computer readable storage medium
CN108549826B (en) Application program checking method, terminal, server and readable storage medium
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN110187925B (en) Desktop pre-starting control method, device and computer readable storage medium
CN110113779B (en) eSIM card testing method, system and medium
CN110096375B (en) Method and device for sharing data by application programs and computer readable storage medium
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN107682541B (en) Audio control method for screen projection, mobile terminal and storage medium
CN108012270B (en) Information processing method, equipment and computer readable storage medium
CN108629863B (en) Method for automatically signing in application program, mobile terminal and readable storage medium
CN111093289A (en) Service transmission method and electronic equipment
CN107194217B (en) User data access control method, apparatus and computer-readable storage medium
CN112395106A (en) Process management method, mobile terminal, and computer-readable storage medium
CN110209434B (en) Memory management method and device and computer readable storage medium
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109089258B (en) eSIM card operation method, mobile terminal and eSIM card device
CN111931155A (en) Verification code input method, verification code input equipment and storage medium

Legal Events

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