List detection method and apparatus, electronic device, and readable storage medium

By displaying ACPI list identifiers in the user interface and automatically detecting them according to encoding rules, the problem of low efficiency in ACPI list detection in existing technologies is solved, and efficient automatic detection is achieved.

CN116339577BActive Publication Date: 2026-07-21LOONGSON TECH CORP
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LOONGSON TECH CORP
Filing Date
2021-12-24
Publication Date
2026-07-21

Smart Images

  • Figure CN116339577B_ABST
    Figure CN116339577B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a list detection method and device, electronic equipment and a readable storage medium, and relates to the technical field of electronic equipment. The method comprises the following steps: displaying list identifiers of at least one list in a list selection area in a user interface; in response to a first input, determining a target list identifier from the list selection area; detecting a target list according to a coding rule corresponding to the target list to which the target list identifier belongs; and outputting a detection result. By displaying the list identifiers in the user interface and detecting the list corresponding to the list identifier selected by the user and outputting the detection result, automatic detection of ACPI lists can be realized, so that the detection efficiency of ACPI lists can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic equipment technology, and in particular to a list detection method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] The Advanced Configuration and Power Interface (ACPI) is an industry standard that provides configuration and power management interfaces for software and hardware. It is widely used in various computer platforms, providing them with high-performance power management and other functions. ACPI is implemented based on multiple ACPI lists, each containing configuration information for hardware devices, enabling functions such as power management, performance management, system events, temperature management, and battery management.

[0003] In the design process of electronic devices, it is often necessary to fill in and check the ACPI list to ensure the accuracy of the information contained therein. In current technology, users can only manually check the ACPI list, which is inefficient. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a list detection method, apparatus, electronic device and readable storage medium that overcomes or at least partially solves the above problems.

[0005] To address the above problems, embodiments of the present invention disclose a list detection method, including:

[0006] The list selection area in the user interface displays the list identifiers of at least one list; the at least one list includes a list of advanced configuration and power management interfaces;

[0007] In response to the first input, a target list identifier is determined from the list selection area;

[0008] The target list is detected according to the encoding rules corresponding to the target list to which the target list identifier belongs, and the detection results are output.

[0009] This invention discloses a list detection device, comprising:

[0010] The display module is used to display the list identifiers of at least one list in the list selection area of ​​the user interface; the at least one list includes a list of advanced configuration and power management interfaces;

[0011] A determination module is configured to determine a target list identifier from the list selection area in response to a first input;

[0012] The detection module is used to detect the target list according to the encoding rules corresponding to the target list to which the target list identifier belongs, and output the detection results.

[0013] This invention discloses an electronic device, comprising:

[0014] processor;

[0015] Memory used to store the processor's executable instructions;

[0016] The processor is configured to execute the instructions to implement the list detection method described above.

[0017] This invention discloses a readable storage medium that, when the instructions in the readable storage medium are executed by a processor in an electronic device, enables the electronic device to perform the list detection method described above.

[0018] In this embodiment of the invention, at least one list identifier is displayed in the list selection area of ​​the user interface. In response to a first input, a target list identifier is determined from the list selection area. The target list is then detected according to the encoding rules corresponding to the target list to which the target list identifier belongs, and the detection result is output. By displaying list identifiers in the user interface and detecting the list corresponding to the user-selected list identifier, and outputting the detection result, automatic detection of ACPI lists can be achieved, thereby improving the detection efficiency of ACPI lists. Attached Figure Description

[0019] Figure 1 A flowchart illustrating the steps of a list detection method according to an embodiment of the present invention is shown;

[0020] Figure 2 A schematic diagram of a user interface according to an embodiment of the present invention is shown;

[0021] Figure 3 A schematic diagram of a list selection area according to an embodiment of the present invention is shown;

[0022] Figure 4 A schematic diagram of a list detection embodiment of the present invention is shown;

[0023] Figure 5 Another schematic diagram of list detection in an embodiment of the present invention is shown;

[0024] Figure 6 A schematic diagram of a content display area according to an embodiment of the present invention is shown;

[0025] Figure 7 A schematic diagram of a list reading embodiment of the present invention is shown;

[0026] Figure 8 A schematic diagram of a list detection device according to an embodiment of the present invention is shown;

[0027] Figure 9 A structural block diagram of an electronic device according to an embodiment of the present invention is shown. Detailed Implementation

[0028] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0029] Reference Figure 1 The diagram illustrates a flowchart of a list detection method according to an embodiment of the present invention. The method may include:

[0030] Step 101: Display the list identifier of at least one list in the list selection area of ​​the user interface.

[0031] At least one of these lists includes a list of Advanced Configuration and Power Management Interfaces (ACPIs). The user interface can be the interface of a list checking program running on the electronic device. This program checks the ACPI lists to determine if their contents match the encoding rules. There are multiple ACPI-related lists, each storing configuration information for a type of hardware device. Each type of information consists of several items. Examples of ACPI lists include a Fixed ACPI Description Table (FADT), a Differentiated System Description Table (DSDT), a Multiple APIC Description Table (MADT), a Firmware ACPI Control Structure (FACS), and a Static Resource Relationship Table (SRAT). For example, one item in an ACPI list might include configuration information for a fan in the electronic device, such as power-on time, standby time, and operating power.

[0032] In this embodiment, the list detection method can be executed by an electronic device with a display function, such as a computer with a display screen. After the user starts the list detection program on the electronic device, the electronic device can run the list detection program and display the user interface of the list detection program on the display screen. Furthermore, the electronic device can acquire the ACPI list and display the list identifier of the acquired ACPI list in the list selection area of ​​the user interface. Figure 2 As shown, Figure 2 A schematic diagram of a user interface according to an embodiment of the present invention is shown. The user interface includes... Figure 2 The diagram shows the list selection area 201, content display area 202, and result display area 203. After starting the list detection program and obtaining the ACPI list, the electronic device can display the list identifiers of each ACPI list in the example above through the list selection area 201 in the user interface. The list identifier can be the list name of the ACPI list; for example, the list identifier of the DSDT list can be the list name of the DSDT, "DSDT.dsl". The list identifier is used to distinguish different ACPI lists, and the specific form of the list identifier can be set according to requirements; this embodiment does not limit this.

[0033] like Figure 3 As shown, Figure 3 This diagram illustrates a list selection area according to an embodiment of the present invention. Figure 3 Taking list identifier 2011 as an example, list identifier 2011 is the list identifier of the DSDT list acquired by the electronic device. The list selection area 201 is used to display the list identifiers of multiple acquired ACPI lists, making it convenient for the user to select an ACPI list corresponding to a list identifier from the list selection area 201 for testing.

[0034] In one embodiment, the electronic device can read its own ACPI list to detect its own ACPI list. For example, the electronic device can read the machine code of at least one list from a location in the operating system (OS) where the list is read; and decompile the machine code to obtain at least one list.

[0035] After the operating system in the electronic device starts running, the Basic Input Output System (BIOS) stores the device's own ACPI list in the device's memory. The operating system can then read the ACPI list from memory. Different operating systems allow the device to read the ACPI list from memory using different methods. For example, if the device is running Linux, after starting the list detection program, it can read its own ACPI list from memory by specifying a path. If it is running Windows, it can call the corresponding interface function to read its own ACPI list from memory. The device's ACPI list is stored in memory in machine code (Machine Language). After reading the machine code ACPI list, the device can decompile it to obtain the source language ACPI list. The source language is the language used when the ACPI table was initially written, and users can read and understand it. After obtaining the source language ACPI list, the list identifier for each read ACPI list can be displayed in the list selection area.

[0036] Optionally, the step of decompiling the machine code to obtain at least one list includes:

[0037] Trigger the execution of the decompilation tool; use the decompilation tool to decompile the machine code of at least one list to obtain at least one list.

[0038] In one embodiment, a user can pre-install a decompilation tool in the electronic device; this tool can also be called a decompiler. After the electronic device reads the ACPI list in machine code form from memory, it can first start and run the decompilation tool, inputting the read ACPI list in machine code form into the tool. The decompilation tool then decompiles the read ACPI list in machine code form to obtain the ACPI list in the source language form. The decompilation tool can be part of a list checking program or independent of it.

[0039] In this embodiment of the invention, the electronic device can read its own ACPI list, which makes it easier for users to check the ACPI list of the electronic device and discover any problems in the ACPI list.

[0040] It should be noted that electronic devices can also obtain the ACPI list in the source language format through other means. For example, when a user needs to test a pre-edited ACPI list in the source language format, the edited ACPI list in the source language format can be stored in a preset location on the electronic device. When the user starts the list testing program, the electronic device reads the pre-stored ACPI list in the source language format from the preset location and displays the list identifier of the read ACPI list in the list selection area.

[0041] Step 102: In response to the first input, determine the target list identifier from the list selection area.

[0042] The first input is used to determine a target list identifier from the list selection area in order to detect the list to which the target list identifier belongs.

[0043] For example, the first input could be an action of clicking a list icon within the list selection area. For instance, a user could use a mouse to click... Figure 3 The list identifier 2011 is shown. Alternatively, when the display is a touchscreen, the user can directly tap the list identifier 2011 displayed on the touchscreen. The electronic device can receive the user's tap operation and, in response to the tap operation, determine the tapped list identifier 2011 as the target list identifier. Alternatively, the first input can be a tapping operation to open a button, for example, after the user selects a list identifier in the list selection area using the mouse, they can tap... Figure 2 The open button 205 shown allows the electronic device to determine the selected list identifier as the target list identifier in response to clicking the open button. The specific form of the first input can be set according to requirements, and this embodiment does not limit it.

[0044] In one embodiment, the electronic device can also delete ACPI lists that do not require list checking upon receiving a deletion command input by the user. For example... Figure 2 As shown, the user interface includes a delete button 204. When a user selects a list identifier in the list selection area and clicks the delete button 204, a delete command can be input to the electronic device. The electronic device can respond to the user's click operation by deleting the selected list identifier and deleting the ACPI list corresponding to that list identifier.

[0045] Step 103: Detect the target list according to the encoding rules corresponding to the target list to which the target list identifier belongs, and output the detection results.

[0046] The encoding rules are pre-defined specifications set by the user for a specific ACPI list. For the same hardware device, the encoding rules describe the device's configuration information, and the corresponding ACPI list also describes the same configuration information. The configuration information described in the encoding rules is the standard, correct configuration information, while the configuration information described in the ACPI list is the actual configuration information used. For ease of distinction, this embodiment refers to the correct configuration information described in the encoding rules as the standard configuration information, and the configuration information described in the corresponding ACPI list as the actual configuration information. For a given hardware device, if the actual configuration information described in the ACPI list does not match the standard configuration information described in the encoding rules, it indicates an error in the description of the hardware device in the ACPI list. In this case, the electronic device will malfunction when controlling the hardware device based on the configuration information in the ACPI list. For example, if the fan's operating power is described as 30 to 50 watts in the encoding rules, and the fan's operating power is less than 20 watts or greater than 30 watts in the ACPI list, then the ACPI list and encoding rules do not match, and the configuration information of the fan described in the ACPI list is incorrect.

[0047] In practical applications, encoding rules can be set separately for each ACPI list. After determining the target list, the encoding rule corresponding to the target list can be selected from multiple pre-set encoding rules. For example, the encoding rule can use the same identifier as the corresponding ACPI list. The electronic device can select the encoding rule with the same identifier from multiple ACPI list encoding rules as the encoding rule for the target list based on the list identifier of the ACPI list. Alternatively, a single encoding rule can be set for all ACPI lists, including the configuration information corresponding to each item in each ACPI list.

[0048] In this embodiment, the user can pre-store the encoding rules in a preset location on the electronic device. After determining the target list, the electronic device first retrieves the encoding rules corresponding to the target list from the preset location. Then, it compares the actual configuration information of each hardware device included in the target list with the standard configuration information of that hardware device included in the encoding rules. It detects whether the actual configuration information of the hardware devices included in the target list matches the standard configuration information included in the encoding rules and outputs the detection result. For example, if the fan's operating power described in the encoding rules is 30 to 50 watts, and the fan's operating power described in the ACPI list is less than 20 watts or greater than 30 watts, then it is determined that the ACPI list does not match the encoding rules, and the configuration information of the fan described in the ACPI list is incorrect. A detection result indicating an error in the ACPI list can be output.

[0049] The electronic device can also execute step 103 to detect the target list upon receiving a detection command input by the user. For example... Figure 2 As shown, the user interface includes a detection button 206. After selecting and confirming the target list identifier, the user can click the detection button 206 to input a detection command into the electronic device. The electronic device can respond to the user's click of the detection button 206 and execute step 103 to detect the target list to which the target list identifier belongs. The specific input method for the detection command may include, but is not limited to, the example above.

[0050] like Figure 4 and Figure 5 As shown, Figure 4 This diagram illustrates a list detection method according to an embodiment of the present invention. Figure 5 This illustrates another list detection schematic diagram in an embodiment of the present invention. Figure 4 The image shows a list of items included in a specific ACPI list. Figure 5 The image shows information from another list included in a particular ACPI list. Figure 4 and Figure 5 It consists of two lists in two formats, each containing the actual configuration information of two hardware devices. Figure 4 and Figure 5 In this context, "DEVICE" refers to the device identifier of the hardware device. Figure 4 The actual configuration information of the hardware devices is the content included in the Package. Figure 4 The symbols “1, 2, 3 and 4” indicate the parsing steps for list items. Figure 5 The actual configuration information of the hardware device is the content included in QWordMemory. Figure 5 The symbols "1, 2, and 3" represent the parsing steps for list items. After obtaining the ACPI list, the electronic device... Figure 4 The list information shown can be parsed and used in steps 1, 2, 3, and 4 to obtain the actual configuration information of the hardware device, i.e., the contents included in the Package. For... Figure 5 The list information shown can be parsed using steps 1, 2, and 3 to obtain the actual configuration information of the hardware device. After obtaining the actual configuration information, the electronic device can retrieve the standard configuration information corresponding to the device identifier from the encoding rules based on the device identifier of the hardware device, and then compare the actual configuration information with the standard configuration information to determine whether the two match.

[0051] Specifically, when the ACPI list does not match the encoding rules, the detection result may include a first notification message indicating an error in the ACPI list; when the ACPI list matches the encoding rules, the detection result may include a second notification message indicating that the ACPI list is correct. The specific formats of the first and second notification messages can be set according to requirements.

[0052] Optionally, the step of outputting the detection results may include: displaying the detection results in the result display area of ​​the user interface; and / or, outputting a detection file including the detection results.

[0053] In this embodiment, the electronic device can directly display the detection results in the result display area of ​​the user interface. Referring to the above example, when a mismatch is detected between the actual configuration information and the standard configuration information of the fan, it can... Figure 2 The first notification information, which can be text, is displayed in the results display area 203. Simultaneously, the electronic device can also display the actual configuration information and standard configuration information of the fan in the results display area 203, allowing the user to compare the actual and standard configuration information and identify errors in the ACPI list. Conversely, when a match is detected between the actual and standard configuration information of the fan, [further information can be displayed]. Figure 2 The result display area 203 shows the second notification information, which can be text information.

[0054] When the test results are displayed in the results display area, users can save or clear the results as needed. For example... Figure 2 As shown, the user interface includes a save button 207 and a clear button 208. After the electronic device displays the test results in the results display area, if the user needs to save the test results, they can click the save button 207 to input a save command to the electronic device. The electronic device can respond to the user's click operation and save the test results displayed in the results display area as a file in the target format. Conversely, when the user does not need to save the test results, they can click the clear button 208 to input a clear command to the electronic device. The electronic device can respond to the user's click of the clear button operation and delete the test results displayed in the results display area. The specific input methods for the save and clear commands can be set according to requirements, and this embodiment does not impose any restrictions on them.

[0055] In one embodiment, the electronic device can also output the detection results in the form of a detection file. The detection file is, for example, a text document (TXT). When a mismatch is detected between the actual configuration information and the standard configuration information of the fan, the electronic device can generate a text document containing the actual configuration information, the standard configuration information, and a first notification message. Conversely, when a match is detected between the actual configuration information and the standard configuration information, a text document can also be output, containing the actual configuration information, the standard configuration information, and a second notification message. The specific format of the detection file can be set according to requirements, and this embodiment does not limit this.

[0056] Optionally, the method may further include displaying part or all of the contents of the target list in the content display area of ​​the user interface.

[0057] In one embodiment, the electronic device can display part or all of the contents of the target list through a content display area in the user interface. For example... Figure 6 As shown, Figure 6 A schematic diagram of a content display area according to an embodiment of the present invention is shown. After responding to a first input and determining a target list identifier from at least one list, the content display area can display part or all of the content 601 of the target list. When the content of the target list is displayed in the content display area 202, it can be displayed in the original language to facilitate user reading of the content in the target list.

[0058] When the content display area cannot display all the content in the target list at once, the user can enter a selection command to select a portion of the target list for display. For example... Figure 6 As shown, the content display area includes a sliding control 2021. Users can operate the sliding control 2021 to control the content display area to select a portion of the content from the target list and display it in the content display area.

[0059] In this embodiment of the invention, displaying part or all of the content in the target list through the content display area in the user interface facilitates user observation of the contents included in the target list. Simultaneously, it facilitates user observation of erroneous content in the target list when errors are detected.

[0060] Optionally, the step of displaying part or all of the content in the target list in the content display area of ​​the user interface may include:

[0061] Identify the target content that matches the encoding rules from the target list and display the target content in the content display area.

[0062] In one embodiment, during the display of the contents of the target list, the electronic device can only display the target content that matches the encoding rule, allowing the user to quickly view the content that needs to be detected. The target content that matches the encoding rule is the content included in the list information corresponding to a certain item in the encoding rule. For example, if the encoding rule includes a list information item for a fan, and the target list also includes a list information item for a fan, then when displaying the contents of the target list, the fan's configuration information can be selected from the target list for display. Conversely, if the encoding rule does not include fan configuration information, then the fan's configuration information will not be displayed. By displaying only the target content that matches the encoding rule when displaying the contents of the target list, irrelevant content is avoided from interfering with the user's viewing of important content in the target list, thereby improving efficiency.

[0063] Optionally, before decompiling the read machine code, the method may further include:

[0064] Determine if the machine code matches the encoding rules.

[0065] like Figure 7 As shown, Figure 7 This illustration shows a list reading diagram according to an embodiment of the present invention. After the electronic device reads multiple ACPI lists in machine code form from memory, it first determines whether the pre-stored multiple encoding rules include the encoding rule corresponding to each ACPI list in machine code form. If so, the ACPI lists in machine code form are decompiled to obtain the ACPI lists in the source language form; otherwise, they are not decompiled. For example, for a certain ACPI list in machine code form, if the encoding rules do not include the encoding rule corresponding to that ACPI list, it is determined that the ACPI list in machine code form does not match the encoding rules, and the ACPI list in machine code form is not decompiled. Conversely, if the encoding rules include the encoding rule corresponding to that ACPI list, it is determined that the ACPI list in machine code form matches the encoding rules, and the ACPI list in machine code form is decompiled to obtain the ACPI lists in the source language form.

[0066] In this embodiment of the invention, when reading the ACPI list of the electronic device itself, the ACPI list in machine code form that matches the encoding rules is decompiled, which can avoid detecting ACPI lists that do not need to be detected, thereby improving efficiency.

[0067] In summary, in this embodiment of the invention, at least one list identifier is displayed in the list selection area of ​​the user interface. In response to a first input, a target list identifier is determined from the list selection area. The target list is then detected according to the encoding rules corresponding to the target list to which the target list identifier belongs, and the detection result is output. By displaying list identifiers in the user interface and detecting the list corresponding to the user-selected list identifier, and outputting the detection result, automatic detection of ACPI lists can be achieved, thereby improving the detection efficiency of ACPI lists.

[0068] Reference Figure 8 , Figure 8 A schematic diagram of a list detection device according to an embodiment of the present invention is shown. The device 800 may include:

[0069] Display module 801 is used to display list identifiers of at least one list in the list selection area of ​​the user interface; the at least one list includes a list of advanced configuration and power management interfaces;

[0070] Determining module 802 is used to determine a target list identifier from the list selection area in response to the first input;

[0071] The detection module 803 is used to detect the target list according to the encoding rules corresponding to the target list to which the target list identifier belongs, and output the detection results.

[0072] Optionally, the display module 801 is also used to display part or all of the contents of the target list in the content display area of ​​the user interface.

[0073] Optionally, the display module 801 is specifically used to determine the target content that matches the encoding rules from the target list and display the target content in the content display area.

[0074] Optionally, the device 800 further includes: an acquisition module for reading machine code of at least one list from a location where the operating system reads the list; and a decompilation module for decompiling the machine code to obtain at least one list.

[0075] Optionally, the detection module 803 is used to display the detection results in the result display area of ​​the user interface; and / or, output a detection file including the detection results.

[0076] Optionally, the acquisition module is also used to determine whether the machine code matches the encoding rules.

[0077] Optionally, the decompilation module is specifically used to trigger the execution of a decompilation tool; the decompilation tool decompiles the machine code of at least one list to obtain at least one list.

[0078] This invention discloses an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the list detection method described above.

[0079] This invention discloses a readable storage medium that, when the instructions in the readable storage medium are executed by a processor in an electronic device, enables the electronic device to perform the list detection method described above.

[0080] Figure 9 A structural block diagram of an electronic device according to an embodiment of the present invention is shown. For example, the electronic device 900 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0081] Reference Figure 9 The electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0082] Processing component 902 typically controls the overall operation of electronic device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0083] Memory 904 is configured to store various types of data to support the operation of electronic device 900. Examples of this data include instructions for any application or method operating on electronic device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0084] Power supply component 906 provides power to various components of electronic device 900. Power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 900.

[0085] Multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0086] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured not to receive external audio signals when electronic device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. Received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.

[0087] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0088] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of electronic device 900. For example, sensor assembly 914 can detect the on / off state of electronic device 900, the relative positioning of components such as the display and keypad of electronic device 900, changes in position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, orientation or acceleration / deceleration of electronic device 900, and temperature changes of electronic device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0089] Communication component 916 is configured to facilitate wired or wireless communication between electronic device 900 and other devices. Electronic device 900 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0090] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0091] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0092] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0093] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0094] These computer program instructions may also be stored in a computer-readable storage medium capable of directing a computer or other programmable data processing terminal device to operate in a predictive manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0096] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0097] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device 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 terminal device. 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 terminal device that includes said element.

[0098] The above provides a detailed description of the list detection method, list detection device, electronic device, and readable storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A list detection method, characterized in that, include: The list selection area in the user interface displays the list identifier of at least one list; The at least one list includes a list of advanced configuration and power management interfaces; In response to the first input, a target list identifier is determined from the list selection area; The target list is detected according to the encoding rule corresponding to the target list to which the target list identifier belongs, and the detection result is output; wherein, the encoding rule includes the configuration information of the hardware device, and the actual configuration information described in the target list is detected to match the standard configuration information described in the encoding rule. If they do not match, the hardware description in the target list is incorrect. Before displaying the list identifier of at least one pre-acquired list in the list selection area of ​​the user interface, the method further includes: Read the machine code of at least one list from the location where the list is read from the operating system; Determine whether the encoding rules include encoding rules corresponding to the machine code. If so, decompile the machine code to obtain the at least one list.

2. The method according to claim 1, characterized in that, After determining the target list identifier from the list selection area in response to the first input, the method further includes: The content display area in the user interface displays some or all of the contents of the target list.

3. The method according to claim 2, characterized in that, The content display area in the user interface displays some or all of the content in the target list, including: Target content that matches the encoding rule is determined from the target list, and the target content is displayed in the content display area.

4. The method according to claim 1, characterized in that, The output detection results include: The detection results are displayed in the result display area of ​​the user interface; and / or, The output includes a detection file containing the detection results.

5. The method according to claim 1, further comprising, before decompiling the machine code to obtain the at least one list: Determine that the machine code matches the encoding rule.

6. The method according to claim 1, characterized in that, The process of decompiling the machine code to obtain at least one list includes: Trigger the execution of the decompilation tool; The machine code of the at least one list is decompiled using the decompilation tool to obtain the at least one list.

7. A list detection device, characterized in that, include: The display module is used to display the list identifier of at least one list in the list selection area of ​​the user interface; The at least one list includes a list of advanced configuration and power management interfaces; A determination module is configured to determine a target list identifier from the list selection area in response to a first input; The detection module is used to detect the target list according to the encoding rules corresponding to the target list to which the target list identifier belongs, and output the detection results; the encoding rules include the configuration information of the hardware devices, and detect whether the actual configuration information described in the target list matches the standard configuration information described in the encoding rules. If they do not match, the hardware description in the target list is incorrect. The acquisition module is used to read the machine code of at least one list from the location where the list is read from the operating system; The decompilation module is used to determine whether the encoding rules include encoding rules corresponding to the machine code. If so, the machine code is decompiled to obtain at least one list.

8. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the list detection method as described in any one of claims 1-6.

9. A readable storage medium, wherein when instructions in the readable storage medium are executed by a processor in an electronic device, the electronic device is enabled to perform the list detection method as described in any one of claims 1-6.