WO2021143669A1 - Method for acquiring configuration information and electronic device - Google Patents

Method for acquiring configuration information and electronic device Download PDF

Info

Publication number
WO2021143669A1
WO2021143669A1 PCT/CN2021/071246 CN2021071246W WO2021143669A1 WO 2021143669 A1 WO2021143669 A1 WO 2021143669A1 CN 2021071246 W CN2021071246 W CN 2021071246W WO 2021143669 A1 WO2021143669 A1 WO 2021143669A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration information
application program
electronic device
input
processor
Prior art date
Application number
PCT/CN2021/071246
Other languages
French (fr)
Chinese (zh)
Inventor
于磊明
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021143669A1 publication Critical patent/WO2021143669A1/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

Definitions

  • the present invention relates to the technical field of electronic equipment, and in particular to a method and electronic equipment for obtaining configuration information.
  • an application program usually obtains corresponding configuration information from the cloud when it is started, and loads it according to the configuration information.
  • the traditional method of obtaining configuration information for an application has the following drawbacks: If the configuration information is incorrect, the application may crash, and if the application crashes during the startup phase, the updated and correct configuration information cannot be obtained from the cloud. Therefore, the prior art cannot solve the problem that the application program crashes during the startup phase.
  • the embodiment of the present invention provides a method and electronic device for obtaining configuration information, so as to solve the problem of the application program crashing during the startup phase.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides a method for obtaining configuration information, which is applied to an electronic device, and the method includes: receiving a first input from a user; in response to the first input, starting a first application; A first process acquires configuration information of the first application program, where the first process is a process independent of the first application program; and configures the first application program according to the configuration information.
  • an embodiment of the present invention also provides an electronic device.
  • the electronic device includes: a first receiving module, configured to receive a first input from a user; and a response module, configured to activate in response to the first input A first application program; a first acquisition module for acquiring configuration information of the first application program through a first process, the first process being a process independent of the first application program; a configuration module for acquiring configuration information according to The configuration information configures the first application program.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor.
  • the steps of the method for obtaining configuration information are realized during execution.
  • an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the method for obtaining configuration information is implemented. step.
  • the configuration information of the first application program is obtained through the first process independent of the first application program, which solves the problem of the first application program crashing during the startup phase.
  • FIG. 1 is a flowchart of steps of a method for obtaining configuration information according to an embodiment of the present invention
  • FIG. 2 is a flowchart of the steps of yet another method for obtaining configuration information according to an embodiment of the present invention
  • FIG. 3 is a flow chart of the steps of another method for obtaining configuration information according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a possible structure of an electronic device provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the hardware structure of an electronic device according to various embodiments of the present invention.
  • the method for obtaining configuration information includes the following steps:
  • Step 101 Receive the user's first input
  • Step 102 In response to the first input, start a first application
  • the first input may be a click operation, a long press operation, a double-click operation, etc., on the first application program, or may be a language input, a gesture input, etc., which is not specifically limited in the embodiment of the present invention.
  • Step 103 Acquire configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
  • Step 104 Configure the first application program according to the configuration information.
  • the first application program may be one or more.
  • a visual management configuration page can also be made, so that all the configuration information of the first application can be visually operated on the visual management configuration page.
  • the configuration information may be HTML files, CSS files, JavaScript script files, text, pictures, etc., which are not limited in the embodiment of the present invention.
  • acquiring the configuration information of the first application through the first process may be acquiring the locally stored configuration information of the first application through the first process, or the electronic device may send the identification information of the first application to the server The server identifies and issues the configuration information of the first application program according to the identification information, and the electronic device receives the configuration information of the first application program through the first process.
  • the configuration information includes authority information.
  • the configuration information of the first application program is obtained through a first process independent of the first application program, which solves the problem that the first application program caused by the configuration information error The program crashes during the startup phase.
  • FIG. 2 there is shown a flow chart of still another method for obtaining configuration information according to an embodiment of the present invention.
  • Step 201 Obtain and store the configuration information of the first application program from the server through the first process according to a preset time interval;
  • Step 202 Receive the user's first input
  • Step 203 In response to the first input, start the first application
  • Step 204 Acquire configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
  • Step 205 Configure the first application program according to the configuration information.
  • the preset time interval can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention.
  • a Timing (timing task) can be set for the first process, and the configuration information of the first application program can be obtained from the server according to a preset time interval in a manner of timing pull.
  • storing the configuration information of the first application program through the first process may be storing the configuration information of the first application program through a local disk file, or may be storing the configuration information of the first application program through a ContentProvider (shared database).
  • the electronic device obtains and stores the configuration information of the first application program from the server through the first process at a preset time interval, and the configuration information of the first application program can be periodically updated in the local storage.
  • Configuration information so that the configuration information of the first application can be updated without starting the first application, and the configuration information of the first application is stored locally, and there is no need to obtain it from the cloud when the first application is started, which solves the problem of configuration Information errors cause the first application to crash during the startup phase.
  • FIG. 3 there is shown a step flow chart of another method for obtaining configuration information according to an embodiment of the present invention.
  • Step 301 When the configuration information of the first application program in the server changes, receive and store the configuration information of the first application program sent by the server through the first process;
  • Step 302 Receive the user's first input
  • Step 303 In response to the first input, start the first application
  • Step 304 Acquire configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
  • Step 305 Configure the first application program according to the configuration information.
  • the push SDK can be connected to the first process, and a persistent connection message channel is established through push SDK and the cloud.
  • a persistent connection message channel is established through push SDK and the cloud.
  • the configuration information of the first application in the cloud server is updated, it is pushed through the message channel through the push service center.
  • the configuration information of the first application to the client.
  • the first process receives the push, it parses the configuration information, and then stores the configuration information.
  • the configuration information of the first application program may be saved through a local disk file, or the configuration information of the first application program may be saved through a ContentProvider (shared database).
  • a configuration information that disables certain software development kits can be configured. It is sent to the first process through the cloud. When the background of the first application is pulled up, the configuration information for disabling certain software development kits can be read through the first process. Take effect under circumstances.
  • the configuration information of the first application program in the server when the configuration information of the first application program in the server is changed, the first application program sent by the server is received and stored through the first process
  • the configuration information of the first application can be updated more timely.
  • An electronic device provided by an embodiment of the present invention can implement each process of the foregoing method embodiment for obtaining configuration information, and can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
  • the electronic device 300 provided by the embodiment of the present invention includes:
  • the first receiving module 301 is configured to receive the first input of the user
  • the response module 302 is configured to start a first application in response to the first input
  • the first obtaining module 303 is configured to obtain configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
  • the configuration module 304 is configured to configure the first application program according to the configuration information.
  • the electronic device 300 further includes: a second obtaining module, configured to obtain and store the configuration information of the first application program from the server through the first process according to a preset time interval.
  • a second obtaining module configured to obtain and store the configuration information of the first application program from the server through the first process according to a preset time interval.
  • the electronic device 300 further includes: a second receiving module, configured to receive and store all information sent by the server through the first process when the configuration information of the first application in the server changes. Describe the configuration information of the first application.
  • the electronic device provided by the embodiment of the present invention obtains the configuration information of the first application program through a first process independent of the first application program during the startup phase of the first application program, which solves the problem that the first application program is started due to configuration information errors.
  • the problem of phase collapse is the reason for which the configuration information of the first application program is started due to configuration information errors.
  • the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • a radio frequency unit 501 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers
  • the user input unit 507 may be used to receive the first input of the user
  • the processor 510 may be configured to start a first application program in response to the first input; obtain configuration information of the first application program through a first process, the first process being independent of the first application program Process; configure the first application program according to the configuration information.
  • the processor 510 may be further configured to obtain and store the configuration information of the first application program from the server through the first process according to a preset time interval.
  • the processor 510 may be further configured to receive and store the information of the first application sent by the server through the first process when the configuration information of the first application in the server changes. Configuration information.
  • the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; Uplink data is sent to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 503 can convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used to receive audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 506.
  • the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
  • the electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 506 is used to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 507 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • the touch panel 5071 also known as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operate).
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
  • the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 5071 can be overlaid on the display panel 5061.
  • the touch panel 5071 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 508 is an interface for connecting an external device and the electronic device 500.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 500 or can be used to connect the electronic device 500 to an external device. Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the electronic device 500 may also include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 500 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 510, a memory 509, a computer program stored on the memory 509 and running on the processor 510, and when the computer program is executed by the processor 510.
  • an electronic device including a processor 510, a memory 509, a computer program stored on the memory 509 and running on the processor 510, and when the computer program is executed by the processor 510.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the foregoing method for obtaining configuration information is realized, and the same can be achieved. In order to avoid repetition, I won’t repeat them here.
  • the computer-readable storage medium include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), and magnetic CD or CD, etc.
  • Such a processor can be, but is not limited to, a general-purpose processor, a dedicated processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block in the block diagram and/or flowchart and the combination of the blocks in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by dedicated hardware and A combination of computer instructions.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Provided are a method for acquiring configuration information and an electronic device. The method comprises: receiving a first input from a user; in response to the first input, starting a first application program; acquiring configuration information of the first application program by means of a first process, wherein the first process is a process independent of the first application program; and configuring the first application program according to the configuration information.

Description

一种获取配置信息的方法及电子设备Method and electronic equipment for obtaining configuration information
相关申请的交叉引用Cross-references to related applications
本申请主张在2020年01月19日在中国提交的中国专利申请号202010059986.5的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 202010059986.5 filed in China on January 19, 2020, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明涉及电子设备技术领域,特别是涉及一种获取配置信息的方法及电子设备。The present invention relates to the technical field of electronic equipment, and in particular to a method and electronic equipment for obtaining configuration information.
背景技术Background technique
目前,随着智能设备的普及,电子设备已经成为我们生活中的一部分,电子设备中通常都安装有许多应用程序。现有技术中,应用程序通常在启动时从云端获取对应的配置信息,根据配置信息进行加载。At present, with the popularization of smart devices, electronic devices have become a part of our lives, and many applications are usually installed in electronic devices. In the prior art, an application program usually obtains corresponding configuration information from the cloud when it is started, and loads it according to the configuration information.
然而,传统的应用程序获取配置信息的方法,存在以下缺陷:如果配置信息不正确,可能导致应用程序崩溃,如果应用程序在启动阶段就崩溃,就无法从云端获取更新后正确的配置信息。因此,现有技术无法解决应用程序在启动阶段崩溃的问题。However, the traditional method of obtaining configuration information for an application has the following drawbacks: If the configuration information is incorrect, the application may crash, and if the application crashes during the startup phase, the updated and correct configuration information cannot be obtained from the cloud. Therefore, the prior art cannot solve the problem that the application program crashes during the startup phase.
发明内容Summary of the invention
本发明实施例提供一种获取配置信息的方法及电子设备,以解决应用程序在启动阶段崩溃的问题。The embodiment of the present invention provides a method and electronic device for obtaining configuration information, so as to solve the problem of the application program crashing during the startup phase.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
第一方面,本发明实施例提供了一种获取配置信息的方法,应用于电子设备,所述方法包括:接收用户的第一输入;响应于所述第一输入,启动第一应用程序;通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;根据所述配置信息对所述第 一应用程序进行配置。In the first aspect, an embodiment of the present invention provides a method for obtaining configuration information, which is applied to an electronic device, and the method includes: receiving a first input from a user; in response to the first input, starting a first application; A first process acquires configuration information of the first application program, where the first process is a process independent of the first application program; and configures the first application program according to the configuration information.
第二方面,本发明实施例还提供了一种电子设备,所述电子设备包括:第一接收模块,用于接收用户的第一输入;响应模块,用于响应于所述第一输入,启动第一应用程序;第一获取模块,用于通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;配置模块,用于根据所述配置信息对所述第一应用程序进行配置。In a second aspect, an embodiment of the present invention also provides an electronic device. The electronic device includes: a first receiving module, configured to receive a first input from a user; and a response module, configured to activate in response to the first input A first application program; a first acquisition module for acquiring configuration information of the first application program through a first process, the first process being a process independent of the first application program; a configuration module for acquiring configuration information according to The configuration information configures the first application program.
第三方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述的获取配置信息的方法的步骤。In a third aspect, an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor. The steps of the method for obtaining configuration information are realized during execution.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现所述的获取配置信息的方法的步骤。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for obtaining configuration information is implemented. step.
在本发明实施例中,在第一应用程序启动阶段,通过与第一应用程序独立的第一进程获取第一应用程序的配置信息,解决了第一应用程序在启动阶段崩溃的问题。In the embodiment of the present invention, during the startup phase of the first application program, the configuration information of the first application program is obtained through the first process independent of the first application program, which solves the problem of the first application program crashing during the startup phase.
附图说明Description of the drawings
图1是本发明实施例提供的一种获取配置信息的方法的步骤流程图;FIG. 1 is a flowchart of steps of a method for obtaining configuration information according to an embodiment of the present invention;
图2是本发明实施例提供的再一种获取配置信息的方法的步骤流程图;FIG. 2 is a flowchart of the steps of yet another method for obtaining configuration information according to an embodiment of the present invention;
图3是本发明实施例提供的又一种获取配置信息的方法的步骤流程图;FIG. 3 is a flow chart of the steps of another method for obtaining configuration information according to an embodiment of the present invention;
图4为本发明实施例提供的一种电子设备可能的结构示意图;4 is a schematic diagram of a possible structure of an electronic device provided by an embodiment of the present invention;
图5为本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device according to various embodiments of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而 不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
实施例一Example one
参照图1,示出了本发明实施例提供的一种获取配置信息的方法的步骤流程图。本发明实施例提供的获取配置信息的方法包括以下步骤:1, it shows a flowchart of a method for obtaining configuration information according to an embodiment of the present invention. The method for obtaining configuration information provided by the embodiment of the present invention includes the following steps:
步骤101:接收用户的第一输入;Step 101: Receive the user's first input;
步骤102:响应于所述第一输入,启动第一应用程序;Step 102: In response to the first input, start a first application;
其中,第一输入可以为对第一应用程序的点击操作、长按操作、双击操作等,也可以是语言输入、手势输入等,本发明实施例对此不作具体限制。The first input may be a click operation, a long press operation, a double-click operation, etc., on the first application program, or may be a language input, a gesture input, etc., which is not specifically limited in the embodiment of the present invention.
步骤103:通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;Step 103: Acquire configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
步骤104:根据所述配置信息对所述第一应用程序进行配置。Step 104: Configure the first application program according to the configuration information.
在第一应用程序启动的时候,另外开启一个与第一应用程序独立的第一进程,通过第一进程获取第一应用程序的配置信息。When the first application program is started, another first process independent of the first application program is started, and the configuration information of the first application program is obtained through the first process.
其中,第一应用程序可以为一个或多个。可选的,还可以制作可视化管理配置页面,从而在可视化管理配置页面中对所有第一应用的配置信息进行可视化操作。Among them, the first application program may be one or more. Optionally, a visual management configuration page can also be made, so that all the configuration information of the first application can be visually operated on the visual management configuration page.
其中,配置信息可以是HTML文件、CSS文件、JavaScript脚本文件、文字、图片等,本发明实施例对此不做限定。The configuration information may be HTML files, CSS files, JavaScript script files, text, pictures, etc., which are not limited in the embodiment of the present invention.
可选的,通过第一进程获取第一应用程序的配置信息可以是通过第一进程获取本地存储的第一应用程序的配置信息,也可以是电子设备将第一应用程序的标识信息发送至服务器,服务器根据标识信息识别并下发第一应用程序的配置信息,电子设备通过第一进程接收第一应用程序的配置信息。Optionally, acquiring the configuration information of the first application through the first process may be acquiring the locally stored configuration information of the first application through the first process, or the electronic device may send the identification information of the first application to the server The server identifies and issues the configuration information of the first application program according to the identification information, and the electronic device receives the configuration information of the first application program through the first process.
可选的,所述配置信息包括权限信息。Optionally, the configuration information includes authority information.
这样,只有申请了权限的应用程序才能通过第一进程获取配置信息,可以避免数据泄露。In this way, only applications that have applied for permissions can obtain configuration information through the first process, which can avoid data leakage.
本发明实施例提供的获取配置信息的方法,在第一应用程序启动阶段,通过与第一应用程序独立的第一进程获取第一应用程序的配置信息,解决了因配置信息错误导致第一应用程序在启动阶段崩溃的问题。In the method for obtaining configuration information provided by the embodiment of the present invention, in the startup phase of the first application program, the configuration information of the first application program is obtained through a first process independent of the first application program, which solves the problem that the first application program caused by the configuration information error The program crashes during the startup phase.
实施例二Example two
参照图2,示出了本发明实施例提供的再一种获取配置信息的方法的步骤流程图。Referring to FIG. 2, there is shown a flow chart of still another method for obtaining configuration information according to an embodiment of the present invention.
本发明实施例提供的获取配置信息的方法包括以下步骤:The method for obtaining configuration information provided by the embodiment of the present invention includes the following steps:
步骤201:按照预设时间间隔,通过所述第一进程从服务器中获取并存储所述第一应用程序的配置信息;Step 201: Obtain and store the configuration information of the first application program from the server through the first process according to a preset time interval;
步骤202:接收用户的第一输入;Step 202: Receive the user's first input;
步骤203:响应于所述第一输入,启动第一应用程序;Step 203: In response to the first input, start the first application;
步骤204:通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;Step 204: Acquire configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
步骤205:根据所述配置信息对所述第一应用程序进行配置。Step 205: Configure the first application program according to the configuration information.
其中,所述预设时间间隔可以根据实际情况设置,本发明实施例对此不作具体限制。Wherein, the preset time interval can be set according to actual conditions, which is not specifically limited in the embodiment of the present invention.
可选的,可以给第一进程设置一个Timing(定时任务),通过定时拉取的方式,按照预设时间间隔从服务器中获取第一应用程序的配置信息。Optionally, a Timing (timing task) can be set for the first process, and the configuration information of the first application program can be obtained from the server according to a preset time interval in a manner of timing pull.
可选的,通过第一进程存储第一应用程序的配置信息可以是通过本地磁盘文件保存第一应用程序的配置信息,也可以是通过ContentProvider(共享数据库)保存第一应用程序的配置信息。Optionally, storing the configuration information of the first application program through the first process may be storing the configuration information of the first application program through a local disk file, or may be storing the configuration information of the first application program through a ContentProvider (shared database).
本发明实施例提供的获取配置信息的方法,电子设备按照预设时间间隔,通过第一进程从服务器中获取并存储第一应用程序的配置信息,可以在本地存储中定期更新第一应用程序的配置信息,这样无需启动第一应用程序就可以更新第一应用程序的配置信息,并且将第一应用程序的配置信息存储在本地,无需在第一应用程序启动时从云端获取,解决了因配置信息错误导致第一应用程序在启动阶段崩溃的问题。According to the method for obtaining configuration information provided by the embodiment of the present invention, the electronic device obtains and stores the configuration information of the first application program from the server through the first process at a preset time interval, and the configuration information of the first application program can be periodically updated in the local storage. Configuration information, so that the configuration information of the first application can be updated without starting the first application, and the configuration information of the first application is stored locally, and there is no need to obtain it from the cloud when the first application is started, which solves the problem of configuration Information errors cause the first application to crash during the startup phase.
实施例三Example three
参照图3,示出了本发明实施例提供的又一种获取配置信息的方法的 步骤流程图。Referring to Fig. 3, there is shown a step flow chart of another method for obtaining configuration information according to an embodiment of the present invention.
本发明实施例提供的获取配置信息的方法包括以下步骤:The method for obtaining configuration information provided by the embodiment of the present invention includes the following steps:
步骤301:在服务器中所述第一应用程序的配置信息发生变更的情况下,通过所述第一进程接收并存储所述服务器发送的所述第一应用程序的配置信息;Step 301: When the configuration information of the first application program in the server changes, receive and store the configuration information of the first application program sent by the server through the first process;
步骤302:接收用户的第一输入;Step 302: Receive the user's first input;
步骤303:响应于所述第一输入,启动第一应用程序;Step 303: In response to the first input, start the first application;
步骤304:通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;Step 304: Acquire configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
步骤305:根据所述配置信息对所述第一应用程序进行配置。Step 305: Configure the first application program according to the configuration information.
可选的,可以在第一进程接入push sdk,通过push sdk和云端建立一个长连接消息通道,当云端服务器中第一应用程序的配置信息更新的时候,通过push业务中台通过消息通道推送第一应用程序的配置信息到客户端。第一进程收到push后,解析配置信息,然后存储配置信息。Optionally, the push SDK can be connected to the first process, and a persistent connection message channel is established through push SDK and the cloud. When the configuration information of the first application in the cloud server is updated, it is pushed through the message channel through the push service center. The configuration information of the first application to the client. After the first process receives the push, it parses the configuration information, and then stores the configuration information.
可选的,可以通过本地磁盘文件保存第一应用程序的配置信息,也可以通过ContentProvider(共享数据库)保存第一应用程序的配置信息。Optionally, the configuration information of the first application program may be saved through a local disk file, or the configuration information of the first application program may be saved through a ContentProvider (shared database).
可选的,当第一应用程序发布后需要对第一应用程序的配置信息进行更改,例如禁用某些软件开发工具包(sdk)时,可以配置一个禁用某些软件开发工具包的配置信息,通过云端下发给第一进程,当第一应用程序后台被拉起的时候,就可以通过第一进程读取到禁用某些软件开发工具包的配置信息,可以在不打开第一应用程序的情况下生效。Optionally, when the configuration information of the first application program needs to be changed after the first application program is released, for example, when certain software development kits (SDKs) are disabled, a configuration information that disables certain software development kits can be configured. It is sent to the first process through the cloud. When the background of the first application is pulled up, the configuration information for disabling certain software development kits can be read through the first process. Take effect under circumstances.
本发明实施例提供的获取配置信息的方法,在服务器中所述第一应用程序的配置信息发生变更的情况下,通过所述第一进程接收并存储所述服务器发送的所述第一应用程序的配置信息,可以更及时地更新第一应用程序的配置信息。In the method for obtaining configuration information provided by the embodiment of the present invention, when the configuration information of the first application program in the server is changed, the first application program sent by the server is received and stored through the first process The configuration information of the first application can be updated more timely.
实施例四Example four
本发明实施例提供的一种电子设备,能实现上述获取配置信息的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An electronic device provided by an embodiment of the present invention can implement each process of the foregoing method embodiment for obtaining configuration information, and can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
如图4所示,本发明实施例提供的电子设备300包括:As shown in FIG. 4, the electronic device 300 provided by the embodiment of the present invention includes:
第一接收模块301,用于接收用户的第一输入;The first receiving module 301 is configured to receive the first input of the user;
响应模块302,用于响应于所述第一输入,启动第一应用程序;The response module 302 is configured to start a first application in response to the first input;
第一获取模块303,用于通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;The first obtaining module 303 is configured to obtain configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
配置模块304,用于根据所述配置信息对所述第一应用程序进行配置。The configuration module 304 is configured to configure the first application program according to the configuration information.
可选的,电子设备300还包括:第二获取模块,用于按照预设时间间隔,通过所述第一进程从服务器中获取并存储所述第一应用程序的配置信息。Optionally, the electronic device 300 further includes: a second obtaining module, configured to obtain and store the configuration information of the first application program from the server through the first process according to a preset time interval.
可选的,电子设备300还包括:第二接收模块,用于在服务器中所述第一应用程序的配置信息发生变更的情况下,通过所述第一进程接收并存储所述服务器发送的所述第一应用程序的配置信息。Optionally, the electronic device 300 further includes: a second receiving module, configured to receive and store all information sent by the server through the first process when the configuration information of the first application in the server changes. Describe the configuration information of the first application.
本发明实施例提供的电子设备,在第一应用程序启动阶段,通过与第一应用程序独立的第一进程获取第一应用程序的配置信息,解决了因配置信息错误导致第一应用程序在启动阶段崩溃的问题。The electronic device provided by the embodiment of the present invention obtains the configuration information of the first application program through a first process independent of the first application program during the startup phase of the first application program, which solves the problem that the first application program is started due to configuration information errors. The problem of phase collapse.
实施例五Example five
参照图5,为本发明各个实施例的一种电子设备的硬件结构示意图。5, which is a schematic diagram of the hardware structure of an electronic device according to various embodiments of the present invention.
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiment of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,用户输入单元507可以用于接收用户的第一输入;Wherein, the user input unit 507 may be used to receive the first input of the user;
处理器510可以用于响应于所述第一输入,启动第一应用程序;通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述 第一应用程序的进程;根据所述配置信息对所述第一应用程序进行配置。The processor 510 may be configured to start a first application program in response to the first input; obtain configuration information of the first application program through a first process, the first process being independent of the first application program Process; configure the first application program according to the configuration information.
可选的,处理器510还可以用于按照预设时间间隔,通过所述第一进程从服务器中获取并存储所述第一应用程序的配置信息。Optionally, the processor 510 may be further configured to obtain and store the configuration information of the first application program from the server through the first process according to a preset time interval.
可选的,处理器510还可以用于在服务器中所述第一应用程序的配置信息发生变更的情况下,通过所述第一进程接收并存储所述服务器发送的所述第一应用程序的配置信息。Optionally, the processor 510 may be further configured to receive and store the information of the first application sent by the server through the first process when the configuration information of the first application in the server changes. Configuration information.
应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信***与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; Uplink data is sent to the base station. Generally, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与电子设备500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 can convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 506. The image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
电子设备500还包括至少一种传感器505,比如光传感器、运动传感 器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在电子设备500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light. The proximity sensor can close the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元507可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071, also known as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operate). The touch panel 5071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed. In addition, the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事 件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 can be overlaid on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 5061. Although in FIG. 5, the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元508为外部装置与电子设备500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备500内的一个或多个元件或者可以用于在电子设备500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device and the electronic device 500. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 500 or can be used to connect the electronic device 500 to an external device. Transfer data between devices.
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器510是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
电子设备500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理***与处理器510逻辑相连,从而通 过电源管理***实现管理充电、放电、以及功耗管理等功能。The electronic device 500 may also include a power source 511 (such as a battery) for supplying power to various components. Preferably, the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备500包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 500 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述获取配置信息的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 510, a memory 509, a computer program stored on the memory 509 and running on the processor 510, and when the computer program is executed by the processor 510 The various processes of the foregoing method embodiments for obtaining configuration information are implemented, and the same technical effects can be achieved. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述获取配置信息的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质的示例包括非暂态计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing method for obtaining configuration information is realized, and the same can be achieved. In order to avoid repetition, I won’t repeat them here. Wherein, examples of the computer-readable storage medium include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), and magnetic CD or CD, etc.
上面参考根据本发明的实施例的方法、装置(***)和计算机程序产品的流程图和/或框图描述了本发明的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。The above describes various aspects of the present invention with reference to the flowcharts and/or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each block in the flowcharts and/or block diagrams and combinations of blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine that enables the execution of these instructions via the processor of the computer or other programmable data processing device Implementation of functions/actions specified in one or more blocks of the flowchart and/or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a dedicated processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block in the block diagram and/or flowchart and the combination of the blocks in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by dedicated hardware and A combination of computer instructions.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, all of which fall within the protection of the present invention.

Claims (10)

  1. 一种获取配置信息的方法,应用于电子设备,所述方法包括:A method for obtaining configuration information is applied to an electronic device, and the method includes:
    接收用户的第一输入;Receive the user's first input;
    响应于所述第一输入,启动第一应用程序;In response to the first input, start the first application;
    通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;Acquiring configuration information of the first application program through a first process, where the first process is a process independent of the first application program;
    根据所述配置信息对所述第一应用程序进行配置。Configure the first application program according to the configuration information.
  2. 根据权利要求1所述的获取配置信息的方法,其中,在所述接收用户的第一输入的步骤之前,所述方法还包括:The method for obtaining configuration information according to claim 1, wherein, before the step of receiving the first input of the user, the method further comprises:
    按照预设时间间隔,通过所述第一进程从服务器中获取并存储所述第一应用程序的配置信息。According to a preset time interval, the configuration information of the first application program is obtained and stored from the server through the first process.
  3. 根据权利要求1所述的获取配置信息的方法,其中,在所述接收用户的第一输入的步骤之前,所述方法还包括:The method for obtaining configuration information according to claim 1, wherein, before the step of receiving the first input of the user, the method further comprises:
    在服务器中所述第一应用程序的配置信息发生变更的情况下,通过所述第一进程接收并存储所述服务器发送的所述第一应用程序的配置信息。When the configuration information of the first application program in the server is changed, the configuration information of the first application program sent by the server is received and stored through the first process.
  4. 根据权利要求1所述的获取配置信息的方法,其中,所述第一应用程序的配置信息还包括权限信息。The method for obtaining configuration information according to claim 1, wherein the configuration information of the first application program further includes authority information.
  5. 一种电子设备,包括:An electronic device including:
    第一接收模块,用于接收用户的第一输入;The first receiving module is used to receive the first input of the user;
    响应模块,用于响应于所述第一输入,启动第一应用程序;The response module is used to start the first application in response to the first input;
    第一获取模块,用于通过第一进程获取所述第一应用程序的配置信息,所述第一进程为独立于所述第一应用程序的进程;A first obtaining module, configured to obtain configuration information of the first application program through a first process, the first process being a process independent of the first application program;
    配置模块,用于根据所述配置信息对所述第一应用程序进行配置。The configuration module is configured to configure the first application program according to the configuration information.
  6. 根据权利要求5所述的电子设备,其中,所述电子设备还包括:The electronic device according to claim 5, wherein the electronic device further comprises:
    第二获取模块,用于按照预设时间间隔,通过所述第一进程从服务器中获取并存储所述第一应用程序的配置信息。The second acquiring module is configured to acquire and store the configuration information of the first application program from the server through the first process according to a preset time interval.
  7. 根据权利要求5所述的电子设备,其中,所述电子设备还包括:The electronic device according to claim 5, wherein the electronic device further comprises:
    第二接收模块,用于在服务器中所述第一应用程序的配置信息发生变更的情况下,通过所述第一进程接收并存储所述服务器发送的所述第一应用程序的配置信息。The second receiving module is configured to receive and store the configuration information of the first application program sent by the server through the first process when the configuration information of the first application program in the server changes.
  8. 根据权利要求5所述的电子设备,其中,所述第一应用程序的配置信息还包括权限信息。The electronic device according to claim 5, wherein the configuration information of the first application program further includes authority information.
  9. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的获取配置信息的方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor to implement any of claims 1 to 4 One of the steps of the method for obtaining configuration information.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的获取配置信息的方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for obtaining configuration information according to any one of claims 1 to 4 are realized .
PCT/CN2021/071246 2020-01-19 2021-01-12 Method for acquiring configuration information and electronic device WO2021143669A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010059986.5A CN111309390A (en) 2020-01-19 2020-01-19 Method for acquiring configuration information and electronic equipment
CN202010059986.5 2020-01-19

Publications (1)

Publication Number Publication Date
WO2021143669A1 true WO2021143669A1 (en) 2021-07-22

Family

ID=71149017

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071246 WO2021143669A1 (en) 2020-01-19 2021-01-12 Method for acquiring configuration information and electronic device

Country Status (2)

Country Link
CN (1) CN111309390A (en)
WO (1) WO2021143669A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309390A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Method for acquiring configuration information and electronic equipment
CN112099841A (en) * 2020-08-28 2020-12-18 北京同邦卓益科技有限公司 Method and system for generating configuration file
CN115002190B (en) * 2022-05-27 2024-06-21 努比亚技术有限公司 Function configuration file regulation and control method, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106436B2 (en) * 2008-06-19 2015-08-11 Microsoft Technology Licensing, Llc Home networking web-based service portal
CN106598633A (en) * 2015-10-19 2017-04-26 北京国双科技有限公司 Configuration file update method, client and server
CN107885547A (en) * 2017-11-08 2018-04-06 江苏国泰新点软件有限公司 A kind of collocation method of application program, device, configuration equipment and storage medium
CN110187937A (en) * 2019-06-06 2019-08-30 北京金山安全软件有限公司 Configuration information processing method and device, electronic equipment and readable storage medium
CN111309390A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Method for acquiring configuration information and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610853A (en) * 2015-10-26 2017-05-03 阿里巴巴集团控股有限公司 Application deployment method and device
CN109976822B (en) * 2017-12-25 2022-04-08 天翼云科技有限公司 Configuration method and device of distributed application and distributed system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106436B2 (en) * 2008-06-19 2015-08-11 Microsoft Technology Licensing, Llc Home networking web-based service portal
CN106598633A (en) * 2015-10-19 2017-04-26 北京国双科技有限公司 Configuration file update method, client and server
CN107885547A (en) * 2017-11-08 2018-04-06 江苏国泰新点软件有限公司 A kind of collocation method of application program, device, configuration equipment and storage medium
CN110187937A (en) * 2019-06-06 2019-08-30 北京金山安全软件有限公司 Configuration information processing method and device, electronic equipment and readable storage medium
CN111309390A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Method for acquiring configuration information and electronic equipment

Also Published As

Publication number Publication date
CN111309390A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US11243653B2 (en) Method for display control and mobile terminal
WO2021143669A1 (en) Method for acquiring configuration information and electronic device
WO2021136159A1 (en) Screenshot method and electronic device
WO2020186964A1 (en) Audio signal outputting method and terminal device
WO2020238497A1 (en) Icon moving method and terminal device
CA3092598C (en) Display method and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
WO2021121180A1 (en) Information processing method and electronic device
WO2021129745A1 (en) Touch key, control method and electronic device
WO2020220893A1 (en) Screenshot method and mobile terminal
WO2020199783A1 (en) Interface display method and terminal device
US20220014710A1 (en) Video call method and terminal device
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109597546B (en) Icon processing method and terminal equipment
CN111061404A (en) Control method and first electronic device
WO2021104232A1 (en) Display method and electronic device
WO2021190370A1 (en) Screenshot method and electronic apparatus
WO2021115220A1 (en) Information sharing method, electronic device and computer-readable storage medium
EP3696987A1 (en) Information processing method for radio frequency device, and mobile terminal
WO2020186941A1 (en) File management method and device, mobile terminal, and storage medium
WO2020238477A1 (en) Editing method and mobile terminal
CN111159738B (en) Authority configuration method, application login method and device
CN110990029A (en) Application processing method and electronic equipment
WO2021121179A1 (en) Application configuration method, message notification processing method and electronic device
CN111601035B (en) Image processing method and electronic equipment

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: 21741142

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: 21741142

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 200223)

122 Ep: pct application non-entry in european phase

Ref document number: 21741142

Country of ref document: EP

Kind code of ref document: A1