System switching method and device of dual-system terminal, equipment, medium and product

By detecting the effective shaking count value of the terminal device, a system switching command is generated, realizing the automatic switching of dual system terminals, solving the problem of low system switching efficiency, improving switching efficiency and protecting user privacy.

CN121029328APending Publication Date: 2025-11-28CHENGDU TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410665707.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2025-11-28

AI Technical Summary

Technical Problem

In existing technologies, the system switching efficiency of dual-system terminals is low, requiring users to perform complex operation steps, resulting in low switching efficiency.

Method used

By detecting the effective shaking count value of the terminal device, a system switching command is generated to realize the automatic switching of the terminal device between two operating systems. The specific method includes acquiring triaxial acceleration or angular velocity data, updating the effective shaking count value, and generating a switching command when the counting threshold is reached.

Benefits of technology

It improves the efficiency of system switching, simplifies the operation process, reduces the number of accidental operations, and protects user privacy in some scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121029328A_ABST
    Figure CN121029328A_ABST
Patent Text Reader

Abstract

The invention provides a system switching method, device and equipment of a dual-system terminal, a medium and a product, which can be used in the technical field of terminals. The method comprises the following steps: determining an effective shake count value corresponding to a current counting period of the terminal equipment; generating a system switching instruction under the condition that the effective shake count value reaches a count threshold value; and according to the system switching instruction, switching the foreground system of the terminal equipment from the first operating system to the second operating system. According to the method and the device, a user can trigger system switching only by shaking the terminal equipment, so that the terminal equipment can be quickly and conveniently switched between the two systems, the switching efficiency is improved, the operation time of the user is saved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of terminals, and in particular to a system switching method and device for a dual-system terminal, equipment, medium and product. BACKGROUND

[0002] With the rapid development of terminal technology, more and more terminal devices support dual operating systems. When a user is tired of the interface or operation mode of one of the operating systems, the terminal device can be triggered to switch operating systems, thereby meeting different operation experiences or interface effects.

[0003] At present, system switching mainly involves the terminal device performing a system switching operation when detecting a system switching instruction input by a user. The system switching instruction can be a series of touch operations, a pressing operation on a specific physical button, etc. These methods require the user to remember and perform complex operation steps, resulting in low switching efficiency. SUMMARY

[0004] The present application provides a system switching method and device for a dual-system terminal, equipment, medium and product to solve the problem of low switching efficiency.

[0005] In a first aspect, the present application provides a system switching method for a dual-system terminal, comprising:

[0006] determining an effective shaking count value corresponding to a current counting period of the terminal device;

[0007] generating a system switching instruction in a case where the effective shaking count value reaches a counting threshold value;

[0008] switching a foreground system of the terminal device from a first operating system to a second operating system according to the system switching instruction.

[0009] In some embodiments, the determination of the effective shaking count value corresponding to the current counting period of the terminal device comprises:

[0010] for each detection period in the counting period, obtaining a data sequence corresponding to the detection period; the data sequence comprises a plurality of groups of three-axis acceleration data collected at a preset time interval;

[0011] updating the effective shaking count value according to the data sequence corresponding to the detection period.

[0012] In some embodiments, the updating of the effective shaking count value according to the data sequence corresponding to the detection period comprises:

[0013] determining an acceleration maximum value and an acceleration minimum value corresponding to a reference axis from the data sequence corresponding to the detection period;

[0014] if the acceleration maximum reaches a corresponding threshold and the acceleration minimum reaches a corresponding threshold, then the valid shake count value is incremented by 1.

[0015] In some embodiments, the triaxial acceleration data is obtained, including any one of the following:

[0016] The triaxial acceleration data collected by the acceleration sensor is obtained.

[0017] The triaxial angular velocity data collected by the angular velocity sensor is obtained, and the triaxial acceleration data is determined according to the triaxial angular velocity data.

[0018] In some embodiments, further comprising:

[0019] When entering the next counting period, the valid shake count value is cleared.

[0020] In some embodiments, the generating a system switching instruction in the case that the valid shake count value reaches a counting threshold value, includes:

[0021] In the case that the valid shake count value reaches a counting threshold value, determining a current unlock state of the terminal device; the unlock state is unlocked or not unlocked.

[0022] In the case that the unlock state is unlocked, generating a system switching instruction.

[0023] In some embodiments, after the switching module switches the foreground system of the terminal device from the first operating system to the second operating system according to the system switching instruction, further comprising:

[0024] Outputting prompt information; the prompt information is used to prompt the user that the terminal device has switched the operating system.

[0025] In a second aspect, the application provides a system switching device of a dual-system terminal, including:

[0026] A determining module, configured to determine a valid shake count value corresponding to a counting period in which the terminal device is currently located;

[0027] A generating module, configured to generate a system switching instruction in the case that the valid shake count value reaches a counting threshold value;

[0028] A switching module, configured to switch the foreground system of the terminal device from a first operating system to a second operating system according to the system switching instruction.

[0029] In a third aspect, the application provides a terminal device, including a processor and a memory connected with the processor in communication;

[0030] The memory stores computer-executable instructions;

[0031] The processor executes the computer-executable instructions stored in the memory to implement the system switching method of the dual-system terminal according to any one of the first aspect.

[0032] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the system switching method of the dual-system terminal according to any one of the first aspect.

[0033] In a fifth aspect, the present application provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the system switching method of the dual-system terminal according to any one of the first aspect.

[0034] The system switching method, device, equipment, medium and product of the dual-system terminal provided by the present application can realize automatic triggering of system switching. It can be seen that the user only needs to shake the terminal equipment to trigger system switching. On the one hand, the terminal equipment can be quickly and conveniently switched between two systems, the switching efficiency is improved, the user operation time is saved, and the user experience is improved, so that for users who need to frequently switch between two systems, the steps of switching systems can be reduced, and the use efficiency is improved. On the other hand, compared with other system switching methods, the shaking operation is more convenient, so that the number of misoperations can be reduced. On the other hand, in some scenarios, the shaking operation does not need to be operated on the screen, which can better protect the personal privacy of the user. BRIEF DESCRIPTION OF DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application together with the specification.

[0036] Figure 1 is a schematic diagram of an application scenario according to an exemplary embodiment;

[0037] Figure 2 is a flowchart of a system switching method of a dual-system terminal according to an exemplary embodiment;

[0038] Figure 3 is a flowchart of determining an effective shaking count value according to an exemplary embodiment;

[0039] Figure 4 This is a flowchart illustrating a coordinate system according to an exemplary embodiment;

[0040] Figure 5 This is a flowchart illustrating a system switching method for a dual-system terminal according to another exemplary embodiment;

[0041] Figure 6 This is a flowchart illustrating a system switching method for a dual-system terminal according to yet another exemplary embodiment;

[0042] Figure 7 This is a schematic diagram illustrating the structure of a system switching device for a dual-system terminal according to an exemplary embodiment;

[0043] Figure 8 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment.

[0044] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0045] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0046] The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. In the following descriptions of embodiments, "a plurality of" means two or more, unless otherwise explicitly defined.

[0047] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation portals for users to choose to authorize or refuse.

[0048] Dual-system is a high-end security technology that consists of two complete systems built on the same hardware and the same driver. The two systems can be switched in a specific way while ensuring that they do not affect each other and that data is not shared. That is, the first operating system cannot obtain information from the second operating system, and the second operating system cannot obtain information from the first operating system.

[0049] As mentioned in the background section, with the rapid development of terminal technology, more and more terminal devices support dual operating systems. When users become tired of the interface or operation method of one operating system, the terminal device can be triggered to switch operating systems, thereby satisfying different operating experiences or interface effects.

[0050] Currently, system switching mainly occurs when the terminal device detects a system switching command input by the user and executes the switching operation. However, these commands can be a series of touch operations, pressing specific physical buttons, etc., requiring users to memorize and perform complex steps, resulting in low switching efficiency.

[0051] In response to the aforementioned technical problems, the inventors of this application discovered in their research that a relatively simple operation can be set to trigger system switching. Since the shaking operation is simple, easy to perform, and easy to remember, it can be used as an operation to trigger system switching, thereby triggering the terminal device to switch systems, thus solving the problem of low system switching efficiency in the prior art.

[0052] Specifically, when a user wants to switch the system on their terminal device, they can shake the device. By determining the effective shake count value, and when the effective shake count value reaches a threshold, a system switching command is generated. Based on the system switching command, the foreground system of the terminal device is switched from the first operating system to the second operating system, thus achieving automatic triggering of the system switch. It can be seen that the solution provided by this application allows users to trigger the system switch simply by shaking the terminal device. On the one hand, it enables the terminal device to switch between two systems quickly and conveniently, improving switching efficiency, saving user operation time, and improving user experience. For users who need to frequently switch between two systems, it can reduce the steps of switching systems and improve usage efficiency. On the other hand, compared with other methods of switching systems, the shaking operation is simpler, thereby reducing the number of accidental operations. Furthermore, in some scenarios, users have privacy needs, that is, users do not want other users to know whether the terminal device they are using is dual-system or do not want other users to know whether they have switched systems. The system switch can be triggered by a simple shaking operation, thus effectively protecting the user's personal privacy.

[0053] The following describes the application scenarios of the system switching method for dual-system terminals provided in the embodiments of this application.

[0054] Figure 1 This is a schematic diagram illustrating an application scenario according to an exemplary embodiment. For example... Figure 1 As shown, this application scenario includes: terminal device 1. Terminal device 1 is a dual-system terminal, meaning it has two operating systems deployed on it: a first operating system and a second operating system. In this embodiment, when a user wants to switch the system on the terminal device, they can shake the terminal device. The terminal device then determines a valid shaking count value. If the count threshold is reached, it generates a system switching command, thereby switching the system.

[0055] The system switching method for dual-system terminals provided in this application is implemented by a system switching device for dual-system terminals, which is integrated into the terminal device. It is understood that the terminal device can be any handheld terminal running dual systems, such as a mobile phone, tablet computer, wearable device (such as a smartwatch), and intelligent voice interaction device, but is not limited to these. For illustrative purposes, Figure 1 The terminal device 1 in the example is a mobile phone.

[0056] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0057] Figure 2 This is a flowchart illustrating a system switching method for a dual-system terminal according to an exemplary embodiment. Figure 2 As shown, the system switching method for dual-system terminals provided in this embodiment includes the following steps:

[0058] Step S101: Determine the valid shake count value corresponding to the current counting cycle of the terminal device.

[0059] The terminal device is equipped with a first operating system and a second operating system. In one scenario, the terminal device's foreground system is the first operating system, and its background system is the second operating system. When a user needs to switch systems, they can shake the terminal device, thereby triggering the terminal device to execute the system switching method for a dual-system terminal provided in this application. The foreground system is the system visible to the user, while the background system is the system invisible to the user.

[0060] In this embodiment, valid shaking counts are periodically recorded, and for each counting cycle, the next counting cycle begins immediately upon the end of that cycle, and so on, with valid shaking counts recorded within each counting cycle. Based on this, for each counting cycle, the system switches over when the corresponding valid shaking count for that counting cycle ends and meets the conditions.

[0061] The counting period is used to count the shaking operations and obtain the valid shaking count value corresponding to the counting period. The duration of the counting period can be set according to actual needs, and this embodiment does not limit it. For example, the duration of the counting period can be 2 seconds, 3 seconds, 4 seconds, etc.

[0062] Step S102: When the effective shaking count value reaches the counting threshold, a system switching command is generated.

[0063] In this embodiment, if the effective shaking count value corresponding to the counting period reaches the counting threshold, it indicates that the user is very likely to want to switch systems. In this case, a system switching command is generated. Conversely, if the effective shaking count value corresponding to the counting period does not reach the counting threshold, it indicates that the user is unlikely to want to switch systems. In this case, there is no need to generate a system switching command.

[0064] Each counting cycle corresponds to the same counting threshold, which can be set according to actual needs. This embodiment does not limit this setting; for example, the counting threshold can be 1, 2, 3, or 4. Setting the counting threshold helps ensure that system switching is triggered only under certain conditions, avoiding accidental or unnecessary system switching. By setting the counting threshold, the timing of system switching can be controlled, ensuring the accuracy and reliability of system switching.

[0065] The system switching command is used to switch the foreground system of the terminal device from the first operating system to the second operating system.

[0066] Step S103: According to the system switching instruction, switch the front-end system of the terminal device from the first operating system to the second operating system.

[0067] It should be understood that the switched front-end system is the second operating system, and the switched back-end system is the first operating system.

[0068] In this embodiment, after switching systems, the terminal device continues to periodically count the effective shaking count value. When the effective shaking count value corresponding to any counting cycle meets the conditions, the system is switched.

[0069] In this embodiment, when a user wants to switch the system of a terminal device, they can shake the terminal device. By determining the effective shaking count value of the terminal device, and when the effective shaking count value reaches the counting threshold, a system switching command is generated. Based on the system switching command, the foreground system of the terminal device is switched from the first operating system to the second operating system, realizing the automatic triggering of system switching. It can be seen that the solution provided by this application allows users to trigger system switching simply by shaking the terminal device. On the one hand, it enables the terminal device to switch between two systems quickly and conveniently, improving switching efficiency, saving user operation time, and improving user experience. Thus, for users who need to frequently switch between two systems, it can reduce the steps of switching systems and improve usage efficiency. On the other hand, compared with other system switching methods, the shaking operation is simpler, thereby reducing the number of accidental operations. Furthermore, in some scenarios, users have privacy needs, that is, users do not want other users to know whether the terminal device they are using is a dual-system device or do not want other users to know whether they have switched systems. The system switching can be triggered by a simple shaking operation, thereby better protecting the user's personal privacy.

[0070] In one alternative embodiment, an array corresponding to each counting cycle is generated, which is used to store the valid shaking count value corresponding to the counting cycle.

[0071] In another optional embodiment, at the start of counting, an array is generated to store valid shake count values. Accordingly, each time a counting cycle begins, the valid shake count values ​​in the array are cleared to zero so that counting starts from zero, thus ensuring that the valid shake count values ​​in the array correspond to the current counting cycle. Accordingly, the method provided in this application further includes clearing the valid shake count values ​​to zero when entering the next counting cycle. By clearing the valid shake count values ​​to zero each time a counting cycle begins, it is easier to count the valid shake count values ​​for the new counting cycle, avoiding confusion between count values ​​between different counting cycles and ensuring the accuracy of the valid shake count values.

[0072] In practical applications, the triaxial acceleration data of the terminal device can indicate whether the terminal device is shaking, thus allowing the determination of the effective shaking count value corresponding to the counting cycle based on the triaxial acceleration data. Accordingly, in some embodiments, such as... Figure 3 The flowchart shown illustrates a process for determining a valid shaking count value. Step S101 is implemented by including the following steps S201-S202.

[0073] Step S201: For each detection cycle in the counting cycle, obtain the data sequence corresponding to that detection cycle; the data sequence includes multiple sets of triaxial acceleration data collected at preset time intervals.

[0074] One counting cycle includes multiple detection cycles, which are used to detect whether the terminal device is shaking. In this step, within each detection cycle, a set of triaxial acceleration data is collected at preset time intervals. This set of triaxial acceleration data is placed at the end of the data sequence corresponding to that detection cycle to form a new data sequence. The preset time interval can be set according to actual needs, and this embodiment does not limit it. For example, the preset time interval can be 0.2 seconds, 0.3 seconds, or 0.4 seconds.

[0075] Optionally, the operation of acquiring triaxial acceleration data can be implemented in the following two ways.

[0076] The first implementation method is to acquire triaxial acceleration data collected by an accelerometer.

[0077] In this implementation, the terminal device has a built-in accelerometer sensor for detecting the device's acceleration. Exemplarily, the accelerometer sensor is an accelerometer or other sensor capable of detecting acceleration. In this embodiment, the three axes include the X-axis, Y-axis, and Z-axis. For example, see [link to mobile phone documentation]. Figure 4 The coordinate system shown has the screen facing the user, with the center of the screen as the origin. The positive X-axis runs horizontally to the right, the negative X-axis runs horizontally to the left, the positive Y-axis runs vertically upward, the negative Y-axis runs vertically downward, the positive Z-axis runs vertically towards the user, and the negative Z-axis runs vertically away from the user. Figure 4 (Z-axis not shown). Accordingly, the triaxial acceleration data includes acceleration along the X-axis, Y-axis, and Z-axis. A positive acceleration value indicates a positive direction, and a negative acceleration value indicates a negative direction.

[0078] The second implementation method is to acquire triaxial angular velocity data collected by the angular velocity sensor and determine triaxial acceleration data based on the triaxial angular velocity data.

[0079] In this implementation, the terminal device has a built-in angular velocity sensor used to detect the angular velocity of the terminal device. For example, the angular velocity sensor is a gyroscope or other sensor capable of detecting angular velocity. Similar to the first implementation described above, the three-axis angular velocity data includes the angular velocity along the X-axis, Y-axis, and Z-axis. A positive angular velocity indicates a positive direction, and a negative angular velocity indicates a negative direction.

[0080] Optionally, the operation of determining the three-axis acceleration data based on the three-axis angular velocity data is specifically implemented as follows: Integrating each angular velocity in the three-axis angular velocity data to obtain the angle change data corresponding to each of the three axes, which is used to estimate the rotation state of the terminal device; Integrating the angle change data corresponding to each of the three axes twice to obtain the displacement change data corresponding to each of the three axes; Dividing the displacement change data corresponding to each of the three axes by time difference, i.e., calculating the displacement change at adjacent moments to obtain the velocity change data corresponding to each of the three axes; Dividing the velocity change data corresponding to each of the three axes by time difference, i.e., calculating the velocity change at adjacent moments to obtain the acceleration corresponding to each of the three axes, which is to obtain the three-axis acceleration data.

[0081] The above-mentioned optional implementation provides a scheme for determining triaxial acceleration data based on triaxial angular velocity data. It is understood that those skilled in the art can also use other implementation methods to achieve this operation according to actual needs, and this embodiment does not limit this.

[0082] This embodiment provides two methods for acquiring triaxial acceleration data, offering a high degree of selectivity and flexibility.

[0083] It should be noted that, since sensor data may contain noise or drift, the triaxial acceleration data can be filtered to improve accuracy and stability.

[0084] Step S202: Update the effective shaking count value according to the data sequence corresponding to the detection cycle.

[0085] The data sequence includes triaxial acceleration data acquired at each sampling time point in sequence, with the time interval between two adjacent sampling times being a preset time interval. In this step, at the end of each detection cycle, the valid shaking count value is updated according to the data sequence corresponding to that detection cycle.

[0086] In this embodiment, a counting cycle includes multiple detection cycles. Shaking operations may be detected in each detection cycle. The effective shaking count value corresponding to the counting cycle is determined by combining the data sequence corresponding to the detection cycle, thus realizing the statistics of the number of shakings with high accuracy.

[0087] Optionally, step S202 can be implemented by including the following steps S2021-S2022.

[0088] Step S2021: Determine the maximum and minimum acceleration values ​​corresponding to the reference axis from the data sequence corresponding to the detection cycle.

[0089] The reference axis can be any one of the X-axis, Y-axis, or Z-axis, and the reference axis can be set in advance; this embodiment does not limit this. For example, if the reference axis is the X-axis, the user can shake the terminal device left and right; if the reference axis is the Y-axis, the user can shake the terminal device up and down; and if the reference axis is the Z-axis, the user can shake the terminal device back and forth.

[0090] As described in step S201 above, the data sequence corresponding to the detection period includes multiple sets of triaxial acceleration data. Each set of triaxial acceleration data includes acceleration along the X-axis, Y-axis, and Z-axis. In this step, for the reference axis, the acceleration corresponding to the reference axis is extracted from each set of triaxial acceleration data in the data sequence to obtain an acceleration sequence. Then, the maximum and minimum acceleration values ​​are extracted from this acceleration sequence. For example, the reference axis is the X-axis, and the data sequence is {[x1,y1,z1];[x2,y2,z2];[x3,y3,z3];[x4,y4,z4]}. Wherein, [xi,yi,zi] represents the i-th set of triaxial acceleration data, xi represents the acceleration corresponding to the X-axis, yi represents the acceleration corresponding to the Y-axis, and zi represents the acceleration corresponding to the Z-axis. The acceleration sequence corresponding to the reference axis is {x1; x2; x3; x4}. For example, if x1>x2>x3>x4, then the maximum acceleration is x1 and the minimum acceleration is x4.

[0091] Step S2022: If the maximum acceleration reaches the corresponding threshold and the minimum acceleration reaches the corresponding threshold, then the effective shaking count value is incremented by 1.

[0092] Both the maximum and minimum threshold values ​​can be set according to actual needs. This embodiment does not limit this setting. For example, the maximum threshold value can be 25 and the minimum threshold value can be -25, with the unit being m / s. 2 (meters per second squared)

[0093] If both the maximum and minimum acceleration values ​​reach the corresponding threshold, it indicates that the terminal device is very likely to have shaken, and the effective shake count value is incremented by 1; otherwise, it indicates that the terminal device is unlikely to have shaken, and there is no need to update the effective shake count value.

[0094] This embodiment determines whether the terminal device has shaken by checking whether the maximum and minimum acceleration values ​​of the reference axis reach the threshold during a detection cycle, and updates the effective shake count value accordingly, which has high accuracy.

[0095] In one application scenario, the system is switched whenever the valid shaking count value corresponding to the current counting cycle reaches the counting threshold. This can be done either by generating a system switching command when the device is not unlocked, thereby switching the foreground system of the terminal device from the first operating system to the second operating system, or by generating a system switching command when the device is unlocked, thereby switching the foreground system of the terminal device from the first operating system to the second operating system.

[0096] In another application scenario, the system is switched only when the device is unlocked. Accordingly, step S102 is implemented by: determining the current unlock status of the terminal device when the effective shaking count reaches the counting threshold; whether the unlock status is unlocked or not; generating a system switching command when the unlock status is unlocked; and directly entering the next counting cycle when the device is not unlocked.

[0097] On the one hand, ensuring that system switching commands are generated only when the terminal device is unlocked can effectively prevent unauthorized users or operators from switching the system, which helps protect user privacy and data security. On the other hand, by avoiding accidental system switching caused by unlocked devices, unnecessary trouble and inconvenience caused by user errors can be reduced. System switching operations can only be performed after the user has explicitly unlocked the device, which can reduce the number of accidental operations.

[0098] In some embodiments, after switching operating systems, a user may be prompted. Accordingly, after step S103, the method provided in this application further includes: outputting a prompt message; the prompt message is used to notify the user terminal device that the operating system has been switched. The output method may be voice playback or text display, and this embodiment does not limit this. The content of the prompt message can be set according to actual needs, and this embodiment does not limit this; for example, the prompt message may be "You have switched operating systems".

[0099] By displaying prompts to inform users that the system has switched, the user is promptly notified, resulting in a better user experience.

[0100] Figure 5 This is a flowchart illustrating a system switching method for a dual-system terminal according to another exemplary embodiment, such as... Figure 5 As shown, the system switching method for dual-system terminals provided in this embodiment includes the following steps:

[0101] Step S301: For each detection cycle in the current counting cycle, obtain the data sequence corresponding to that detection cycle; the data sequence includes multiple sets of triaxial acceleration data collected at preset time intervals.

[0102] Step S302: Determine the maximum and minimum acceleration values ​​corresponding to the reference axis from the data sequence corresponding to the detection cycle.

[0103] Step S303: If the maximum acceleration reaches the corresponding threshold and the minimum acceleration reaches the corresponding threshold, then increment the effective shaking count value corresponding to the counting cycle by 1.

[0104] Step S304: When the effective shaking count value reaches the counting threshold, a system switching command is generated.

[0105] Step S305: According to the system switching instruction, switch the front-end system of the terminal device from the first operating system to the second operating system.

[0106] In this embodiment, the implementation method of each step is as described above. Figure 2 The illustrated embodiments and optional embodiments will not be described in detail here.

[0107] Figure 6 This is a flowchart illustrating a system switching method for a dual-system terminal according to yet another exemplary embodiment. Based on any of the above embodiments, taking the X-axis as the reference axis as an example, this embodiment relates to a specific system switching process.

[0108] Step S401: The counter is cleared to zero, and the counting cycle begins.

[0109] In each counting cycle, steps S402-S407 are executed.

[0110] Step S402, the detection cycle begins.

[0111] In each detection cycle, steps S403-S404 are executed.

[0112] Step S403: Obtain X-axis acceleration data.

[0113] Step S404 is executed for each X-axis acceleration data acquired.

[0114] Step S404: Determine whether the detection cycle has ended.

[0115] If the process has ended, proceed to step S405. If it has not ended, continue to step S403 until the detection cycle ends, and obtain a data sequence. This data sequence includes X-axis acceleration data collected at preset time intervals.

[0116] Step S405: Determine whether the maximum and minimum acceleration values ​​along the X-axis have reached the threshold values ​​respectively.

[0117] If all thresholds are reached, proceed to step S406; otherwise, proceed to the next detection cycle.

[0118] Step S406: The count is incremented.

[0119] Increasing the count means incrementing the count by 1. After the count is increased, step S407 is executed.

[0120] Step S407: Determine whether the counting cycle has ended.

[0121] If the process has ended, proceed to step S408; if it has not ended, proceed to the next detection cycle, i.e., proceed to step S402.

[0122] Step S408: Determine whether the count has reached the threshold.

[0123] If the threshold is reached, proceed to step S409; if the threshold is not reached, proceed to the next counting cycle, i.e., proceed to step S401.

[0124] Step S409: Switch system.

[0125] After switching systems, the next counting cycle begins, which is step S401.

[0126] In this embodiment, the implementation method of each step is as described above. Figure 2 The illustrated embodiments and optional embodiments will not be described in detail here.

[0127] Figure 7 This is a schematic diagram illustrating the structure of a system switching device for a dual-system terminal according to an exemplary embodiment, such as... Figure 7 As shown, in this embodiment, the system switching device 500 for the dual-system terminal can be installed in the terminal device. The system switching device 500 for the dual-system terminal includes:

[0128] The determining module 501 is used to determine the valid shaking count value corresponding to the current counting cycle of the terminal device;

[0129] The generation module 502 is used to generate a system switching command when the effective shaking count value reaches the counting threshold;

[0130] The switching module 503 is used to switch the foreground system of the terminal device from the first operating system to the second operating system according to the system switching command.

[0131] In some embodiments, the determining module 501 includes:

[0132] The acquisition unit is used to acquire the data sequence corresponding to each detection cycle in the counting cycle; the data sequence includes multiple sets of triaxial acceleration data collected at preset time intervals;

[0133] The update unit is used to update the effective shaking count value according to the data sequence corresponding to the detection cycle.

[0134] In some embodiments, the updating unit is specifically used to: determine the maximum and minimum acceleration values ​​corresponding to the reference axis from the data sequence corresponding to the detection period; if the maximum acceleration value reaches the corresponding threshold and the minimum acceleration value reaches the corresponding threshold, then increment the effective shaking count value by 1.

[0135] In some embodiments, the updating unit is specifically used for any of the following:

[0136] Acquire triaxial acceleration data collected by the accelerometer;

[0137] Acquire triaxial angular velocity data from the angular velocity sensor, and determine triaxial acceleration data based on the triaxial angular velocity data.

[0138] In some embodiments, it also includes:

[0139] The reset module is used to reset the count value to zero when entering the next counting cycle.

[0140] In some embodiments, the generation module 502 is specifically used for:

[0141] When the effective shaking count reaches the counting threshold, the current unlock status of the terminal device is determined; the unlock status is either unlocked or locked.

[0142] If the unlock status is "unlocked", generate a system switching command.

[0143] In some embodiments, the switching module 503 is further configured to output a prompt message after switching the foreground system of the terminal device from the first operating system to the second operating system according to the system switching instruction; the prompt message is used to notify the user that the terminal device has switched operating systems.

[0144] The system switching device for the dual-system terminal provided in this embodiment can execute the technical solution of the corresponding method embodiment. Its implementation principle and technical effect are similar to those of the corresponding method embodiment, and will not be repeated here.

[0145] This application also provides a terminal device. It is understood that the terminal device can be any handheld terminal running dual systems, such as a mobile phone, tablet computer, wearable device (such as a smartwatch), and intelligent voice interaction device, but is not limited to these.

[0146] Figure 8 This is a schematic diagram illustrating the structure of a terminal device according to an exemplary embodiment. For example... Figure 8As shown, the terminal device 600 includes a processor 601 and a memory 602 communicatively connected to the processor 601.

[0147] The memory 602 stores computer-executable instructions; the processor 601 executes the computer-executable instructions stored in the memory 602 to implement the system switching method for the dual-system terminal provided in this application.

[0148] In this embodiment, the memory 602 and the processor 601 are connected via a bus. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be categorized as an address bus, a data bus, a control bus, etc.

[0149] The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise as required.

[0150] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores computer-executable instructions that, when executed by a processor, are used to implement the system switching method for a dual-system terminal provided in this application.

[0151] In an exemplary embodiment, a computer program product is also provided, including a computer program, which, when executed by a processor, is used to implement the system switching method for a dual-system terminal provided in this application.

[0152] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0153] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0154] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.

[0155] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.

[0156] When an integrated unit / module is implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor, or other electronic component. Unless otherwise specified, memory can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as USB flash drives, random-access memory (RAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), enhanced dynamic random-access memory (EDRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), high-bandwidth memory (HBM), or hybrid memory cube (HMC) and other media capable of storing program code.

[0157] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device. Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a memory and includes several instructions to cause a terminal device to execute all or part of the steps of the methods of the various embodiments of this application.

[0158] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.

[0159] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the claims.

[0160] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A system switching method for a dual-system terminal, characterized in that, include: Determine the valid shake count value corresponding to the current counting cycle of the terminal device; When the effective shaking count value reaches the counting threshold, a system switching command is generated; According to the system switching instruction, the foreground system of the terminal device is switched from the first operating system to the second operating system.

2. The method according to claim 1, characterized in that, The determination of the valid shake count value corresponding to the current counting cycle of the terminal device includes: For each detection cycle in the counting cycle, a data sequence corresponding to the detection cycle is obtained; the data sequence includes multiple sets of triaxial acceleration data collected at preset time intervals; Update the effective shaking count value based on the data sequence corresponding to the detection cycle.

3. The method according to claim 2, characterized in that, The step of updating the effective shaking count value based on the data sequence corresponding to the detection period includes: From the data sequence corresponding to the detection cycle, determine the maximum and minimum acceleration values ​​corresponding to the reference axis; If the maximum acceleration reaches the corresponding threshold and the minimum acceleration reaches the corresponding threshold, then the effective shaking count value is incremented by 1.

4. The method according to claim 2, characterized in that, Obtain triaxial acceleration data, including any of the following: Acquire triaxial acceleration data collected by the accelerometer; The triaxial angular velocity data collected by the angular velocity sensor is acquired, and the triaxial acceleration data is determined based on the triaxial angular velocity data.

5. The method according to claim 1, characterized in that, Also includes: When entering the next counting cycle, the effective shaking count value is reset to zero.

6. The method according to claim 1, characterized in that, When the effective shaking count value reaches the counting threshold, a system switching command is generated, including: When the effective shaking count reaches a counting threshold, the current unlock status of the terminal device is determined; the unlock status is either unlocked or locked. If the unlock status is "unlocked", a system switching command is generated.

7. The method according to claim 1, characterized in that, After switching the foreground system of the terminal device from the first operating system to the second operating system according to the system switching instruction, the method further includes: Output a prompt message; the prompt message is used to inform the user that the terminal device has switched operating systems.

8. A system switching device for a dual-system terminal, characterized in that, include: The determination module is used to determine the valid shake count value corresponding to the current counting cycle of the terminal device; The generation module is used to generate a system switching command when the effective shaking count value reaches the counting threshold. The switching module is used to switch the foreground system of the terminal device from the first operating system to the second operating system according to the system switching instruction.

9. A terminal device, characterized in that, include: A processor and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the system switching method for a dual-system terminal as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the system switching method for a dual-system terminal as described in any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the system switching method for a dual-system terminal as described in any one of claims 1 to 7.