WO2020052307A1 - Permission configuration method and related product - Google Patents

Permission configuration method and related product Download PDF

Info

Publication number
WO2020052307A1
WO2020052307A1 PCT/CN2019/091923 CN2019091923W WO2020052307A1 WO 2020052307 A1 WO2020052307 A1 WO 2020052307A1 CN 2019091923 W CN2019091923 W CN 2019091923W WO 2020052307 A1 WO2020052307 A1 WO 2020052307A1
Authority
WO
WIPO (PCT)
Prior art keywords
permission
permissions
configuration
game
information
Prior art date
Application number
PCT/CN2019/091923
Other languages
French (fr)
Chinese (zh)
Inventor
李森林
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020052307A1 publication Critical patent/WO2020052307A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a permission configuration method and related products.
  • the embodiments of the present application provide a permission configuration method and related products, which can personally set game permissions based on unused users.
  • an embodiment of the present application provides a permission configuration method, where the method includes:
  • an embodiment of the present application provides a permission configuration apparatus, where the permission configuration apparatus includes:
  • An obtaining unit configured to obtain user information when a start instruction for a target game is detected
  • a sending unit configured to send the user information to a server
  • a receiving unit configured to receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
  • a parsing unit configured to parse the game resource package to obtain the configuration authority information
  • a configuration unit is configured to configure permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
  • an embodiment of the present application provides an electronic device including: a processor and a memory; and one or more programs, the one or more programs are stored in the memory and configured to be provided by the The processor executes, and the program includes instructions for some or all of the steps as described in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute the first aspect of the embodiment of the present application. Instructions for some or all of the steps described in.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute Some or all of the steps described in the first aspect of the embodiment of the application.
  • the computer program product can be a software installation package.
  • the electronic device when the permission configuration method and related products described in the embodiments of the present application, when a startup instruction for a target game is detected, the electronic device obtains user information, sends the user information to the server, and the server determines the configuration according to the user information.
  • Manifest file, configuration manifest file includes configuration permission information, and carries the configuration manifest file in the game resource package corresponding to the target game, and sends the game resource package to the electronic device and sends the game resource package to the electronic device to receive the game
  • the resource package analyzes the game resource package to obtain the configuration permission information, configures the permission corresponding to the target game according to the configuration permission information, and creates a permission list corresponding to the target game, so that the user can individually configure permissions based on the obtained user information.
  • FIG. 1A is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
  • FIG. 1B is a network architecture diagram for implementing a permission configuration method according to an embodiment of the present application.
  • 1C is a schematic flowchart of a permission configuration method according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of another permission configuration method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another permission configuration method according to an embodiment of the present application.
  • FIG. 4 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an authority configuration device according to an embodiment of the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in multiple embodiments of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (user equipment equipment, UE), mobile station (MS), terminal device (terminal), and so on.
  • UE user equipment equipment
  • MS mobile station
  • terminal terminal
  • electronic devices the devices mentioned above are collectively referred to as electronic devices.
  • the electronic device 100 may include a control circuit, and the control circuit may include a storage and processing circuit 110.
  • the storage and processing circuit 110 may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static or dynamic random access memory). Access to memory, etc.), this embodiment is not limited.
  • the processing circuit in the storage and processing circuit 110 may be used to control the operation of the electronic device 100.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital master-slave headphone switching controllers, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, etc. .
  • the storage and processing circuit 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a voice over Internet protocol (VOIP) telephone calling application, an email application, a media playback application, and an operating system function Wait.
  • These software can be used to perform some control operations, such as camera-based image acquisition, ambient light sensor-based ambient light measurement, proximity sensor-based proximity sensor measurement, and information based on status indicators such as LED status indicators Display functions, touch event detection based on touch sensors, functions associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals
  • the control operations associated with collecting and processing button press event data, and other functions in the electronic device 100 are not limited in the embodiments of the present application.
  • the electronic device 100 may further include an input-output circuit 150.
  • the input-output circuit 150 may be used to enable the electronic device 100 to implement data input and output, that is, to allow the electronic device 100 to receive data from an external device and also allow the electronic device 100 to output data from the electronic device 100 to an external device.
  • the input-output circuit 150 may further include a sensor 170.
  • the sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used as a Touch sensor structure is used independently), acceleration sensor, gravity sensor, and other sensors.
  • the input-output circuit 150 may further include one or more displays, such as the display 130.
  • the display 130 may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies.
  • the display 130 may include a touch sensor array (ie, the display 130 may be a touch display screen).
  • the touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the audio component 140 may be used to provide audio input and output functions for the electronic device 100.
  • the audio component 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
  • the communication circuit 120 may be used to provide the electronic device 100 with the ability to communicate with external devices.
  • the communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
  • the wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit 120 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals.
  • the communication circuit 120 may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit 120 may further include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
  • the electronic device 100 may further include a battery, a power management circuit, and other input-output units 160.
  • the input-output unit 160 may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
  • a user may input commands through the input-output circuit 150 to control the operation of the electronic device 100, and may use output data of the input-output circuit 150 to realize receiving status information and other outputs from the electronic device 100.
  • FIG. 1B is a network architecture diagram for implementing a permission configuration method according to an embodiment of the present application.
  • the network architecture diagram includes an electronic device and a server. Specifically, the electronic device detects that a user targets a target.
  • the authority information configures the authority corresponding to the target game, and creates a authority list corresponding to the target game.
  • FIG. 1C is a schematic flowchart of a permission configuration method according to an embodiment of the present application.
  • the permission configuration method described in this embodiment is applied to an electronic device as shown in FIG. 1A.
  • the permission configuration method includes:
  • the electronic device obtains user information and sends the user information to a server.
  • the above user information includes at least one of the following: the user's geographic location, the user's gender, age, occupation, hobbies and other attribute information, the user's historical permission setting record, etc., which are not limited herein.
  • the target game may include a game that can be directly entered into a game application through a game portal.
  • the target game may include a game that directly enters a game application through a specific application, for example, a chat application or a payment application with an applet.
  • the mini-games entered by means may include games opened directly through the icon entrance of the mini-games in the game lobby or game store, and for example, games that are directly accessed through the mini-game link (for example, controls, windows, etc.) in the browser, For another example, a game directly accessed through a webpage link, etc., it can be understood that a user can start a target game through any of the above methods, and can dynamically start game resources by dynamically loading game resources.
  • the target game may also include a game that needs to download an installation package.
  • the electronic device when the electronic device detects a start instruction to enter the target game through any one of the foregoing portals, that is, when the user starts the target game through any one of the foregoing portals, user information may be obtained.
  • the positioning device of the device obtains the geographic location of the user, and can obtain the user attribute information in the application corresponding to the user's startup instruction.
  • the application data corresponding to the chat application can be obtained.
  • the recorded user's gender, age, occupation, hobbies and other attribute information can be used to obtain the historical permission setting record in the application corresponding to the user's startup instruction.
  • the electronic device may also obtain user attribute information from application data of other applications in the electronic device, and obtain historical permission setting records of other applications in the electronic device.
  • 102 Receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information.
  • the aforementioned game resource package refers to a resource package for installing and loading a running program of a target game.
  • the game resource package includes a program for running the target game.
  • the server determines the configuration list file according to the user information. Specifically, whether to configure the permission to obtain the user ’s location information may be set according to the user ’s geographic location. For example, when the geographic location of the user belongs to a preset location range, the preset location range may be It can be a location that needs to be kept secret or a location that the user does not want to be exposed in the target game.
  • the permission to obtain the user's location information is not configured, so the security of the user's location can be protected, and for locations outside the preset location range , Set the permission to configure the user ’s location information; set whether to configure the permission to call the payment application of the electronic device according to the user ’s age, for example, when the user ’s age is less than a preset age threshold, the permission to call the payment application may be No configuration, when the user's age is greater than or equal to Set the age threshold, you can set the permissions to call the payment application; you can determine the user ’s prohibited permissions and allowed permissions according to the user ’s historical permission setting records, for example, you can set the configured user allowed permissions, and for the user ’s completely prohibited permissions, No configuration.
  • the server may add the configuration list file to the game resource package and send the game resource package to the electronic device, thereby making the configuration permission information in the configuration list file more Meet the individual needs of users.
  • the electronic device may, when receiving the game resource package sent by the server, analyze the configuration list file in the game resource package through the game platform to obtain the configuration list file.
  • Configuration permission information where the configuration permission information is used to set permissions for the target game during the running of the target game.
  • a setting interface for configuring permissions may be displayed, and then receive the permission setting instructions configured by the user, and finally configure the permissions corresponding to the target game according to the user's permission setting instructions. Therefore, the authority configuration of the target game is performed according to the user information, which reflects the personalization of the target game and meets the personalized needs of the user.
  • a permission list may be created for each game, that is, each game corresponds to a permission list to implement multiple games. Permissions are isolated, so that during the running process, when a game freezes or other abnormalities, it will not cause other games to run.
  • a permission sandbox can be created.
  • the permission sandbox includes each of multiple games.
  • Corresponding permission list to isolate the permissions of multiple games.
  • the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions
  • configuring the permissions corresponding to the target game according to the configuration permission information includes:
  • the creating a permission list corresponding to the target game includes:
  • the configuration information of multiple permissions can be displayed at the same time in the setting interface for user setting permissions, and the user can set permissions for multiple permissions at the same time, thereby creating the target game's List of permissions.
  • configuring each of the multiple permissions according to the permission configuration sub-information corresponding to each of the multiple permissions may include the following steps:
  • A1. Generate permission setting prompt information according to the permission configuration sub-information corresponding to each of the multiple permissions, and display the permission setting prompt information, where the permission setting prompt information is used to prompt a user to send a permission setting instruction;
  • A2. Receive a user's permission setting instruction corresponding to each of the multiple permissions
  • each permission of the multiple permissions is set.
  • a permission setting interface may be displayed on the display screen of the electronic device.
  • the permission setting interface includes the permission setting prompt information described above, thereby prompting the user to send a permission setting instruction, and then setting the item according to the user setting operation. Permissions.
  • the plurality of permissions correspond to a plurality of game progresses, and before the method of configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each permission of the plurality of permissions, the method The following steps are also included:
  • each of the plurality of rights corresponding to each game progress is determined.
  • the permission configuration sub-information of the permission corresponding to the game progress is determined, and then the permission setting prompt information is generated according to the permission configuration sub-information, and the permission setting prompt information is displayed, and then the user is received for the permission.
  • Permission setting instruction to set the permission corresponding to the progress of the game For example, when the game reaches a certain level and needs to obtain the current location information of the electronic device, the permission setting prompt information can be generated according to the permission configuration sub-information corresponding to the location information. After receiving the permission setting instruction that allows the user to obtain location information, set the permission to obtain location information according to the permission setting instruction.
  • the permission configuration sub-information corresponding to the permission generates a permission setting prompt message. If a permission setting instruction is received that allows the user to read the user's contact list, the permission to read the user's contact list is set according to the permission setting instruction.
  • creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions may include the following steps:
  • the target type is the first preset type, add a permission corresponding to the target type to the permission list.
  • a plurality of permissions may be classified, for example, permissions that play a key role in running the game, and permissions that are required during the running of the game but are not required to play a key role; for example, multiple permissions Item permissions are divided into user restrictions requiring loose permissions and user restrictions requiring strict permissions.
  • the first preset type may be a permission that plays a key role in game running, or a user that requires loose permissions.
  • Role permissions, or the user's restrictions require loose permissions, which can be added to the permissions list, so that when the user next launches the target game, there is no need to perform the permission setting operation again, and the electronic device can directly obtain the permission Permissions.
  • the permission Permissions For example, suppose that a certain level in the target game must use the permission to read sports data. After the user allows the permission to set the permission, add the permission to the permission list. In this way, when the user restarts the target next time Game, and reach that particular level, there is no need to re-display the permission setting prompt message, allowing users to repeatedly send permission setting instructions, and directly obtain the permission.
  • the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
  • the second preset type may be a permission that is required during the game running but does not reach a critical role, or the user ’s restrictions require strict permissions.
  • any one of the multiple permissions described above is used.
  • the permission needs to be configured according to the permission configuration sub-information corresponding to the permission of the target type. For example, assuming that the user has strict restrictions on the permission to read the album, there is no need to add the permission to the permission list. In this way, when the user restarts the target game every time and reaches the specific level, the permission settings are redisplayed.
  • the prompt message allows the user to repeatedly send the permission setting instruction and set the permission according to the user's permission setting instruction.
  • the permission configuration method described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to the server, and the server determines a configuration manifest file according to the user information, and configures
  • the manifest file includes configuration permission information
  • the configuration manifest file is carried in the game resource package corresponding to the target game, and the game resource package is sent to the electronic device and the game resource package is sent to the electronic device, the game resource package is received, and the analysis is performed
  • the game resource package obtains the configuration permission information, configures the permission corresponding to the target game according to the configuration permission information, and creates a permission list corresponding to the target game, so that the user can individually configure permissions based on the obtained user information.
  • FIG. 2 is a schematic flowchart of another permission configuration method according to an embodiment of the present application.
  • the permission configuration method described in this embodiment is applied to an electronic device as shown in FIG. 1A.
  • the method may include the following steps. :
  • the electronic device obtains user information and sends the user information to a server.
  • 202 Receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information.
  • the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, and each permission in the multiple permissions is configured according to the permission configuration sub-information corresponding to each permission in the multiple permissions.
  • the permission configuration method described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to the server, and the server determines a configuration manifest file according to the user information, and configures
  • the manifest file includes configuration permission information
  • the configuration manifest file is carried in the game resource package corresponding to the target game, and the game resource package is sent to the electronic device and the game resource package is sent to the electronic device, the game resource package is received, and the analysis is performed
  • the game resource package obtains configuration permission information.
  • the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions. According to the permission configuration sub-information corresponding to each permission in the multiple permissions, each permission in the multiple permissions is configured. Multiple permission configuration sub-informations corresponding to multiple permissions create a permission list, so that users can be individually configured with permissions based on the obtained user information.
  • FIG. 3 is a schematic flowchart of another permission configuration method according to an embodiment of the present application.
  • the permission configuration method described in this embodiment is applied to an electronic device as shown in FIG. 1A.
  • the method may include the following steps:
  • the electronic device obtains user information and sends the user information to a server.
  • the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, the multiple permissions corresponding to multiple game progresses, and the target game runs to each of the multiple game progresses. During the progress, each of the plurality of permissions corresponding to the progress of each game is determined.
  • the target type is the first preset type, add a permission corresponding to the target type to the permission list.
  • the target type is the second preset type
  • when the target game is re-run configure the permission according to the permission configuration sub-information corresponding to the permission of the target type.
  • the permission configuration method described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to a server, and the server determines a configuration manifest file according to the user information.
  • the configuration manifest file includes configuration Authority information, and carrying the configuration list file in a game resource package corresponding to the target game, and sending the game resource package to the electronic device and sending the game resource package to the electronic device, receiving the game resource package, and analyzing the game resource package,
  • the configuration permission information is obtained.
  • the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions. The multiple permissions correspond to multiple game progresses. When the target game runs to each of the multiple game progresses, multiple items are determined.
  • each permission in the permission corresponding to each game progress each permission in the multiple permissions is configured according to the permission configuration sub-information corresponding to each permission in the multiple permissions, and the target type to which each permission belongs in the multiple permissions is determined. If the target type is the first preset type, add permissions corresponding to the target type To the permission list, if the target type is the second preset type, when the target game is re-run, the permission is configured according to the permission configuration sub-information corresponding to the target type's permissions, so that the user can be individually configured with permissions based on the obtained user information .
  • the following is a device for implementing the above permission configuration method, as follows:
  • FIG. 4 is an electronic device provided by an embodiment of the present application, including: a processor and a memory; and one or more programs, where the one or more programs are stored in the In memory, and configured to be executed by the processor, the program includes instructions for performing the following steps:
  • the electronic device acquires user information and sends the user information to the server;
  • the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, and in terms of configuring the permissions corresponding to the target game according to the configuration permission information, the program includes Perform the following steps:
  • the program includes instructions for performing the following steps:
  • the permission list is created according to multiple permission configuration sub-informations corresponding to the multiple permissions.
  • the program includes instructions for performing the following steps:
  • Each of the plurality of permissions is set according to the permission setting instruction.
  • the multiple permissions correspond to multiple game progresses, and before each permission in the multiple permissions is configured according to a permission configuration sub-information corresponding to each permission in the multiple permissions,
  • the program also includes instructions for performing the following steps:
  • each of the plurality of rights corresponding to each game progress is determined.
  • the program includes instructions for performing the following steps:
  • the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
  • the program further includes instructions for performing the following steps:
  • the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
  • FIG. 5 is a schematic structural diagram of an authority configuration apparatus according to this embodiment.
  • the authority configuration device is applied to an electronic device as shown in FIG. 1A.
  • the authority configuration device includes an obtaining unit 501, a sending unit 502, a receiving unit 503, a parsing unit 504, and a configuration unit 505.
  • the obtaining unit 501 is configured to obtain user information when a startup instruction for a target game is detected;
  • the sending unit 502 is configured to send the user information to a server
  • the receiving unit 503 is configured to receive the game resource package, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
  • the parsing unit 504 is configured to parse the game resource package to obtain the configuration authority information
  • the configuration unit 505 is configured to configure permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
  • the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions.
  • the configuration unit 505 is specifically configured to:
  • the configuration unit 504 is specifically configured to:
  • the permission list is created according to multiple permission configuration sub-informations corresponding to the multiple permissions.
  • the configuration unit 505 is specifically configured to:
  • Each of the plurality of permissions is set according to the permission setting instruction.
  • the The configuration unit 505 is further configured to:
  • each of the plurality of rights corresponding to each game progress is determined.
  • the configuration unit 505 is specifically configured to:
  • the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
  • the configuration unit 505 is specifically configured to:
  • the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
  • the authority configuration device described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to the server, and the server determines a configuration manifest file according to the user information, and configures
  • the manifest file includes configuration permission information
  • the configuration manifest file is carried in the game resource package corresponding to the target game, and the game resource package is sent to the electronic device and the game resource package is sent to the electronic device, the game resource package is received, and the analysis is performed
  • the game resource package obtains the configuration permission information, configures the permission corresponding to the target game according to the configuration permission information, and creates a permission list corresponding to the target game, so that the user can individually configure permissions based on the obtained user information.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute a part of any one of the rights configuration methods described in the foregoing method embodiments. Or all steps.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps for any method of rights configuration.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be combined. Integration into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software program modules.
  • the integrated unit When the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include a flash disk. , ROM, RAM, disk or disc, etc.

Abstract

Disclosed in embodiments of the present application are a permission configuration method and a related product. By obtaining user information when a start instruction for a target game is detected, sending the user information to a server, determining, by the server according to the user information, a configuration list file which comprises permission configuration information, carrying the configuration list file in a game resource package corresponding to the target game, sending the game resource package to an electronic device, sending the game resource package to an electronic device, receiving the game resource package, parsing the game resource package to obtain the permission configuration information, configuring the permission corresponding to the target game according to the permission configuration information, and creating a permission list corresponding to the target game, permissions of a user can be customized according to the obtained user information.

Description

权限配置方法及相关产品Permission configuration method and related products
本申请要求2018年9月15日递交的发明名称为“权限配置方法及相关产品”的申请号201811077467.0的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。This application claims the priority of the prior application with the application number 201811077467.0 with the invention name of “Authority Allocation Method and Related Products” submitted on September 15, 2018, and the content of the above prior application is incorporated into this text by way of introduction.
技术领域Technical field
本申请涉及电子技术领域,具体涉及一种权限配置方法及相关产品。The present application relates to the field of electronic technology, and in particular, to a permission configuration method and related products.
背景技术Background technique
随着电子设备(如:手机、平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the widespread application of electronic devices (such as mobile phones, tablet computers, etc.), more and more applications can be supported by electronic devices, and their functions are becoming more and more powerful. Electronic devices are developing in a diversified and personalized direction and become users' lives. Indispensable electronics.
现有技术中,在一些应用中可实现直接通过应用界面中的应用图标打开其他应用,无需下载或安装该其他应用,例如,微信小程序,通过微信应用,可直接点击其他小程序或者小游戏,无需下载小程序或者小游戏,但是,针对小游戏的权限配置不够个性化,难以满足不同用户的需求,因此,如何使小游戏的权限设置更加满足用户需求的问题亟待解决。In the prior art, in some applications, other applications can be opened directly through the application icon in the application interface, without downloading or installing the other applications, for example, WeChat Mini Program, and through WeChat Application, you can directly click on other mini programs or mini games. There is no need to download a small program or a small game, but the permission configuration for the small game is not personalized enough to meet the needs of different users. Therefore, the problem of how to make the permission setting of the small game more meet the needs of users needs to be solved.
发明内容Summary of the Invention
本申请实施例提供了一种权限配置方法及相关产品,可基于不用的用户个性化地设置游戏权限。The embodiments of the present application provide a permission configuration method and related products, which can personally set game permissions based on unused users.
第一方面,本申请实施例提供了一种权限配置方法,所述方法包括:In a first aspect, an embodiment of the present application provides a permission configuration method, where the method includes:
在检测到针对目标游戏的启动指令时,获取用户信息,将所述用户信息发送至服务器;When detecting a start instruction for a target game, acquiring user information, and sending the user information to a server;
接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息;Receiving a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
解析所述游戏资源包,得到所述配置权限信息;Parse the game resource package to obtain the configuration permission information;
根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。Configure the permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
第二方面,本申请实施例提供了一种权限配置装置,所述权限配置装置包括:In a second aspect, an embodiment of the present application provides a permission configuration apparatus, where the permission configuration apparatus includes:
获取单元,用于在检测到针对目标游戏的启动指令时,获取用户信息;An obtaining unit, configured to obtain user information when a start instruction for a target game is detected;
发送单元,用于将所述用户信息发送至服务器;A sending unit, configured to send the user information to a server;
接收单元,用于接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务 器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息;A receiving unit, configured to receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
解析单元,用于解析所述游戏资源包,得到所述配置权限信息;A parsing unit, configured to parse the game resource package to obtain the configuration authority information;
配置单元,用于根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。A configuration unit is configured to configure permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
第三方面,本申请实施例提供了一种电子设备,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。According to a third aspect, an embodiment of the present application provides an electronic device including: a processor and a memory; and one or more programs, the one or more programs are stored in the memory and configured to be provided by the The processor executes, and the program includes instructions for some or all of the steps as described in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤的指令。According to a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute the first aspect of the embodiment of the present application. Instructions for some or all of the steps described in.
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute Some or all of the steps described in the first aspect of the embodiment of the application. The computer program product can be a software installation package.
实施本申请实施例,具有如下有益效果:The implementation of the embodiments of the present application has the following beneficial effects:
可以看出,本申请实施例中所描述的权限配置方法及相关产品,在检测到针对目标游戏的启动指令时,电子设备获取用户信息,将用户信息发送至服务器,由服务器根据用户信息确定配置清单文件,配置清单文件包括配置权限信息,并将配置清单文件携带在目标游戏对应的游戏资源包中,并将该游戏资源包发送给电子设备并将该游戏资源包发送至电子设备,接收游戏资源包,解析游戏资源包,得到配置权限信息,根据配置权限信息配置目标游戏对应的权限,并创建目标游戏对应的权限列表,从而,可根据获取的用户信息为用户个性化地配置权限。It can be seen that, when the permission configuration method and related products described in the embodiments of the present application, when a startup instruction for a target game is detected, the electronic device obtains user information, sends the user information to the server, and the server determines the configuration according to the user information. Manifest file, configuration manifest file includes configuration permission information, and carries the configuration manifest file in the game resource package corresponding to the target game, and sends the game resource package to the electronic device and sends the game resource package to the electronic device to receive the game The resource package analyzes the game resource package to obtain the configuration permission information, configures the permission corresponding to the target game according to the configuration permission information, and creates a permission list corresponding to the target game, so that the user can individually configure permissions based on the obtained user information.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
图1A是本申请实施例提供的一种示例电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application; FIG.
图1B是本申请实施例提供的一种用于实施权限配置方法的网络架构图;FIG. 1B is a network architecture diagram for implementing a permission configuration method according to an embodiment of the present application; FIG.
图1C是本申请实施例提供的一种权限配置方法的流程示意图;1C is a schematic flowchart of a permission configuration method according to an embodiment of the present application;
图2是本申请实施例提供的另一种权限配置方法的流程示意图;2 is a schematic flowchart of another permission configuration method according to an embodiment of the present application;
图3是本申请实施例提供的另一种权限配置方法的流程示意图;3 is a schematic flowchart of another permission configuration method according to an embodiment of the present application;
图4是本申请实施例提供的一种电子设备的另一结构示意图;FIG. 4 is another schematic structural diagram of an electronic device according to an embodiment of the present application; FIG.
图5是本申请实施例提供的一种权限配置装置的结构示意图。FIG. 5 is a schematic structural diagram of an authority configuration device according to an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms “first”, “second”, and the like in the description and claims of the present application and the above-mentioned drawings are used to distinguish different objects, and are not used to describe a specific order. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device containing a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的多个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "an embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in multiple embodiments of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (user equipment equipment, UE), mobile station (MS), terminal device (terminal), and so on. For ease of description, the devices mentioned above are collectively referred to as electronic devices.
下面对本申请实施例进行详细介绍。The embodiments of the present application are described in detail below.
请参阅图1A,图1A是本申请实施例公开的一种电子设备的结构示意图,电子设备100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申 请实施例不作限制。存储和处理电路110中的处理电路可以用于控制电子设备100的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字主从耳机切换控制器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。Please refer to FIG. 1A, which is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application. The electronic device 100 may include a control circuit, and the control circuit may include a storage and processing circuit 110. The storage and processing circuit 110 may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static or dynamic random access memory). Access to memory, etc.), this embodiment is not limited. The processing circuit in the storage and processing circuit 110 may be used to control the operation of the electronic device 100. The processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital master-slave headphone switching controllers, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, etc. .
存储和处理电路110可用于运行电子设备100中的软件,例如互联网浏览应用程序,互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子设备100中的其它功能等,本申请实施例不作限制。The storage and processing circuit 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a voice over Internet protocol (VOIP) telephone calling application, an email application, a media playback application, and an operating system function Wait. These software can be used to perform some control operations, such as camera-based image acquisition, ambient light sensor-based ambient light measurement, proximity sensor-based proximity sensor measurement, and information based on status indicators such as LED status indicators Display functions, touch event detection based on touch sensors, functions associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals The control operations associated with collecting and processing button press event data, and other functions in the electronic device 100 are not limited in the embodiments of the present application.
电子设备100还可以包括输入-输出电路150。输入-输出电路150可用于使电子设备100实现数据的输入和输出,即允许电子设备100从外部设备接收数据和也允许电子设备100将数据从电子设备100输出至外部设备。输入-输出电路150可以进一步包括传感器170。传感器170可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。The electronic device 100 may further include an input-output circuit 150. The input-output circuit 150 may be used to enable the electronic device 100 to implement data input and output, that is, to allow the electronic device 100 to receive data from an external device and also allow the electronic device 100 to output data from the electronic device 100 to an external device. The input-output circuit 150 may further include a sensor 170. The sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used as a Touch sensor structure is used independently), acceleration sensor, gravity sensor, and other sensors.
输入-输出电路150还可以包括一个或多个显示器,例如显示器130。显示器130可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器130可以包括触摸传感器阵列(即,显示器130可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。The input-output circuit 150 may further include one or more displays, such as the display 130. The display 130 may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. The display 130 may include a touch sensor array (ie, the display 130 may be a touch display screen). The touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
音频组件140可以用于为电子设备100提供音频输入和输出功能。电子设备100中的音频组件140可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。The audio component 140 may be used to provide audio input and output functions for the electronic device 100. The audio component 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
通信电路120可以用于为电子设备100提供与外部设备通信的能力。通信电路120可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信 电路120中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路120中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(near field communication,NFC)的电路。例如,通信电路120可以包括近场通信天线和近场通信收发器。通信电路120还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。The communication circuit 120 may be used to provide the electronic device 100 with the ability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals. The wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna. For example, the wireless communication circuit in the communication circuit 120 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communication circuit 120 may further include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
电子设备100还可以进一步包括电池,电力管理电路和其它输入-输出单元160。输入-输出单元160可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The electronic device 100 may further include a battery, a power management circuit, and other input-output units 160. The input-output unit 160 may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
用户可以通过输入-输出电路150输入命令来控制电子设备100的操作,并且可以使用输入-输出电路150的输出数据以实现接收来自电子设备100的状态信息和其它输出。A user may input commands through the input-output circuit 150 to control the operation of the electronic device 100, and may use output data of the input-output circuit 150 to realize receiving status information and other outputs from the electronic device 100.
请参阅图1B,图1B为本申请实施例提供的一种用于实施权限配置方法的网络架构图,其中,该网络架构图包括电子设备和服务器,具体地,电子设备在检测到用户针对目标游戏的启动指令时,获取用户信息;将用户信息发送至服务器,由服务器根据用户信息确定配置清单文件,所述配置清单文件包括配置权限信息,并将所述配置清单文件携带在所述目标游戏对应的游戏资源包中,然后将所述该游戏资源包发送至所述电子设备;电子设备接收所述游戏资源包,解析所述游戏资源包,得到所述配置权限信息;最后根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。Please refer to FIG. 1B. FIG. 1B is a network architecture diagram for implementing a permission configuration method according to an embodiment of the present application. The network architecture diagram includes an electronic device and a server. Specifically, the electronic device detects that a user targets a target. Obtain user information when the game is started; send the user information to the server, and the server determines a configuration manifest file according to the user information, the configuration manifest file includes configuration permission information, and the configuration manifest file is carried in the target game In the corresponding game resource package, and then sending the game resource package to the electronic device; the electronic device receives the game resource package, parses the game resource package, and obtains the configuration permission information; and finally according to the configuration The authority information configures the authority corresponding to the target game, and creates a authority list corresponding to the target game.
请参阅图1C,图1C是本申请实施例提供的一种权限配置方法的流程示意图,本实施例中所描述的权限配置方法,应用于如图1A的电子设备,该权限配置方法包括:Please refer to FIG. 1C. FIG. 1C is a schematic flowchart of a permission configuration method according to an embodiment of the present application. The permission configuration method described in this embodiment is applied to an electronic device as shown in FIG. 1A. The permission configuration method includes:
101、在检测到针对目标游戏的启动指令时,电子设备获取用户信息,将所述用户信息发送至服务器。101. When a startup instruction for a target game is detected, the electronic device obtains user information and sends the user information to a server.
其中,上述用户信息包括以下至少一种:用户所在地理位置、用户的性别、年龄、职业、爱好等属性信息、用户的历史权限设置记录等等,在此不做限定。The above user information includes at least one of the following: the user's geographic location, the user's gender, age, occupation, hobbies and other attribute information, the user's historical permission setting record, etc., which are not limited herein.
其中,上述目标游戏可包括可直接通过游戏入口进入游戏应用的游戏,本申请实施例中,目标游戏可以包括通过特定应用直接进入游戏应用的游戏,例如,聊天应用或支付应用中以小程序的方式进入的小游戏,可以包括直接通过游戏大厅或游戏商店中的小游戏的图标入口开启的游戏,又例如,浏览器中通过小游戏的链接(例如,控件、窗口等)直接进入的游戏,又例如,通过网页链接直接进入的游戏等等,可以理解,用户可通过上述任意一种方式开启目标游戏,可通过动态加载游戏资源,实现快速启动游戏。可选地,上述 目标游戏也可包括需要下载安装包的游戏。The target game may include a game that can be directly entered into a game application through a game portal. In the embodiment of the present application, the target game may include a game that directly enters a game application through a specific application, for example, a chat application or a payment application with an applet. The mini-games entered by means may include games opened directly through the icon entrance of the mini-games in the game lobby or game store, and for example, games that are directly accessed through the mini-game link (for example, controls, windows, etc.) in the browser, For another example, a game directly accessed through a webpage link, etc., it can be understood that a user can start a target game through any of the above methods, and can dynamically start game resources by dynamically loading game resources. Optionally, the target game may also include a game that needs to download an installation package.
本申请实施例中,当电子设备检测到通过上述任意一种入口进入目标游戏的启动指令时,即当用户通过上述任意一种入口启动目标游戏时,可获取用户信息,具体地,可通过电子设备的定位装置获取用户的地理位置,可获取用户的启动指令对应的应用中的用户属性信息,例如,当用户通过聊天应用中的游戏入口启动目标游戏时,可获取聊天应用对应的应用数据中记录的用户的性别、年龄、职业、爱好等属性信息,可获取用户的启动指令对应的应用中的历史权限设置记录,例如,当用户通过支付应用中的游戏入口启动目标游戏时,可获取支付应用中的权限设置记录,可选地,电子设备还可从电子设备中的其他应用的应用数据中获取用户的属性信息,以及获取电子设备中的其他应用的历史权限设置记录。In the embodiment of the present application, when the electronic device detects a start instruction to enter the target game through any one of the foregoing portals, that is, when the user starts the target game through any one of the foregoing portals, user information may be obtained. The positioning device of the device obtains the geographic location of the user, and can obtain the user attribute information in the application corresponding to the user's startup instruction. For example, when the user starts the target game through the game portal in the chat application, the application data corresponding to the chat application can be obtained. The recorded user's gender, age, occupation, hobbies and other attribute information can be used to obtain the historical permission setting record in the application corresponding to the user's startup instruction. For example, when the user launches the target game through the game portal in the payment application, payment can be obtained The permission setting record in the application. Optionally, the electronic device may also obtain user attribute information from application data of other applications in the electronic device, and obtain historical permission setting records of other applications in the electronic device.
102、接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息。102. Receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information.
其中,上述游戏资源包是指用于安装和加载目标游戏的运行程序的资源包,游戏资源包中包括用于运行目标游戏的程序,本申请实施例中,电子设备将用户信息发送至服务器后,由服务器根据用户信息确定配置清单文件,具体地,可根据用户的地理位置设定是否配置获取用户的位置信息的权限,例如,当用户的地理位置属于预设位置范围,预设位置范围例如可以是需要进行保密的位置或者用户不想在目标游戏中暴露的位置,针对获取用户的位置信息的权限不进行配置,从而可对用户的位置的安全性进行保护,针对预设位置范围外的位置,则设定配置获取用户的位置信息的权限;可根据用户的年龄设定是否配置调用电子设备的支付应用的权限,例如,当用户的年龄小于预设年龄阈值,可针对调用支付应用的权限不进行配置,当用户的年龄大于或等于预设年龄阈值,可设定配置调用支付应用的权限;可根据用户的历史权限设置记录确定用户禁止的权限和允许的权限,例如,可设定配置用户允许的权限,对于用户完全禁止的权限则不进行配置。The aforementioned game resource package refers to a resource package for installing and loading a running program of a target game. The game resource package includes a program for running the target game. In the embodiment of the present application, after the electronic device sends user information to the server, , The server determines the configuration list file according to the user information. Specifically, whether to configure the permission to obtain the user ’s location information may be set according to the user ’s geographic location. For example, when the geographic location of the user belongs to a preset location range, the preset location range may be It can be a location that needs to be kept secret or a location that the user does not want to be exposed in the target game. The permission to obtain the user's location information is not configured, so the security of the user's location can be protected, and for locations outside the preset location range , Set the permission to configure the user ’s location information; set whether to configure the permission to call the payment application of the electronic device according to the user ’s age, for example, when the user ’s age is less than a preset age threshold, the permission to call the payment application may be No configuration, when the user's age is greater than or equal to Set the age threshold, you can set the permissions to call the payment application; you can determine the user ’s prohibited permissions and allowed permissions according to the user ’s historical permission setting records, for example, you can set the configured user allowed permissions, and for the user ’s completely prohibited permissions, No configuration.
进一步地,服务器在给用户的电子设备配置游戏资源包时,可将该配置清单文件添加至游戏资源包,并将该游戏资源包发送至电子设备,从而使配置清单文件中的配置权限信息更加满足用户的个性化需求。Further, when the server configures the game resource package for the user's electronic device, the server may add the configuration list file to the game resource package and send the game resource package to the electronic device, thereby making the configuration permission information in the configuration list file more Meet the individual needs of users.
103、解析所述游戏资源包,得到所述配置权限信息。103. Parse the game resource package to obtain the configuration permission information.
本申请实施例中,电子设备可在接收到针对目标游戏的启动指令后,当接收到服务器发送的游戏资源包,可通过游戏平台解析游戏资源包中的配置清单文件,得到配置清单文 件中的配置权限信息,其中,配置权限信息用于在目标游戏运行过程中为目标游戏设置权限。In the embodiment of the present application, after receiving the start instruction for the target game, the electronic device may, when receiving the game resource package sent by the server, analyze the configuration list file in the game resource package through the game platform to obtain the configuration list file. Configuration permission information, where the configuration permission information is used to set permissions for the target game during the running of the target game.
104、根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。104. Configure permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
其中,本申请实施例中,在电子设备运行游戏的过程中,可显示用于配置权限的设置界面,然后接收用户配置的权限设置指令,最后根据用户的权限设置指令配置目标游戏对应的权限,从而根据用户信息对目标游戏进行权限配置,体现目标游戏的个性化,满足用户的个性化需求。In the embodiment of the present application, during the game running of the electronic device, a setting interface for configuring permissions may be displayed, and then receive the permission setting instructions configured by the user, and finally configure the permissions corresponding to the target game according to the user's permission setting instructions. Therefore, the authority configuration of the target game is performed according to the user information, which reflects the personalization of the target game and meets the personalized needs of the user.
其中,考虑到电子设备中可能同时运行多个游戏,为了防止多个游戏之间的产生干扰,可对多个游戏分别创建权限列表,即每一游戏对应一个权限列表,实现对多个游戏的权限进行隔离,从而在运行过程中,当一个游戏出现卡顿或者其他异常,不会引起其他游戏的运行,具体地,可创建权限沙盒,该权限沙盒中包括多个游戏中每一游戏对应的权限列表,从而将多个游戏的权限进行隔离。Among them, considering that multiple games may be run simultaneously in an electronic device, in order to prevent interference between multiple games, a permission list may be created for each game, that is, each game corresponds to a permission list to implement multiple games. Permissions are isolated, so that during the running process, when a game freezes or other abnormalities, it will not cause other games to run. Specifically, a permission sandbox can be created. The permission sandbox includes each of multiple games. Corresponding permission list to isolate the permissions of multiple games.
可选地,上述步骤104中,所述配置权限信息包括多项权限对应的多个权限配置子信息,所述根据所述配置权限信息配置所述目标游戏对应的权限,包括:Optionally, in the above step 104, the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, and configuring the permissions corresponding to the target game according to the configuration permission information includes:
41、根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限;41. Configure each permission in the multiple permissions according to a permission configuration sub-information corresponding to each permission in the multiple permissions;
所述创建所述目标游戏对应的权限列表,包括:The creating a permission list corresponding to the target game includes:
42、根据所述多项权限对应的多个权限配置子信息创建所述权限列表。42. Create the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions.
本申请实施例中,若目标游戏需要设置多项权限,可在用于用户设置权限的设置界面中同时显示多项权限的配置信息,用户可同时对多项权限设置权限,进而创建目标游戏的权限列表。In the embodiment of the present application, if the target game needs to set multiple permissions, the configuration information of multiple permissions can be displayed at the same time in the setting interface for user setting permissions, and the user can set permissions for multiple permissions at the same time, thereby creating the target game's List of permissions.
可选地,上述步骤41中,根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限,可包括以下步骤:Optionally, in step 41 above, configuring each of the multiple permissions according to the permission configuration sub-information corresponding to each of the multiple permissions may include the following steps:
A1、根据所述多项权限中每一权限对应的权限配置子信息生成权限设置提示信息,显示所述权限设置提示信息,所述权限设置提示信息用于提示用户发送权限设置指令;A1. Generate permission setting prompt information according to the permission configuration sub-information corresponding to each of the multiple permissions, and display the permission setting prompt information, where the permission setting prompt information is used to prompt a user to send a permission setting instruction;
A2、接收用户针对所述多项权限中每一权限对应的权限设置指令;A2. Receive a user's permission setting instruction corresponding to each of the multiple permissions;
A3、根据所述权限设置指令创设置所述多项权限中的每一权限。A3. According to the permission setting instruction, each permission of the multiple permissions is set.
本申请实施例中,针对每一权限,可在电子设备的显示屏显示权限设置界面,权限设 置界面包含上述权限设置提示信息,从而提示用户发送权限设置指令,进而根据用户设定操作设置该项权限。In the embodiment of the present application, for each permission, a permission setting interface may be displayed on the display screen of the electronic device. The permission setting interface includes the permission setting prompt information described above, thereby prompting the user to send a permission setting instruction, and then setting the item according to the user setting operation. Permissions.
可选地,所述多项权限对应于多个游戏进度,所述根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限之前,所述方法还包括以下步骤:Optionally, the plurality of permissions correspond to a plurality of game progresses, and before the method of configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each permission of the plurality of permissions, the method The following steps are also included:
在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。When the target game runs to each of the plurality of game progresses, each of the plurality of rights corresponding to each game progress is determined.
其中,可在游戏运行到特定游戏进度时,确定该游戏进度对应权限的权限配置子信息,然后根据该权限配置子信息生成权限设置提示信息,并显示权限设置提示信息,然后接收用户针对该权限的权限设置指令,从而设置该游戏进度对应的权限,例如,当游戏进行到特定关卡,需要获取电子设备的当前位置信息,则可根据位置信息对应的权限配置子信息生成权限设置提示信息,若接收到用户允许获取位置信息的权限设置指令,则根据该权限设置指令设置获取位置信息的权限,又例如,当游戏运行到某一特定时刻,需要读取用户的联系人列表,则可根据该权限对应的权限配置子信息生成权限设置提示信息,若接收到用户允许读取用户的联系人列表的权限设置指令,则根据该权限设置指令设置读取用户的联系人列表的权限。Wherein, when the game runs to a specific game progress, the permission configuration sub-information of the permission corresponding to the game progress is determined, and then the permission setting prompt information is generated according to the permission configuration sub-information, and the permission setting prompt information is displayed, and then the user is received for the permission. Permission setting instruction to set the permission corresponding to the progress of the game. For example, when the game reaches a certain level and needs to obtain the current location information of the electronic device, the permission setting prompt information can be generated according to the permission configuration sub-information corresponding to the location information. After receiving the permission setting instruction that allows the user to obtain location information, set the permission to obtain location information according to the permission setting instruction. For another example, when the game runs to a specific moment and needs to read the user ’s contact list, you can The permission configuration sub-information corresponding to the permission generates a permission setting prompt message. If a permission setting instruction is received that allows the user to read the user's contact list, the permission to read the user's contact list is set according to the permission setting instruction.
可选地,上述步骤42中,根据所述多项权限对应的多个权限配置子信息创建所述权限列表,可包括以下步骤:Optionally, in step 42 above, creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions may include the following steps:
B1、确定所述多项权限中每一权限所属的目标类型;B1. Determine the target type to which each of the multiple permissions belongs;
B2、若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。B2. If the target type is the first preset type, add a permission corresponding to the target type to the permission list.
本申请实施例中,可将多项权限进行分类,例如可划分为对游戏运行起到关键作用的权限,以及游戏运行过程中需要,但不是起到关键作用的权限;又例如,可将多项权限划分为用户的限制要求宽松的权限和用户的限制要求严格的权限。其中,第一预设类型可以是对游戏运行起到关键作用的权限,或者,用户的限制要求宽松的权限,针对上述多个权限中的任一权限,当该权限属于对游戏运行起到关键作用的权限,或者,用户的限制要求宽松的权限,可将该权限添加至权限列表,从而,当用户下一次启动目标游戏时,无需再一次执行设置权限的操作,电子设备可直接获取到该权限。举例说明,假定目标游戏中的特定关卡必须要用到读取运动数据的权限,则可在用户允许设定该权限后,将该权限添加到权限列表中,如此,当用户下一次重新启动目标游戏,并到达该特定关卡,则无需重新 显示权限设置提示信息,让用户重复发送权限设置指令,而直接获取该权限。In the embodiment of the present application, a plurality of permissions may be classified, for example, permissions that play a key role in running the game, and permissions that are required during the running of the game but are not required to play a key role; for example, multiple permissions Item permissions are divided into user restrictions requiring loose permissions and user restrictions requiring strict permissions. Among them, the first preset type may be a permission that plays a key role in game running, or a user that requires loose permissions. For any one of the above multiple permissions, when the permission is critical to game running, Role permissions, or the user's restrictions require loose permissions, which can be added to the permissions list, so that when the user next launches the target game, there is no need to perform the permission setting operation again, and the electronic device can directly obtain the permission Permissions. For example, suppose that a certain level in the target game must use the permission to read sports data. After the user allows the permission to set the permission, add the permission to the permission list. In this way, when the user restarts the target next time Game, and reach that particular level, there is no need to re-display the permission setting prompt message, allowing users to repeatedly send permission setting instructions, and directly obtain the permission.
可选地,本申请实施例中,还可包括以下步骤:Optionally, in the embodiment of the present application, the following steps may be further included:
若所述目标类型为第二预设类型,在所述目标游戏重新运行时,根据所述目标类型的权限对应的权限配置子信息配置所述权限。If the target type is the second preset type, when the target game is re-run, the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
其中,第二预设类型可以是游戏运行过程中需要,但不起到关键作用的权限,或者,用户的限制要求严格的权限,本申请实施例中,针对上述多个权限中的任一权限,当该权限属于游戏运行过程中需要,但不是起到关键作用的权限,或者,用户的限制要求严格的权限,无需将该权限添加至权限列表,从而,当用户下一次启动目标游戏时,需要根据目标类型的权限对应的权限配置子信息配置该权限。举例说明,假定用户对于读取相册的权限具有严格的限制要求,则无需将该权限添加到权限列表中,如此,当用户每一次重新启动目标游戏,并到达该特定关卡,则重新显示权限设置提示信息,让用户重复发送权限设置指令,并根据用户的权限设置指令设置该权限。The second preset type may be a permission that is required during the game running but does not reach a critical role, or the user ’s restrictions require strict permissions. In the embodiment of the present application, any one of the multiple permissions described above is used. , When the permission belongs to the game running process, but is not a key role, or the user's restrictions require strict permissions, there is no need to add this permission to the permission list, so when the user next starts the target game, The permission needs to be configured according to the permission configuration sub-information corresponding to the permission of the target type. For example, assuming that the user has strict restrictions on the permission to read the album, there is no need to add the permission to the permission list. In this way, when the user restarts the target game every time and reaches the specific level, the permission settings are redisplayed. The prompt message allows the user to repeatedly send the permission setting instruction and set the permission according to the user's permission setting instruction.
可以看出,本申请实施例中所描述的权限配置方法,通过在检测到针对目标游戏的启动指令时,获取用户信息,将用户信息发送至服务器,由服务器根据用户信息确定配置清单文件,配置清单文件包括配置权限信息,并将配置清单文件携带在目标游戏对应的游戏资源包中,并将该游戏资源包发送给电子设备并将该游戏资源包发送至电子设备,接收游戏资源包,解析游戏资源包,得到配置权限信息,根据配置权限信息配置目标游戏对应的权限,并创建目标游戏对应的权限列表,从而,可根据获取的用户信息为用户个性化地配置权限。It can be seen that the permission configuration method described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to the server, and the server determines a configuration manifest file according to the user information, and configures The manifest file includes configuration permission information, and the configuration manifest file is carried in the game resource package corresponding to the target game, and the game resource package is sent to the electronic device and the game resource package is sent to the electronic device, the game resource package is received, and the analysis is performed The game resource package obtains the configuration permission information, configures the permission corresponding to the target game according to the configuration permission information, and creates a permission list corresponding to the target game, so that the user can individually configure permissions based on the obtained user information.
请参阅图2,图2是本申请实施例提供的另一种权限配置方法的流程示意图,本实施例中所描述的权限配置方法,应用于如图1A的电子设备,该方法可包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another permission configuration method according to an embodiment of the present application. The permission configuration method described in this embodiment is applied to an electronic device as shown in FIG. 1A. The method may include the following steps. :
201、在检测到针对目标游戏的启动指令时,电子设备获取用户信息,将所述用户信息发送至服务器。201. When a start instruction for a target game is detected, the electronic device obtains user information and sends the user information to a server.
202、接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息。202. Receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information.
203、解析所述游戏资源包,得到所述配置权限信息。203: Parse the game resource package to obtain the configuration permission information.
204、所述配置权限信息包括多项权限对应的多个权限配置子信息,根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限。204. The configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, and each permission in the multiple permissions is configured according to the permission configuration sub-information corresponding to each permission in the multiple permissions.
205、根据所述多项权限对应的多个权限配置子信息创建所述权限列表。205. Create the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions.
其中,上述步骤201-205的具体实现过程可参照图1C所示的方法中相应的描述,在此不再赘述。For the specific implementation process of the above steps 201-205, reference may be made to the corresponding description in the method shown in FIG. 1C, and details are not described herein again.
可以看出,本申请实施例中所描述的权限配置方法,通过在检测到针对目标游戏的启动指令时,获取用户信息,将用户信息发送至服务器,由服务器根据用户信息确定配置清单文件,配置清单文件包括配置权限信息,并将配置清单文件携带在目标游戏对应的游戏资源包中,并将该游戏资源包发送给电子设备并将该游戏资源包发送至电子设备,接收游戏资源包,解析游戏资源包,得到配置权限信息,配置权限信息包括多项权限对应的多个权限配置子信息,根据多项权限中每一权限对应的权限配置子信息配置多项权限中的每一权限,根据多项权限对应的多个权限配置子信息创建权限列表,从而,可根据获取的用户信息为用户个性化地配置权限。It can be seen that the permission configuration method described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to the server, and the server determines a configuration manifest file according to the user information, and configures The manifest file includes configuration permission information, and the configuration manifest file is carried in the game resource package corresponding to the target game, and the game resource package is sent to the electronic device and the game resource package is sent to the electronic device, the game resource package is received, and the analysis is performed The game resource package obtains configuration permission information. The configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions. According to the permission configuration sub-information corresponding to each permission in the multiple permissions, each permission in the multiple permissions is configured. Multiple permission configuration sub-informations corresponding to multiple permissions create a permission list, so that users can be individually configured with permissions based on the obtained user information.
与上述一致地,请参阅图3,为本申请实施例提供的另一种权限配置方法的实施例流程示意图,本实施例中所描述的权限配置方法,应用于如图1A的电子设备,本方法可包括以下步骤:Consistent with the above, please refer to FIG. 3, which is a schematic flowchart of another permission configuration method according to an embodiment of the present application. The permission configuration method described in this embodiment is applied to an electronic device as shown in FIG. 1A. The method may include the following steps:
301、在检测到针对目标游戏的启动指令时,电子设备获取用户信息,将所述用户信息发送至服务器。301. When a start instruction for a target game is detected, the electronic device obtains user information and sends the user information to a server.
302、接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息。302. Receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information.
303、解析所述游戏资源包,得到所述配置权限信息。303: Parse the game resource package to obtain the configuration permission information.
304、所述配置权限信息包括多项权限对应的多个权限配置子信息,所述多项权限对应于多个游戏进度,在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。304. The configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, the multiple permissions corresponding to multiple game progresses, and the target game runs to each of the multiple game progresses. During the progress, each of the plurality of permissions corresponding to the progress of each game is determined.
305、根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限。305. Configure each permission of the multiple permissions according to a permission configuration sub-information corresponding to each of the multiple permissions.
306、确定所述多项权限中每一权限所属的目标类型。306. Determine a target type to which each of the multiple permissions belongs.
307、若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。307. If the target type is the first preset type, add a permission corresponding to the target type to the permission list.
308、若所述目标类型为第二预设类型,在所述目标游戏重新运行时,根据所述目标类 型的权限对应的权限配置子信息配置所述权限。308. If the target type is the second preset type, when the target game is re-run, configure the permission according to the permission configuration sub-information corresponding to the permission of the target type.
其中,上述步骤301-308的具体实现过程可参照图1C所示的方法中相应的描述,在此不再赘述。For the specific implementation process of the steps 301-308, reference may be made to the corresponding description in the method shown in FIG. 1C, and details are not described herein again.
本申请实施例中所描述的权限配置方法,通过在检测到针对目标游戏的启动指令时,获取用户信息,将用户信息发送至服务器,由服务器根据用户信息确定配置清单文件,配置清单文件包括配置权限信息,并将配置清单文件携带在目标游戏对应的游戏资源包中,并将该游戏资源包发送给电子设备并将该游戏资源包发送至电子设备,接收游戏资源包,解析游戏资源包,得到配置权限信息,配置权限信息包括多项权限对应的多个权限配置子信息,多项权限对应于多个游戏进度,在目标游戏运行至多个游戏进度中的每一游戏进度时,确定多项权限中与每一游戏进度对应的每一权限,根据多项权限中每一权限对应的权限配置子信息配置多项权限中的每一权限,确定多项权限中每一权限所属的目标类型,若目标类型为第一预设类型,将目标类型对应的权限添加至权限列表,若目标类型为第二预设类型,在目标游戏重新运行时,根据目标类型的权限对应的权限配置子信息配置权限,从而,可根据获取的用户信息为用户个性化地配置权限。The permission configuration method described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to a server, and the server determines a configuration manifest file according to the user information. The configuration manifest file includes configuration Authority information, and carrying the configuration list file in a game resource package corresponding to the target game, and sending the game resource package to the electronic device and sending the game resource package to the electronic device, receiving the game resource package, and analyzing the game resource package, The configuration permission information is obtained. The configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions. The multiple permissions correspond to multiple game progresses. When the target game runs to each of the multiple game progresses, multiple items are determined. Each permission in the permission corresponding to each game progress, each permission in the multiple permissions is configured according to the permission configuration sub-information corresponding to each permission in the multiple permissions, and the target type to which each permission belongs in the multiple permissions is determined. If the target type is the first preset type, add permissions corresponding to the target type To the permission list, if the target type is the second preset type, when the target game is re-run, the permission is configured according to the permission configuration sub-information corresponding to the target type's permissions, so that the user can be individually configured with permissions based on the obtained user information .
以下是实施上述权限配置方法的装置,具体如下:The following is a device for implementing the above permission configuration method, as follows:
与上述一致地,请参阅图4,图4是本申请实施例提供的一种电子设备,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行以下步骤的指令:Consistent with the above, please refer to FIG. 4, which is an electronic device provided by an embodiment of the present application, including: a processor and a memory; and one or more programs, where the one or more programs are stored in the In memory, and configured to be executed by the processor, the program includes instructions for performing the following steps:
在检测到针对目标游戏的启动指令时,电子设备获取用户信息,将所述用户信息发送至服务器;When a startup instruction for the target game is detected, the electronic device acquires user information and sends the user information to the server;
接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息;Receiving a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
解析所述游戏资源包,得到所述配置权限信息;Parse the game resource package to obtain the configuration permission information;
根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。Configure the permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
在一个可能的示例中,所述配置权限信息包括多项权限对应的多个权限配置子信息,在所述根据所述配置权限信息配置所述目标游戏对应的权限方面,所述程序包括用于执行以下步骤的指令:In a possible example, the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, and in terms of configuring the permissions corresponding to the target game according to the configuration permission information, the program includes Perform the following steps:
根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限;Configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each of the plurality of permissions;
在所述根据所述配置权限信息配置所述目标游戏对应的权限方面,所述程序包括用于执行以下步骤的指令:In terms of configuring permissions corresponding to the target game according to the configuration permission information, the program includes instructions for performing the following steps:
根据所述多项权限对应的多个权限配置子信息创建所述权限列表。The permission list is created according to multiple permission configuration sub-informations corresponding to the multiple permissions.
在一个可能的示例中,在根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of configuring each permission of the multiple permissions according to a permission configuration sub-information corresponding to each permission of the multiple permissions, the program includes instructions for performing the following steps:
根据所述多项权限中每一权限对应的权限配置子信息生成权限设置提示信息,显示所述权限设置提示信息,所述权限设置提示信息用于提示用户发送权限设置指令;Generating permission setting prompt information according to the permission configuration sub-information corresponding to each of the multiple permissions, displaying the permission setting prompt information, and the permission setting prompt information used to prompt a user to send a permission setting instruction;
接收用户针对所述多项权限中每一权限对应的权限设置指令;Receiving a user's permission setting instruction corresponding to each of the multiple permissions;
根据所述权限设置指令创设置所述多项权限中的每一权限。Each of the plurality of permissions is set according to the permission setting instruction.
在一个可能的示例中,所述多项权限对应于多个游戏进度,所述根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限之前,所述程序还包括用于执行以下步骤的指令:In a possible example, the multiple permissions correspond to multiple game progresses, and before each permission in the multiple permissions is configured according to a permission configuration sub-information corresponding to each permission in the multiple permissions, The program also includes instructions for performing the following steps:
在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。When the target game runs to each of the plurality of game progresses, each of the plurality of rights corresponding to each game progress is determined.
在一个可能的示例中,在所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions, the program includes instructions for performing the following steps:
确定所述多项权限中每一权限所属的目标类型;Determining a target type to which each of the multiple permissions belongs;
若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。If the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:In one possible example, the program further includes instructions for performing the following steps:
若所述目标类型为第二预设类型,在所述目标游戏重新运行时,根据所述目标类型的权限对应的权限配置子信息配置所述权限。If the target type is the second preset type, when the target game is re-run, the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
请参阅图5,图5是本实施例提供的一种权限配置装置的结构示意图。该权限配置装置应用于如图1A所示的电子设备,所述权限配置装置包括获取单元501、发送单元502、接收单元503、解析单元504和配置单元505,其中,Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an authority configuration apparatus according to this embodiment. The authority configuration device is applied to an electronic device as shown in FIG. 1A. The authority configuration device includes an obtaining unit 501, a sending unit 502, a receiving unit 503, a parsing unit 504, and a configuration unit 505.
所述获取单元501,用于在检测到针对目标游戏的启动指令时,获取用户信息;The obtaining unit 501 is configured to obtain user information when a startup instruction for a target game is detected;
所述发送单元502,用于将所述用户信息发送至服务器;The sending unit 502 is configured to send the user information to a server;
所述接收单元503,用于接收所述游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息;The receiving unit 503 is configured to receive the game resource package, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
所述解析单元504,用于解析所述游戏资源包,得到所述配置权限信息;The parsing unit 504 is configured to parse the game resource package to obtain the configuration authority information;
所述配置单元505,用于根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。The configuration unit 505 is configured to configure permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
可选地,所述配置权限信息包括多项权限对应的多个权限配置子信息,在所述根据所述配置权限信息配置所述目标游戏对应的权限方面,所述配置单元505具体用于:Optionally, the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions. In the aspect of configuring the permissions corresponding to the target game according to the configuration permission information, the configuration unit 505 is specifically configured to:
根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限;Configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each of the plurality of permissions;
在所述创建所述目标游戏对应的权限列表方面,所述配置单元504具体用于:In terms of creating a permission list corresponding to the target game, the configuration unit 504 is specifically configured to:
根据所述多项权限对应的多个权限配置子信息创建所述权限列表。The permission list is created according to multiple permission configuration sub-informations corresponding to the multiple permissions.
可选地,在根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限方面,所述配置单元505具体用于:Optionally, in terms of configuring each permission of the multiple permissions according to a permission configuration sub-information corresponding to each of the multiple permissions, the configuration unit 505 is specifically configured to:
根据所述多项权限中每一权限对应的权限配置子信息生成权限设置提示信息,显示所述权限设置提示信息,所述权限设置提示信息用于提示用户发送权限设置指令;Generating permission setting prompt information according to the permission configuration sub-information corresponding to each of the multiple permissions, displaying the permission setting prompt information, and the permission setting prompt information used to prompt a user to send a permission setting instruction;
接收用户针对所述多项权限中每一权限对应的权限设置指令;Receiving a user's permission setting instruction corresponding to each of the multiple permissions;
根据所述权限设置指令创设置所述多项权限中的每一权限。Each of the plurality of permissions is set according to the permission setting instruction.
可选地,在所述多项权限对应于多个游戏进度,所述根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限之前,所述配置单元505还用于:Optionally, before the plurality of permissions correspond to a plurality of game progresses, before the configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each permission of the plurality of permissions, the The configuration unit 505 is further configured to:
在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。When the target game runs to each of the plurality of game progresses, each of the plurality of rights corresponding to each game progress is determined.
可选地,在所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表方面,所述配置单元505具体用于:Optionally, in terms of creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions, the configuration unit 505 is specifically configured to:
确定所述多项权限中每一权限所属的目标类型;Determining a target type to which each of the multiple permissions belongs;
若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。If the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
可选地,在所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表方面,所述配置单元505具体用于:Optionally, in terms of creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions, the configuration unit 505 is specifically configured to:
若所述目标类型为第二预设类型,在所述目标游戏重新运行时,根据所述目标类型的权限对应的权限配置子信息配置所述权限。If the target type is the second preset type, when the target game is re-run, the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
可以看出,本申请实施例中所描述的权限配置装置,通过在检测到针对目标游戏的启动指令时,获取用户信息,将用户信息发送至服务器,由服务器根据用户信息确定配置清单文件,配置清单文件包括配置权限信息,并将配置清单文件携带在目标游戏对应的游戏资源包中,并将该游戏资源包发送给电子设备并将该游戏资源包发送至电子设备,接收游戏资源包,解析游戏资源包,得到配置权限信息,根据配置权限信息配置目标游戏对应的权限,并创建目标游戏对应的权限列表,从而,可根据获取的用户信息为用户个性化地配置权限。It can be seen that the authority configuration device described in the embodiment of the present application obtains user information when a startup instruction for a target game is detected, sends the user information to the server, and the server determines a configuration manifest file according to the user information, and configures The manifest file includes configuration permission information, and the configuration manifest file is carried in the game resource package corresponding to the target game, and the game resource package is sent to the electronic device and the game resource package is sent to the electronic device, the game resource package is received, and the analysis is performed The game resource package obtains the configuration permission information, configures the permission corresponding to the target game according to the configuration permission information, and creates a permission list corresponding to the target game, so that the user can individually configure permissions based on the obtained user information.
可以理解的是,本实施例的权限配置装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of the program modules of the authority configuration device in this embodiment may be specifically implemented according to the methods in the foregoing method embodiments, and the specific implementation process may refer to the related description of the foregoing method embodiments, which will not be repeated here.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种权限配置方法的部分或全部步骤。An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute a part of any one of the rights configuration methods described in the foregoing method embodiments. Or all steps.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种权限配置方法的部分或全部步骤。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps for any method of rights configuration.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not described in detail in one embodiment, reference may be made to related descriptions in other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may be combined. Integration into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的 部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software program modules.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。When the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it may be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. The foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer-readable memory, and the memory may include a flash disk. , ROM, RAM, disk or disc, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. Specific examples are used in this document to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and core ideas of the present application. Persons of ordinary skill in the art may change the specific implementation and application scope according to the idea of the present application. In summary, the content of this description should not be construed as a limitation on the present application.

Claims (20)

  1. 一种权限配置方法,其特征在于,所述方法包括:A permission configuration method, characterized in that the method includes:
    在检测到针对目标游戏的启动指令时,电子设备获取用户信息,将所述用户信息发送至服务器;When a startup instruction for the target game is detected, the electronic device acquires user information and sends the user information to the server;
    接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息;Receiving a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
    解析所述游戏资源包,得到所述配置权限信息;Parse the game resource package to obtain the configuration permission information;
    根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。Configure the permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
  2. 根据权利要求1所述的方法,其特征在于,所述配置权限信息包括多项权限对应的多个权限配置子信息,所述根据所述配置权限信息配置所述目标游戏对应的权限,包括:The method according to claim 1, wherein the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, and the configuring the permissions corresponding to the target game according to the configuration permission information comprises:
    根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限;Configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each of the plurality of permissions;
    所述创建所述目标游戏对应的权限列表,包括:The creating a permission list corresponding to the target game includes:
    根据所述多项权限对应的多个权限配置子信息创建所述权限列表。The permission list is created according to multiple permission configuration sub-informations corresponding to the multiple permissions.
  3. 根据权利要求2所述的方法,其特征在于,根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限,包括:The method according to claim 2, wherein configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each of the plurality of permissions comprises:
    根据所述多项权限中每一权限对应的权限配置子信息生成权限设置提示信息,显示所述权限设置提示信息,所述权限设置提示信息用于提示用户发送权限设置指令;Generating permission setting prompt information according to the permission configuration sub-information corresponding to each of the multiple permissions, displaying the permission setting prompt information, and the permission setting prompt information used to prompt a user to send a permission setting instruction;
    接收用户针对所述多项权限中每一权限对应的权限设置指令;Receiving a user's permission setting instruction corresponding to each of the multiple permissions;
    根据所述权限设置指令创设置所述多项权限中的每一权限。Each of the plurality of permissions is set according to the permission setting instruction.
  4. 根据权利要求2所述的方法,其特征在于,所述多项权限对应于多个游戏进度,所述根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限之前,所述方法还包括:The method according to claim 2, wherein the plurality of permissions correspond to a plurality of game progresses, and the plurality of permissions are configured according to a permission configuration sub-information corresponding to each permission in the plurality of permissions. Before each permission, the method further includes:
    在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。When the target game runs to each of the plurality of game progresses, each of the plurality of rights corresponding to each game progress is determined.
  5. 根据权利要求3所述的方法,其特征在于,所述多项权限对应于多个游戏进度,所述根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限之前,所述方法还包括:The method according to claim 3, wherein the plurality of permissions correspond to a plurality of game progresses, and the plurality of permissions are configured according to a permission configuration sub-information corresponding to each permission in the plurality of permissions. Before each permission, the method further includes:
    在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。When the target game runs to each of the plurality of game progresses, each of the plurality of rights corresponding to each game progress is determined.
  6. 根据权利要求2所述的方法,其特征在于,所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表,包括:The method according to claim 2, wherein the creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions comprises:
    确定所述多项权限中每一权限所属的目标类型;Determining a target type to which each of the multiple permissions belongs;
    若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。If the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
  7. 根据权利要求3所述的方法,其特征在于,所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表,包括:The method according to claim 3, wherein the creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions comprises:
    确定所述多项权限中每一权限所属的目标类型;Determining a target type to which each of the multiple permissions belongs;
    若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。If the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
  8. 根据权利要求4或5所述的方法,其特征在于,所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表,包括:The method according to claim 4 or 5, wherein the creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions comprises:
    确定所述多项权限中每一权限所属的目标类型;Determining a target type to which each of the multiple permissions belongs;
    若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。If the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
  9. 根据权利要求6至8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 6 to 8, wherein the method further comprises:
    若所述目标类型为第二预设类型,在所述目标游戏重新运行时,根据所述目标类型的权限对应的权限配置子信息配置所述权限。If the target type is the second preset type, when the target game is re-run, the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
  10. 一种权限配置装置,其特征在于,所述权限配置装置包括:An authority configuration device, characterized in that the authority configuration device includes:
    获取单元,用于在检测到针对目标游戏的启动指令时,获取用户信息;An obtaining unit, configured to obtain user information when a start instruction for a target game is detected;
    发送单元,用于将所述用户信息发送至服务器;A sending unit, configured to send the user information to a server;
    接收单元,用于接收所述服务器发送的游戏资源包,所述游戏资源包包含由所述服务器根据所述用户信息确定的配置清单文件,所述配置清单文件包括配置权限信息;A receiving unit, configured to receive a game resource package sent by the server, where the game resource package includes a configuration manifest file determined by the server according to the user information, and the configuration manifest file includes configuration permission information;
    解析单元,用于解析所述游戏资源包,得到所述配置权限信息;A parsing unit, configured to parse the game resource package to obtain the configuration authority information;
    配置单元,用于根据所述配置权限信息配置所述目标游戏对应的权限,并创建所述目标游戏对应的权限列表。A configuration unit is configured to configure permissions corresponding to the target game according to the configuration permission information, and create a permission list corresponding to the target game.
  11. 根据权利要求10所述的装置,其特征在于,所述配置权限信息包括多项权限对应的多个权限配置子信息,在所述根据所述配置权限信息配置所述目标游戏对应的权限方面,所述配置单元具体用于:The device according to claim 10, wherein the configuration permission information includes multiple permission configuration sub-informations corresponding to multiple permissions, and in terms of configuring the permissions corresponding to the target game according to the configuration permission information, The configuration unit is specifically configured to:
    根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限;Configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each of the plurality of permissions;
    在所述创建所述目标游戏对应的权限列表方面,所述配置单元具体用于:In terms of creating a permission list corresponding to the target game, the configuration unit is specifically configured to:
    根据所述多项权限对应的多个权限配置子信息创建所述权限列表。The permission list is created according to multiple permission configuration sub-informations corresponding to the multiple permissions.
  12. 根据权利要求11所述的装置,其特征在于,在根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限方面,所述配置单元具体用于:The device according to claim 11, characterized in that, in configuring each of the plurality of permissions according to a permission configuration sub-information corresponding to each permission of the plurality of permissions, the configuration unit is specifically configured to: :
    根据所述多项权限中每一权限对应的权限配置子信息生成权限设置提示信息,显示所述权限设置提示信息,所述权限设置提示信息用于提示用户发送权限设置指令;Generating permission setting prompt information according to the permission configuration sub-information corresponding to each of the multiple permissions, displaying the permission setting prompt information, and the permission setting prompt information used to prompt a user to send a permission setting instruction;
    接收用户针对所述多项权限中每一权限对应的权限设置指令;Receiving a user's permission setting instruction corresponding to each of the multiple permissions;
    根据所述权限设置指令创设置所述多项权限中的每一权限。Each of the plurality of permissions is set according to the permission setting instruction.
  13. 根据权利要求11所述的装置,其特征在于,在所述多项权限对应于多个游戏进度,所述根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限之前,所述配置单元还用于:The device according to claim 11, wherein the plurality of permissions correspond to a plurality of game progresses, and the plurality of permissions are configured according to a permission configuration sub-information corresponding to each permission in the plurality of permissions. Before each permission in the configuration unit, the configuration unit is further configured to:
    在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。When the target game runs to each of the plurality of game progresses, each of the plurality of rights corresponding to each game progress is determined.
  14. 根据权利要求12所述的装置,其特征在于,在所述多项权限对应于多个游戏进度,所述根据所述多项权限中每一权限对应的权限配置子信息配置所述多项权限中的每一权限之前,所述配置单元还用于:The device according to claim 12, wherein the plurality of permissions correspond to a plurality of game progresses, and the plurality of permissions are configured according to a permission configuration sub-information corresponding to each permission in the plurality of permissions. Before each permission in the configuration unit, the configuration unit is further configured to:
    在所述目标游戏运行至所述多个游戏进度中的每一游戏进度时,确定所述多项权限中与所述每一游戏进度对应的每一权限。When the target game runs to each of the plurality of game progresses, each of the plurality of rights corresponding to each game progress is determined.
  15. 根据权利要11所述的装置,其特征在于,在所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表方面,所述配置单元具体用于:The device according to claim 11, wherein in the step of creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions, the configuration unit is specifically configured to:
    确定所述多项权限中每一权限所属的目标类型;Determining a target type to which each of the multiple permissions belongs;
    若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。If the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
  16. 根据权利要12所述的装置,其特征在于,在所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表方面,所述配置单元具体用于:The device according to claim 12, wherein the configuration unit is specifically configured to create the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions.
    确定所述多项权限中每一权限所属的目标类型;Determining a target type to which each of the multiple permissions belongs;
    若所述目标类型为第一预设类型,将所述目标类型对应的权限添加至所述权限列表。If the target type is the first preset type, adding a permission corresponding to the target type to the permission list.
  17. 根据权利要15或16所述的装置,其特征在于,在所述根据所述多项权限对应的多个权限配置子信息创建所述权限列表方面,所述配置单元具体用于:The device according to claim 15 or 16, wherein in the step of creating the permission list according to multiple permission configuration sub-informations corresponding to the multiple permissions, the configuration unit is specifically configured to:
    若所述目标类型为第二预设类型,在所述目标游戏重新运行时,根据所述目标类型的权限对应的权限配置子信息配置所述权限。If the target type is the second preset type, when the target game is re-run, the permission is configured according to a permission configuration sub-information corresponding to the permission of the target type.
  18. 一种电子设备,其特征在于,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如权利要求1-9任一项方法的指令。An electronic device, comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, so that The program includes instructions for a method according to any one of claims 1-9.
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任意一项所述的方法,所述计算机包括终端设备。A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-9, the computer comprising Terminal Equipment.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。A computer program product, characterized in that the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the computer program according to any one of claims 1-9. The method described.
PCT/CN2019/091923 2018-09-15 2019-06-19 Permission configuration method and related product WO2020052307A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811077467.0A CN110908728B (en) 2018-09-15 2018-09-15 Authority configuration method and related product
CN201811077467.0 2018-09-15

Publications (1)

Publication Number Publication Date
WO2020052307A1 true WO2020052307A1 (en) 2020-03-19

Family

ID=69776906

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/091923 WO2020052307A1 (en) 2018-09-15 2019-06-19 Permission configuration method and related product

Country Status (2)

Country Link
CN (1) CN110908728B (en)
WO (1) WO2020052307A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113786601A (en) * 2021-09-06 2021-12-14 广州博冠信息科技有限公司 Control method and device for secret room, computer equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094257B (en) * 2021-03-08 2024-04-05 上海硬通网络科技有限公司 Application testing method and device and electronic equipment
CN113082722B (en) * 2021-03-15 2023-05-09 上海硬通网络科技有限公司 Game management system and game management method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166118A (en) * 2007-09-30 2008-04-23 华为技术有限公司 A method for processing user configuration information and service report system
KR20090010456A (en) * 2007-07-23 2009-01-30 (주) 그라비티 Method, system and recording medium for providing game character generation authority
KR20130127756A (en) * 2012-05-15 2013-11-25 주식회사 넥슨코리아 System for transfering a character control authority and the method thereof
CN105450581A (en) * 2014-06-20 2016-03-30 北京新媒传信科技有限公司 Authority control method and device
CN107137929A (en) * 2017-03-20 2017-09-08 广东小天才科技有限公司 A kind of control method and device of game application
CN108427886A (en) * 2018-01-25 2018-08-21 上海掌门科技有限公司 A kind of application program access rights setting method, system, equipment and readable medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571705B (en) * 2010-12-24 2015-01-07 联想(北京)有限公司 Information processing method and server
CN103368765B (en) * 2012-04-10 2016-06-29 阿里巴巴集团控股有限公司 A kind of privileges of management system adding method and device
CN103246533B (en) * 2013-04-11 2017-03-29 小米科技有限责任公司 A kind of method for adding plug-in unit in address list, device and equipment
CN104424423B (en) * 2013-08-28 2018-06-19 华为终端(东莞)有限公司 The permission of application program determines method and apparatus
CN103677823B (en) * 2013-12-06 2017-05-24 北京奇虎科技有限公司 Method and device for managing browser plug-ins
CN104008320A (en) * 2014-05-19 2014-08-27 惠州Tcl移动通信有限公司 Using permission and user mode control method and system based on face recognition
US11743203B2 (en) * 2016-02-17 2023-08-29 Blackberry Limited Managing resource access
CN105786567B (en) * 2016-02-25 2019-01-11 四川长虹电器股份有限公司 IOS application submodule dynamic update method and its intermediate system
CN107341378A (en) * 2017-06-28 2017-11-10 上海爱优威软件开发有限公司 For the method for the access right for setting application
CN108701201A (en) * 2018-04-08 2018-10-23 深圳大学 A kind of access control method of mobile terminal, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090010456A (en) * 2007-07-23 2009-01-30 (주) 그라비티 Method, system and recording medium for providing game character generation authority
CN101166118A (en) * 2007-09-30 2008-04-23 华为技术有限公司 A method for processing user configuration information and service report system
KR20130127756A (en) * 2012-05-15 2013-11-25 주식회사 넥슨코리아 System for transfering a character control authority and the method thereof
CN105450581A (en) * 2014-06-20 2016-03-30 北京新媒传信科技有限公司 Authority control method and device
CN107137929A (en) * 2017-03-20 2017-09-08 广东小天才科技有限公司 A kind of control method and device of game application
CN108427886A (en) * 2018-01-25 2018-08-21 上海掌门科技有限公司 A kind of application program access rights setting method, system, equipment and readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113786601A (en) * 2021-09-06 2021-12-14 广州博冠信息科技有限公司 Control method and device for secret room, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110908728A (en) 2020-03-24
CN110908728B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN109388453B (en) Application page display method and device, storage medium and electronic equipment
CN106598630A (en) Key control method and apparatus, and terminal
US10678942B2 (en) Information processing method and related products
WO2018045564A1 (en) Auxiliary service management method and apparatus
WO2020052307A1 (en) Permission configuration method and related product
WO2018120905A1 (en) Message reminding method for terminal, and terminal
CN109840418A (en) Jump control method, device, storage medium and the terminal of application program
WO2015085966A1 (en) Interface display method, device, terminal, server and system
WO2018049934A1 (en) Data migration method and terminals
WO2017193496A1 (en) Application data processing method and apparatus, and terminal device
CN110475020B (en) Equipment control method and related product
WO2020103070A1 (en) Method and apparatus for processing application program, and electronic device
WO2015010466A1 (en) Information display method and apparatus, and mobile terminal
CN112559069B (en) Running control method and device of sub-application, storage medium and electronic equipment
WO2020118495A1 (en) Audio resource allocation method, device, and electronic apparatus
CN103294442A (en) Method, device and terminal unit for playing prompt tones
CN108536388A (en) split screen processing method, device, storage medium and electronic equipment
CN112805988B (en) Call control method and device, computer readable storage medium and electronic equipment
WO2020103045A1 (en) Application processing method and apparatus and electronic device
JP6974620B2 (en) Notification message processing method and terminal
KR101876394B1 (en) Method and device for playing media data on a terminal
WO2019179068A1 (en) Risk detection method and device, and mobile terminal and storage medium
CN108900385B (en) Network connection method and related product
JP2015537486A (en) APP PROTECTION METHOD, DEVICE, TERMINAL, PROGRAM, AND RECORDING MEDIUM
WO2020107177A1 (en) Audio resource invoking method and apparatus, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19860177

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19860177

Country of ref document: EP

Kind code of ref document: A1