CN110275835A - Permission prompting interface adding method, device and computer readable storage medium - Google Patents
Permission prompting interface adding method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN110275835A CN110275835A CN201910557126.1A CN201910557126A CN110275835A CN 110275835 A CN110275835 A CN 110275835A CN 201910557126 A CN201910557126 A CN 201910557126A CN 110275835 A CN110275835 A CN 110275835A
- Authority
- CN
- China
- Prior art keywords
- application
- prompting interface
- permission
- enabled instruction
- authority information
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012790 confirmation Methods 0.000 claims abstract description 14
- 238000012795 verification Methods 0.000 claims description 10
- 238000012360 testing method Methods 0.000 abstract description 8
- 230000008878 coupling Effects 0.000 abstract description 3
- 238000010168 coupling process Methods 0.000 abstract description 3
- 238000005859 coupling reaction Methods 0.000 abstract description 3
- 238000011161 development Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 16
- 230000006854 communication Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 8
- 238000010295 mobile communication Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/53—Decompilation; 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 present invention provides a kind of permission prompting interface adding method, device and computer readable storage medium, which comprises when receiving using enabled instruction, obtains the authority information using the corresponding application of enabled instruction from storage region;It shows standard rights prompting interface, and shows the authority information in the variable content region of the standard rights prompting interface;When receiving confirmation instruction, start the corresponding application of the application enabled instruction.Through the invention, when application is there is no when corresponding prompting interface, when receiving using enabled instruction, required authority information, pointedly adds corresponding permission prompting interface for each application when based on application operation.By comparing the otherness of different application permission prompting interface, general character and otherness are separated, convenience and high-efficiency solves the problems, such as to encounter when CTS test, reduces the coupling to third-party application, promotes development efficiency.
Description
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of permission prompting interface adding methods, device and meter
Calculation machine readable storage medium storing program for executing.
Background technique
In order to ensure Android application can correctly be run in the equipment of all compatible Android, and keep similar
User experience, each version publication when, Android provides a set of compatibility test use-case set
(Compatibility Test Suite, CTS) runs the whether completely compatible Android of equipment of android system to authenticate
Specification.
For example, needing to ensure by CTS test each application before product publication on startup, explicitly telling use
Family this application will use which permission, such as network legal power, phone permission in use.But some third-party applications
It may will lead to CTS test crash without corresponding permission prompting interface.
Summary of the invention
It is a primary object of the present invention to propose a kind of permission prompting interface adding method, device and computer-readable storage
Medium, it is intended to solve the technical issues of permission prompting interface is not present in certain applications in the prior art.
To achieve the above object, the present invention provides a kind of permission prompting interface adding method, and the permission prompting interface adds
Adding method the following steps are included:
When receiving using enabled instruction, the permission using the corresponding application of enabled instruction is obtained from storage region
Information;
It shows standard rights prompting interface, and shows the power in the variable content region of the standard rights prompting interface
Limit information;
When receiving confirmation instruction, start the corresponding application of the application enabled instruction.
Optionally, described when receiving using enabled instruction, the application enabled instruction pair is obtained from storage region
Before the step of authority information for the application answered, further includes:
It is obtained by decompiling instrument and applies corresponding authority information;
By the unique identification of application and its corresponding authority information associated storage to storage region.
Optionally, described the step of obtaining application corresponding authority information by decompiling instrument, includes:
The AndroidManifest.xml configuration file of application is obtained by decompiling instrument;
The authority information of the application is obtained from the AndroidManifest.xml configuration file.
Optionally, before the display standard rights prompting interface the step of, further includes:
The resource file of standard rights prompting interface is saved, for loading the resource file, to show standard rights
Prompting interface.
Optionally, described when receiving confirmation instruction, the step of starting the application enabled instruction corresponding application, wraps
It includes:
When receiving confirmation instruction, detect whether to get legal verification information;
If getting legal verification information, start the corresponding application of the application enabled instruction.
Optionally, described when receiving using enabled instruction, it is corresponding that the application enabled instruction is obtained from storage region
Application authority information the step of include:
When receiving using enabled instruction, acquisition is described to apply packet name using the corresponding application of enabled instruction;
Detect whether the application packet name is third-party application using packet name;
If the entitled third-party application of application packet applies packet name, obtained from storage region described using enabled instruction
The authority information of corresponding application.
In addition, to achieve the above object, the present invention also provides a kind of permission prompting interface adding set, the permission prompt
Interface adding set includes processor, memory and is stored in the permission that can be run on the memory and on the processor
Prompting interface adds program, wherein realizing as described above when permission prompting interface addition program is executed by the processor
Permission prompting interface adding method the step of.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Storage has permission prompting interface addition program on storage medium, and the permission prompting interface addition program is real when being executed by processor
Now the step of permission prompting interface adding method as described above.
The present invention provides a kind of permission prompting interface adding method, device and computer readable storage medium, when receiving
When using enabled instruction, the authority information using the corresponding application of enabled instruction is obtained from storage region;Display standard power
Prompting interface is limited, and shows the authority information in the variable content region of the standard rights prompting interface;It is true when receiving
When recognizing instruction, start the corresponding application of the application enabled instruction.Through the invention, when corresponding prompting interface is not present in application
When, when receiving using enabled instruction, required authority information when based on application operation is pointedly each application addition
Corresponding permission prompting interface.By comparing the otherness of different application permission prompting interface, general character and otherness are separated, side
Just it efficiently solves the problems, such as to encounter when CTS test, reduces the coupling to third-party application, promote development efficiency.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of one embodiment of permission prompting interface adding method of the present invention;
Fig. 4 is that the interface of one embodiment Plays permission prompting interface of permission prompting interface adding method of the present invention is illustrated
Figure;
Fig. 5 is the variable content in one embodiment of permission prompting interface adding method of the present invention in standard rights prompting interface
Region shows the interface schematic diagram of authority information.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), 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 short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
It is the flow diagram of one embodiment of permission prompting interface adding method of the present invention referring to Fig. 3, Fig. 3.
In the present embodiment, the permission prompting interface adding method the following steps are included:
Step S10 is answered when receiving using enabled instruction from the storage region acquisition application enabled instruction is corresponding
Authority information;
When Android specification given application starts, it should clearly will use which permission in informing user application operation.
And some applications are on startup, can't show corresponding permission prompting interface, as long as receiving enabled instruction, will directly open
Dynamic operation.Will lead to product can not be tested by CTS (Compatibility Test Suite).
In the present embodiment, when receiving using enabled instruction, the enabled instruction is intercepted first, i.e., is not held immediately
This go using enabled instruction.Due to starting application generally by ActivityThread at present, receiving application
When enabled instruction, it can refer in handlerCreateActivity () method in ActivityThread to using starting
Order is intercepted.
In the present embodiment, after being intercepted successfully to what is received using enabled instruction, further obtains and apply from storage region
The authority information of the corresponding application of enabled instruction.I.e. in advance by the authority information storage of each application to storage region.
Further, in one embodiment of permission prompting interface adding method of the present invention, before step S10, further includes:
It is obtained by decompiling instrument and applies corresponding authority information;
In the present embodiment, is obtained by decompiling instrument and apply corresponding authority information.Specifically, passing through decompiling instrument
It obtains and includes: using the step of corresponding authority information
The AndroidManifest.xml configuration file of application is obtained by decompiling instrument;
The authority information of the application is obtained from the AndroidManifest.xml configuration file.
In the present embodiment, required permission all can configure text in AndroidManifest.xml when due to application operation
It is stated in part, therefore application configuration file can be obtained by decompiling instrument (such as ApkTool), then from application configuration text
The authority information of application is obtained in part.In the present embodiment, it is primarily directed to third-party application, when there are multiple third-party applications
When, then each third-party application configuration file is obtained by decompiling instrument respectively, then configures text from each third-party application
The authority information of each third-party application is obtained in part.For example, getting the authority information of third-party application 1 are as follows: need to access
Network needs to access photograph album, needs to access short message;Get the authority information of third-party application 2 are as follows: need to access network, need
It accesses photograph album, need location information;Get the authority information of third-party application 3 are as follows: need to access network, need to access it is short
Letter ...
By the unique identification of application and its corresponding authority information associated storage to storage region.
It in the present embodiment, is getting using after corresponding authority information, just by the unique identification of application and its corresponding
Authority information associated storage is to storage region.For example, getting the authority information of third-party application 1 are as follows: need to access network, need
It accesses photograph album, need to access short message;Get the authority information of third-party application 2 are as follows: need to access network, need to access phase
Volume needs location information;Get the authority information of third-party application 3 are as follows: need to access network, need to access short message.Third
The unique identification of Fang Yingyong 1 is aa, and the unique identification of third-party application 2 is bb, and the unique identification of third-party application 3 is cc.Then
By aa and needs to access network, needs to access photograph album, needs to access short message associated storage to storage region;By bb with need to access
Network needs to access photograph album, needs location information associated storage to storage region;By cc with need to access network, need to access
Short message associated storage is to storage region.
In general the included software of system on startup, there is corresponding permission prompting interface, only third-party application
On startup, without corresponding permission prompting interface.Therefore, in one embodiment of permission prompting interface adding method of the present invention, step
Suddenly S10 includes:
When receiving using enabled instruction, acquisition is described to apply packet name using the corresponding application of enabled instruction;
Detect whether the application packet name is third-party application using packet name;
If the entitled third-party application of application packet applies packet name, obtained from storage region described using enabled instruction
The authority information of corresponding application.
It, can be in ActivityThread when receiving using enabled instruction in the present embodiment
It intercepts in handlerCreateActivity () method to using enabled instruction, is blocked to what is received using enabled instruction
After being cut into function, this is further obtained from RealtIntent using the corresponding application of enabled instruction and applies packet name
PackageName.Then wrapping using packet name PackageName and the application of the included application of each system prestored by the application
Name is compared, if the application applies Bao Mingjun using packet name PackageName and the included application of each system for prestoring
Not identical, then the current application to be launched of explanation is third-party application, needs to add permission prompting interface for the third-party application,
Therefore, the step of obtaining the authority information using the corresponding application of enabled instruction from storage region is executed.
Step S20 shows standard rights prompting interface, and aobvious in the variable content region of the standard rights prompting interface
Show the authority information;
In the present embodiment, different application permission interface layout format is essentially identical, discrepancy with permissions list content not
It is identical.Therefore a public interface (standard rights prompting interface) can be shared, different application shows different permissions lists
Content.It is one embodiment Plays permission of permission prompting interface adding method of the present invention prompt referring to Fig. 4 and Fig. 5, Fig. 4
The interface schematic diagram at interface.Fig. 5 is in one embodiment of permission prompting interface adding method of the present invention in standard rights prompting interface
Variable content region show authority information interface schematic diagram.As shown in figure 4, in not shown in variable content region in Fig. 4
Hold.As shown in figure 5, in Fig. 5, by authority information: needing to access network, need to access photograph album, location information is needed to be shown in
The variable content region of standard rights prompting interface.
Further, in one embodiment of permission prompting interface adding method of the present invention, before step S20, further includes:
Save the resource file of standard rights prompting interface.
In the present embodiment, standard rights as shown in Figure 4 can be added under the path frame frameworks/base in advance
The resource file of prompting interface.It is subsequent, this resource file is loaded using LayoutInflate, standard can be shown after load
Permission prompting interface.
Step S30 starts the corresponding application of the application enabled instruction when receiving confirmation instruction.
In the present embodiment, after the variable content region of standard rights prompting interface shows authority information, that is, think to use
Family it is known that the application run when will use which permission, if further receive confirmation instruction, start using starting refer to
Enable corresponding application.
In the present embodiment, when receiving using enabled instruction, it is corresponding that the application enabled instruction is obtained from storage region
Application authority information;Show standard rights prompting interface, and in the variable content region of the standard rights prompting interface
Show the authority information;When receiving confirmation instruction, start the corresponding application of the application enabled instruction.By this implementation
Example, when corresponding prompting interface is not present in application, when receiving using enabled instruction, required power when based on application operation
Limit information pointedly adds corresponding permission prompting interface for each application.By comparing different application permission prompting interface
Otherness, general character and otherness are separated, convenience and high-efficiency solves the problems, such as to encounter when CTS test, and third party is answered in reduction
Coupling promotes development efficiency.
Further, in one embodiment of permission prompting interface adding method of the present invention, step S30 includes:
When receiving confirmation instruction, detect whether to get legal verification information;
If getting legal verification information, start the corresponding application of the application enabled instruction.
In the present embodiment, it is contemplated that obtain certain permissions when application operation, may be caused to the operational safety of terminal
Adverse effect.Therefore, it is necessary to detect to trigger whether the user of confirmation instruction is legitimate user, only detecting triggering, this is true
When the user for recognizing instruction is legitimate user, the corresponding application of enabled instruction is applied in starting.In the present embodiment, refer to when receiving confirmation
When enabling, by the information collecting devices such as camera, fingerprint acquisition device, identifying code input unit obtain verification information, then into
The verification information currently obtained is compared one step with preset legal verification information, if comparing unanimously, identification is got
Legal verification information can start using the corresponding application of enabled instruction.
The present invention also provides a kind of permission prompting interface adding sets.
The permission prompting interface adding set includes processor, memory and is stored on the memory and can be in institute
The permission prompting interface addition program run on processor is stated, wherein the permission prompting interface adds program by the processor
When execution, the step of realizing permission prompting interface adding method as described above.
Wherein, the permission prompting interface addition program, which is performed realized method, can refer to permission prompt of the present invention
The each embodiment of interface adding method, details are not described herein again.
The present invention also provides a kind of computer readable storage mediums.
Storage has permission prompting interface addition program, the permission prompting interface on computer readable storage medium of the present invention
The step of addition program realizes permission prompting interface adding method as described above when being executed by processor.
Wherein, the permission prompting interface addition program, which is performed realized method, can refer to permission prompt of the present invention
The each embodiment of interface adding method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of permission prompting interface adding method, which is characterized in that the permission prompting interface adding method includes following step
It is rapid:
When receiving using enabled instruction, the permission using the corresponding application of enabled instruction is obtained from storage region and is believed
Breath;
It shows standard rights prompting interface, and shows the permission letter in the variable content region of the standard rights prompting interface
Breath;
When receiving confirmation instruction, start the corresponding application of the application enabled instruction.
2. permission prompting interface adding method as described in claim 1, which is characterized in that ought receive described using starting
When instruction, before the step of obtaining the authority information using the corresponding application of enabled instruction from storage region, further includes:
It is obtained by decompiling instrument and applies corresponding authority information;
By the unique identification of application and its corresponding authority information associated storage to storage region.
3. permission prompting interface adding method as claimed in claim 2, which is characterized in that described to be obtained by decompiling instrument
Include: using the step of corresponding authority information
The AndroidManifest.xml configuration file of application is obtained by decompiling instrument;
The authority information of the application is obtained from the AndroidManifest.xml configuration file.
4. permission prompting interface adding method as described in claim 1, which is characterized in that prompted in the display standard rights
Before the step of interface, further includes:
The resource file of standard rights prompting interface is saved, for loading the resource file, to show that standard rights prompt
Interface.
5. permission prompting interface adding method as described in claim 1, which is characterized in that described to receive confirmation instruction
When, the step of starting the application enabled instruction corresponding application includes:
When receiving confirmation instruction, detect whether to get legal verification information;
If getting legal verification information, start the corresponding application of the application enabled instruction.
6. the permission prompting interface adding method as described in any one of claims 1 to 5, which is characterized in that described when reception
To the step of when application enabled instruction, obtaining the authority information using the corresponding application of enabled instruction from storage region packet
It includes:
When receiving using enabled instruction, acquisition is described to apply packet name using the corresponding application of enabled instruction;
Detect whether the application packet name is third-party application using packet name;
If the entitled third-party application of application packet applies packet name, it is corresponding that the application enabled instruction is obtained from storage region
Application authority information.
7. a kind of permission prompting interface adding set, which is characterized in that the permission prompting interface adding set include processor,
The permission prompting interface addition program that memory and being stored in can be run on the memory and on the processor, wherein institute
Permission prompting interface addition program is stated when being executed by the processor, realization following steps:
When receiving using enabled instruction, the permission using the corresponding application of enabled instruction is obtained from storage region and is believed
Breath;
It shows standard rights prompting interface, and shows the permission letter in the variable content region of the standard rights prompting interface
Breath;
When receiving confirmation instruction, start the corresponding application of the application enabled instruction.
8. permission prompting interface adding set as claimed in claim 7, which is characterized in that the permission prompting interface adds journey
When sequence is executed by the processor, following steps are also realized:
It is obtained by decompiling instrument and applies corresponding authority information;
By the unique identification of application and its corresponding authority information associated storage to storage region.
9. permission prompting interface adding set as claimed in claim 7, which is characterized in that the permission prompting interface adds journey
When sequence is executed by the processor, the permission prompting interface adding method as described in any one of claim 3 to 6 is also realized
The step of.
10. a kind of computer readable storage medium, which is characterized in that storage, which has permission, on the computer readable storage medium mentions
Show that program is added at interface, the permission prompting interface addition program is realized when being executed by processor as any in claim 1 to 6
Described in one the step of permission prompting interface adding method.
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 true CN110275835A (en) | 2019-09-24 |
CN110275835B 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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100205579A1 (en) * | 2008-12-30 | 2010-08-12 | Keliang Zhao | Application Design And Data Flow Analysis |
CN103617380A (en) * | 2013-11-28 | 2014-03-05 | 北京邮电大学 | Application program authority dynamic control method and system |
CN106557669A (en) * | 2015-09-30 | 2017-04-05 | 北京奇虎科技有限公司 | A kind of authority control method and device of application program installation process |
CN106570358A (en) * | 2016-11-18 | 2017-04-19 | 广东欧珀移动通信有限公司 | Method and device for setting application permissions |
CN108235754A (en) * | 2016-12-24 | 2018-06-29 | 华为技术有限公司 | A kind of method and apparatus that user is prompted to update application version |
CN108833690A (en) * | 2018-05-31 | 2018-11-16 | 努比亚技术有限公司 | authority control method, terminal and computer readable storage medium |
-
2019
- 2019-06-25 CN CN201910557126.1A patent/CN110275835B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100205579A1 (en) * | 2008-12-30 | 2010-08-12 | Keliang Zhao | Application Design And Data Flow Analysis |
CN103617380A (en) * | 2013-11-28 | 2014-03-05 | 北京邮电大学 | Application program authority dynamic control method and system |
CN106557669A (en) * | 2015-09-30 | 2017-04-05 | 北京奇虎科技有限公司 | A kind of authority control method and device of application program installation process |
CN106570358A (en) * | 2016-11-18 | 2017-04-19 | 广东欧珀移动通信有限公司 | Method and device for setting application permissions |
CN108235754A (en) * | 2016-12-24 | 2018-06-29 | 华为技术有限公司 | A kind of method and apparatus that user is prompted to update application version |
CN108833690A (en) * | 2018-05-31 | 2018-11-16 | 努比亚技术有限公司 | authority control method, terminal and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110275835B (en) | 2024-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109257740A (en) | Profile method for down loading, mobile terminal and readable storage medium storing program for executing | |
CN109286925A (en) | ESIM card Activiation method, terminal device and storage medium | |
CN109800602A (en) | Method for secret protection, mobile terminal and computer readable storage medium | |
CN109558718A (en) | Application program login method, computer end, mobile terminal, system and storage medium | |
CN109600740A (en) | Document down loading method, device and computer readable storage medium | |
CN107040541A (en) | A kind of Ad blocking method, device and computer-readable medium | |
CN109618316A (en) | Network share method, mobile terminal and storage medium | |
CN109687974A (en) | APK verification method, device, mobile terminal and readable storage medium storing program for executing | |
CN110191465A (en) | Authority control method, mobile terminal and computer readable storage medium | |
CN108833690A (en) | authority control method, terminal and computer readable storage medium | |
CN108549826A (en) | Method of calibration, terminal, server and the readable storage medium storing program for executing of application program | |
CN110187808A (en) | Dynamic wallpaper setting method, device and computer readable storage medium | |
CN109803249A (en) | A kind of WIFI network sharing method, terminal and computer readable storage medium | |
CN107682541A (en) | Audio control method, mobile terminal and the storage medium of screen prjection | |
CN109639834A (en) | A kind of synchronizing information processing method, system and mobile terminal | |
CN110086925A (en) | A kind of application processing method and mobile terminal | |
CN109101301A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
CN110413330A (en) | A kind of face unlock initial method, equipment and computer readable storage medium | |
CN110175052A (en) | A kind of method, apparatus and computer readable storage medium of file opening | |
CN109032621A (en) | A kind of application program installation method, mobile terminal and computer storage medium | |
CN110062106A (en) | A kind of call method of application program, mobile terminal and storage medium | |
CN108879117A (en) | Mobile terminal and its antenna structure | |
CN109257746A (en) | Communication establishing method, communication means, terminal and computer readable storage medium | |
CN109711850A (en) | A kind of safe payment method, equipment and computer readable storage medium | |
CN109033773A (en) | Double screen terminal operation right management method, terminal and computer readable 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 |