CN106599680B - Method and device for setting application program permission and electronic equipment - Google Patents
Method and device for setting application program permission and electronic equipment Download PDFInfo
- Publication number
- CN106599680B CN106599680B CN201611205347.5A CN201611205347A CN106599680B CN 106599680 B CN106599680 B CN 106599680B CN 201611205347 A CN201611205347 A CN 201611205347A CN 106599680 B CN106599680 B CN 106599680B
- Authority
- CN
- China
- Prior art keywords
- application program
- setting
- permission
- authority
- floating window
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/51—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a method and a device for setting application program permission and electronic equipment, relates to permission setting technology and can improve the setting efficiency of the application program permission. The method for setting the application program authority comprises the following steps: after receiving an application program permission setting request, displaying a preset floating window to guide a user to set auxiliary function permission of the application program, wherein the application program permission setting request is automatically generated when the application program needs to set the permission in the installation process; and after the auxiliary function permission of the application program is set, setting other permissions required by the application program in a click simulation mode. The method is suitable for setting the application program permission by using the permission to guide the animation to simulate clicking.
Description
Technical Field
The present invention relates to an authority setting technology, and in particular, to a method and an apparatus for setting an application authority, and an electronic device.
Background
With the development of computer communication and internet technology, more and more people have electronic devices, such as tablet computers, personal digital assistants, palm top computers, smart mobile phones, etc., which can be networked with the wired internet and/or the wireless internet. With the demand of users for service diversity, various Applications (APP) installed in electronic devices are increasing, for example, QQ, wechat, Word, Whatsapp, Facebook, Line, etc. In order to guarantee the privacy information of the user to the maximum extent, when various application programs are installed, one or more system authorities need to be set, for example, for some positioning application programs, the system authorities needing to be set include a user information collection authority, a user positioning authority, a user information sharing authority and the like, and in the installation process of the application programs, the application programs can normally realize corresponding functions only after the user sets corresponding authorities.
However, when setting the application program authority, the user is required to open the authority setting interface by himself and click the authority required by setting the application program one by one in the authority setting interface, so that the operation of setting the authority is complex, the required time is long, and the authority setting efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for setting an application program permission, and an electronic device, which can effectively improve the setting efficiency of the permission, so as to solve the problems that in the existing method for setting an application program permission, a user needs to open a permission setting interface by himself and click to set a corresponding permission one by one, which results in complex operations for setting the permission, long time required, and low permission setting efficiency.
In a first aspect, an embodiment of the present invention provides a method for setting an application program authority, including:
after receiving an application program permission setting request, displaying a preset floating window to guide a user to set auxiliary function permission of the application program, wherein the application program permission setting request is automatically generated when the application program needs to set the permission in the installation process;
and after the auxiliary function permission of the application program is set, setting other permissions required by the application program in a click simulation mode.
With reference to the first aspect, in a first implementation manner of the first aspect, the displaying a preset floating window includes:
and playing a permission guide animation in the floating window, wherein the permission guide animation demonstrates the process of setting the auxiliary function permission of the application program.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, playing the right directing animation in the floating window includes: and setting the suspension window, and drawing the authority guide animation in the suspension window.
With reference to the first aspect, in a third implementation of the first aspect, the method further includes:
and creating an auxiliary service class and an auxiliary service configuration file, and registering the auxiliary service.
With reference to the first aspect, in a fourth implementation manner of the first aspect, before the setting other permissions required by the application program in a click-simulated manner, the method includes:
and judging whether the auxiliary function authority of the application program is set or not, if so, executing a step of setting other authorities needed by the application program in a click simulation mode, and otherwise, executing a step of displaying a preset floating window to guide a user to set the auxiliary function authority of the application program.
With reference to the first aspect, in a fifth implementation manner of the first aspect, after the setting of the auxiliary function permission of the application program is completed, the method further includes: the floating window is eliminated.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the setting other permissions required by the application program in a click-simulated manner includes:
and monitoring system events, acquiring user interface nodes corresponding to other authorities required by the application program in the authority setting window when monitoring the occurrence of the events of the authority setting window, and performing simulated clicking according to the user interface nodes.
With reference to the first implementation manner of the first aspect, in a seventh implementation manner of the first aspect, after displaying the preset floating window, the method includes:
monitoring that a user sets auxiliary function authority in the authority guide animation, automatically setting all authorities after the auxiliary function authority, and eliminating the floating window;
and judging whether the authority required to be set by the current application program is the auxiliary function authority, if so, executing the step of setting other authorities required by the application program in a click simulation mode.
With reference to the first aspect, in an eighth implementation manner of the first aspect, the displaying a preset floating window includes:
displaying the permission required by the installation of the application program in the floating window;
and after the situation that the user sets the authority in the floating window is monitored, eliminating the floating window.
With reference to the first aspect, the first implementation manner, or the second implementation manner of the first aspect, in a ninth implementation manner of the first aspect, the method further includes:
the floating window is also provided with the authority required by other application programs relevant to the application program when the other application programs are installed;
and acquiring the authority required by the user when selecting the other application programs in the floating window for installation, and constructing and storing the mapping relation between the other application programs and the authorization authority.
With reference to the ninth implementation manner of the first aspect, in a tenth implementation manner of the first aspect, before the displaying a preset floating window to guide a user to set an auxiliary function permission of the application after receiving the application permission setting request, the method further includes:
inquiring whether a mapping relation of the application program corresponding to the application program permission setting request exists or not, if not, executing the step of displaying the preset floating window to guide a user to set the auxiliary function permission of the application program, if so, inquiring the mapping relation of the application program corresponding to the application program permission setting request, acquiring the authorization permission mapped by the mapping relation, and executing the step of setting other permissions required by the application program in a click simulation manner.
In a second aspect, an embodiment of the present invention provides an apparatus for setting application program permissions, including: a floating window display module and a permission setting module, wherein,
the device comprises a floating window display module, a floating window display module and a control module, wherein the floating window display module is used for displaying a preset floating window to guide a user to set the auxiliary function permission of an application program after receiving an application program permission setting request, and the application program permission setting request is automatically generated when the application program needs to be set in the installation process;
and the permission setting module is used for setting other permissions required by the application program in a click simulation mode after the auxiliary function permission setting of the application program is finished.
With reference to the second aspect, in a first embodiment of the second aspect, the floating window display module includes: a request receiving unit and a presentation unit, wherein,
the request receiving unit is used for notifying the display unit after receiving the application program permission setting request;
and the display unit is used for playing an authority-guided animation in the floating window, and the authority-guided animation demonstrates the process of setting the auxiliary function authority of the application program.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the display unit is specifically configured to set the floating window, draw the permission guidance animation in the floating window, and demonstrate a process of setting the auxiliary function permission of the application program by using the permission guidance animation.
With reference to the second aspect, in a third embodiment of the second aspect, the apparatus further comprises:
and the creating module is used for creating an auxiliary service class and an auxiliary service configuration file and registering the auxiliary service.
With reference to the second aspect, in a fourth embodiment of the second aspect, the apparatus further comprises:
and the auxiliary function permission judging module is used for judging whether the auxiliary function permission of the application program is set or not, if so, the permission setting module is informed to set other permissions required by the application program in a click simulating manner, and otherwise, the floating window display module is informed to display the preset floating window so as to guide a user to set the auxiliary function permission of the application program.
With reference to the second aspect, in a fifth implementation manner of the second aspect, the apparatus further includes:
and the elimination module is used for eliminating the floating window after the auxiliary function authority of the application program is set.
With reference to the second aspect, in a sixth implementation manner of the second aspect, the permission setting module is specifically configured to monitor a system event after the setting of the auxiliary function permission of the application program is completed, and when an event of a permission setting window is monitored, obtain a user interface node corresponding to another permission required by the application program in the permission setting window, and perform simulated click according to the user interface node.
With reference to the sixth implementation manner of the second aspect, in a seventh implementation manner of the second aspect, the permission setting module includes: a monitoring unit and an analog click unit, wherein,
the monitoring unit is used for monitoring that a user sets auxiliary function permission in the permission guide animation, automatically setting all permissions after the auxiliary function permission and eliminating the floating window;
and the simulated click unit is used for judging whether the authority required to be set by the current application program is the auxiliary function authority or not, and if so, setting other authorities required by the application program in a simulated click mode.
With reference to the sixth implementation manner of the second aspect, in an eighth implementation manner of the second aspect, the permission setting module includes: a rights presentation unit and an elimination unit, wherein,
the permission display unit is used for displaying the permission required by the installation of the application program in the floating window;
and the eliminating unit is used for eliminating the floating window after monitoring that the user sets the authority in the floating window.
With reference to the sixth or seventh or eighth implementation manner of the second aspect, in a ninth implementation manner of the second aspect, the apparatus further includes:
and the related application program setting module is used for acquiring the authority required by the user when the other application programs related to the application program are installed in the floating window, constructing the mapping relation between the other application programs and the authorization authority and storing the mapping relation when the user selects the authority required by the other application programs in the floating window.
With reference to the ninth implementation manner of the second aspect, in a tenth implementation manner of the second aspect, the apparatus further includes:
and the permission setting and inquiring module is used for inquiring whether the mapping relation of the application program corresponding to the application program permission setting request exists or not, if not, informing the floating window display module to display a preset floating window so as to guide a user to set the auxiliary function permission of the application program, if so, inquiring the mapping relation of the application program corresponding to the application program permission setting request, acquiring the authorization permission mapped by the mapping relation, and informing the permission setting module to set other permissions required by the application program in a click simulating manner.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations:
after receiving an application program permission setting request, displaying a preset floating window to guide a user to set auxiliary function permission of the application program, wherein the application program permission setting request is automatically generated when the application program needs to set the permission in the installation process;
and after the auxiliary function permission of the application program is set, setting other permissions required by the application program in a click simulation mode.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, configured to store an application program, where the application program is configured to execute the method for setting the application program authority provided in the embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides an application program, configured to execute the method for setting the application program permission provided in the embodiment of the present invention.
According to the method, the device and the electronic equipment for setting the application program permission, the preset floating window is displayed to guide a user to set the auxiliary function permission of the application program after the application program permission setting request is received, and the application program permission setting request is automatically generated when the application program is required to be set in the installation process; after the setting of the auxiliary function permission of the application program is finished, other permissions required by the application program are set in a simulated clicking mode, the setting efficiency of the permissions can be effectively improved, and the problems that in the existing method for setting the permission of the application program, a user is required to open a permission setting interface by himself and clicks one by one to set the corresponding permission, the operation for setting the permission is complex, the required time is long, and the permission setting efficiency is low are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for setting application program permissions according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an apparatus for setting application program permissions according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart illustrating a method for setting application program permissions according to an embodiment of the present invention, as shown in fig. 1, the method according to this embodiment may include:
in this embodiment, during the installation process of the application program, a user may be required to set one or more permissions, where the permissions are used for allowing the user to perform corresponding operations on the application program during the running process, for example, collecting user information, performing user location, sharing user information, and the like.
In this embodiment, as an optional embodiment, the method of this embodiment further includes: and creating an auxiliary service class and an auxiliary service configuration file, and registering the auxiliary service. Specifically, a class is newly created and inherits an accessitiveservice class, an accessitiveservice configuration file is newly created, and a service is registered in android manifest.
In this embodiment, as an optional embodiment, the displaying of the preset floating window includes: and playing the authority guide animation in the floating window, wherein the authority guide animation demonstrates the process of setting the auxiliary function authority of the application program.
In this embodiment, as an optional embodiment, playing the right guidance animation in the floating window includes: and setting a floating window, and guiding the animation in the floating window by using the code drawing authority. In the embodiment, the animation is guided by using the code drawing authority in the floating window instead of guiding the animation by using the authority which is made in advance, so that the size of an application program installation package can be reduced, the uploading and downloading burdens are reduced, and the user experience is improved. The permission guide animation can be written by codes, only a few k of pictures can be used, the size of an application program installation package is not increased, and the permission setting efficiency can be effectively improved.
In this embodiment, as an optional embodiment, when the application is installed to the extent that the user needs to set the authority, the preset floating window is triggered and loaded, and after the auxiliary function authority of the application is set, the simulated click technology is used to help the user to set other authorities needed by the application in a simulated click manner, and the user does not need to click and set corresponding authorities one by one in the process of installing the application, so that the time needed for setting the authorities is short, and the authority setting efficiency is improved.
In this embodiment, as an optional embodiment, the floating window may be loaded to the top position of the application installation interface.
And 102, after the auxiliary function permission of the application program is set, setting other permissions needed by the application program in a click simulation mode.
In this embodiment, as an optional embodiment, before setting other permissions required by the application program in a manner of simulating a click, the method includes:
and judging whether the auxiliary function authority of the application program is set or not, if so, executing a step of setting other authorities needed by the application program in a click simulation mode, and otherwise, executing a step of displaying a preset floating window to guide a user to set the auxiliary function authority of the application program.
Specifically, a settingValue character string of the auxiliary function is acquired, whether the settingValue character string includes the package name of the application program is judged, and if the settingValue character string includes the package name of the application program, the auxiliary function authority of the application program is determined to be set.
In this embodiment, as an optional embodiment, after the setting of the auxiliary function permission of the application is completed, the method further includes: the floating window is eliminated.
In this embodiment, as an optional embodiment, the setting of other permissions required by the application program in a manner of simulating a click includes:
and monitoring system events, acquiring user interface nodes corresponding to other authorities required by the application program in the authority setting window when monitoring the occurrence of the events of the authority setting window, and performing simulated clicking according to the user interface nodes.
In this embodiment, as an optional embodiment, after displaying the preset floating window, the method includes:
a11, monitoring that a user sets an auxiliary function authority in the authority guide animation, automatically setting all authorities after the auxiliary function authority, and eliminating the floating window;
a12, judging whether the authority needed to be set by the current application program is the auxiliary function authority, if so, executing the step of setting other authorities needed by the application program in a click simulation mode.
In this embodiment, as an optional embodiment, the permission guidance animation is implemented by writing a code, so that the permission guidance animation written by the code is played, and a user can be guided to set the permission in a concise and clear manner in a floating window animation manner.
In the embodiment, a user can set an auxiliary function permission device in a system setting interface according to the permission guide animation demonstration process, and also can set auxiliary function permission in the permission guide animation, after the user sets the auxiliary function permission, the user can be helped to simulate and click a plurality of permissions required by an application program by the auxiliary function permission, namely, after the user only needs to set the auxiliary function permission according to the permission guide animation, the user can be helped to click other permissions required by the application program automatically, namely, the user is helped to select the permission automatically by simulating and clicking, and the user does not need to click and set related rights one by one, so that the permission setting efficiency is improved, and the user experience is enhanced.
In this embodiment, as another optional embodiment, in the floating window, a guidance interface using characters or pictures may also be set to guide the user to set the permission, but this method is slightly costly for the user to receive information; or, the animation guide interface of the video stream is adopted, and the animation guide interface of the video stream can increase the application program installation package relative to the animation guide interface of the video stream written by the code.
In this embodiment, as a further optional embodiment, after displaying the preset floating window, the method includes:
a21, showing the permission required by the installation of the application program in the floating window;
a22, after the user sets the authority in the floating window is monitored, the floating window is eliminated.
In this embodiment, as another optional embodiment, the permissions respectively required for installing other application programs associated with the application program may also be displayed in the floating window, so that when the user installs the associated application program of this type, permission setting is not required again, time required for installing the associated application program is effectively reduced, and application program installation efficiency is improved. Thus, the method further comprises:
the floating window is also provided with the authority required by other application programs relevant to the application program when the other application programs are installed;
and acquiring the authority required by the user when selecting the other application programs in the floating window for installation, and constructing and storing the mapping relation between the other application programs and the authorization authority.
In this embodiment, as an optional embodiment, before the displaying a preset floating window to guide a user to set an auxiliary function permission of the application after receiving the application permission setting request, the method further includes:
inquiring whether a mapping relation of the application program corresponding to the application program permission setting request exists or not, if not, executing the step of displaying the preset floating window to guide a user to set the auxiliary function permission of the application program, if so, inquiring the mapping relation of the application program corresponding to the application program permission setting request, acquiring the authorization permission mapped by the mapping relation, and executing the step of setting other permissions required by the application program in a click simulation manner.
In the method for setting the application program permission, after receiving an application program permission setting request, a preset floating window is displayed to guide a user to set the auxiliary function permission of the application program, and the application program permission setting request is automatically generated when the application program needs to be set in the installation process; and after the auxiliary function permission of the application program is set, setting other permissions required by the application program in a click simulation mode. Therefore, the plurality of authorities of the application program are automatically set by utilizing simulated clicking, so that the related authority setting in the installation process of the application program is realized, the user does not need to click and set the corresponding authorities one by one in the installation process of the application program, the operation step of setting the authorities is effectively simplified, the time required by setting the authorities is short, and the authority setting efficiency is high.
Example two
Fig. 2 is a schematic structural diagram of a device for setting application program permissions according to a second embodiment of the present invention, and as shown in fig. 2, the device according to this embodiment may include: a floating window display module 21, and a rights setting module 22, wherein,
the floating window display module 21 is configured to display a preset floating window to guide a user to set an auxiliary function permission of an application program after receiving an application program permission setting request, where the application program permission setting request is automatically generated when the application program needs to set a permission in an installation process;
in this embodiment, as an optional embodiment, the apparatus of this embodiment further includes:
and a creating module (not shown) for creating an auxiliary service class and an auxiliary service profile and registering the auxiliary service. Specifically, a class is newly created and inherits an accessitiveservice class, an accessitiveservice configuration file is newly created, and a service is registered in android manifest.
In this embodiment, as an optional embodiment, the floating window display module 21 includes: a request receiving unit, and a presentation unit (not shown), wherein,
the request receiving unit is used for notifying the display unit after receiving the application program permission setting request;
and the display unit is used for playing an authority-guided animation in the floating window, and the authority-guided animation demonstrates the process of setting the auxiliary function authority of the application program.
In this embodiment, as an optional embodiment, the presentation unit is specifically configured to set a floating window, and the animation is guided in the floating window by using a code drawing authority. In the embodiment, the animation is guided by using the code drawing authority in the floating window instead of guiding the animation by using the authority which is made in advance, so that the size of an application program installation package can be reduced, the uploading and downloading burdens are reduced, and the user experience is improved.
In this embodiment, as an optional embodiment, the floating window may be loaded to the top position of the application installation interface.
And the permission setting module 22 is configured to set other permissions required by the application program in a click simulation manner after the auxiliary function permission setting of the application program is completed.
In this embodiment, as an optional embodiment, the apparatus further includes:
and an auxiliary function permission judging module (not shown in the figure) for judging whether the auxiliary function permission of the application program is set, if so, notifying the permission setting module 22 to execute other permissions required by the application program in a simulated click mode, otherwise, notifying the floating window displaying module 21 to execute displaying of a preset floating window to guide a user to set the auxiliary function permission of the application program.
Specifically, a settingValue character string of the auxiliary function is acquired, whether the settingValue character string includes the package name of the application program is judged, and if the settingValue character string includes the package name of the application program, the auxiliary function authority of the application program is determined to be set.
In this embodiment, as an optional embodiment, the apparatus further includes:
and the elimination module (not shown in the figure) is used for eliminating the floating window after the auxiliary function authority of the application program is set.
In this embodiment, as an optional embodiment, the permission setting module 22 is specifically configured to monitor a system event after the setting of the auxiliary function permission of the application program is completed, and when an event of a permission setting window is monitored, obtain a user interface node corresponding to another permission required by the application program in the permission setting window, and perform simulated click according to the user interface node.
In this embodiment, as an optional embodiment, the permission setting module 22 includes: a monitoring unit, and an analog pointing unit (not shown), wherein,
in this embodiment, as another optional embodiment, in the floating window, a guidance interface using characters or pictures may also be set to guide the user to set the permission.
The monitoring unit is used for monitoring that a user sets auxiliary function permission in the permission guide animation, automatically setting all permissions after the auxiliary function permission and eliminating the floating window;
and the simulated click unit is used for judging whether the authority required to be set by the current application program is the auxiliary function authority or not, and if so, setting other authorities required by the application program in a simulated click mode.
In this embodiment, as another optional embodiment, the permission setting module 22 includes: a rights presentation unit and an elimination unit, wherein,
the permission display unit is used for displaying the permission required by the installation of the application program in the floating window;
and the eliminating unit is used for eliminating the floating window after monitoring that the user sets the authority in the floating window.
In this embodiment, as an optional embodiment, the apparatus further includes:
and an associated application setting module (not shown in the figure) configured to, when the rights respectively required for installation of other applications associated with the application are shown in the floating window, obtain the rights required for installation of the other applications selected by the user in the floating window, and construct and store a mapping relationship between the other applications and the authorization rights.
In this embodiment, as a further optional embodiment, the apparatus further includes:
an authority setting and querying module (not shown in the figure), configured to query whether a mapping relationship of an application corresponding to the application authority setting request exists, if not, notify the floating window displaying module 21 to display a preset floating window to guide a user to set an auxiliary function authority of the application, if so, query the mapping relationship of the application corresponding to the application authority setting request, obtain an authorization authority mapped by the mapping relationship, and notify the authority setting module 22 to set other authorities needed by the application in a click-simulated manner.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The embodiment of the invention also provides electronic equipment, and the electronic equipment comprises the device in any one of the embodiments.
Fig. 3 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which can implement the processes of the embodiments shown in fig. 1-2 of the present invention, and as shown in fig. 3, the electronic device may include: the device comprises a shell 31, a processor 32, a memory 33, a circuit board 34 and a power circuit 35, wherein the circuit board 34 is arranged inside a space enclosed by the shell 31, and the processor 32 and the memory 33 are arranged on the circuit board 34; a power supply circuit 35 for supplying power to each circuit or device of the electronic apparatus; the memory 33 is used for storing executable program codes; the processor 32 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 33, for performing the following operations:
after receiving an application program permission setting request, displaying a preset floating window to guide a user to set auxiliary function permission of the application program, wherein the application program permission setting request is automatically generated when the application program needs to set the permission in the installation process;
and after the auxiliary function permission of the application program is set, setting other permissions required by the application program in a click simulation mode.
The specific execution process of the above steps by the processor 32 and the steps further executed by the processor 32 by running the executable program code may refer to the description of the embodiment shown in fig. 1-2 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
The embodiment of the invention also provides a storage medium for storing the application program, and the application program is used for executing the method for setting the application program authority provided by the embodiment of the invention.
The embodiment of the invention also provides an application program, which is used for executing the method for setting the application program authority provided by the embodiment of the invention.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
The above description of the embodiments will make clear to those skilled in the art that the present invention can be implemented
The invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (15)
1. A method for setting application program permissions, comprising:
after receiving an application program permission setting request, inquiring whether a mapping relation of an application program corresponding to the application program permission setting request exists or not;
if the mapping relation of the application program corresponding to the application program permission setting request does not exist, setting a floating window, drawing a permission guide animation in the floating window by using a code, wherein the permission guide animation demonstrates the process of setting the auxiliary function permission of the application program so as to guide a user to set the auxiliary function permission of the application program, and the application program permission setting request is automatically generated when the application program needs to be set in the installation process; the floating window is also provided with the authority required by other application programs relevant to the application program when the other application programs are installed;
acquiring the authority required by the user when selecting the other application programs in the floating window for installation, and constructing and storing the mapping relation between the other application programs and the authorization authority;
after the auxiliary function permission of the application program is set, setting other permissions needed by the application program in a click simulation mode; or, if the mapping relation of the application program corresponding to the application program permission setting request exists, inquiring the mapping relation of the application program corresponding to the application program permission setting request, acquiring the authorization permission mapped by the mapping relation, and setting other permissions required by the application program in a click simulation mode.
2. The method for setting application program permissions according to claim 1, further comprising:
and creating an auxiliary service class and an auxiliary service configuration file, and registering the auxiliary service.
3. The method for setting the application program authority according to claim 1, wherein before setting other authorities required by the application program in a manner of simulating click, the method comprises the following steps:
and judging whether the auxiliary function authority of the application program is set or not, if so, executing a step of setting other authorities needed by the application program in a click simulation mode, and otherwise, executing a step of setting a floating window.
4. The method for setting the application program authority according to claim 1, further comprising, after the setting of the auxiliary function authority of the application program is completed: the floating window is eliminated.
5. The method for setting application program authority according to claim 1, wherein the setting other authority required by the application program in a manner of simulating click comprises:
and monitoring system events, acquiring user interface nodes corresponding to other authorities required by the application program in the authority setting window when monitoring the occurrence of the events of the authority setting window, and performing simulated clicking according to the user interface nodes.
6. The method for setting application program authority according to claim 1, wherein the guiding animation in the floating window by using the code drawing authority comprises:
monitoring that a user sets auxiliary function authority in the authority guide animation, automatically setting all authorities after the auxiliary function authority, and eliminating the floating window;
and judging whether the authority required to be set by the current application program is the auxiliary function authority, if so, executing the step of setting other authorities required by the application program in a click simulation mode.
7. The method for setting application program authority according to claim 1, wherein the guiding animation in the floating window by using the code drawing authority comprises:
displaying the permission required by the installation of the application program in the floating window;
and after the situation that the user sets the authority in the floating window is monitored, eliminating the floating window.
8. An apparatus for setting application program permissions, comprising: a floating window display module and a permission setting module, wherein,
the permission setting and inquiring module is used for inquiring whether a mapping relation of an application program corresponding to an application program permission setting request exists or not after receiving the application program permission setting request, if not, informing the floating window display module to display a preset floating window, if so, inquiring the mapping relation of the application program corresponding to the application program permission setting request, acquiring the authorization permission mapped by the mapping relation, and informing the permission setting module to set other permissions needed by the application program in a click simulation manner;
the suspended window display module is used for displaying a preset suspended window to guide a user to set the auxiliary function permission of the application program, and the application program permission setting request is automatically generated when the application program needs to set the permission in the installation process;
the related application program setting module is used for acquiring the authority required by the user when the other application programs related to the application program are installed in the floating window, constructing and storing the mapping relation between the other application programs and the authorization authority when the authority required by the user when the other application programs are installed in the floating window is displayed;
the permission setting module is used for setting other permissions needed by the application program in a click simulation mode after the auxiliary function permission setting of the application program is finished or according to the notification of the permission setting query module;
wherein the floating window display module comprises: a request receiving unit and a presentation unit, wherein,
the request receiving unit is used for notifying the display unit after receiving the application program permission setting request;
and the display unit is used for setting the floating window, drawing the authority guide animation in the floating window by using a code, and demonstrating the process of setting the auxiliary function authority of the application program by using the authority guide animation.
9. The apparatus for setting authority of an application program according to claim 8, wherein the apparatus further comprises:
and the creating module is used for creating an auxiliary service class and an auxiliary service configuration file and registering the auxiliary service.
10. The apparatus for setting authority of an application program according to claim 8, wherein the apparatus further comprises:
and the auxiliary function permission judging module is used for judging whether the auxiliary function permission of the application program is set or not, if so, the permission setting module is informed to set other permissions required by the application program in a click simulating manner, and otherwise, the floating window display module is informed to display the preset floating window so as to guide a user to set the auxiliary function permission of the application program.
11. The apparatus for setting authority of an application program according to claim 8, wherein the apparatus further comprises:
and the elimination module is used for eliminating the floating window after the auxiliary function authority of the application program is set.
12. The apparatus for setting application program permissions according to claim 8, wherein the permission setting module is specifically configured to monitor a system event after the setting of the auxiliary function permissions of the application program is completed, and when an event of a permission setting window is monitored, obtain user interface nodes corresponding to other permissions required by the application program in the permission setting window, and perform simulated clicking according to the user interface nodes.
13. The apparatus for setting application program authority according to claim 12, wherein the authority setting module comprises: a monitoring unit and an analog click unit, wherein,
the monitoring unit is used for monitoring that a user sets auxiliary function permission in the permission guide animation, automatically setting all permissions after the auxiliary function permission and eliminating the floating window;
and the simulated click unit is used for judging whether the authority required to be set by the current application program is the auxiliary function authority or not, and if so, setting other authorities required by the application program in a simulated click mode.
14. The apparatus for setting application program authority according to claim 12, wherein the authority setting module comprises: a rights presentation unit and an elimination unit, wherein,
the permission display unit is used for displaying the permission required by the installation of the application program in the floating window;
and the eliminating unit is used for eliminating the floating window after monitoring that the user sets the authority in the floating window.
15. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations:
after receiving an application program permission setting request, inquiring whether a mapping relation of an application program corresponding to the application program permission setting request exists or not;
if the mapping relation of the application program corresponding to the application program permission setting request does not exist, setting a floating window, drawing a permission guide animation in the floating window by using a code, wherein the permission guide animation demonstrates the process of setting the auxiliary function permission of the application program so as to guide a user to set the auxiliary function permission of the application program, and the application program permission setting request is automatically generated when the application program needs to be set in the installation process; the floating window is also provided with the authority required by other application programs relevant to the application program when the other application programs are installed;
acquiring the authority required by the user when selecting the other application programs in the floating window for installation, and constructing and storing the mapping relation between the other application programs and the authorization authority;
after the auxiliary function permission of the application program is set, setting other permissions needed by the application program in a click simulation mode; or, if the mapping relation of the application program corresponding to the application program permission setting request exists, inquiring the mapping relation of the application program corresponding to the application program permission setting request, acquiring the authorization permission mapped by the mapping relation, and setting other permissions required by the application program in a click simulation mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611205347.5A CN106599680B (en) | 2016-12-22 | 2016-12-22 | Method and device for setting application program permission and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611205347.5A CN106599680B (en) | 2016-12-22 | 2016-12-22 | Method and device for setting application program permission and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106599680A CN106599680A (en) | 2017-04-26 |
CN106599680B true CN106599680B (en) | 2020-01-03 |
Family
ID=58603375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611205347.5A Active CN106599680B (en) | 2016-12-22 | 2016-12-22 | Method and device for setting application program permission and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106599680B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107329659B (en) * | 2017-06-30 | 2020-11-27 | 北京金山安全软件有限公司 | Permission setting method and device, electronic equipment and storage medium |
CN108093057A (en) * | 2017-12-25 | 2018-05-29 | 北京金山安全软件有限公司 | Method and device for guiding permission to be opened |
CN108108607A (en) * | 2017-12-27 | 2018-06-01 | 深圳豪客互联网有限公司 | A kind of application program locking function open method and device |
CN108875354A (en) * | 2018-05-31 | 2018-11-23 | 上海连尚网络科技有限公司 | Permission open method, terminal device and computer-readable medium |
CN109344634B (en) * | 2018-09-28 | 2021-04-13 | 东软集团股份有限公司 | Permission granting method and device for application, terminal and computer readable storage medium |
CN111459376B (en) * | 2019-01-21 | 2022-04-12 | 北京沃东天骏信息技术有限公司 | Product guiding method, device and equipment |
CN110457921A (en) * | 2019-08-01 | 2019-11-15 | 维沃移动通信有限公司 | Right management method and terminal device |
CN113687902B (en) * | 2021-08-30 | 2024-06-07 | 广州酷狗计算机科技有限公司 | Resource display method, device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102200922A (en) * | 2011-04-06 | 2011-09-28 | 宇龙计算机通信科技(深圳)有限公司 | Application program installation method and terminal |
CN102917117A (en) * | 2012-09-11 | 2013-02-06 | 惠州Tcl移动通信有限公司 | Operation method and operation system of mobile terminal |
CN106096425A (en) * | 2016-06-06 | 2016-11-09 | 北京金山安全软件有限公司 | System permission starting method, device and equipment |
-
2016
- 2016-12-22 CN CN201611205347.5A patent/CN106599680B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102200922A (en) * | 2011-04-06 | 2011-09-28 | 宇龙计算机通信科技(深圳)有限公司 | Application program installation method and terminal |
CN102917117A (en) * | 2012-09-11 | 2013-02-06 | 惠州Tcl移动通信有限公司 | Operation method and operation system of mobile terminal |
CN106096425A (en) * | 2016-06-06 | 2016-11-09 | 北京金山安全软件有限公司 | System permission starting method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106599680A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106599680B (en) | Method and device for setting application program permission and electronic equipment | |
CN109741755B (en) | Voice awakening word threshold management device and method for managing voice awakening word threshold | |
CN107943683B (en) | Test script generation method and device, electronic equipment and storage medium | |
CN106331822B (en) | Method and device for playing multiple videos and electronic equipment | |
CN109726067B (en) | Process monitoring method and client device | |
CN108038398B (en) | Two-dimensional code analysis capability test method and device and electronic equipment | |
US11184314B2 (en) | Method and apparatus for prompting message reading state, and electronic device | |
CN104166717A (en) | Unread message displaying method and device based on terminal operation system | |
CN106250182B (en) | File processing method and device and electronic equipment | |
CN108804918B (en) | Security defense method, security defense device, electronic equipment and storage medium | |
CN102646037A (en) | Menu display processing method and terminal device | |
CN106843635B (en) | Information display method and device and electronic equipment | |
CN110597720A (en) | Application program testing method and device, electronic equipment and storage medium | |
CN111158750A (en) | Unity-based game installation package packaging method and device | |
CN108196675B (en) | Interaction method and device for touch terminal and touch terminal | |
CN103505874A (en) | Method and device for operating electronic game by using wireless terminal | |
CN105468440A (en) | Information display method and device and electronic equipment | |
CN106534482B (en) | Method and device for managing application programs of mobile terminal | |
CN109740306B (en) | Method and device for authorizing application software based on mixed scheme | |
CN108769149B (en) | Application partition processing method and device and computer readable storage medium | |
WO2017185599A1 (en) | Application quick operation method and electronic device | |
CN111273967A (en) | Remote hook setting method and device suitable for Android system and electronic equipment | |
Wukkadada et al. | Mobile operating system: Analysis and comparison of Android and iOS | |
CN107743151B (en) | Content pushing method and device, mobile terminal and server | |
CN107930126B (en) | Game reservation data processing method and device and mobile terminal |
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 |