Information processing method and terminal device

By detecting and deleting the characteristic information of abnormal peripheral hardware during the terminal system startup phase, system abnormalities caused by peripheral hardware damage or failure are resolved, ensuring the normal operation of the entire machine and user experience.

CN115167928BActive Publication Date: 2025-09-26QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210738958.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2025-09-26
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

The peripheral hardware of the mobile terminal, such as NFC and Beidou GPS, is damaged or fails, causing software function failure and anomalies, affecting the normal operation of the system and user experience.

Method used

During the initial startup phase of the terminal system, the peripheral hardware status is detected and characteristic information of abnormal status is deleted so that the system software and application software do not start the functional process of abnormal hardware, thus ensuring the normal operation of the entire machine.

Benefits of technology

By dynamically tailoring the functions of abnormal peripheral hardware, system anomalies and freezes are avoided, user experience is improved, and the probability of device shutdown is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115167928B_ABST
    Figure CN115167928B_ABST
Patent Text Reader

Abstract

The present application discloses an information processing method and terminal device, which are used to ensure that the normal operation of the entire device is not affected when the peripheral hardware of the user terminal is abnormal, thereby improving the user experience. The information processing method provided by the present application includes: in the initial stage of terminal system startup, detecting whether the status of at least one peripheral hardware of the terminal is abnormal; if it is detected that the status of at least one peripheral hardware of the terminal is in an abnormal state in the initial stage of the terminal system startup, deleting the characteristic information corresponding to the peripheral hardware in the abnormal state, so that the system software and / or third-party application software of the terminal determines that the terminal does not support the function of the peripheral hardware in the abnormal state, and does not start the software process corresponding to the peripheral hardware in the abnormal state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software technology, and in particular to an information processing method and terminal device. Background Art

[0002] Mobile phone terminal peripherals, such as Near Field Communication (NFC) and Beidou GPS, can be damaged or fail, causing the corresponding software functions to fail. This can also generate a large number of peripheral software anomalies and related software anomalies, affecting the normal operation of the mobile phone terminal system, such as system freezes, increased power consumption, system restarts, and even affecting the user's normal use. Summary of the Invention

[0003] The embodiments of the present application provide an information processing method and a terminal device, which are used to ensure that the normal operation of the entire device is not affected when the peripheral hardware of the user terminal is abnormal, thereby improving the user experience.

[0004] An information processing method provided in an embodiment of the present application includes:

[0005] In the initial stage of starting the terminal system, detecting whether the status of at least one peripheral hardware of the terminal is abnormal;

[0006] If it is detected that the status of at least one peripheral hardware of the terminal is in an abnormal state during the initial stage of startup of the terminal system, the characteristic information corresponding to the peripheral hardware in the abnormal state is deleted, so that the system software and / or third-party application software of the terminal determines that the terminal does not support the function of the peripheral hardware in the abnormal state, and does not start the software process corresponding to the peripheral hardware in the abnormal state.

[0007] Through this method, if it is detected that the status of at least one peripheral hardware of the terminal is in an abnormal state during the initial stage of starting the terminal system, the characteristic information corresponding to the peripheral hardware in the abnormal state is deleted, so that the system software and / or third-party application software of the terminal determines that the terminal does not support the function of the peripheral hardware in the abnormal state, and does not start the software process corresponding to the peripheral hardware in the abnormal state. Therefore, it can be ensured that the normal operation of the entire machine is not affected when the peripheral hardware of the user terminal is abnormal, thereby improving the user experience.

[0008] In some embodiments, the detecting whether the status of at least one peripheral hardware of the terminal is abnormal during the initial stage of starting the terminal system includes:

[0009] In the initial stage of terminal system startup, it is detected whether a driver node corresponding to at least one peripheral hardware of the terminal exists. If not, it is determined that the state of the peripheral hardware without the driver node is abnormal; otherwise, it is determined that the state of the peripheral hardware with the driver node is normal.

[0010] In some embodiments, for any of the peripheral hardware, detecting whether a driver node corresponding to the peripheral hardware exists includes:

[0011] The terminal kernel loads the driver of the peripheral hardware;

[0012] Creating a driver node corresponding to the peripheral hardware through the driver of the peripheral hardware;

[0013] Detecting whether the peripheral hardware exists or is abnormal through the driver of the peripheral hardware, and if the peripheral hardware does not exist or is abnormal, deleting the driver node corresponding to the peripheral hardware through the driver of the peripheral hardware;

[0014] If the driver node corresponding to the peripheral hardware is deleted, it is determined that the driver node corresponding to the peripheral hardware does not exist.

[0015] In some embodiments, the method further comprises:

[0016] After the terminal system is started, in the system configuration of the initialization phase of the package management service of the system service process, characteristic information corresponding to at least one peripheral hardware of the terminal is obtained and cached.

[0017] In some embodiments, the obtaining and caching characteristic information corresponding to at least one peripheral hardware of the terminal includes:

[0018] During the initialization phase of the package management service startup, the system configuration read all permissions method is called to parse the file under the preset path for storing the characteristic information corresponding to the peripheral hardware, and the parsing results are cached.

[0019] In some embodiments, deleting characteristic information corresponding to the peripheral hardware in an abnormal state includes:

[0020] The characteristic information corresponding to the peripheral hardware in the abnormal state is deleted from the cache.

[0021] In some embodiments, the method further comprises:

[0022] If no abnormal state of the peripheral hardware of the terminal is detected during the initial stage of the terminal system startup, the system startup process continues to be executed; and after the system startup process is completed, the method further includes:

[0023] Periodically detecting whether a status of at least one peripheral hardware of the terminal is abnormal, and if abnormal peripheral hardware is detected, notifying a user to restart the terminal;

[0024] If the user does not respond to the notification to restart the terminal and perform an operation to restart the terminal, the terminal is automatically restarted when a preset condition is met.

[0025] Another embodiment of the present application provides a terminal device, which includes a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions stored in the memory and execute any of the above methods according to the obtained program.

[0026] Furthermore, according to an embodiment, a computer program product for a computer is provided, for example, comprising software code portions for executing the steps of the method defined above when the product is executed on the computer. The computer program product may include a computer-readable medium having the software code portions stored thereon. Furthermore, the computer program product may be directly loaded into the internal memory of the computer and / or transmitted via a network through at least one of an upload process, a download process, and a push process.

[0027] Another embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0029] Figure 1 A schematic diagram of the overall flow of an information processing method provided in an embodiment of the present application;

[0030] Figure 2 A schematic diagram of a process for detecting whether the status of at least one peripheral hardware of the terminal is abnormal, provided in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of a process for detecting whether a driver node corresponding to the peripheral hardware exists, provided in an embodiment of the present application;

[0032] Figure 4 A schematic diagram of a specific flow chart of an information processing method provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of a process for obtaining and caching characteristic information corresponding to at least one peripheral hardware of the terminal provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of a process for deleting characteristic information corresponding to peripheral hardware in an abnormal state provided in an embodiment of the present application;

[0035] Figure 7 A schematic flow chart of an information processing method provided in an embodiment of the present application;

[0036] Figure 8 A schematic flow chart of an information processing method provided in an embodiment of the present application;

[0037] Figure 9 A schematic flow chart of an information processing method provided in an embodiment of the present application;

[0038] Figure 10 A schematic diagram of a specific process after the system startup process is completed provided in an embodiment of the present application;

[0039] Figure 11 A schematic flow chart of an information processing method provided in an embodiment of the present application;

[0040] Figure 12 A schematic diagram of a notification interface for notifying a user to restart the terminal provided in an embodiment of the present application;

[0041] Figure 13 A schematic flow chart of an information processing method provided in an embodiment of the present application;

[0042] Figure 14 A schematic diagram of a prompt interface displayed on the screen during a terminal restart process provided in an embodiment of the present application;

[0043] Figure 15 A schematic flow chart of an information processing method provided in an embodiment of the present application;

[0044] Figure 16 A schematic flow chart of an information processing method provided in an embodiment of the present application;

[0045] Figure 17 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0046] Figure 18 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0047] Figure 19 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0048] Figure 20 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0049] Figure 21 A schematic diagram of the structure of another terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0051] The embodiments of the present application provide an information processing method and a terminal device, which are used to ensure that the normal operation of the entire device is not affected when the peripheral hardware of the user terminal is abnormal, thereby improving the user experience.

[0052] In other words, the embodiment of the present application provides an implementation solution for real-time detection of peripheral status changes and dynamic tailoring of related functions in software, ensuring that the normal operation of the terminal will not be affected even if the peripheral hardware does not exist, is damaged or fails, thereby ensuring the user experience and reducing the probability of users returning the device.

[0053] Among them, the method and the device are based on the same application concept. Since the principles of solving problems by the method and the device are similar, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.

[0054] The terms "first", "second", etc. (if any) in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0055] The following examples and embodiments are to be understood as illustrative examples only. Although this specification may refer to "one," "an," or "some" examples or embodiments at several places, this does not mean that each such reference relates to the same example or embodiment, nor does it mean that the feature applies only to a single example or embodiment. Individual features of different embodiments may also be combined to provide further embodiments. Furthermore, terms such as "comprises" and "comprising" should be understood as not limiting the described embodiments to consisting only of those features already mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that are not specifically mentioned.

[0056] The terminal device involved in the embodiments of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connection function, or other processing device connected to a wireless modem. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device may be called User Equipment (UE). A wireless terminal device can communicate with one or more core networks via a RAN. The wireless terminal device may be a mobile terminal device, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal device. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a wireless access network. For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiated Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), and other devices. The wireless terminal device may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal device, an access terminal device, a user terminal device, a user agent, or a user device, but is not limited in the embodiments of the present application.

[0057] The following describes in detail the various embodiments of the present application in conjunction with the accompanying drawings. It should be noted that the order in which the embodiments of the present application are presented only represents the order of the embodiments, and does not represent the advantages or disadvantages of the technical solutions provided by the embodiments.

[0058] See also Figure 1 , an information processing method provided in an embodiment of the present application, the overall steps include:

[0059] S101, in the initial stage of terminal system startup, detecting whether the status of at least one peripheral hardware of the terminal is abnormal;

[0060] The initial stage of the terminal system startup may be, for example, the stage of powering on a mobile phone.

[0061] The at least one peripheral hardware of the terminal may include, for example, NFC, Beidou GPS and other peripheral hardware.

[0062] S102. If it is detected that the state of at least one peripheral hardware of the terminal is in an abnormal state during the initial stage of starting the terminal system, characteristic information corresponding to the peripheral hardware in the abnormal state is deleted, so that the system software and / or third-party application software of the terminal determines that the terminal does not support the function of the peripheral hardware in the abnormal state, and does not start the software process corresponding to the peripheral hardware in the abnormal state.

[0063] Therefore, this method can ensure that the normal operation of the entire device is not affected when the peripheral hardware of the user terminal is abnormal, thereby improving the user experience.

[0064] The state of the peripheral hardware is in an abnormal state, which means that the peripheral hardware may not exist, or may be damaged or invalid.

[0065] It should be noted that in the embodiment of the present application, the status of all peripheral hardware of the terminal can be detected, or only the status of specified peripheral hardware of the terminal can be detected, and the specific embodiment of the present application is not limited.

[0066] Among them, regarding the characteristic information corresponding to the peripheral hardware, the system software and / or third-party application software of the terminal can obtain whether the terminal supports the function of the peripheral hardware by querying the characteristic information corresponding to a certain peripheral hardware. That is, if the characteristic information corresponding to the peripheral hardware can be queried, the system software and / or third-party application software of the terminal will consider that the terminal supports the function of the peripheral hardware. If the characteristic information corresponding to the peripheral hardware cannot be queried, the system software and / or third-party application software of the terminal will consider that the terminal does not support the function of the peripheral hardware. Then, if the system software and / or third-party application software of the terminal considers that the terminal does not support the function of the peripheral hardware, the software process corresponding to the peripheral hardware will not be started, thereby ensuring that the normal operation of the entire machine will not be affected when the peripheral hardware of the user terminal is abnormal, thereby improving the user experience.

[0067] In some embodiments, see Figure 2 , in the initial stage of starting the terminal system, detecting whether the status of at least one peripheral hardware of the terminal is abnormal includes:

[0068] S201, entering the initial stage of terminal system startup;

[0069] S202, in the initial stage of the terminal system startup, detecting whether a driver node corresponding to at least one peripheral hardware of the terminal exists, if not, executing step S203; if yes, executing step S204;

[0070] S203: Determine that there is no abnormal state of the peripheral hardware of the driver node;

[0071] S204: Determine whether the status of the peripheral hardware of the driver node is normal.

[0072] The driver node corresponding to the peripheral hardware is the driver node required for upper-layer application software.

[0073] In some embodiments, see Figure 3 , for any of the peripheral hardware, detecting whether a driver node corresponding to the peripheral hardware exists, including:

[0074] S301, the terminal kernel loads the driver of the peripheral hardware;

[0075] S302: Create a driver node corresponding to the peripheral hardware through the driver of the peripheral hardware;

[0076] S303: Detecting whether the peripheral hardware exists or is abnormal through the driver of the peripheral hardware; wherein the abnormality may be, for example, hardware damage;

[0077] S304: If the peripheral hardware does not exist or is abnormal, delete the driver node corresponding to the peripheral hardware through the driver of the peripheral hardware;

[0078] S305: If the driver node corresponding to the peripheral hardware is deleted, determine that there is no driver node corresponding to the peripheral hardware.

[0079] In some embodiments, see Figure 4 , the method further comprises:

[0080] S401, terminal system starts;

[0081] S402, after the terminal system is started, entering the initialization phase of the package management service of the system service process;

[0082] S403. Acquire characteristic information corresponding to at least one peripheral hardware of the terminal in the system configuration of the package management service initialization phase of the system service process;

[0083] S404: Cache the characteristic information.

[0084] Wherein, the system service process, for example, the system_server process;

[0085] The package management service, such as PMS (Package Manager Service);

[0086] The system configuration, such as SystemConfig;

[0087] The cache is to cache the feature information corresponding to the peripheral hardware in the memory for the terminal system and other services (ie, third-party software) to call and query the peripheral features supported by the terminal system.

[0088] In some embodiments, see Figure 5 The obtaining and caching characteristic information corresponding to at least one peripheral hardware of the terminal includes:

[0089] S501, entering the initialization phase of starting the package management service;

[0090] S502: calling the system-configured read all permissions method during the initialization phase of the package management service startup;

[0091] S503, parsing the file in the preset path for storing characteristic information corresponding to the peripheral hardware;

[0092] S504: Cache the parsing results.

[0093] The read all permissions, for example: readAllPermissions;

[0094] The preset path, for example: / system / etc / permissions / ;

[0095] The file used to store characteristic information corresponding to the peripheral hardware, for example, a feature-related XML file.

[0096] The parsing result is the content parsed and obtained from the file for storing characteristic information corresponding to the peripheral hardware, that is, the features corresponding to the peripheral hardware supported by the terminal system.

[0097] In some embodiments, see Figure 6 The deleting characteristic information corresponding to the peripheral hardware in an abnormal state includes:

[0098] The characteristic information corresponding to the peripheral hardware in abnormal state is deleted from the cache. In other words:

[0099] S601: In the initial stage of terminal system startup, detecting whether the status of at least one peripheral hardware of the terminal is abnormal;

[0100] S602. If it is detected that the state of at least one peripheral hardware of the terminal is in an abnormal state during the initial stage of startup of the terminal system, the characteristic information corresponding to the peripheral hardware in the abnormal state is deleted from the cached characteristic information corresponding to the peripheral hardware, so that the system software and / or third-party application software of the terminal determines that the terminal does not support the function of the peripheral hardware in the abnormal state, and does not start the software process corresponding to the peripheral hardware in the abnormal state.

[0101] Then, in one embodiment, the specific information processing process, for example, see Figure 7 ,include:

[0102] S701, entering the initialization phase of starting the package management service;

[0103] S702, call the read all permissions of the system configuration;

[0104] S703: Parse the file in the preset path for storing characteristic information corresponding to the peripheral hardware;

[0105] S704, cache the parsing results;

[0106] S705: Detect whether the status of at least one peripheral hardware of the terminal is abnormal;

[0107] S706: If it is detected that the state of at least one peripheral hardware of the terminal is in an abnormal state, delete the characteristic information corresponding to the peripheral hardware in the abnormal state from the cached characteristic information corresponding to the peripheral hardware.

[0108] In another embodiment, another specific information processing flow, for example, see Figure 8 ,include:

[0109] S801, entering the initialization phase of starting the package management service;

[0110] S802, call the read all permissions of the system configuration;

[0111] S803: Parse the file in the preset path for storing characteristic information corresponding to the peripheral hardware;

[0112] S804, cache the parsing results;

[0113] S805: Detect whether the status of at least one peripheral hardware of the terminal is abnormal;

[0114] S806: If it is detected that the state of at least one peripheral hardware of the terminal is in an abnormal state, delete the characteristic information corresponding to the peripheral hardware in the abnormal state from the cached characteristic information corresponding to the peripheral hardware.

[0115] and Figure 7 The difference between the illustrated processes is that, in this embodiment, the step of detecting whether the status of at least one peripheral hardware of the terminal is abnormal is not performed after the analysis result is cached, but can be performed in parallel with the above analysis process.

[0116] In some embodiments, see Figure 9 , the method further comprises:

[0117] S901, entering the initial stage of terminal system startup;

[0118] S902: Determine whether the status of the peripheral hardware of the terminal is abnormal;

[0119] S903: If no abnormality in the state of the peripheral hardware of the terminal is detected during the initial stage of the terminal system startup, continue to execute the system startup process;

[0120] S904: If it is detected that the state of the peripheral hardware of the terminal is abnormal during the initial stage of starting the terminal system, the characteristic information corresponding to the peripheral hardware in the abnormal state is deleted from the characteristic information corresponding to the cached peripheral hardware.

[0121] Also, see Figure 10After the system startup process is completed (i.e., when the user is using the mobile phone), the method further includes:

[0122] S001. Periodically detect whether the status of at least one peripheral hardware of the terminal is abnormal (the specific detection method is the same as above);

[0123] S002. If any peripheral hardware in an abnormal state is detected, notify the user to restart the terminal;

[0124] S003. If the user does not respond to the notification to restart the terminal and perform an operation to restart the terminal, the terminal is automatically restarted when a preset condition is met, for example, when the terminal is in an idle state.

[0125] Then, in one embodiment, see Figure 11 , a specific information processing flow includes:

[0126] S111, entering the initial stage of terminal system startup;

[0127] S112, determining whether the state of the terminal's peripheral hardware is abnormal, if so, executing step S114; otherwise, executing step S113;

[0128] S113, executing the subsequent system startup process;

[0129] S114, deleting characteristic information corresponding to the peripheral hardware in an abnormal state from the cache;

[0130] S115: After the system is started, determine whether the detection period has arrived. If so, execute step S116; otherwise, wait for the detection period to arrive.

[0131] S116. Determine whether the status of the terminal's peripheral hardware is abnormal; if so, execute step S117; otherwise, execute step S115 and continue to wait for the next detection cycle to arrive.

[0132] S117: If it is detected that there is peripheral hardware in an abnormal state, notify the user to restart the terminal.

[0133] For example, a notification interface for notifying the user to restart the terminal, such as Figure 12 As shown, it includes a prompt message "Peripheral abnormality, it is recommended to restart the phone", as well as two selection buttons "Restart now" and "Restart later" for users to view and select.

[0134] Then, in one embodiment, another specific information processing flow is as follows: Figure 13 Shown, including:

[0135] S131, entering the initial stage of terminal system startup;

[0136] S132, determine whether the status of the terminal's peripheral hardware is abnormal, if so, execute step S139; otherwise, execute step S133;

[0137] S133, executing the subsequent system startup process;

[0138] S134: After the system is started, determine whether the detection period has arrived. If so, execute step S135; otherwise, wait for the detection period to arrive.

[0139] S135. Determine whether the status of the terminal's peripheral hardware is abnormal; if so, execute step S136; otherwise, execute step S134 and continue to wait for the next detection cycle to arrive.

[0140] S136: If it is detected that there is peripheral hardware in an abnormal state, notify the user to restart the terminal.

[0141] S137: Determine whether to restart immediately. If yes, execute step S131; otherwise, execute step S138.

[0142] That is, if the user clicks the "restart now" button instruction, the mobile phone is restarted immediately. Otherwise (that is, the user clicks the "restart later" button), when the preset conditions are met, the terminal is automatically restarted.

[0143] In some embodiments, as Figure 14 As shown, during the process of restarting the terminal, the screen can output a prompt interface to prompt the user that the system is being optimized and other information.

[0144] The following uses the status detection of the NFC peripheral hardware in the mobile phone terminal as an example to illustrate the method provided in the embodiment of the present application.

[0145] When the NFC peripheral of a mobile terminal is damaged or abnormal, a large number of NFC-related exceptions will occur. The system will trigger the printing of the Java call stack and the native call stack and save them to the file system. A large number of call stack outputs will increase CPU usage. A large number of file write operations will cause the system service (system_server) process to run slowly or even become blocked, eventually causing the system to restart, seriously affecting user experience.

[0146] To address the above issues, the embodiments of the present application propose to add a means of detecting the status of the NFC peripheral device in the initial stage of the terminal system startup to determine the normal state or existence state of the NFC peripheral hardware (i.e., whether the NFC chip exists. Sometimes, a position for the NFC chip is reserved on the substrate, but the NFC chip is not attached during the factory patching). If the NFC peripheral hardware is abnormal, the relevant feature information corresponding to the NFC hardware is dynamically deleted in the system configuration (SystemConfig). In this way, the system software or third-party application software will believe that the terminal does not support the NFC function and will not start the subsequent NFC software process, avoiding NFC-related software anomalies, which will eventually manifest as the mobile phone terminal not supporting the NFC function. At the same time, the third-party software will not display the NFC-related interface or call NFC-related functions, avoiding the program being unresponsive or crashing when the user operates the NFC function.

[0147] See also Figure 15 The overall process of the program is as follows:

[0148] S151, terminal system starts;

[0149] S152. During the initialization phase of the Package Manager Service (PMS) in the system_server process, SystemConfig is used to detect whether the status of the terminal's peripheral hardware is abnormal. Specifically, during the initialization phase of the PMS service startup, the readAllPermissions method of SystemConfig is called to parse the feature-related XML files in the / system / etc / permissions / directory. The parsed results (i.e., the feature information of the peripherals supported by the terminal system, i.e., the features corresponding to the software loaded by the terminal) are cached in memory for the terminal system and other services (i.e., third-party software) to call and query the features of the peripherals supported by the terminal system, thereby detecting whether the status of the terminal's peripheral hardware is abnormal.

[0150] Specific detection methods include: judging whether the driver node corresponding to the peripheral hardware exists (if it does not exist, it means that the peripheral status is abnormal; if it exists, it means that the peripheral status is normal), or reading the peripheral status driver node value for judgment;

[0151] Specifically, how to determine whether the peripheral device's status is abnormal is that when the terminal system starts up (for example, when a mobile phone is turned on), the terminal kernel loads the NFC driver. The NFC driver creates a driver node corresponding to the NFC device. If the NFC driver detects that the NFC device is not present or is abnormal (due to hardware damage), it deletes the driver node corresponding to the created NFC device. The basis for determining whether the peripheral device's status is abnormal is the existence of the NFC driver node.

[0152] S153. If an abnormal peripheral status is detected, the functional characteristics (features) corresponding to the loaded peripherals are deleted from the cache (i.e., the parsing result obtained by parsing the XML file above), that is, the peripheral status is detected in the SystemConfig class, and then a decision is made based on the detection result whether to delete the functional features corresponding to the cached peripherals; in this way, the system software and third-party software cannot query the corresponding features in the cache, and therefore it is considered that the terminal does not support peripherals such as NFC, and the corresponding software process will not be started.

[0153] S154: Execute the subsequent startup process.

[0154] In some embodiments, a peripheral status runtime detection solution is added to solve the problem of damage to peripherals such as NFC during the use of mobile terminals. Specifically, see Figure 16 , based on the above steps, add the following steps:

[0155] S161, the system starts normally;

[0156] S162 . In the SystemConfig of the initialization phase of the Package Manager Service (PMS) of the system_server process, it is detected whether the status of the peripheral hardware of the terminal is abnormal.

[0157] S163. If an abnormal state is detected, delete the function corresponding to the loaded peripheral in SystemConfig;

[0158] S164: Execute the subsequent startup process.

[0159] S165. Create and start a peripheral status check thread (Peripheral Status Check Thread) in the PMS service;

[0160] S166. The peripheral status detection thread polls the peripheral status at a fixed interval (5 minutes) to determine whether it is normal. If so, the process returns to step S165. Otherwise, the process proceeds to step S167.

[0161] S167. If an abnormal state is detected, the user may be notified of the abnormal state of the peripheral device, for example, by a dialog box notifying the user that the phone needs to be restarted, and the user may choose to restart immediately or later. If the user does not restart the phone, the device is automatically restarted when the terminal is in an idle state. That is, if the user chooses to restart later, the setting field (silent_reboot_due_to_peripheral_abnormal) in the settings database is set to true. Then, the value of the flag is read in the terminal idle service. If it is true, the phone is restarted.

[0162] The peripheral status detection thread's primary function is to detect abnormal peripheral status in real time. If the status changes from normal to abnormal, it notifies the user that the device is abnormal and requires a restart. This helps resolve issues such as device freezes and application anomalies caused by abnormal peripheral status.

[0163] The following is an introduction to the equipment or device provided in the embodiments of the present application, in which the explanations or examples of technical features that are the same as or corresponding to those described in the above method are not repeated hereafter.

[0164] See also Figure 17 , corresponding to the above method, an embodiment of the present application provides a terminal device, including:

[0165] The first unit 11 is configured to detect whether a status of at least one peripheral hardware of the terminal is abnormal during an initial startup of the terminal system;

[0166] The second unit 12 is used to delete the characteristic information corresponding to the peripheral hardware in the abnormal state if it is detected that the state of at least one peripheral hardware of the terminal is in an abnormal state during the initial stage of starting the terminal system, so that the system software and / or third-party application software of the terminal determines that the terminal does not support the function of the peripheral hardware in the abnormal state and does not start the software process corresponding to the peripheral hardware in the abnormal state.

[0167] It should be noted that the division of units in the embodiments of the present application is schematic and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0168] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0169] See also Figure 18 A terminal device provided in an embodiment of the present application includes: a memory 21 and a processor 22, wherein the processor 22 calls the program instructions stored in the memory 21 and executes any of the above methods according to the obtained program.

[0170] See also Figure 19 , another terminal device provided in an embodiment of the present application, in addition to the memory and storage, also includes a transceiver for receiving and sending data under the control of the processor.

[0171] See also Figure 20 Another terminal device provided in an embodiment of the present application, in addition to the memory and storage, transceiver, also includes a user interface.

[0172] in, Figure 19 and Figure 20 The bus architecture shown in the figure may include any number of interconnected buses and bridges, specifically linking various circuits represented by one or more processors and memories. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are not further described herein. The bus interface provides an interface. The transceiver may be a plurality of components, including a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.

[0173] In some embodiments, the user interface may be an interface capable of connecting to required external or internal devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.

[0174] The processor is responsible for managing the bus architecture and general processing, and the memory can store data used by the processor when performing operations.

[0175] In some embodiments, the processor may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).

[0176] The terminal device provided in the embodiment of the present application can be a portable device such as a mobile phone, a wearable device, or a tablet computer. Figure 21 exemplarily shows a hardware configuration block diagram of a terminal device provided in an embodiment of the present application. It should be understood that, Figure 21 The terminal device 200 shown is only an example, and the terminal device 200 may have more Figure 21 The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0177] like Figure 21 As shown, the terminal device 200 includes: a communication component 210, a processor 220, a memory 230, a display 240, an input component 250, an audio circuit 260, a SIM card interface 270 and a sensor 280 and other components.

[0178] The communication component 210 is used to receive or send call requests, receive and send signals during a call, connect to a server, and upload or download data. The communication component 210 may include an RF (radio frequency) circuit 211 and a Wi-Fi (Wireless Fidelity) module 212.

[0179] The RF circuit 211 can be used to receive and transmit signals during messaging or phone calls. It can receive downlink data from the base station and pass it to the processor 220 for processing; it can also transmit uplink data to the base station. Typically, the RF circuit 211 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and other components. The RF circuit 211 can receive electromagnetic waves from the antenna, filter, amplify, and perform other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The RF circuit 211 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna. In some embodiments, at least some of the functional modules of the RF circuit 211 can be located within the processor 220. In some embodiments, at least some of the functional modules of the RF circuit 211 can be located within the same device as at least some of the modules of the processor 220. The RF circuit 211 of the terminal device 200 is coupled to the antenna, enabling the terminal device 200 to communicate with the network and other devices via wireless communication technologies.

[0180] Wi-Fi is a short-range wireless transmission technology. Terminal device 200 can use Wi-Fi module 212 to help users send and receive emails, browse the web, and access streaming media, providing users with wireless broadband Internet access. Wi-Fi module 212 can connect to a router, which can then connect to an external network. Wi-Fi module 212 can also connect to a server to upload or download data.

[0181] The memory 230 can be used to store data or program codes used during operation of the terminal device. The processor 220 executes the various functions and data processing of the terminal device 200 by running the data or program codes stored in the memory 230. The memory 230 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 230 stores the operating system that enables the terminal device 200 to operate.

[0182] The display 240 is used to display information input by the user or provided to the user, as well as a graphical user interface (GUI) of various menus of the terminal device 200. Specifically, the display 240 may include a display provided on the front of the terminal device 200. The display may be configured in the form of a liquid crystal display, a light-emitting diode, etc. The display 240 may be used to display the interface of the terminal device during operation.

[0183] The input component 250 may be configured to receive digital or character information input by a user, as well as various operations input by the user, and to generate signal inputs related to user settings and function control of the terminal device 200. Specifically, the input component 250 may include buttons and a touch screen. The touch screen may be disposed on the front of the terminal device 200 to collect touch operations performed by the user on or near the touch screen.

[0184] The touch screen may be covered on the display. In some embodiments, the touch screen and the display may be integrated to realize the input and output functions of the terminal device 200. The integrated touch screen may be referred to as a touch display.

[0185] The terminal device 200 may further include a positioning module, such as a satellite positioning module or a mobile communication network positioning module, which may determine the geographical location of the terminal device 200 in real time.

[0186] The audio circuit 260, speaker 261, and microphone 262 provide an audio interface between the user and the terminal device 200. The audio circuit 260 can convert the received audio data into an electrical signal and transmit it to the speaker 261, which converts it into a sound signal for output. The terminal device 200 may also be equipped with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 262 converts the collected sound signal into an electrical signal, which is received by the audio circuit 260 and converted into audio data. The audio data is then output to the RF circuit 211 for transmission to, for example, another terminal, or the audio data is output to the memory 230 for further processing.

[0187] The SIM card interface 270 is used to connect a SIM card. The SIM card can be connected to and disconnected from the terminal device 200 by inserting or removing it from the SIM card interface 270. The terminal device 200 can support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 270 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface simultaneously. The types of the multiple cards can be the same or different. The SIM card interface can also be compatible with different types of SIM cards. The SIM card interface can also be compatible with external memory cards. The terminal device 200 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 200 and cannot be separated from the terminal device 200. The SIM card is used to identify the user's mobile phone number.

[0188] In addition to the SIM card interface 270, the terminal device 200 may also include a USB (universal serial bus) interface. The USB interface is used to connect a charging cable or other peripherals. For example, the terminal device 200 can be connected to a charging cable via the USB interface. The various components or modules in the terminal device 200 are connected via a bus.

[0189] The terminal device 200 may also include at least one sensor 280, such as an accelerometer 281, a distance sensor 282, a fingerprint sensor 283, and a temperature sensor 284. The terminal device 200 may also be equipped with other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor. For example, the fingerprint sensor 283 may be used to sense when a user clicks an icon on the terminal device 200 user interface.

[0190] The terminal device 200 may also include a camera for capturing still images or videos. The camera may be one or more. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the processor 220 for conversion into a digital image signal.

[0191] The processor 220 is the control center of the terminal device 200. It connects various parts of the entire terminal using various interfaces and lines. It executes various functions of the terminal device 200 and processes data by running or executing software programs stored in the memory 230 and calling data stored in the memory 230. In some embodiments, the processor 220 may include one or more processing units. In this application, the processor 220 can be provided in the method flow provided in the embodiments of the present application.

[0192] The present application embodiment also provides a computer program product or computer program, which includes computer instructions, which are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs any of the methods described in the above embodiments. The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0193] The present invention provides a computer-readable storage medium for storing computer program instructions used by the apparatus provided in the above embodiments of the present invention, which includes a program for executing any of the methods provided in the above embodiments of the present invention. The computer-readable storage medium may be a non-transitory computer-readable medium.

[0194] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. An information processing method, characterized in that: The method includes: After the terminal system is started, in the system configuration of the initialization phase of the package management service of the system service process, the method of reading all permissions of the system configuration is called during the initialization phase of the package management service startup, and a file for storing characteristic information corresponding to the peripheral hardware in a preset path is parsed, and the parsing result is cached; In the initial stage of starting the terminal system, detecting whether the status of at least one peripheral hardware of the terminal is abnormal; If it is detected that the status of at least one peripheral hardware of the terminal is in an abnormal state during the initial stage of startup of the terminal system, the characteristic information corresponding to the peripheral hardware in the abnormal state is deleted from the cache, so that the system software and / or third-party application software of the terminal determines that the terminal does not support the function of the peripheral hardware in the abnormal state, and does not start the software process corresponding to the peripheral hardware in the abnormal state.

2. The method according to claim 1, characterized in that The detecting whether the status of at least one peripheral hardware of the terminal is abnormal during the initial stage of starting the terminal system includes: In the initial stage of terminal system startup, it is detected whether a driver node corresponding to at least one peripheral hardware of the terminal exists. If not, it is determined that the state of the peripheral hardware without the driver node is abnormal; otherwise, it is determined that the state of the peripheral hardware with the driver node is normal.

3. The method according to claim 2, characterized in that For any of the peripheral hardware, detecting whether a driver node corresponding to the peripheral hardware exists includes: The terminal kernel loads the driver of the peripheral hardware; Creating a driver node corresponding to the peripheral hardware through the driver of the peripheral hardware; Detecting whether the peripheral hardware exists or is abnormal through the driver of the peripheral hardware, and if the peripheral hardware does not exist or is abnormal, deleting the driver node corresponding to the peripheral hardware through the driver of the peripheral hardware; If the driver node corresponding to the peripheral hardware is deleted, it is determined that the driver node corresponding to the peripheral hardware does not exist.

4. The method according to claim 1, wherein The method further comprises: If no abnormal state of the peripheral hardware of the terminal is detected during the initial stage of the terminal system startup, the system startup process continues to be executed; and after the system startup process is completed, the method further includes: Periodically detecting whether a status of at least one peripheral hardware of the terminal is abnormal, and if abnormal peripheral hardware is detected, notifying a user to restart the terminal; If the user does not respond to the notification to restart the terminal and perform an operation to restart the terminal, the terminal is automatically restarted when a preset condition is met.

5. A terminal device, characterized in that: include: a memory for storing program instructions; A processor is configured to call the program instructions stored in the memory and execute the method according to any one of claims 1 to 4 according to the obtained program.

6. A computer program product for a computer, characterized in that The invention comprises a software code portion for executing the method according to any one of claims 1 to 4 when the product is run on the computer.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Display device and information prompting method

    CN112866768A