Electronic device
By parsing the authorization certificate to verify identity information after the real-time operating system kernel initialization of electronic devices, the problem of user data loss caused by flashing and switching permissions is solved, and flexible management of identity information and lossless switching of system permissions are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2026-03-19
- Publication Date
- 2026-06-09
AI Technical Summary
The existing technology addresses the issue of user data loss caused by flashing the firmware to switch system permissions.
After the real-time operating system kernel of the electronic device is initialized, the authorization certificate is obtained and parsed to confirm the current identity information, and the corresponding services are started according to the identity information to avoid flashing operations.
Switching system permissions without flashing the ROM prevents user data loss and enables flexible management of identity information.
Smart Images

Figure CN122174220A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, and specifically relates to an electronic device. Background Technology
[0002] With the widespread application of smart terminals and human-computer interaction electronic devices, more and more electronic devices are adopting real-time operating systems (RTOS) as their basic operating system. These electronic devices typically go through several different stages throughout their lifecycle, including the research and development debugging stage, the production testing stage, the after-sales maintenance stage, and the end-user usage stage.
[0003] At different stages, the openness of RTOS systems to functional modules, test interfaces, and external interaction interfaces varies significantly. In related technologies, to achieve different functions for different use cases, system permissions are typically switched by flashing the firmware, i.e., flashing different RTOS versions onto the electronic device. For example, if all interfaces and functions requiring protection need to be locked at the factory, a dedicated user version needs to be flashed; if sufficient permissions are needed to access various interfaces and functions during production, a dedicated production version needs to be flashed. However, switching system permissions through flashing can lead to the loss of user data. Summary of the Invention
[0004] The purpose of this application is to provide an electronic device that can solve the problem of user data loss.
[0005] In a first aspect, embodiments of this application provide an electronic device; Once the kernel initialization of the real-time operating system of the electronic device is complete, obtain the authorization certificate stored in the electronic device; The authorization certificate is parsed to verify the current identity information corresponding to the real-time operating system; If the current identity information matches the first identity information, the first service associated with the first identity information is activated, wherein the first identity information includes the user; If the current identity information matches the second identity information, the second service associated with the second identity information is activated, whereby the second identity information includes after-sales personnel or R&D personnel.
[0006] In this embodiment, after the kernel initialization of the real-time operating system of the electronic device is completed, the authorization certificate stored in the electronic device is obtained; the authorization certificate is parsed to confirm the current identity information corresponding to the real-time operating system; if the current identity information matches first identity information, a first service associated with the first identity information is started, wherein the first identity information includes the user; if the current identity information matches second identity information, a second service associated with the second identity information is started, wherein the second identity information includes after-sales personnel or R&D personnel. Thus, without flashing the firmware, the current identity information corresponding to the real-time operating system can be confirmed by parsing the authorization certificate during the electronic device's startup. The system can then start the corresponding service using the current identity information, thereby solving the problem of switching system permissions that originally required flashing the firmware and preventing user data loss. Attached Figure Description
[0007] Figure 1 This is a schematic diagram illustrating the process of starting up an electronic device service according to some embodiments of this application; Figure 2 This is a schematic diagram of an overall process for providing an electronic device startup service according to some embodiments of this application; Figure 3 This is a schematic diagram illustrating another overall process of electronic device startup service provided by some embodiments of this application; Figure 4 This is a schematic diagram of another overall process of electronic device startup service provided by some embodiments of this application; Figure 5 These are schematic diagrams of the structure of electronic devices provided in some embodiments of this application; Figure 6 These are schematic diagrams of the hardware structure of electronic devices provided in some embodiments of this application. Detailed Implementation
[0008] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0009] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0010] The power-on process of electronic devices in related technologies will be explained below.
[0011] The power-on process of electronic devices in related technologies includes the following stages: power-on stage, boot read-only memory (BootROM) stage, boot loader stage, real-time operating system (RTOS) startup stage, RTOS kernel stage, system service stage, and application stage.
[0012] During the power-on phase, the electronic device is powered on and started. In the BootROM phase, the minimum hardware units are initialized, such as the clock and static random access memory (SRAM). In the BootLoader phase, the system clock, dynamic random access memory (DRAM), and flash memory drivers are initialized, and the system partition table is parsed. The RTOS image file is digitally signed and verified. In the RTOS startup phase, the RTOS image file is loaded, and the configuration and data required for system operation are copied. In the RTOS kernel phase, the RTOS kernel is initialized, idle or system tasks are created, and the scheduler is started. In the system service phase, the environment and configuration initialization required for various services are completed, and core services are started. These core services include, but are not limited to, power management services, temperature management services, watchdog services, logging services, and clock services. In the application phase, runnable applications are displayed in the user interface (UI), and applications configured to start by default in the system are loaded.
[0013] The electronic device provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0014] In some embodiments of this application, after the kernel initialization of the real-time operating system of the electronic device is completed, the authorization certificate stored in the electronic device is obtained; the authorization certificate is parsed to confirm the current identity information corresponding to the real-time operating system; if the current identity information matches the first identity information, a first service associated with the first identity information is started, wherein the first identity information includes the user; if the current identity information matches the second identity information, a second service associated with the second identity information is started, wherein the second identity information includes after-sales personnel or R&D personnel.
[0015] Figure 1 This is a schematic diagram illustrating the process of starting an electronic device service according to some embodiments of this application. The process of starting an electronic device service may include the following steps: Step 101: Once the kernel initialization of the real-time operating system of the electronic device is complete, obtain the authorization certificate stored in the electronic device; In some embodiments of this application, the electronic device is powered on and started; after the electronic device is powered on and started, the minimum hardware unit is initialized, such as the clock and static random access memory; then, the system clock, dynamic random access memory, flash memory driver, etc. are initialized, and the system partition table is parsed, and the digital signature verification of the RTOS image file is performed; the RTOS image file is loaded, and the configuration and data required for system operation are copied; the RTOS kernel is initialized, idle or system tasks are created, and the scheduler is started; after the RTOS kernel initialization is completed, the license certificate stored in the electronic device is obtained.
[0016] In some embodiments of this application, the authorization certificate can be stored in the non-flashable area of flash memory. When the RTOS of the electronic device is upgraded, the old RTOS image file will be overwritten by the new RTOS image file, but the authorization certificate will not be flashed, so that the authorization certificate can still be accessed after the RTOS upgrade.
[0017] Step 102: Parse the authorization certificate to confirm the current identity information corresponding to the real-time operating system; In some embodiments of this application, the authorization certificate in these embodiments is an authorization certificate that can verify the current identity information corresponding to the real-time operating system.
[0018] After parsing the obtained authorization certificate, the current identity information corresponding to the real-time operating system is obtained.
[0019] Step 103: If the current identity information matches the first identity information, start the first service associated with the first identity information, wherein the first identity information includes the user; In some embodiments of this application, when the current identity information is a user, the service associated with the user is activated.
[0020] Step 104: If the current identity information matches the second identity information, start the second service associated with the second identity information, where the second identity information includes after-sales personnel or R&D personnel.
[0021] In some embodiments of this application, when the current identity information is that of an after-sales personnel, the service associated with the after-sales personnel is activated; when the current identity information is that of a research and development personnel, the service associated with the research and development personnel is activated.
[0022] In some embodiments of this application, the electronic device includes a first service group and a second service group; the first service group includes at least one first service associated with first identity information, and the second service group includes at least one second service associated with second identity information; when the current identity information matches the first identity information, the first service group is loaded; in response to external input, the first service included in the first service group is started; when the current identity information matches the second identity information, the second service group is loaded; in response to external input, the second service included in the second service group is started.
[0023] In some embodiments of this application, the first service may include: query service, certificate verification service, and certificate writing service; the second service may include: query service, certificate verification service, certificate writing service, and functional testing service.
[0024] In some embodiments of this application, the query service includes at least one of the following: Query device serial number, query device name, query device manufacturing date, query device hardware version number.
[0025] In some embodiments of this application, the services that the first service group can start need to be kept at a minimum level, and the services that the second service group can start include all the services that the first service group can start and functional test services, in order to meet the actual need for functional checks before and after after-sales repair.
[0026] In some embodiments of this application, when the current identity information is a user, a first service group is loaded, and in response to external input, at least one service related to the user included in the first service group is started; when the current identity information is after-sales personnel, a second service group is loaded, and in response to external input, at least one service related to after-sales personnel included in the second service group is started; when the current identity information is R&D personnel, a second service group is loaded, and in response to external input, at least one service related to R&D personnel included in the second service group is started.
[0027] In some embodiments of this application, the electronic device may further include a third service group, which includes at least one third service associated with third identity information; the second identity information includes after-sales personnel, and the third identity information includes R&D personnel; when the current identity information matches the third identity information, the third service group is loaded; in response to external input, the third service included in the third service group is activated.
[0028] In some embodiments of this application, the third service may include: query services, certificate verification services, certificate writing services, functional testing services, debugging services, and aging test services. The services that the third service group can initiate include all services, that is, all services that the second service group can initiate, as well as debugging and aging test services. It is mainly used to help R&D debug problems, and in the production stage, it is necessary to support the aging test of electronic devices before they leave the factory.
[0029] In some embodiments of this application, when the current identity information is a user, a first service group is loaded, and in response to external input, at least one service related to the user included in the first service group is started; when the current identity information is after-sales personnel, a second service group is loaded, and in response to external input, at least one service related to after-sales personnel included in the second service group is started; when the current identity information is R&D personnel, a third service group is loaded, and in response to external input, at least one service related to R&D personnel included in the third service group is started.
[0030] In some embodiments of this application, the external input can be an input that selects a service to be started from a service group; correspondingly, in response to the external input, the service selected by the user in the service group can be started.
[0031] In some embodiments of this application, when the current identity information is a user, a first service group can be loaded, and at least one service related to the user included in the first service group can be directly started; when the current identity information is after-sales personnel, a second service group can be loaded, and at least one service related to after-sales personnel included in the second service group can be directly started; when the current identity information is R&D personnel, a third service group can be loaded, and at least one service related to R&D personnel included in the third service group can be directly started. In this case, no external input is required, and the started services include all services included in the service group.
[0032] In some embodiments of this application, the electronic device includes a pre-set first service list, which is used to query a first service associated with first identity information. Accordingly, if the current identity information matches the first identity information, the first service associated with the first identity information is activated, including: responding to an externally input interaction request for a target service; if the current identity information matches the first identity information, confirming whether the target service is associated with the first identity information based on the first service list; if the target service is confirmed to be associated with the first identity information, activating the first service; if the target service is confirmed to be unassociated with the first identity information, ignoring the interaction request.
[0033] For example, when an external input request for interaction with a certain service is received, assuming the current identity information is a user, the system checks whether the service exists in the first service list. If the service exists in the first service list, it means that the service is associated with the user, and the service is started; if the service does not exist in the first service list, it means that the service is not associated with the user, and the interaction request is ignored.
[0034] In some embodiments of this application, the electronic device includes a pre-set second service list, which is used to query a second service associated with the second identity information. Accordingly, if the current identity information matches the second identity information, the second service associated with the second identity information is activated, including: responding to an externally input interaction request for a target service; if the current identity information matches the second identity information, confirming whether the target service is associated with the second identity information based on the second service list; if the target service is confirmed to be associated with the second identity information, activating the second service; if the target service is confirmed to be unassociated with the second identity information, ignoring the interaction request.
[0035] For example, when an external input request for interaction with a certain service is received, assuming the current identity information is a user, the system checks whether the service exists in the first service list. If the service exists in the first service list, it means that the service is associated with the user, and the service is started; if the service does not exist in the first service list, it means that the service is not associated with the user, and the interaction request is ignored.
[0036] For example, when an external input request for an interaction with a certain service is received, assuming the current identity information is that of an after-sales personnel, the system checks whether the service exists in the second service list. If the service exists in the second service list, it means that the service is associated with the after-sales personnel, and the service is started; if the service does not exist in the second service list, it means that the service is not associated with the after-sales personnel, and the interaction request is ignored.
[0037] For example, when an external input request for an interaction with a certain service is received, assuming the current identity information is a developer, the system checks whether the service exists in the second service list. If the service exists in the second service list, it means that the service is associated with the developer, and the service is started; if the service does not exist in the second service list, it means that the service is not associated with the developer, and the interaction request is ignored.
[0038] In some embodiments of this application, the electronic device includes a pre-set third service list, which is used to query third services associated with third identity information; the second identity information includes after-sales personnel, and the third identity information includes R&D personnel; accordingly, in response to an externally input interaction request for a target service; if the current identity information matches the third identity information, it is confirmed whether the target service is associated with the third identity information based on the third service list; if the target service is confirmed to be associated with the third identity information, the third service is activated; if the target service is confirmed to be unassociated with the third identity information, the interaction request is ignored.
[0039] For example, when an external input request for interaction with a certain service is received, assuming the current identity information is a user, the system checks whether the service exists in the first service list. If the service exists in the first service list, it means that the service is associated with the user, and the service is started; if the service does not exist in the first service list, it means that the service is not associated with the user, and the interaction request is ignored.
[0040] For example, when an external input request for an interaction with a certain service is received, assuming the current identity information is that of an after-sales personnel, the system checks whether the service exists in the second service list. If the service exists in the second service list, it means that the service is associated with the after-sales personnel, and the service is started; if the service does not exist in the second service list, it means that the service is not associated with the after-sales personnel, and the interaction request is ignored.
[0041] For example, when an external input request for an interaction with a certain service is received, assuming the current identity information is a developer, the system checks whether the service exists in the third service list. If the service exists in the third service list, it means that the service is associated with the developer, and the service is started; if the service does not exist in the third service list, it means that the service is not associated with the developer, and the interaction request is ignored.
[0042] In this embodiment, after the kernel initialization of the real-time operating system of the electronic device is completed, the authorization certificate stored in the electronic device is obtained; the authorization certificate is parsed to confirm the current identity information corresponding to the real-time operating system; if the current identity information matches first identity information, a first service associated with the first identity information is started, wherein the first identity information includes the user; if the current identity information matches second identity information, a second service associated with the second identity information is started, wherein the second identity information includes after-sales personnel or R&D personnel. Thus, without flashing the firmware, the current identity information corresponding to the real-time operating system can be confirmed by parsing the authorization certificate during the electronic device's startup. The system can then start the corresponding service using the current identity information, thereby solving the problem of switching system permissions that originally required flashing the firmware and preventing user data loss.
[0043] In some embodiments of this application, each service in the electronic device can be pre-marked, and the identity information corresponding to each service can be marked. After the current identity information corresponding to the real-time operating system is confirmed, the service marked with the current identity information is searched from the services of the electronic device, and the searched service marked with the current identity information is started.
[0044] In some embodiments of this application, before initializing the kernel, the electronic device may, in response to a read command sent by an external device, send its identification information to the external device, so that the external device can send the identification information and fourth identity information to the server. The server generates an authorization certificate based on the identification information and the fourth identity information and sends it to the external device, wherein the fourth identity information is the identity information configured by the external device. In response to a certificate write command sent by the external device, the authorization certificate is written into the electronic device.
[0045] In some embodiments of this application, the identification information of the electronic device can be the device serial number of the electronic device, wherein the device serial number is a unique and distinctive identifier.
[0046] In some embodiments of this application, the external device can be a host computer, which may have a PC tool installed. The host computer can send a read command to the electronic device to read the device serial number. Upon receiving the read command from the host computer, the electronic device sends its device serial number to the host computer. After receiving the device serial number from the electronic device, the host computer sends the device serial number and its configured identity information to the server. The server generates an authorization certificate based on the received device serial number and identity information and sends the authorization certificate to the host computer. The host computer then sends a certificate write command to the electronic device through the PC tool to write the authorization certificate to the electronic device.
[0047] In some embodiments of this application, the external device sends identification information and fourth identity information to the server, including: the external device concatenates the identification information and fourth identity information using a separator symbol to obtain a first string; and sends the first string to the server.
[0048] In some embodiments of this application, the spacing symbols used in these embodiments include, but are not limited to, &, +, # symbols, etc.
[0049] For example, after receiving the device serial number sent by the electronic device, the host computer concatenates the device serial number and its configured identity information using the '&' symbol to obtain a first string. The format of the first string is: device serial number & identity information. The host computer then sends the first string to the server.
[0050] In some embodiments of this application, the server generates an authorization certificate based on the identification information and the fourth identity information, which may include: the server encrypting the first string using a hash algorithm to obtain the second string; and using the second string as the authorization certificate.
[0051] In some embodiments of this application, the hash algorithms used in these embodiments include, but are not limited to, MD5 encryption algorithm, SHA256 encryption algorithm, etc.
[0052] In some embodiments of this application, when an electronic device is offline, the host computer can send a read command to the electronic device via a PC Tool to read the device serial number. Upon receiving the read command from the host computer, the electronic device sends its device serial number back to the host computer. After receiving the device serial number from the electronic device, the host computer concatenates the device serial number and the identity information "user" using a separator symbol; the concatenated string is then sent to the server; the server encrypts the received string using a specific encryption algorithm to obtain an encrypted string, which is the authorization certificate, and sends this encrypted string to the host computer. The host computer then sends a certificate write command to the electronic device via a PC Tool to write the authorization certificate to the electronic device. When the electronic device is powered on and started, it is in user mode.
[0053] When switching an electronic device from user mode or R&D mode to after-sales mode, the host computer can send a read command to the electronic device via PC Tool to read its serial number. Upon receiving the read command, the electronic device sends its serial number back to the host computer. The host computer then concatenates the serial number with the identification information "after-sales personnel" using a separator and sends the concatenated string to the server. The server encrypts the received string using a specific encryption algorithm to obtain an encrypted string, which is the authorization certificate. This encrypted string is then sent to the host computer, which then sends a certificate write command to the electronic device via PC Tool to write the authorization certificate. Once the electronic device is powered on and started, it is in after-sales mode.
[0054] When switching an electronic device from user mode or after-sales mode to R&D mode, the host computer can send a read command to the electronic device via PC Tool to read its serial number. Upon receiving the read command, the electronic device sends its serial number back to the host computer. The host computer then concatenates the serial number with the identification information "R&D personnel" using a separator; the concatenated string is sent to the server. The server encrypts the received string using a specific encryption algorithm to obtain an encrypted string, which is the authorization certificate. This encrypted string is sent to the host computer, which then sends a certificate write command to the electronic device via PC Tool to write the authorization certificate. Once the electronic device is powered on and started, it is in R&D mode.
[0055] When switching an electronic device from R&D or after-sales mode to user mode, the host computer can send a read command to the electronic device via PC Tool to read its serial number. Upon receiving the read command, the electronic device sends its serial number back to the host computer. The host computer then concatenates the serial number and the user's identity information using a separator to obtain a first string, which is sent to the server. The server encrypts the received string using a specific encryption algorithm to obtain an encrypted string, which is the authorization certificate. This encrypted string is sent to the host computer, which then sends a certificate write command to the electronic device via PC Tool to write the authorization certificate. Once the electronic device is powered on and started, it is in user mode.
[0056] In user mode, most services and functions are disabled, and only a minimal set of functions can be accessed. Users cannot call after-sales or R&D-specific interfaces / functions. In after-sales mode, interfaces / functions related to after-sales maintenance can be enabled, such as most functional tests and number reading and writing, but some functions will still be unavailable. In R&D mode, all interfaces / functions can be enabled, mainly referring to functions related to software and hardware stress testing and factory testing. This scenario is mainly used for R&D debugging and factory production.
[0057] In some embodiments of this application, the instructions / interfaces for writing the authorization certificate can be called in any scenario. That is, regardless of whether the user is a user, after-sales personnel, or R&D personnel, these interfaces can be enabled to ensure a smooth identity switching.
[0058] In some embodiments of this application, parsing the authorization certificate to confirm the current identity information corresponding to the real-time operating system may include: decrypting the authorization certificate to obtain a third string; parsing the third string according to the interval symbol to obtain first identification information and parsed identity information; comparing the first identification information with the identification information of the electronic device; if the first identification information matches the identification information of the electronic device, confirming the parsed identity information as the current identity information; if the first identification information does not match the identification information of the electronic device, confirming the first identity information as the current identity information.
[0059] In some embodiments of this application, the electronic device can decrypt the authorization certificate using a specific decryption algorithm to obtain a decrypted string. This decrypted string is then parsed to extract the strings before and after the separators. The string before the separators is the first identification information in this embodiment, and the string before the separators is the parsed identity information. The first identification information is compared with the identification information of the electronic device. If the first identification information matches the identification information of the electronic device, it indicates that the authorization certificate is indeed the authorization certificate of the electronic device, the authorization certificate verification is successful, and the parsed identity information is confirmed as the current identity information. If the first identification information does not match the identification information of the electronic device, it indicates that the authorization certificate is not the authorization certificate of the electronic device, the authorization certificate verification fails, and the user is confirmed as the current identity information.
[0060] In some embodiments of this application, the electronic device further includes a display module for displaying current identity information.
[0061] In some embodiments of this application, when the current identity information is a first identity information, the display module displays text content representing the first identity information, for example, the display module displays "User". When the current identity information is a second identity information, the display module displays text content representing the second identity information, for example, the display module displays "After-sales". When the current identity information is a research and development personnel, the display module displays text content representing a third identity information, for example, the display module displays "Research and Development".
[0062] In some embodiments of this application, when the current identity information is a user, the current identity information may not be displayed. The current identity information is displayed only when the current identity information is not the first identity information, that is, only when the current identity information is the second identity information.
[0063] Figure 2 This is a schematic diagram illustrating an overall process of an electronic device startup service provided in some embodiments of this application. The overall process of the electronic device startup service includes the following steps: Step 201: After the kernel initialization of the real-time operating system of the electronic device is completed, obtain the authorization certificate and the identification information of the electronic device stored in the electronic device; Step 202: Parse the authorization certificate to obtain the first identifier information and the parsed identity information; Step 203: Compare the first identification information with the identification information of the electronic device; Step 204: If the first identification information and the identification information of the electronic device are consistent, the parsed identity information is confirmed as the current identity information; if the first identification information and the identification information of the electronic device are inconsistent, the user is confirmed as the current identity information. Step 205: When the current identity information is a user, start the services included in the service group corresponding to the user; when the current identity information is an after-sales personnel, start the services included in the service group corresponding to the after-sales personnel; when the current identity information is a research and development personnel, start the services included in the service group corresponding to the research and development personnel.
[0064] Figure 3 This is a schematic diagram illustrating another overall process of the electronic device startup service provided in some embodiments of this application. The overall process of the electronic device startup service includes the following steps: Step 301: After the kernel initialization of the real-time operating system of the electronic device is completed, obtain the authorization certificate and the identification information of the electronic device stored in the electronic device; Step 302: Parse the authorization certificate to obtain the first identifier information and the parsed identity information; Step 303: Compare the first identification information with the identification information of the electronic device; Step 304: If the first identification information and the identification information of the electronic device are consistent, the parsed identity information is confirmed as the current identity information; if the first identification information and the identification information of the electronic device are inconsistent, the user is confirmed as the current identity information. Step 305: When an interaction request for the target service is received, check whether the target service exists in the service list corresponding to the current identity information; Step 306: If the target service exists in the service list corresponding to the current identity information, start the target service.
[0065] Figure 4 This is a schematic diagram illustrating another overall process of the electronic device startup service provided in some embodiments of this application. The overall process of the electronic device startup service includes the following steps: Step 401: After the kernel initialization of the real-time operating system of the electronic device is completed, obtain the authorization certificate and the identification information of the electronic device stored in the electronic device; Step 402: Parse the authorization certificate to obtain the first identifier information and the parsed identity information; Step 403: Compare the first identification information with the identification information of the electronic device; Step 404: If the first identification information and the identification information of the electronic device are consistent, the parsed identity information is confirmed as the current identity information; if the first identification information and the identification information of the electronic device are inconsistent, the user is confirmed as the current identity information. Step 405: Locate the service with the current identity information tag from among the multiple services of the electronic device; Step 405: Start the service that has been found and has the current identity information tag.
[0066] It should be noted that, Figures 2 to 4 The specific implementation process of each step can be referred to the description in the above embodiments, and will not be repeated here in the embodiments of this application.
[0067] Optionally, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps in the process of starting the electronic device service provided in this application embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0068] Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to some embodiments of this application.
[0069] The electronic device 600 includes, but is not limited to, components such as: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
[0070] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0071] The processor 610 is configured to: obtain the authorization certificate stored in the electronic device 600 after the kernel initialization of the real-time operating system of the electronic device 600 is completed; parse the authorization certificate to confirm the current identity information corresponding to the real-time operating system; if the current identity information matches the first identity information, start a first service associated with the first identity information, wherein the first identity information includes the user; and if the current identity information matches the second identity information, start a second service associated with the second identity information, wherein the second identity information includes after-sales personnel or R&D personnel.
[0072] In some embodiments of this application, the electronic device 600 includes a first service group and a second service group; the first service group includes at least one first service associated with first identity information, and the second service group includes at least one second service associated with second identity information; correspondingly, the processor 610 is specifically used for: If the current identity information matches the first identity information, load the first service group; in response to external input, start the first service included in the first service group; If the current identity information matches the second identity information, load the second service group; in response to external input, start the second service included in the second service group.
[0073] In some embodiments of this application, the electronic device 600 further includes a third service group, which includes at least one third service associated with third identity information; the second identity information includes after-sales personnel, and the third identity information includes R&D personnel; accordingly, the processor 610 is specifically used for: If the current identity information matches the third identity information, load the third service group; in response to external input, start the third services included in the third service group.
[0074] In some embodiments of this application, the third service includes: Query services, certificate verification services, certificate writing services, functional testing services, debugging services, and aging testing services.
[0075] In some embodiments of this application, the first service includes: query service, certificate verification service, and certificate writing service; The second service includes: query services, certificate verification services, certificate writing services, and functional testing services.
[0076] In some embodiments of this application, the query service includes at least one of the following: Query device serial number, query device name, query device manufacturing date, query device hardware version number.
[0077] In some embodiments of this application, the electronic device 600 includes a pre-set first service list, which is used to query a first service associated with the first identity information; correspondingly, the processor 610 is specifically used for: Interacting with the target service in response to external input; If the current identity information matches the first identity information, the system determines whether the target service is associated with the first identity information based on the first service list. If the target service is confirmed to be associated with the primary identity information, the primary service is activated. If it is confirmed that the target service is not related to the primary identity information, the interaction request is ignored.
[0078] In some embodiments of this application, the electronic device 600 includes a pre-set second service list, which is used to query a second service associated with the second identity information; correspondingly, the processor 610 is specifically used for: Interacting with the target service in response to external input; If the current identity information matches the second identity information, the system determines whether the target service is associated with the second identity information based on the second service list. If the target service is confirmed to be associated with the second identity information, the second service is activated; If it is confirmed that the target service is not associated with the second identity information, the interaction request is ignored.
[0079] In some embodiments of this application, the processor 610 is also used for: Before initializing the kernel, in response to a read command sent by an external device, the identification information of the electronic device is sent to the external device so that the external device can send the identification information and the fourth identity information to the server. The server generates an authorization certificate based on the identification information and the fourth identity information and sends it to the external device. The fourth identity information is the identity information configured by the external device. In response to a certificate write command sent by an external device, the authorization certificate is written into electronic device 600.
[0080] In some embodiments of this application, the authorization certificate is stored in the non-brushable flash memory area of the electronic device.
[0081] In some embodiments of this application, the processor 610 is specifically used for: The third string is obtained by decrypting the authorization certificate; The third string is parsed based on the separator symbol to obtain the first identifier information and the parsed identity information; Compare the first identification information with the identification information of electronic device 600; If the first identification information matches the identification information of the electronic device 600, the parsed identity information will be confirmed as the current identity information; If the first identification information is inconsistent with the identification information of the electronic device 600, the first identity information shall be confirmed as the current identity information.
[0082] In some embodiments of this application, the display unit 606 is used to display current identity information.
[0083] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0084] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0085] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.
[0086] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various steps in the process of starting the electronic device service provided in this application and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0087] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0088] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various steps in the process of starting the electronic device service provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0089] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0090] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various steps in the process of the electronic device startup service provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0091] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0092] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the various steps in the process of the electronic device startup service provided in the various embodiments of this application.
[0093] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An electronic device, characterized in that, Once the kernel initialization of the real-time operating system of the electronic device is complete, the authorization certificate stored in the electronic device is obtained; The authorization certificate is parsed to confirm the current identity information corresponding to the real-time operating system; If the current identity information matches the first identity information, a first service associated with the first identity information is initiated, wherein the first identity information includes the user; If the current identity information matches the second identity information, a second service associated with the second identity information is activated, wherein the second identity information includes after-sales personnel or R&D personnel.
2. The electronic device according to claim 1, characterized in that, The electronic device includes a first service group and a second service group; the first service group includes at least one first service associated with the first identity information, and the second service group includes at least one second service associated with the second identity information; If the current identity information matches the first identity information, the first service group is loaded; In response to external input, the first service included in the first service group is started; If the current identity information matches the second identity information, the second service group is loaded; in response to external input, the second service included in the second service group is started.
3. The electronic device according to claim 2, characterized in that, The electronic device also includes a third service group, which includes at least one third service associated with third identity information; the second identity information includes after-sales personnel, and the third identity information includes R&D personnel; If the current identity information matches the third identity information, the third service group is loaded. In response to external input, the third service included in the third service group is started.
4. The electronic device according to claim 3, characterized in that, The third service includes: Query services, certificate verification services, certificate writing services, functional testing services, debugging services, and aging testing services.
5. The electronic device according to claim 1, characterized in that, The first service includes: Query services, certificate verification services, and certificate writing services; The second service includes: The query service, the certificate verification service, the certificate writing service, and the functional testing service.
6. The electronic device according to claim 1, characterized in that, The electronic device includes a pre-set first service list, which is used to query the first service associated with the first identity information; When the current identity information matches the first identity information, activating the first service associated with the first identity information includes: Interactive requests to the target service in response to external input; If the current identity information matches the first identity information, it is determined whether the target service is associated with the first identity information based on the first service list. If the target service is confirmed to be associated with the first identity information, the first service is started; If it is confirmed that the target service is not associated with the first identity information, the interaction request is ignored.
7. The electronic device according to claim 1, characterized in that, Before initializing the kernel, in response to a read command sent by an external device, the identification information of the electronic device is sent to the external device, so that the external device can send the identification information and the fourth identity information to the server. The server generates the authorization certificate based on the identification information and the fourth identity information and sends it to the external device, wherein the fourth identity information is the identity information configured by the external device. In response to a certificate write command sent by an external device, the authorization certificate is written into the electronic device.
8. The electronic device according to claim 7, characterized in that, The external device sends the identification information and fourth identity information to the server, including: The external device concatenates the identification information and the fourth identity information using a separator symbol to obtain a first string; Send the first string to the server.
9. The electronic device according to claim 8, characterized in that, The server generates the authorization certificate based on the identification information and the fourth identity information, including: The server uses a hash algorithm to encrypt the first string to obtain the second string; Use the second string as the authorization certificate.
10. The electronic device according to claim 9, characterized in that, The step of parsing the authorization certificate to confirm the current identity information corresponding to the real-time operating system includes: The authorization certificate is decrypted to obtain a third string; The third string is parsed based on the interval symbol to obtain the first identification information and the parsed identity information; Compare the first identification information with the identification information of the electronic device; If the first identification information matches the identification information of the electronic device, the parsed identity information is confirmed as the current identity information; If the first identification information is inconsistent with the identification information of the electronic device, the first identity information shall be confirmed as the current identity information.