CN106980792B - Control method of application permission, electronic equipment and server - Google Patents

Control method of application permission, electronic equipment and server Download PDF

Info

Publication number
CN106980792B
CN106980792B CN201710209561.6A CN201710209561A CN106980792B CN 106980792 B CN106980792 B CN 106980792B CN 201710209561 A CN201710209561 A CN 201710209561A CN 106980792 B CN106980792 B CN 106980792B
Authority
CN
China
Prior art keywords
authority
preset
preset application
change information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710209561.6A
Other languages
Chinese (zh)
Other versions
CN106980792A (en
Inventor
洪乃波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710209561.6A priority Critical patent/CN106980792B/en
Publication of CN106980792A publication Critical patent/CN106980792A/en
Application granted granted Critical
Publication of CN106980792B publication Critical patent/CN106980792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems

Abstract

The application provides a control method of application rights, which is applied to electronic equipment with at least one uninstallable preset application and comprises the following steps: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.

Description

Control method of application permission, electronic equipment and server
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method for controlling application rights, an electronic device, and a server.
Background
Electronic devices are shipped with Applications (APP) installed, commonly referred to as preset applications, which fall into two categories, one that can be uninstalled by the user and one that cannot.
When the electronic equipment leaves the factory, the application is installed, and a manufacturer finishes configuration permission for the installed application, so that the permission of the manufacturer of the electronic equipment on the application is not controlled and managed in real time.
Disclosure of Invention
In view of the above, the invention provides a control method of application rights, electronic equipment and a server, which solve the problem that the rights of preset applications cannot be controlled and managed in the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a control method of application rights, applied to an electronic device having at least one offloadable preset application, the method comprising:
acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application;
and configuring the authority of the first preset application according to the preset authority in the first authority change information.
Further, before the obtaining the preset first permission change information, the method further includes:
judging whether the electronic equipment is started for the first time according to the operation parameters;
if the electronic equipment is started for the first time, judging that the state of the electronic equipment meets a preset condition;
And executing the step of acquiring the preset first permission change information based on the condition that the state of the electronic equipment meets the condition.
Further, the obtaining the preset first permission change information includes:
acquiring the first authority change information from a storage area of the electronic equipment, wherein the first authority change information is obtained by analyzing a data packet of a preset application to which the first authority change information belongs and is stored in the storage area;
or alternatively
And acquiring the first authority change information from the authority change information set stored in the server.
Further, before the preset first permission change information is obtained, the method further includes:
acquiring operation parameters of the electronic equipment;
judging whether any preset application in the electronic equipment is in an installation state or not according to the operation parameters;
if any preset application in the electronic equipment is in an installation state, judging that the state of the electronic equipment meets a preset condition;
and executing the step of acquiring the preset first permission change information based on the condition that the state of the electronic equipment meets the condition.
Further, after configuring the authority of the first preset application according to the preset authority in the first authority change information, the method further includes:
Judging whether a new authority is related to the installation of the first preset application, wherein the new authority refers to an authority which is not contained in the first authority change information;
if the new authority is related, uploading the related information of the new authority to a server, so that the server updates the first authority change information based on the related information of the new authority.
A control method of application rights, applied to a server, the server being connected to at least one electronic device, the electronic device having at least one offloadable preset application therein, the method comprising:
acquiring first authority change information from a storage area of the server;
and sending the first permission change information to the first electronic equipment so that the first electronic equipment configures the permission of a first preset application according to the preset permission in the first permission change information.
Further, the method further comprises the following steps:
receiving related information which is uploaded by the first electronic equipment and is a new right, wherein the new right refers to a right which is not contained in the first right change information;
and updating the first authority change information based on the related information of the new authority.
Further, the method further comprises the following steps:
generating a permission change request according to the updated first permission change information;
the permission change request is sent to second electronic equipment, so that the second electronic equipment judges whether a first preset application corresponding to the mark information exists or not according to the mark information carried in the permission change request;
receiving an application permission request fed back by the second electronic equipment, wherein the application permission request is generated by the second electronic equipment based on a first preset application corresponding to the mark information;
and sending the updated first permission change information to the second electronic equipment, so that the second electronic equipment configures the permission of the first preset application based on the preset permission in the updated first permission change information.
An electronic device having at least one offloadable preset application therein, comprising: a processor, wherein:
the processor is used for acquiring preset first permission changing information, the first permission changing information comprises preset permissions of a first preset application, and the permissions of the first preset application are configured according to the preset permissions in the first permission changing information.
A server in communication with at least one electronic device, comprising: a processor and a memory, wherein:
the memory is used for storing first authority change information;
the processor is used for acquiring first authority change information from the memory, and sending the first authority change information to the first electronic device, so that the first electronic device configures the authority of a first preset application according to the preset authority in the first authority change information.
As can be seen from the above technical solution, compared with the prior art, the present invention provides a control method of application rights, where the method is applied to an electronic device having at least one offloadable preset application, and includes: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for controlling application rights disclosed in an embodiment of the present invention;
FIG. 2 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
FIG. 7 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
FIG. 8 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
FIG. 9 is a flowchart of a method for controlling application rights according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention discloses a control method of application authority, which is applied to electronic equipment with at least one uninstallable preset application, wherein a flow chart is shown in figure 1 and comprises the following steps:
step S11, acquiring preset first authority change information, wherein the first authority change information comprises preset authorities of a first preset application;
in the production process of the electronic equipment, a manufacturer configures a preset application, namely an uninstalled application, and the preset application is provided with preset permission.
And acquiring preset authority of the preset application in the process of installing the preset application.
Step S12, configuring the authority of the first preset application according to the preset authority in the first authority change information.
In the process of installing the preset application, configuring the authority of the preset application according to the preset authority in the first authority change information, so that the authority configuration of the preset application is realized in the process of installing the preset application, and the configuration of the preset application is not completed when the electronic equipment leaves the factory.
When more than one preset application of the electronic device is provided, the first authority change information includes more than the preset authority of the first preset application, and further includes: preset permissions for other preset applications, such as: the preset authority of the second preset application. When the second preset application is installed, acquiring preset first authority changing information, and configuring the authority of the second preset application according to the preset authority of the second preset application in the first authority changing information.
The embodiment provides a control method of application rights, which is applied to an electronic device with at least one uninstallable preset application, and comprises the following steps: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to an electronic device with at least one offloadable preset application, and a flowchart of the control method is shown in fig. 2, and includes:
step S21, judging whether the electronic equipment is started for the first time according to the operation parameters;
whether the electronic equipment is started for the first time or not can be judged according to the operation parameters of the electronic equipment, so that whether the electronic equipment is started for the first time or not can be automatically judged.
Step S22, if the electronic equipment is started for the first time, judging that the state of the electronic equipment meets the preset condition;
when the electronic equipment is started for the first time, the preset application is not installed, the preset application needs to be installed in the process of starting the electronic equipment for the first time, and the authority of the preset application needs to be configured in the process of installing the preset application, so that the state of the electronic equipment meets the condition of configuring the authority of the preset application. Therefore, when the electronic device is started for the first time, the preset first permission change information needs to be acquired.
When the electronic equipment is not started for the first time, the preset application is installed, and at the moment, the authority of the preset application is not required to be configured, so that if the electronic equipment is not started for the first time, the preset first authority change information is not required to be acquired.
Step S23, acquiring preset first permission change information based on the condition that the state of the electronic equipment meets, wherein the first permission change information comprises preset permissions of a first preset application;
step S24, configuring the authority of the first preset application according to the preset authority in the first authority change information.
The embodiment provides a control method of application rights, which is applied to an electronic device with at least one uninstallable preset application, and comprises the following steps: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to an electronic device with at least one offloadable preset application, and a flowchart of the control method is shown in fig. 3, and includes:
Step S31, acquiring first authority change information from a storage area of the electronic equipment, wherein the first authority change information is obtained by analyzing a data packet of a preset application to which the first authority change information belongs and is stored in the storage area;
when the data packet of the first preset application is arranged in the electronic equipment, but the data packet of the first preset application is not installed yet, the data packet of the first preset application is analyzed, preset authority change information of the first preset application is obtained, the preset authority change information of the first preset application is stored in a storage area of the electronic equipment, so that the preset authority change information of the first preset application, namely the first authority change information, is directly obtained from the storage area of the electronic equipment when the first preset application is installed, and the authority of the first preset application is configured according to the preset authority in the first authority change information, so that the authority of the first preset application is controlled.
The storage area of the electronic device stores not only first authority change information including preset authorities of a first preset application, but also authority change information including preset authorities of other preset applications. When the permission of the first preset application needs to be configured, first permission change information including preset permission of the first preset application needs to be acquired from a storage area of the electronic device, so that when more than one permission change information is stored in the storage area of the electronic device, flag information is set for the preset application so as to search the permission change information corresponding to the preset application, and the method is specific:
Acquiring first authority change information from a storage area of the electronic device, including: and acquiring the mark information of the first preset application, and acquiring the first authority change information corresponding to the first preset application from a storage area storing at least one authority change information according to the mark information of the first preset application.
Step S32, configuring the authority of the first preset application according to the preset authority in the first authority change information.
The embodiment provides a control method of application rights, which is applied to an electronic device with at least one uninstallable preset application, and comprises the following steps: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to an electronic device with at least one offloadable preset application, and a flowchart of the control method is shown in fig. 4, and includes:
step S41, acquiring first authority change information from an authority change information set stored in a server;
when the first preset application is installed, first authority change information containing preset authority of the first preset application is required to be acquired, the first authority change information is stored in a server in advance, and when the first preset application is installed, first, the first authority change information of the first preset application is acquired from the server.
When a certain electronic device needs to install a certain preset application, for example, the first preset application, the first authority changing information corresponding to the first preset application of the electronic device is obtained from the authority changing information set in the server, and then the authority of the first preset application is configured according to the preset authority in the first authority changing information, so that the authority of the first preset application is controlled.
Step S42, configuring the authority of the first preset application according to the preset authority in the first authority change information.
The embodiment provides a control method of application rights, which is applied to an electronic device with at least one uninstallable preset application, and comprises the following steps: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to an electronic device with at least one offloadable preset application, and a flowchart of the control method is shown in fig. 5, and includes:
step S51, acquiring operation parameters of the electronic equipment;
Step S52, judging whether any preset application in the electronic equipment is in an installation state or not according to the operation parameters;
step S53, if any preset application in the electronic equipment is in an installation state, judging that the state of the electronic equipment meets the preset condition;
when the electronic equipment is in a first starting state, a preset application in the electronic equipment is in an installation state, at the moment, first authority changing information containing preset authority of the preset application in the installation state is required to be acquired, the first authority changing information is given, and the authority of the preset application in the installation state is configured, so that the installation of the preset application is realized;
when the electronic device is in an operation state, determining whether a preset application is in an installation state in the electronic device according to operation parameters of the electronic device, wherein the preset application is in the installation state may include: downloading a new installation package after unloading the preset application, and installing the new installation package; may further include: and upgrading the installed preset application download upgrade package.
Whether the new installation package is downloaded after the preset application is unloaded, the new installation package is installed, or the installed preset application download upgrade package is upgraded, the preset application is in an installation state, first preset permission change information containing preset permission of the preset application is required to be obtained, and the permission of the preset application is configured according to the preset permission in the first permission change information, so that the configuration of the permission of the preset application being installed is realized.
Step S54, acquiring preset first authority change information based on the condition that the state of the electronic equipment meets the condition;
step S55, configuring the authority of any preset application according to the preset authority in the first authority change information.
The embodiment provides a control method of application rights, which is applied to an electronic device with at least one uninstallable preset application, and comprises the following steps: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to an electronic device with at least one offloadable preset application, and a flowchart of the control method is shown in fig. 6, and includes:
Step S61, acquiring operation parameters of the electronic equipment;
step S62, judging whether any preset application in the electronic equipment is in an installation state or not according to the operation parameters;
step S63, if any preset application in the electronic equipment is in an installation state, judging that the state of the electronic equipment meets the preset condition;
step S64, acquiring preset first authority change information based on the condition that the state of the electronic equipment meets the condition;
step S65, configuring the authority of any preset application according to the preset authority in the first authority change information;
step S66, judging whether a new authority is related to the installation of the first preset application, wherein the new authority comprises the authority which is not contained in the first authority change information;
step S67, if the new authority is related, uploading the related information of the new authority to the server, so that the server updates the first authority changing information based on the related information of the new authority.
When the first authority changing information is stored in the server, if the authority which is not contained in the first authority changing information is related to the installation of the first preset application, uploading the related information of the authority which is not contained in the first authority changing information to the server so as to update the first authority changing information stored in the server, so that the called first authority changing information is updated first authority changing information when the preset application is installed next time;
When the first authority changing information is stored in the storage area of the electronic device, if the authority which is not contained in the first authority changing information is related to the installation of the first preset application, uploading the related information of the authority which is not contained in the first authority changing information to the storage area of the electronic device so as to update the first authority changing information stored in the storage area of the electronic device, so that the called first authority changing information is updated first authority changing information when the preset application is installed next time.
The embodiment provides a control method of application rights, which is applied to an electronic device with at least one uninstallable preset application, and comprises the following steps: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to a server, wherein the server is connected with at least one electronic device, and the electronic device is provided with at least one uninstallable preset application, and a flow chart is shown in fig. 7, and the control method comprises the following steps:
step S71, acquiring first authority change information from a storage area of a server;
in the production process of the electronic equipment, a manufacturer configures a preset application, namely an uninstalled application, and the preset application is provided with preset permission.
And acquiring preset authority of the preset application in the process of installing the preset application.
When the first preset application is installed, first authority change information containing preset authority of the first preset application is required to be acquired, the first authority change information is stored in a server in advance, and when the first preset application is installed, first, the first authority change information of the first preset application is acquired from the server.
Step S72, the first permission changing information is sent to the first electronic device, so that the first electronic device configures the permission of the first preset application according to the preset permission in the first permission changing information.
In the process of installing the preset application, configuring the authority of the preset application according to the preset authority in the first authority change information, so that the authority configuration of the preset application is realized in the process of installing the preset application, and the configuration of the preset application is not completed when the electronic equipment leaves the factory.
When a certain electronic device needs to install a certain preset application, for example, the first preset application, the first authority changing information corresponding to the first preset application of the electronic device is obtained from the authority changing information set in the server, and then the authority of the first preset application is configured according to the preset authority in the first authority changing information, so that the authority of the first preset application is controlled.
The embodiment provides a control method of application rights, which is applied to a server, wherein the server is connected with at least one electronic device, and the electronic device is provided with at least one preset application capable of being unloaded, and the method comprises the following steps: acquiring preset first authority change information from a storage area of a server, wherein the first authority change information comprises preset authority of a first preset application; and sending the first permission change information to the first electronic equipment, so that the first electronic equipment configures the permission of the first preset application according to the preset permission in the first permission change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to a server, wherein the server is connected with at least one electronic device, and the electronic device is provided with at least one uninstallable preset application, and a flow chart is shown in fig. 8, and the control method comprises the following steps:
step S81, acquiring first authority change information from a storage area of a server;
before acquiring the first authority change information from the storage area of the server, it may further include: and receiving a permission list request sent by the first electronic equipment, namely sending the permission list request to a server when the first electronic equipment is provided with the requirement for configuring the permission of the preset application, and then sending permission change information to the first electronic equipment by the server.
Step S82, the first authority changing information is sent to the first electronic equipment, so that the first electronic equipment configures the authority of the first preset application according to the preset authority in the first authority changing information;
step S83, receiving related information of new rights uploaded by the first electronic device, wherein the new rights refer to rights which are not contained in the first rights change information;
step S84, updating the first authority change information based on the related information of the new authority.
If the authority which is not contained in the first authority change information is related to the installation of the first preset application, uploading the related information of the authority which is not contained in the first authority change information to a server so as to update the first authority change information stored in the server, so that the called first authority change information is updated first authority change information when the preset application is installed next time.
The embodiment provides a control method of application rights, which is applied to a server, wherein the server is connected with at least one electronic device, and the electronic device is provided with at least one preset application capable of being unloaded, and the method comprises the following steps: acquiring preset first authority change information from a storage area of a server, wherein the first authority change information comprises preset authority of a first preset application; and sending the first permission change information to the first electronic equipment, so that the first electronic equipment configures the permission of the first preset application according to the preset permission in the first permission change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a control method of application rights, which is applied to a server, wherein the server is connected with at least one electronic device, and the electronic device is provided with at least one uninstallable preset application, and the flowchart is shown in fig. 9, and the control method comprises the following steps:
Step S91, acquiring first authority change information from a storage area of a server;
step S92, the first authority changing information is sent to the first electronic equipment, so that the first electronic equipment configures the authority of the first preset application according to the preset authority in the first authority changing information;
step S93, receiving the related information of the new authority uploaded by the first electronic equipment, wherein the new authority refers to the authority which is not contained in the first authority change information;
step S94, updating the first authority change information based on the related information of the new authority;
step S95, generating a permission change request according to the updated first permission change information;
step S96, sending the permission change request to the second electronic equipment, so that the second electronic equipment judges whether a first preset application corresponding to the mark information exists or not according to the mark information carried in the permission change request;
step S97, receiving an application permission request fed back by the second electronic equipment, wherein the application permission request is generated by the second electronic equipment based on the first preset application corresponding to the mark information;
and step S98, the updated first authority change information is sent to the second electronic equipment, so that the second electronic equipment configures the authority of the first preset application based on the preset authority in the updated first authority change information.
When the first preset application is installed in both the first electronic device and the second electronic device, the first preset application in the second electronic device completes configuration of the first preset application according to the first authority change information, and the installation of the first preset application is completed. If the first preset application in the first electronic device is installed, the preset authority of the first preset application in the first electronic device changes, namely, the authority of the first preset application in the first electronic device changes relative to the authority of the first preset application installed in the second electronic device, and relevant information of new authority of the first preset application in the first electronic device is uploaded to a server, so that first authority change information in the server is updated.
Generating a permission change request according to the updated first permission change information, and sending the permission change request to the second electronic equipment, wherein the permission of the first preset application in the second electronic equipment is configured, so that only the first preset application in the second electronic equipment is updated, and the permission of the first preset application is updated in the updating process.
In addition, if the first preset application in the first electronic device is installed first, and the preset authority of the first preset application changes during installation, uploading related information of new authority of the first preset application in the first electronic device to a server, so that first authority changing information in the server is updated, generating an authority changing request according to the updated first authority changing information, and sending the authority changing request to the second electronic device.
The embodiment provides a control method of application rights, which is applied to a server, wherein the server is connected with at least one electronic device, and the electronic device is provided with at least one preset application capable of being unloaded, and the method comprises the following steps: acquiring preset first authority change information from a storage area of a server, wherein the first authority change information comprises preset authority of a first preset application; and sending the first permission change information to the first electronic equipment, so that the first electronic equipment configures the permission of the first preset application according to the preset permission in the first permission change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The method is described in detail in the embodiments provided by the invention, and the method can be implemented by adopting various devices, so that the invention also provides an electronic device, and specific embodiments are given below for details.
The embodiment discloses an electronic device, which has at least one detachable preset application, and the electronic device includes: a processor, wherein:
the processor is used for acquiring preset first authority changing information, wherein the first authority changing information comprises preset authorities of a first preset application, and the authorities of the first preset application are configured according to the preset authorities in the first authority changing information.
In the production process of the electronic equipment, a manufacturer configures a preset application, namely an uninstalled application, and the preset application is provided with preset permission.
And acquiring preset authority of the preset application in the process of installing the preset application.
In the process of installing the preset application, configuring the authority of the preset application according to the preset authority in the first authority change information, so that the authority configuration of the preset application is realized in the process of installing the preset application, and the configuration of the preset application is not completed when the electronic equipment leaves the factory.
When more than one preset application of the electronic device is provided, the first authority change information includes more than the preset authority of the first preset application, and further includes: preset permissions for other preset applications, such as: the preset authority of the second preset application. When the second preset application is installed, acquiring preset first authority changing information, and configuring the authority of the second preset application according to the preset authority of the second preset application in the first authority changing information.
The processor is further configured to: judging whether the electronic equipment is started for the first time according to the operation parameters, if so, judging that the state of the electronic equipment meets the preset condition, and executing the step of acquiring the preset first permission change information based on the condition met by the state of the electronic equipment.
Whether the electronic equipment is started for the first time or not can be judged according to the operation parameters of the electronic equipment, so that whether the electronic equipment is started for the first time or not can be automatically judged.
When the electronic equipment is started for the first time, the preset application is not installed, the preset application needs to be installed in the process of starting the electronic equipment for the first time, and the authority of the preset application needs to be configured in the process of installing the preset application, so that the state of the electronic equipment meets the condition of configuring the authority of the preset application. Therefore, when the electronic device is started for the first time, the preset first permission change information needs to be acquired.
When the electronic equipment is not started for the first time, the preset application is installed, and at the moment, the authority of the preset application is not required to be configured, so that if the electronic equipment is not started for the first time, the preset first authority change information is not required to be acquired.
The electronic device further includes: a memory.
The memory is used for storing first authority change information, the processor acquires the first authority change information stored in the memory, and the first authority change information is obtained by analyzing a data packet of a preset application to which the first authority change information belongs and is stored in the memory area.
When the data packet of the first preset application is arranged in the electronic equipment, but the data packet of the first preset application is not installed yet, the data packet of the first preset application is analyzed, preset authority change information of the first preset application is obtained, the preset authority change information of the first preset application is stored in a storage area of the electronic equipment, so that the preset authority change information of the first preset application, namely the first authority change information, is directly obtained from the storage area of the electronic equipment when the first preset application is installed, and the authority of the first preset application is configured according to the preset authority in the first authority change information, so that the authority of the first preset application is controlled.
The storage area of the electronic device stores not only first authority change information including preset authorities of a first preset application, but also authority change information including preset authorities of other preset applications. When the permission of the first preset application needs to be configured, first permission change information including preset permission of the first preset application needs to be acquired from a storage area of the electronic device, so that when more than one permission change information is stored in the storage area of the electronic device, flag information is set for the preset application so as to search the permission change information corresponding to the preset application, and the method is specific:
Acquiring first authority change information from a storage area of the electronic device, including: and acquiring the mark information of the first preset application, and acquiring the first authority change information corresponding to the first preset application from a storage area storing at least one authority change information according to the mark information of the first preset application.
Or the processor acquires preset first authority change information, which includes: the processor acquires first authority change information from the authority change information set stored in the server.
When the first preset application is installed, first authority change information containing preset authority of the first preset application is required to be acquired, the first authority change information is stored in a server in advance, and when the first preset application is installed, first, the first authority change information of the first preset application is acquired from the server.
When a certain electronic device needs to install a certain preset application, for example, the first preset application, the first authority changing information corresponding to the first preset application of the electronic device is obtained from the authority changing information set in the server, and then the authority of the first preset application is configured according to the preset authority in the first authority changing information, so that the authority of the first preset application is controlled.
The processor is further configured to: acquiring operation parameters of the electronic equipment, judging whether any preset application in the electronic equipment is in an installation state according to the operation parameters, if any preset application in the electronic equipment is in the installation state, judging that the state of the electronic equipment meets preset conditions, and executing the step of acquiring preset first permission change information based on the condition that the state of the electronic equipment meets the conditions.
When the electronic equipment is in a first starting state, a preset application in the electronic equipment is in an installation state, at the moment, first authority changing information containing preset authority of the preset application in the installation state is required to be acquired, the first authority changing information is given, and the authority of the preset application in the installation state is configured, so that the installation of the preset application is realized;
when the electronic device is in an operation state, determining whether a preset application is in an installation state in the electronic device according to operation parameters of the electronic device, wherein the preset application is in the installation state may include: downloading a new installation package after unloading the preset application, and installing the new installation package; may further include: and upgrading the installed preset application download upgrade package.
Whether the new installation package is downloaded after the preset application is unloaded, the new installation package is installed, or the installed preset application download upgrade package is upgraded, the preset application is in an installation state, first preset permission change information containing preset permission of the preset application is required to be obtained, and the permission of the preset application is configured according to the preset permission in the first permission change information, so that the configuration of the permission of the preset application being installed is realized.
The processor is further configured to, after configuring the rights of the first preset application according to the preset rights in the first rights change information: judging whether the first preset application is installed or not, wherein the new permission refers to permission which is not contained in the first permission change information, and if the new permission is related, uploading relevant information of the new permission to the server so that the server updates the first permission change information based on the relevant information of the new permission.
When the first authority changing information is stored in the server, if the authority which is not contained in the first authority changing information is related to the installation of the first preset application, uploading the related information of the authority which is not contained in the first authority changing information to the server so as to update the first authority changing information stored in the server, so that the called first authority changing information is updated first authority changing information when the preset application is installed next time;
When the first authority changing information is stored in the storage area of the electronic device, if the authority which is not contained in the first authority changing information is related to the installation of the first preset application, uploading the related information of the authority which is not contained in the first authority changing information to the storage area of the electronic device so as to update the first authority changing information stored in the storage area of the electronic device, so that the called first authority changing information is updated first authority changing information when the preset application is installed next time.
The embodiment provides an electronic device with at least one detachable preset application, comprising: acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application; and configuring the authority of the first preset application according to the preset authority in the first authority change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
The embodiment discloses a server, the server is in communication connection with at least one electronic device, and the structure schematic diagram of the server is shown in fig. 10, including:
a processor 101 and a memory 102.
Wherein the memory 102 is used for storing the first authority change information.
The processor 101 is configured to obtain first permission change information from the memory 102, and send the first permission change information to the first electronic device, so that the first electronic device configures a permission of a first preset application according to a preset permission in the first permission change information.
In the production process of the electronic equipment, a manufacturer configures a preset application, namely an uninstalled application, and the preset application is provided with preset permission.
And acquiring preset authority of the preset application in the process of installing the preset application.
When the first preset application is installed, first authority change information containing preset authority of the first preset application is required to be acquired, the first authority change information is stored in a server in advance, and when the first preset application is installed, first, the first authority change information of the first preset application is acquired from the server.
In the process of installing the preset application, configuring the authority of the preset application according to the preset authority in the first authority change information, so that the authority configuration of the preset application is realized in the process of installing the preset application, and the configuration of the preset application is not completed when the electronic equipment leaves the factory.
When a certain electronic device needs to install a certain preset application, for example, the first preset application, the first authority changing information corresponding to the first preset application of the electronic device is obtained from the authority changing information set in the server, and then the authority of the first preset application is configured according to the preset authority in the first authority changing information, so that the authority of the first preset application is controlled.
The processor 101 is further configured to, before retrieving the first rights change information from the memory 102: and receiving a permission list request sent by the first electronic equipment.
And receiving a permission list request sent by the first electronic equipment, namely sending the permission list request to a server when the first electronic equipment is provided with the requirement for configuring the permission of the preset application, and then sending permission change information to the first electronic equipment by the server.
The processor 101 is also configured to: and receiving the related information of the new authority uploaded by the first electronic equipment, wherein the new authority refers to the authority which is not contained in the first authority change information, and updating the first authority change information based on the related information of the new authority.
If the authority which is not contained in the first authority change information is related to the installation of the first preset application, uploading the related information of the authority which is not contained in the first authority change information to a server so as to update the first authority change information stored in the server, so that the called first authority change information is updated first authority change information when the preset application is installed next time.
The processor 101 is further configured to generate a permission change request according to the updated first permission change information, send the permission change request to the second electronic device, so that the second electronic device determines whether there is a first preset application corresponding to the flag information according to the flag information carried in the permission change request, receive an application permission request fed back by the second electronic device, where the application permission request is generated by the second electronic device based on the first preset application corresponding to the flag information, and send the updated first permission change information to the second electronic device, so that the second electronic device configures the permission of the first preset application based on the preset permission in the updated first permission change information.
When the first preset application is installed in both the first electronic device and the second electronic device, the first preset application in the second electronic device completes configuration of the first preset application according to the first authority change information, and the installation of the first preset application is completed. If the first preset application in the first electronic device is installed, the preset authority of the first preset application in the first electronic device changes, namely, the authority of the first preset application in the first electronic device changes relative to the authority of the first preset application installed in the second electronic device, and relevant information of new authority of the first preset application in the first electronic device is uploaded to a server, so that first authority change information in the server is updated.
Generating a permission change request according to the updated first permission change information, and sending the permission change request to the second electronic equipment, wherein the permission of the first preset application in the second electronic equipment is configured, so that only the first preset application in the second electronic equipment is updated, and the permission of the first preset application is updated in the updating process.
In addition, if the first preset application in the first electronic device is installed first, and the preset authority of the first preset application changes during installation, uploading related information of new authority of the first preset application in the first electronic device to a server, so that first authority changing information in the server is updated, generating an authority changing request according to the updated first authority changing information, and sending the authority changing request to the second electronic device.
The embodiment provides a server, the server is connected with at least one electronic device, the electronic device has at least one preset application capable of being uninstalled, and the server comprises: acquiring preset first authority change information from a storage area of a server, wherein the first authority change information comprises preset authority of a first preset application; and sending the first permission change information to the first electronic equipment, so that the first electronic equipment configures the permission of the first preset application according to the preset permission in the first permission change information. In the scheme, the permission change information for performing permission configuration on the preset application of the electronic equipment is obtained in real time, and the preset application installed by the electronic equipment is configured when the electronic equipment leaves a factory instead of being completely configured, so that the real-time performance of application permission control and management is improved.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. The device provided in the embodiment corresponds to the method provided in the embodiment, so that the description is simpler, and the relevant points refer to the description of the method.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (10)

1. A method for controlling application rights, applied to an electronic device having at least one offloadable preset application, the method comprising:
acquiring preset first authority change information, wherein the first authority change information comprises preset authority of a first preset application, and the first authority change information is acquired in real time;
configuring the authority of the first preset application according to the preset authority in the first authority change information so as to realize the configuration of the authority of the first preset application in the process of installing the first preset application;
if the authority which is not included in the first authority changing information is related to the installation of the first preset application, storing related information of the authority which is not included in the first authority changing information so as to update the first authority changing information stored in a storage area of the electronic equipment, so that when the first preset application is installed next time, the called first authority changing information is the first authority changing information updated in the storage area.
2. The method according to claim 1, wherein before the obtaining the preset first rights change information, the method further includes:
judging whether the electronic equipment is started for the first time according to the operation parameters of the electronic equipment;
if the electronic equipment is started for the first time, judging that the state of the electronic equipment meets a preset condition;
and executing the step of acquiring the preset first permission change information based on the condition that the state of the electronic equipment meets the condition.
3. The method according to claim 1, wherein the obtaining the preset first authority change information includes:
acquiring the first authority change information from a storage area of the electronic equipment, wherein the first authority change information is obtained by analyzing a data packet of a preset application to which the first authority change information belongs and is stored in the storage area;
or alternatively
And acquiring the first authority change information from the authority change information set stored in the server.
4. The method according to claim 1, further comprising, before acquiring the preset first authority change information:
acquiring operation parameters of the electronic equipment;
judging whether any preset application in the electronic equipment is in an installation state or not according to the operation parameters;
If any preset application in the electronic equipment is in an installation state, judging that the state of the electronic equipment meets a preset condition;
and executing the step of acquiring the preset first permission change information based on the condition that the state of the electronic equipment meets the condition.
5. The method according to claim 4, wherein after configuring the rights of the first preset application according to the preset rights in the first rights change information, further comprising:
judging whether a new authority is related to the installation of the first preset application, wherein the new authority refers to an authority which is not contained in the first authority change information;
if the new authority is related, uploading the related information of the new authority to a server, so that the server updates the first authority change information based on the related information of the new authority.
6. A method for controlling application rights, applied to a server, the server being connected to at least one electronic device, the electronic device having at least one offloadable preset application therein, the method comprising:
acquiring first authority change information from a storage area of the server, wherein the first authority change information is acquired in real time;
The first authority changing information is sent to first electronic equipment, so that the first electronic equipment configures the authority of a first preset application according to preset authorities in the first authority changing information, and the authority of the first preset application is configured in the installation process of the first preset application;
if the authority which is not included in the first authority changing information is related to the installation of the first preset application, storing related information of the authority which is not included in the first authority changing information so as to update the first authority changing information stored in a storage area of the electronic equipment, so that when the first preset application is installed next time, the called first authority changing information is the first authority changing information updated in the storage area.
7. The method as recited in claim 6, further comprising:
receiving related information of new rights uploaded by the first electronic device, wherein the new rights refer to rights which are not contained in the first rights change information;
and updating the first authority change information based on the related information of the new authority.
8. The method as recited in claim 7, further comprising:
Generating a permission change request according to the updated first permission change information;
the permission change request is sent to second electronic equipment, so that the second electronic equipment judges whether a first preset application corresponding to the mark information exists or not according to the mark information carried in the permission change request;
receiving an application permission request fed back by the second electronic equipment, wherein the application permission request is generated by the second electronic equipment based on a first preset application corresponding to the mark information;
and sending the updated first permission change information to the second electronic equipment, so that the second electronic equipment configures the permission of the first preset application based on the preset permission in the updated first permission change information.
9. An electronic device having at least one offloadable preset application therein, comprising: a processor, wherein:
the processor is used for acquiring preset first authority change information, the first authority change information comprises preset authorities of a first preset application, and the authorities of the first preset application are configured according to the preset authorities in the first authority change information, wherein the first authority change information is acquired in real time so as to configure the authorities of the first preset application in the installation process of the first preset application;
If the authority which is not included in the first authority changing information is related to the installation of the first preset application, storing related information of the authority which is not included in the first authority changing information so as to update the first authority changing information stored in a storage area of the electronic equipment, so that when the first preset application is installed next time, the called first authority changing information is the first authority changing information updated in the storage area.
10. A server communicatively coupled to at least one electronic device, comprising: a processor and a memory, wherein:
the memory is used for storing first authority change information;
the processor is configured to acquire first permission change information from the memory, and send the first permission change information to a first electronic device, so that the first electronic device configures permissions of a first preset application according to preset permissions in the first permission change information, where the first permission change information is acquired in real time, so as to configure the permissions of the first preset application in the installation process of the first preset application;
if the authority which is not included in the first authority changing information is related to the installation of the first preset application, storing related information of the authority which is not included in the first authority changing information so as to update the first authority changing information stored in a storage area of the electronic equipment, so that when the first preset application is installed next time, the called first authority changing information is the first authority changing information updated in the storage area.
CN201710209561.6A 2017-03-31 2017-03-31 Control method of application permission, electronic equipment and server Active CN106980792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209561.6A CN106980792B (en) 2017-03-31 2017-03-31 Control method of application permission, electronic equipment and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209561.6A CN106980792B (en) 2017-03-31 2017-03-31 Control method of application permission, electronic equipment and server

Publications (2)

Publication Number Publication Date
CN106980792A CN106980792A (en) 2017-07-25
CN106980792B true CN106980792B (en) 2023-07-21

Family

ID=59339478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209561.6A Active CN106980792B (en) 2017-03-31 2017-03-31 Control method of application permission, electronic equipment and server

Country Status (1)

Country Link
CN (1) CN106980792B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664259B (en) * 2018-04-02 2022-04-15 青岛海信移动通信技术股份有限公司 Method and terminal for installing application
CN109815680B (en) * 2018-12-27 2021-08-31 歌尔股份有限公司 Application authority management method and device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514006A (en) * 2012-07-24 2014-01-15 Tcl集团股份有限公司 Method and system of upgrade of pre-installed applications of Android system
CN105095788A (en) * 2015-06-30 2015-11-25 北京奇虎科技有限公司 Method, device and system for private data protection
CN106529332A (en) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 Permission control method and apparatus for mobile terminal, and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499152A (en) * 2008-12-26 2009-08-05 北京握奇数据系统有限公司 Method, equipment and system for implementing security mobile payment
CN102521031B (en) * 2011-12-13 2014-11-05 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN106022091A (en) * 2016-05-11 2016-10-12 青岛海信移动通信技术股份有限公司 Authorization method and device of application program
CN105933358B (en) * 2016-07-11 2019-09-10 福建方维信息科技有限公司 A kind of online real-time authentication method in application program internet and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514006A (en) * 2012-07-24 2014-01-15 Tcl集团股份有限公司 Method and system of upgrade of pre-installed applications of Android system
CN105095788A (en) * 2015-06-30 2015-11-25 北京奇虎科技有限公司 Method, device and system for private data protection
CN106529332A (en) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 Permission control method and apparatus for mobile terminal, and mobile terminal

Also Published As

Publication number Publication date
CN106980792A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
US8997087B2 (en) Method and system for device configuration and customization during manufacturing process
EP2456257B1 (en) Method and system for upgrading wireless data card
US8990361B2 (en) Method and system for proximity-based, peer-initiated device configuration
US20140173588A1 (en) Software update service method and apparatus for mobile terminal
CN107526605B (en) Method and device for realizing application program loading service assembly
WO2018040914A1 (en) Container generation method, device, terminal, server and system
CN104199706A (en) Firmware upgrade method and device for eMMC
CN102364891A (en) Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
RU2008144691A (en) SYSTEM AND METHOD FOR UPDATING THE PROGRAM FOR MOBILE TERMINAL WITH OTA SUPPORT
CN101393524A (en) Firmware update method and system using the same
RU2016121864A (en) METHOD AND APPARATUS FOR DEVICE MANAGEMENT
CN106980792B (en) Control method of application permission, electronic equipment and server
CN107102849B (en) Method and apparatus for file replacement with periodic ignition switch off
EP3091435A1 (en) Resource management method and device for terminal system
KR101672868B1 (en) Method and system for provisioning software in internet of thing(IOT) device
GB2454583A (en) Remote management of mobile devices
CN109547536B (en) Method and system for automatically identifying type of intelligent gateway equipment and upgrading software version
CN112152832B (en) Management object processing method and device, related equipment and storage medium
CN106412096B (en) Method, device and system for deploying service
CN111338681A (en) Firmware upgrading method and system for equipment
JP2021111115A (en) Communication control system
CN106155705B (en) Electronic equipment and OTA (over-the-air technology) repairing method
KR20040022020A (en) Display device and method for upgrading firmware remotely
US11321065B2 (en) Method and a system for installation of an instrument
JP5957400B2 (en) Information terminal, terminal management system, terminal management method, and installation support program

Legal Events

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