CN-121979756-A - Mobile terminal service availability inspection method based on system state matrix driving
Abstract
The embodiment of the disclosure provides a mobile terminal service availability inspection method based on system state matrix driving, which belongs to the technical field of physics and specifically comprises the steps of constructing a system service state matrix, utilizing a multi-mode probe system to detect a structure dimension, a behavior dimension, a signal dimension, an abnormal dimension and a user perception dimension respectively, mapping detection results into corresponding discrete state values, filling and updating the system service state matrix according to the detection results, dynamically deciding a subsequent inspection path and a detection priority according to the real-time environment state and the user behavior mode of a mobile terminal based on the filled dimension state values in the system service state matrix and predefined association rules thereof, controlling the multi-mode probe system to execute corresponding detection actions according to the inspection path, and generating an availability evaluation result for target system service based on the final state of the system service state matrix. Through the scheme of this disclosure, improved inspection efficiency, precision and adaptability.
Inventors
- XIA WEI
- ZENG HUAN
Assignees
- 湖南小算科技信息有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260127
Claims (9)
- 1. A mobile terminal service availability inspection method based on system state matrix driving, comprising the following steps: Step 1, constructing a system service state matrix, wherein the system service state matrix is a multidimensional discrete state space and is used for uniformly representing the state of target system service in a mobile terminal, and the dimensions of the system service state matrix comprise a structural dimension for representing the statement integrity of a service component, a behavior dimension for representing the response capability of service call, a signal dimension for representing the consistency of system-level signals, an abnormality dimension for representing the restorability of abnormality and a user perception dimension for representing the interaction performance of the terminal; Step 2, detecting the structure dimension, the behavior dimension, the signal dimension, the abnormal dimension and the user perception dimension by utilizing a multi-mode probe system, mapping the detection result into corresponding discrete state values, and filling and updating a system service state matrix according to the detection result; Step 3, dynamically deciding a subsequent routing inspection path and detection priority based on the filled dimension state values in the system service state matrix and predefined association rules thereof and combining the real-time environment state of the mobile terminal and the user behavior mode; And 4, controlling the multi-mode probe system to execute corresponding detection actions according to the routing inspection path generated by the dynamic decision, and generating an availability evaluation result of the target system service based on the final state of the system service state matrix.
- 2. The method of claim 1, wherein the structural dimension determination rule comprises: Analyzing a corresponding manifest file of a target system service, extracting all components declared in the manifest file, comparing the components with a preset reference component list, and calculating the component matching degree; when the key service component is absent, determining an unregistered state; When the key service component is complete but the component matching degree is smaller than a first threshold value, judging that the key service component is in a partial registration state; And when the component matching degree is equal to or greater than a first threshold value, determining that the registration state is complete.
- 3. The method of claim 1, wherein the behavior dimension determination rule comprises: Initiating a call to a target system service through a test case set simulating the actual user behavior; Recording the response time and the calling return code of the calling process; If the response time does not exceed the first preset duration and the return code is called to indicate success, judging that the response time is reachable and the response state is achieved; if the response time is between the first preset time length and the second preset time length or the return code is called to indicate failure, judging that a non-response state can be reached; And if the response time exceeds the second preset duration or the call is overtime or abnormal, judging that the state is not reachable.
- 4. The method of claim 1, wherein the signal dimension determination rule comprises: Capturing life cycle events related to a target system service process in a system log by using a preset tool; if a preset normal process starting mark appears in the log, judging that the process is in a consistent state; If a preset process abnormal termination mark appears in the log, judging that the process is in a partial inconsistent state; If the relevant life cycle event is not captured, the abnormal state is judged.
- 5. The method of claim 1, wherein the determination rules for the anomaly dimension comprise: Capturing an abnormal event related to the target system service in the detection process of the signal dimension or the behavior dimension; Analyzing the type and occurrence frequency of the abnormal event, and judging whether the abnormal event can be automatically recovered by the system; based on the determination result, the state value of the abnormal dimension is mapped to be abnormal-free, abnormal-recoverable or abnormal-unrecoverable.
- 6. The method of claim 1, wherein the decision rule of the user-perceived dimension comprises: collecting supplementary state data corresponding to a target system service, wherein the supplementary state data comprises application interface response time, interface refresh blocking event times and input event processing delay; And judging the state as excellent, good, general or poor according to a predefined interval where the statistical analysis result of the supplementary state data is located.
- 7. The method of claim 1, wherein the predefined association rule comprises: if the structure dimension is in an unregistered state, skipping detection of the behavior dimension; if the structure dimension is a partial registration state, triggering the verification of the dependency relationship of the missing component; And if the behavior dimension is in an unreachable state and the structure dimension is in a complete registration state, triggering secondary verification based on the standby link.
- 8. The method of claim 1, wherein the step of dynamically deciding the subsequent routing paths and detection priorities by combining the real-time environmental status of the mobile terminal with the user behavior pattern comprises: Collecting the network type and signal intensity of the mobile terminal, the battery power and the current application service condition; and predicting service interruption risk points based on the acquired data, adjusting the routing inspection path according to the service interruption risk points, and preferentially detecting corresponding components or dimensions according to the adjusted routing inspection path.
- 9. The method of claim 1, wherein the step of generating an availability assessment result for the target system service comprises: distributing dynamic weight coefficients to each dimension state value in the system service state matrix, wherein the dynamic weight coefficients are determined through graph neural network model analysis based on real-time state data of the mobile terminal and user operation behaviors; and carrying out weighted calculation according to each dimension state value and the corresponding dynamic weight coefficient to obtain a quantized usability score.
Description
Mobile terminal service availability inspection method based on system state matrix driving Technical Field The embodiment of the disclosure relates to the field of physical technology, in particular to a mobile terminal service availability inspection method based on system state matrix driving. Background Currently, with the ecological complexity of mobile terminals, basic services (e.g., google Play service, hua push service, millet authentication service, etc.) integrated in a system become essential dependencies for application running. However, in different ROMs (custom system versions), there may be differences in component status, dependent integrity, reachability of the underlying service, resulting in problems such as service unavailability, inability to boot, deepLink not responding, etc. In the prior art, service availability is often detected by: Static package management inquiry, namely only confirming whether the APK is installed or not, and judging whether the service can be started or responded normally or not. UI automation script click verification, namely, high dependence on a specific automation frame, poor portability, and only the shallow function of the UI layer can be verified, and the internal state of the service can not be deeply detected. The deep link (DeepLink) triggers a test that lacks capture of signal layer data (e.g., system broadcast, critical process lifecycle changes, binder call results) in the service call link, resulting in a high false positive rate. The above method has the following defects: 1. the verification is incomplete, namely the real availability of the service cannot be comprehensively judged from a plurality of dimensions such as structurality (whether the component is registered or not), behavioural (whether the call is successful or not), signalization (whether the system internally responds normally or not) and the like. 2. The lack of unified standards, the most of test results are boolean values (on/off), the lack of a quantifiable unified scoring model, and the inability to form a systematic usability assessment report. 3. The robustness is poor, the test logic is solidified, and once the ROM version or the UI is changed, the script is extremely easy to fail, and the maintenance cost is high. Therefore, a mobile terminal service availability inspection method with high inspection efficiency, high precision and high adaptability based on system state matrix driving is needed. Disclosure of Invention In view of the above, embodiments of the present disclosure provide a system state matrix driving-based mobile terminal service availability inspection method, which at least partially solves the problems of poor inspection efficiency, poor precision and poor adaptability in the prior art. The embodiment of the disclosure provides a mobile terminal service availability inspection method based on system state matrix driving, comprising the following steps: Step 1, constructing a system service state matrix, wherein the system service state matrix is a multidimensional discrete state space and is used for uniformly representing the state of target system service in a mobile terminal, and the dimensions of the system service state matrix comprise a structural dimension for representing the statement integrity of a service component, a behavior dimension for representing the response capability of service call, a signal dimension for representing the consistency of system-level signals, an abnormality dimension for representing the restorability of abnormality and a user perception dimension for representing the interaction performance of the terminal; Step 2, detecting the structure dimension, the behavior dimension, the signal dimension, the abnormal dimension and the user perception dimension by utilizing a multi-mode probe system, mapping the detection result into corresponding discrete state values, and filling and updating a system service state matrix according to the detection result; Step 3, dynamically deciding a subsequent routing inspection path and detection priority based on the filled dimension state values in the system service state matrix and predefined association rules thereof and combining the real-time environment state of the mobile terminal and the user behavior mode; And 4, controlling the multi-mode probe system to execute corresponding detection actions according to the routing inspection path generated by the dynamic decision, and generating an availability evaluation result of the target system service based on the final state of the system service state matrix. According to a specific implementation manner of the embodiment of the present disclosure, the determining rule of the structural dimension includes: Analyzing a corresponding manifest file of a target system service, extracting all components declared in the manifest file, comparing the components with a preset reference component list, and calculating the component mat