Device configuration method, device, electronic device, and computer-readable storage medium
By automatically obtaining network information and activateing the requirements configuration information when the terminal device is turned on, the problem of inability to be mobilized after the device parameters are fixed is solved, and the device configuration is automated is realized, and cost and complexity is reduced.
Patent Information
- Application Number
- CN202411961080.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-08
AI Technical Summary
The prior art fixes parameters before equipment shipment, resulting in the inability to easily mobilize the equipment usage area after shipment, increasing cost and complexity.
Automatically obtain network-based information when the terminal device is turned on, determine the area identification information, and obtain and activate the requirements configuration information based on this information, realize automatic configuration of the device.
Simplifies the equipment configuration process and reduces costs, and no longer requires manual unpacking, writing parameters and repackaging of equipment.
Smart Images

Figure CN119788515A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a device configuration method, apparatus, electronic device, and computer-readable storage medium. Background Art
[0002] Currently, most projects use the Flexible Customize Mechanism (FCM) mechanism for demand customization, which can combine the requirements of different countries and regions of multiple operators into one version of software, and activate the requirements of different operators in different countries and regions through flashing parameters such as ECID&CU when the device is turned on for the first time, so as to achieve ALL IN ONE software version. When an operator ships to many countries and regions, the project will have more sets of flashing parameters.
[0003] At present, the parameters of the equipment are written into the factory through tools before shipment, and the equipment is shipped to various countries and regions according to the customer's order. That is, the parameters of the equipment are fixed before shipment, and the equipment in one country cannot be transferred to another country after shipment. If you want to transfer the equipment that has been shipped to various countries and regions and realize cross-border goods between countries, you need to hire people at the equipment receiving location to complete a series of production steps such as unpacking the packaged equipment, re-writing the parameters, and repackaging, which will further increase the cost. Summary of the invention
[0004] The embodiments of the present application provide a device configuration method, apparatus, electronic device, and computer-readable storage medium, which can simplify the device configuration process and reduce costs.
[0005] In a first aspect, an embodiment of the present application provides a device configuration method, which is applied to a terminal device, and the method includes:
[0006] In response to a power-on operation, acquiring network information, and determining area identification information based on the network information;
[0007] Acquire required configuration information according to the area identification information;
[0008] The required configuration information is activated so that the terminal device has a configuration environment corresponding to the required configuration information.
[0009] In a second aspect, an embodiment of the present application further provides a device configuration apparatus, which is applied to a terminal device, and the apparatus includes:
[0010] A response module, configured to obtain network information in response to a power-on operation, and determine area identification information based on the network information;
[0011] An acquisition module, used for acquiring required configuration information according to the area identification information;
[0012] The activation module is used to activate the required configuration information so that the terminal device has a configuration environment corresponding to the required configuration information.
[0013] Optionally, in some embodiments of the present application, the obtaining of network information in response to a power-on operation includes:
[0014] In response to the power-on operation, performing a stationing operation according to a preset strategy, and obtaining stationing information after the stationing operation, wherein the preset strategy includes emergency stationing or subscriber identification card stationing;
[0015] The network information includes network information to which the terminal device is registered, and determining the area identification information based on the network information includes:
[0016] The area identification information is extracted from the network information.
[0017] Optionally, in some embodiments of the present application, the acquiring the required configuration information according to the area identification information includes:
[0018] Determine the required configuration information corresponding to the area identification information through a mapping list, wherein the mapping list stores each preset area identification information and the preset required configuration information corresponding to each preset area identification information;
[0019] The required configuration information is obtained locally from the terminal device, or the required configuration information is obtained from the cloud.
[0020] Optionally, in some embodiments of the present application, after responding to the power-on operation, the method further includes:
[0021] Outputting a first prompt interface, wherein the first prompt interface includes a prompt interface currently being initialized;
[0022] The acquiring the required configuration information according to the area identification information includes:
[0023] Verifying the validity of the area identification information, and if the area identification information is valid, obtaining the required configuration information according to the area identification information;
[0024] If the area identification information is invalid, a second prompt interface is output, wherein the second prompt interface includes prompt information for prompting the user to insert a user identification card.
[0025] Optionally, in some embodiments of the present application, the activating the demand configuration information includes:
[0026] Writing the required configuration information into a preset partition, wherein the preset partition includes initial configuration information;
[0027] Based on the priority relationship between the required configuration information and the initial configuration information, the terminal device is controlled to perform factory reset processing based on the required configuration information in the preset partition.
[0028] Optionally, in some embodiments of the present application, the controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information includes:
[0029] Generate configuration attribute information based on the priority relationship between the required configuration information and the initial configuration information through a boot loading module;
[0030] Controlling target modules other than the boot loading module in the terminal device to perform configuration update processing based on the configuration attribute information;
[0031] After controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information, the method further includes:
[0032] Generate an activation completion mark for the required configuration information;
[0033] When the terminal device is powered on next time, configuration activation control is performed on the target module based on the activation completion mark.
[0034] Optionally, in some embodiments of the present application, after activating the demand configuration information, the method further includes:
[0035] Determine device version update status information according to the required configuration information;
[0036] If the device version update status information indicates that the terminal device can be updated, obtaining device version update information according to the required configuration information;
[0037] The terminal device is updated according to the device version update information.
[0038] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and which implements the steps in the above-mentioned device configuration method when the computer program is executed by the processor.
[0039] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned device configuration method are implemented.
[0040] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.
[0041] The terminal device of the embodiment of the present application obtains network information in response to a power-on operation, determines area identification information based on the network information, obtains required configuration information based on the area identification information, and activates the required configuration information so that the terminal device has a configuration environment corresponding to the required configuration information.
[0042] Among them, the device automatically obtains the network information and determines the regional identification information when it is turned on, obtains the required configuration information that meets the regional identification information, and activates the required configuration information, thereby realizing the automated processing of device configuration, simplifying the device configuration process, and eliminating the need to hire personnel to perform complex steps such as unpacking, writing parameters and repackaging the equipment, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 It is a schematic diagram of a scenario in which a terminal device according to an embodiment of the present application executes the device configuration method;
[0045] Figure 2 It is a flowchart of the device configuration method provided in the embodiment of the present application;
[0046] Figure 3 It is a structural schematic diagram of a device configuration apparatus provided in an embodiment of the present application;
[0047] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0049] The embodiments of the present application provide a device configuration method, apparatus, electronic device, and computer-readable storage medium. Specifically, the embodiments of the present application provide a device configuration apparatus applicable to electronic devices, which is used to automatically configure the device, simplify the device configuration process, and reduce costs. Specifically, the electronic device includes a terminal device, which includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a television, and other devices.
[0050] See also Figure 1 , Figure 1 : is a schematic diagram of a scenario in which a terminal device according to an embodiment of the present application executes the device configuration method, wherein the specific execution process of the terminal device executing the device configuration method is as follows:
[0051] In response to the power-on operation, the terminal device 10 obtains the network information, determines the area identification information based on the network information, obtains the required configuration information according to the area identification information, and activates the required configuration information so that the terminal device has the configuration environment corresponding to the required configuration information.
[0052] For example, when a user turns on a terminal device in a certain area, the terminal device will perform a network operation immediately after the power-on, and then the terminal device will analyze the network information corresponding to the network operation, determine the regional identification information representing the area, obtain the required configuration information based on the regional identification information, and activate the required configuration information to complete the automatic configuration of the equipment.
[0053] In summary, by automatically obtaining the network information and determining the regional identification information when the device is turned on, as well as obtaining the required configuration information that meets the regional identification information, and activating the required configuration information, the device configuration is automated, which simplifies the device configuration process. There is no need to hire personnel to perform complex steps such as unpacking, writing parameters, and repackaging the device, thereby reducing costs.
[0054] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.
[0055] See also Figure 2 , Figure 2A flowchart of a device configuration method provided in an embodiment of the present application. Although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown in the flowchart. Specifically, the device configuration method is executed by a terminal device, and the process of the terminal device executing the device configuration method specifically includes:
[0056] 101. In response to a power-on operation, obtain network information, and determine region identification information based on the network information.
[0057] The power-on operation includes powering on the terminal device by a user, powering on the terminal device after a user restarts the terminal device, or automatically restarting the terminal device after the device crashes.
[0058] The stationing information refers to the information of the network that the device automatically connects to after it is turned on, including the network to which the device belongs, the roaming network, or the network that the device is generally not allowed to reside on. For example, when the device has been connected to the operator's network through a user identity card (SIM), the device will automatically connect to its own network after it is turned on. If the device does not have a network to which it belongs and is not connected to a roaming network after it is turned on, it will try to connect to any available network through emergency stationing, even if these networks generally do not allow the device to reside.
[0059] The regional identification information refers to identification information representing the region, and different regions correspond to different regional identification information. Accordingly, based on the network information to which the terminal device is connected, the regional identification information can be extracted from the network information, for example, the mobile country code (MCC) is extracted from the network information corresponding to the network information, and the mobile country code is the regional identification information.
[0060] 102. Obtain required configuration information according to the area identification information.
[0061] It should be noted that the required configuration information is information for controlling the operation, display or output of the terminal device. For example, the required configuration information includes configuration of language, ringtone, wallpaper, network format, frequency band, regulations, standards or interface layout, etc. It is understandable that different regions have different configuration requirements for terminal devices. For example, different regions require different languages, different ringtones, different wallpapers or different interface layouts of terminal devices. Therefore, different regions have different configuration requirements for terminal devices, that is, different required configuration information of terminal devices. Since the regional identification information of different regions is different, the required configuration information suitable for the terminal device can be determined based on the regional identification information.
[0062] Traditionally, the required configuration information is pre-flashed into the terminal device based on the terminal device's shipping location, so that the terminal device can only use this required configuration information. When the terminal device needs to be transferred to other regions, the device needs to be unpacked, parameters rewritten, and repacked, which makes the operation complicated and costly.
[0063] In an embodiment of the present application, the required configuration information of the terminal device can be dynamically configured, that is, after the terminal device is turned on, the network operation is automatically performed to determine the area identification information, and then the required configuration information is automatically matched based on the area identification information, and then the terminal device is automatically configured based on the required configuration information.
[0064] 103. Activate the required configuration information so that the terminal device has a configuration environment corresponding to the required configuration information.
[0065] Among them, activating the required configuration information means configuring the terminal device according to the required configuration information, and having the configuration environment corresponding to the required configuration information means making the terminal device meet the configuration content corresponding to the required configuration information, so that the terminal device can meet the requirements of the region corresponding to the regional identification information in terms of language, ringtones, wallpapers, network standards, frequency bands, regulations, standards or interface layout.
[0066] In summary, by automatically obtaining the network information and determining the regional identification information when the device is turned on, as well as obtaining the required configuration information that meets the regional identification information, and activating the required configuration information, the device configuration is automated, which simplifies the device configuration process. There is no need to hire personnel to perform complex steps such as unpacking, writing parameters, and repackaging the device, thereby reducing costs.
[0067] Optionally, in an embodiment of the present application, the stationing mode of the terminal device includes stationing based on a user identification card or stationing based on an emergency stationing mode, that is, optionally, in some embodiments of the present application, the step of "obtaining stationing information in response to a power-on operation" includes:
[0068] In response to the power-on operation, performing a stationing operation according to a preset strategy, and obtaining stationing information after the stationing operation, wherein the preset strategy includes emergency stationing or subscriber identification card stationing;
[0069] The network information includes network information to which the terminal device is registered, and determining the area identification information based on the network information includes:
[0070] The area identification information is extracted from the network information.
[0071] For example, in an embodiment of the present application, when the terminal device is turned on, it is stationed on the network through emergency stationing. At this time, the mobile country code can be extracted from the stationing information, that is, the regional identification information is obtained. Alternatively, when the device is turned on, if a user identification card is inserted, the stationing operation is performed through the home network corresponding to the user identification card, and then the mobile country code is extracted from the registered home network, that is, the regional identification information is obtained.
[0072] In the embodiment of the present application, the emergency stationing method can be used to station on the network and obtain the stationing information to improve the efficiency of obtaining the stationing information, thereby improving the efficiency of obtaining the area identification information. If the emergency stationing method fails or the stationing information is not obtained, the stationing operation is performed through the user identification card and the stationing information is obtained.
[0073] Optionally, since different regions correspond to different region identification information, and different regions have different demand configuration information, in an embodiment of the present application, a mapping relationship between the region identification information and the demand configuration information may be configured, and the demand configuration information of the region where the terminal device is currently powered on is determined based on the mapping relationship, that is, optionally, in some embodiments of the present application, the step of “obtaining the demand configuration information according to the region identification information” includes:
[0074] Determine the required configuration information corresponding to the area identification information through a mapping list, wherein the mapping list stores each preset area identification information and the preset required configuration information corresponding to each preset area identification information;
[0075] The required configuration information is obtained locally from the terminal device, or the required configuration information is obtained from the cloud.
[0076] It is understandable that the mapping list stores the mapping relationship between the region identification information and the required configuration information, based on which the required configuration information corresponding to the current region identification information can be determined. The mapping list can be stored locally on the terminal device or on a server (such as a server or cloud).
[0077] Among them, the demand configuration information corresponding to each area identification information can be stored locally on the terminal device or on the server. Therefore, in an embodiment of the present application, after determining the required demand configuration information, the demand configuration information can be obtained locally from the terminal device or from the cloud.
[0078] Accordingly, in the embodiment of the present application, in order to ensure that the network station information can be obtained, and then the regional identification information can be obtained, after failing to register with the network or failing to successfully obtain the regional identification information by means of emergency network stationing, the user can be prompted to insert a user identification card to station on the network and obtain the regional identification information by means of a user identification card, that is, optionally, in some embodiments of the present application, after the step "responding to the power-on operation", the method further includes:
[0079] Outputting a first prompt interface, wherein the first prompt interface includes a prompt interface currently being initialized;
[0080] The acquiring the required configuration information according to the area identification information includes:
[0081] Verifying the validity of the area identification information, and if the area identification information is valid, obtaining the required configuration information according to the area identification information;
[0082] If the area identification information is invalid, a second prompt interface is output, wherein the second prompt interface includes prompt information for prompting the user to insert a user identification card.
[0083] Among them, the first prompt interface is used to prompt the user that the required initialization configuration is currently being performed, and when the area identification information cannot be obtained, the second prompt interface is output to prompt the user to insert the user identification card, that is, at this time, the area identification information needs to be obtained through the network based on the user identification card.
[0084] Optionally, in an embodiment of the present application, the required configuration information may be written to a specific partition so that the required configuration information can be activated by restoring the device to factory settings, that is, optionally, in some embodiments of the present application, the step of "activating the required configuration information" includes:
[0085] Writing the required configuration information into a preset partition, wherein the preset partition includes initial configuration information;
[0086] Based on the priority relationship between the required configuration information and the initial configuration information, the terminal device is controlled to perform factory reset processing based on the required configuration information in the preset partition.
[0087] Among them, the preset partition includes a partition in the terminal device for storing key information, such as a proinfo partition. For example, the preset partition can also store information such as IMEI (International Mobile Equipment Identity), BT (Bluetooth address) and WIFI address.
[0088] Among them, the initial configuration information is the demand configuration information configured based on the shipping location when the terminal device leaves the factory, and the priority relationship refers to the relationship between the demand configuration information and the initial configuration information, reflecting the priority between the two. In the embodiment of the present application, it is assumed that the priority of the currently matched demand configuration information is higher than the priority of the initial configuration information of the terminal device, that is, the terminal device is controlled to perform factory settings restoration based on the demand configuration information.
[0089] Among them, in an embodiment of the present application, before controlling the terminal device to restore the factory settings, it is also determined whether the power of the terminal device is sufficient to complete the factory settings restoration. If it is sufficient, the factory settings restoration step is entered. If it is not sufficient to complete the factory settings restoration, the device is turned on according to the initial configuration information, and the configuration content corresponding to the initial configuration information is activated.
[0090] Optionally, since the boot loading module is the first module started after the terminal device is powered on, the configuration update operation of other target modules in the terminal device is controlled by the boot loading module, that is, optionally, in some embodiments of the present application, the step of "controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information" includes:
[0091] Generate configuration attribute information based on the priority relationship between the required configuration information and the initial configuration information through a boot loading module;
[0092] Controlling target modules other than the boot loading module in the terminal device to perform configuration update processing based on the configuration attribute information;
[0093] After controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information, the method further includes:
[0094] Generate an activation completion mark for the required configuration information;
[0095] When the terminal device is powered on next time, configuration activation control is performed on the target module based on the activation completion mark.
[0096] The configuration attribute information describes the priority of the required configuration information and the initial configuration information. For example, the configuration attribute information includes that the priority of the required configuration information is higher than the priority of the initial configuration information.
[0097] The boot loader module is the boot loader of the terminal device, which is the first software program running during the startup process of the terminal device. Its main task is to load the kernel of the operating system into the memory and start the operating system. In the embodiment of the present application, the boot loader is used to generate configuration attribute information according to the priority relationship, and the configuration update processing of other target modules is controlled based on the configuration attribute information, wherein the target module includes modules other than the boot loader module, and the target module includes a network module, a boot wizard module or a partition module (such as a proinfo partition), etc.
[0098] Among them, the activation completion identifier marks that the required configuration information has been activated. Correspondingly, when the terminal device is turned on after restoring the factory settings, the target module in the terminal device is controlled based on the activation completion identifier and no longer needs to perform the activation operation of the required configuration information, that is, the target module is configured and activated according to the activation completion identifier.
[0099] Correspondingly, after the activation of the required configuration information of the terminal device is completed, in order to improve the security, compatibility and fluency of the terminal device, it can also be determined whether the terminal device needs to be upgraded based on the required configuration information, and the configuration content of the required configuration information has been matched, that is, optionally, in some embodiments of the present application, after the step of "activating the required configuration information", the method further includes:
[0100] Determine device version update status information according to the required configuration information;
[0101] If the device version update status information indicates that the terminal device can be updated, obtaining device version update information according to the required configuration information;
[0102] The terminal device is updated according to the device version update information.
[0103] Among them, the device version update status information describes whether the device is upgradeable. For example, the upgrade side (FOTA) based on the terminal device sends the required configuration information or the identification information of the required configuration information to the service side (such as the FOTA server), and the service side analyzes whether there is device version update information (update package) for the required configuration information. If so, it is determined that the terminal device is upgradeable, and the device version update information (update package) is now displayed from the service side, and the terminal device is updated.
[0104] In summary, the device configuration method in the embodiment of the present application involves the kernel layer (kernel), the native layer (native), the framework layer (framework) and the application layer (APPS) during the execution process, specifically, including the boot loader module for the kernel layer, the upgrade side (FOTA) for the application layer, and the AIOMD (ALL IN ONE MODEM) for the native layer.
[0105] In summary, the embodiments of the present application realize automated processing of device configuration by automatically obtaining network information and determining regional identification information when the device is turned on, as well as obtaining required configuration information that meets the regional identification information, and activating the required configuration information, thereby simplifying the device configuration process. There is no need to hire personnel to perform complex steps such as unpacking, writing parameters, and repackaging the device, thereby reducing costs.
[0106] For example, based on the estimated sales volume, the terminal devices can be transported to area A in a unified manner, and then the terminal devices can be scheduled based on the device configuration method of the embodiment of the present application, saving transportation time and transportation costs, while also improving configuration efficiency and reducing configuration costs.
[0107] In order to better implement the device configuration method of the present application, the present application also provides a device configuration apparatus based on the above device configuration method. The meanings of the terms are the same as those in the above device configuration method, and the specific implementation details can refer to the description in the method embodiment.
[0108] See also Figure 3 , Figure 3 : is a schematic diagram of the structure of a device configuration apparatus provided in an embodiment of the present application. The device configuration apparatus may be specifically as follows:
[0109] A response module 201 is used to obtain network information in response to a power-on operation, and determine area identification information based on the network information;
[0110] An acquisition module 202 is used to acquire required configuration information according to the area identification information;
[0111] The activation module 203 is used to activate the required configuration information so that the terminal device has a configuration environment corresponding to the required configuration information.
[0112] Optionally, in some embodiments of the present application, in response to the power-on operation, obtaining the network information includes:
[0113] In response to the power-on operation, performing a stationing operation according to a preset strategy, and obtaining stationing information after the stationing operation, wherein the preset strategy includes emergency stationing or subscriber identification card stationing;
[0114] The network information includes network information to which the terminal device is registered, and determining the area identification information based on the network information includes:
[0115] The area identification information is extracted from the network information.
[0116] Optionally, in some embodiments of the present application, the acquiring the required configuration information according to the area identification information includes:
[0117] Determine the required configuration information corresponding to the area identification information through a mapping list, wherein the mapping list stores each preset area identification information and the preset required configuration information corresponding to each preset area identification information;
[0118] The required configuration information is obtained locally from the terminal device, or the required configuration information is obtained from the cloud.
[0119] Optionally, in some embodiments of the present application, after responding to the power-on operation, the method further includes:
[0120] Outputting a first prompt interface, wherein the first prompt interface includes a prompt interface currently being initialized;
[0121] The acquiring the required configuration information according to the area identification information includes:
[0122] Verifying the validity of the area identification information, and if the area identification information is valid, obtaining the required configuration information according to the area identification information;
[0123] If the area identification information is invalid, a second prompt interface is output, wherein the second prompt interface includes prompt information for prompting the user to insert a user identification card.
[0124] Optionally, in some embodiments of the present application, the activating the demand configuration information includes:
[0125] Writing the required configuration information into a preset partition, wherein the preset partition includes initial configuration information;
[0126] Based on the priority relationship between the required configuration information and the initial configuration information, the terminal device is controlled to perform factory reset processing based on the required configuration information in the preset partition.
[0127] Optionally, in some embodiments of the present application, the controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information includes:
[0128] Generate configuration attribute information based on the priority relationship between the required configuration information and the initial configuration information through a boot loading module;
[0129] Controlling target modules other than the boot loading module in the terminal device to perform configuration update processing based on the configuration attribute information;
[0130] After controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information, the method further includes:
[0131] Generate an activation completion mark for the required configuration information;
[0132] When the terminal device is powered on next time, configuration activation control is performed on the target module based on the activation completion mark.
[0133] Optionally, in some embodiments of the present application, after activating the demand configuration information, the method further includes:
[0134] Determine device version update status information according to the required configuration information;
[0135] If the device version update status information indicates that the terminal device can be updated, obtaining device version update information according to the required configuration information;
[0136] The terminal device is updated according to the device version update information.
[0137] In the embodiment of the present application, the response module 201 obtains the network information in response to the power-on operation, and determines the area identification information based on the network information. The acquisition module 202 obtains the required configuration information according to the area identification information, and the activation module 203 activates the required configuration information so that the terminal device has the configuration environment corresponding to the required configuration information.
[0138] Among them, the embodiment of the present application realizes automated processing of device configuration by automatically obtaining network information and determining regional identification information when the device is turned on, and obtaining required configuration information that meets the regional identification information, and activating the required configuration information, thereby simplifying the device configuration process and eliminating the need to hire personnel to perform complex steps such as unpacking, writing parameters and repackaging the device, thereby reducing costs.
[0139] In addition, the present application also provides an electronic device, such as Figure 4 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:
[0140] The electronic device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0141] The processor 301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301.
[0142] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0143] The electronic device also includes a power supply 303 for supplying power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 303 can also include any components such as one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, and power status indicators.
[0144] The electronic device may further include an input unit 304, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0145] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 301 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application programs stored in the memory 302, thereby implementing the steps in any device configuration method provided in the embodiments of the present application.
[0146] The terminal device of the embodiment of the present application obtains network information in response to a power-on operation, determines area identification information based on the network information, obtains required configuration information based on the area identification information, and activates the required configuration information so that the terminal device has a configuration environment corresponding to the required configuration information.
[0147] Among them, the device automatically obtains the network information and determines the regional identification information when it is turned on, obtains the required configuration information that meets the regional identification information, and activates the required configuration information, thereby realizing the automated processing of device configuration, simplifying the device configuration process, and eliminating the need to hire personnel to perform complex steps such as unpacking, writing parameters and repackaging the equipment, thereby reducing costs.
[0148] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0149] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0150] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any device configuration method provided in the present application.
[0151] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0152] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0153] Since the instructions stored in the computer-readable storage medium can execute the steps in any device configuration method provided in the present application, the beneficial effects that can be achieved by any device configuration method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0154] The above is a detailed introduction to a device configuration method, apparatus, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A device configuration method, characterized in that: Applied to a terminal device, the method comprises: In response to a power-on operation, acquiring network information, and determining area identification information based on the network information; Acquire required configuration information according to the area identification information; The required configuration information is activated so that the terminal device has a configuration environment corresponding to the required configuration information.
2. The device configuration method according to claim 1, characterized in that: The step of obtaining network information in response to the power-on operation includes: In response to the power-on operation, performing a stationing operation according to a preset strategy, and obtaining stationing information after the stationing operation, wherein the preset strategy includes emergency stationing or subscriber identification card stationing; The network information includes network information to which the terminal device is registered, and determining the area identification information based on the network information includes: The area identification information is extracted from the network information.
3. The device configuration method according to claim 1, characterized in that: The acquiring the required configuration information according to the area identification information includes: Determine the required configuration information corresponding to the area identification information through a mapping list, wherein the mapping list stores each preset area identification information and the preset required configuration information corresponding to each preset area identification information; The required configuration information is obtained locally from the terminal device, or the required configuration information is obtained from the cloud.
4. The device configuration method according to claim 1, characterized in that: After the power-on operation is performed, the method further comprises: Outputting a first prompt interface, wherein the first prompt interface includes a prompt interface currently being initialized; The acquiring the required configuration information according to the area identification information includes: Verifying the validity of the area identification information, and if the area identification information is valid, obtaining the required configuration information according to the area identification information; If the area identification information is invalid, a second prompt interface is output, wherein the second prompt interface includes prompt information for prompting the user to insert a user identification card.
5. The device configuration method according to claim 1, characterized in that: The activating the demand configuration information includes: Writing the required configuration information into a preset partition, wherein the preset partition includes initial configuration information; Based on the priority relationship between the required configuration information and the initial configuration information, the terminal device is controlled to perform factory reset processing based on the required configuration information in the preset partition.
6. The device configuration method according to claim 5, characterized in that: The controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information includes: Generate configuration attribute information based on the priority relationship between the required configuration information and the initial configuration information through a boot loading module; Controlling target modules other than the boot loading module in the terminal device to perform configuration update processing based on the configuration attribute information; After controlling the terminal device to perform factory reset processing based on the required configuration information in the preset partition based on the priority relationship between the required configuration information and the initial configuration information, the method further includes: Generate an activation completion mark for the required configuration information; When the terminal device is powered on next time, configuration activation control is performed on the target module based on the activation completion mark.
7. The device configuration method according to claim 1, characterized in that: After activating the demand configuration information, the method further includes: Determine device version update status information according to the required configuration information; If the device version update status information indicates that the terminal device can be updated, obtaining device version update information according to the required configuration information; The terminal device is updated according to the device version update information.
8. A device configuration apparatus, characterized in that: Applied to a terminal device, the device comprises: A response module, configured to obtain network information in response to a power-on operation, and determine area identification information based on the network information; An acquisition module, used for acquiring required configuration information according to the area identification information; The activation module is used to activate the required configuration information so that the terminal device has a configuration environment corresponding to the required configuration information.
9. An electronic device, characterized in that: The device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the device configuration method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the device configuration method according to any one of claims 1 to 7 are implemented.