Method and terminal device for preventing machine lock from escaping
By refreshing the disable policy in the lock mode of the terminal device, ensuring that the navigation keys are disabled, solving the problem of lock mode escape and improving supplier benefits and user experience.
Patent Information
- Application Number
- CN202410545432.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-04-30
AI Technical Summary
The terminal device may escape in lock mode, causing the supplier to be unable to monitor the user's payment situation, affecting the profit and experience.
After the terminal device's lock mode is activated, refresh the disable policy so that the navigation keys are disabled again, ensuring that the lock mode is not escaped.
It effectively prevents the terminal device from escaping, protects suppliers' benefits, and improves user experience.
Smart Images

Figure CN118394539B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of terminal equipment, and in particular to a method and terminal equipment for preventing a locked device from escaping. Background Art
[0002] With the continuous development of the times, there are more and more ways to shop on terminal devices. Obtaining the right to use the terminal device first and then paying the purchase amount of the terminal device has become a new shopping method. This shopping method is suitable for some users with poor payment ability in the short term.
[0003] When users adopt this shopping method, in order to prevent users from refusing to pay when the payment is due, suppliers often set a lock mode on the terminal device. When the payment deadline arrives and the user has not completed the payment, the lock mode will be activated, the navigation keys will be disabled, and the terminal device will only display the payment page. Other functions cannot be used, or the terminal device can only support a few basic functions. However, testing has found that in some scenarios, the terminal device can escape from the lock mode, allowing the user to continue to use the terminal device normally. This will make it impossible for the supplier to monitor the user's payment status through the lock mode, seriously affecting the supplier's experience.
[0004] Therefore, a new solution is urgently needed to solve the above problems. Summary of the invention
[0005] The present application provides a method and terminal device for preventing the lock mode from escaping. By refreshing the disabling policy after the lock mode of the terminal device is activated, the terminal device disables the navigation keys again, ensuring that all the navigation keys of the terminal device are disabled, thereby preventing the lock mode of the terminal device from being escaped, protecting the supplier's profits, and improving the supplier's experience.
[0006] In a first aspect, a method for preventing a locked device from escaping is provided, which is applied to a terminal device with a non-disabled navigation key mode, the terminal device including a system framework layer and an application layer, including: in response to a first operation, controlling the application layer to enter the non-disabled navigation key mode; in response to a lock mode instruction of the lock application, notifying the application layer to exit the non-disabled navigation key mode; based on the lock mode instruction of the lock application, obtaining a disabling policy, and notifying the application layer to disable the navigation key for the first time according to the disabling policy; based on the lock mode instruction of the lock application, refreshing the disabling policy, and notifying the application layer to disable the navigation key again according to the disabling policy.
[0007] In an embodiment of the present application, when the lock mode of the lock application is activated, the system framework layer first notifies the application layer to exit the non-disabled navigation key mode, and then notifies the application layer to disable the navigation key. However, since the program for disabling the navigation key may be completed before the program for exiting the non-disabled navigation key mode, the first operation of disabling the navigation key according to the disabling policy cannot achieve the disabling of the navigation key. When the disabling policy is refreshed and the navigation key is disabled again according to the disabling policy, the application layer can determine to disable the navigation key, prevent the lock mode of the terminal device from being escaped, and improve the supplier's experience.
[0008] In conjunction with the first aspect, in certain implementations of the first aspect, the method for preventing a locked device from escaping further includes:
[0009] The time node when the application layer implements exiting the non-disabled navigation key mode is later than the time node when the application layer implements disabling the navigation key.
[0010] In this implementation, although the system framework layer notifies the application layer of the instruction to exit the non-disabled navigation key mode before the system framework layer notifies the application layer of the instruction to disable the navigation key, the callback time for the application layer to exit the non-disabled navigation key mode is longer, so the time node for the application layer to exit the non-disabled navigation key mode is later than the time node for the application layer to disable the navigation key. When this application refreshes the disabling policy again, the application layer can determine to disable the navigation key to prevent the terminal device's lock mode from being escaped.
[0011] It should be understood that the method of preventing the locked device from escaping in the present application is also applicable to the situation where the time node at which the application layer exits the non-disabled navigation key mode is earlier than the time node at which the application layer disables the navigation key.
[0012] In combination with the first aspect, in some implementations of the first aspect, a time node for refreshing the disabling policy is later than a time node for the application layer to exit the non-disabled navigation key mode.
[0013] In this implementation, although the system framework layer notifies the application layer of the instruction to exit the non-disabled navigation key mode before the system framework layer notifies the application layer of the instruction to disable the navigation key, the callback time for the application layer to exit the non-disabled navigation key mode is relatively long, resulting in the time node for the application layer to exit the non-disabled navigation key mode later than the time node for the application layer to disable the navigation key. When this application refreshes the disabling policy again, the application layer can exit the non-disabled navigation key mode and then refresh the disabling policy to determine the disabled navigation key, thereby preventing the terminal device's lock mode from being escaped.
[0014] In combination with the first aspect, in some implementations of the first aspect, the non-disabled navigation key mode includes a screen fixed mode.
[0015] In this implementation, when the terminal device is a mobile phone, prohibiting disabling the navigation mode may include a screen fixed mode. That is, when the mobile phone is in the screen fixed mode, prohibiting disabling the navigation mode. Exemplarily, the navigation keys in the mobile phone navigation mode generally include a return key, a home screen key, and a multitasking key.
[0016] In combination with the first aspect, in some implementations of the first aspect, the terminal device also includes a lock application; responding to a lock mode instruction of the lock application includes: the lock application is activated in lock mode, and a lock mode instruction is generated.
[0017] In this implementation, illustratively, when the user does not perform a certain operation before a certain time point, the lock application is activated in lock mode so that the system framework layer obtains the lock mode instruction.
[0018] In combination with the first aspect, in some implementations of the first aspect, the locking application is activated in a locking mode, including:
[0019] A scenario where a user fails to pay for a purchase on time by using the installment payment method.
[0020] In this implementation, specifically, the lock mode activated by the lock application in the application layer can be a scenario where the user makes a purchase by installment and fails to pay on time, thereby enabling the lock application to activate the lock mode through this scenario, so that the system framework layer obtains the lock mode instruction.
[0021] In combination with the first aspect, in some implementations of the first aspect, the navigation keys include a return key, a home key, and a multitasking key; and the disabling policy includes disabling one or more of the return key, the home key, and the multitasking key.
[0022] In this implementation, when the terminal device is a mobile phone, the navigation keys may include a return key, a home key, and a multi-tasking key. Therefore, according to actual needs, the disabling strategy may include disabling one or more of the return key, the home key, and the multi-tasking key, and then using the terminal device to only display the lock page, unable to use other functions, or only able to use a small number of basic functions.
[0023] In combination with the first aspect, in some implementations of the first aspect, the time interval between notifying the application layer to disable the navigation key according to the disabling policy and notifying the application layer again to disable the navigation key according to the disabling policy is in milliseconds.
[0024] In this implementation, the time interval between the terminal device notifying the application layer to disable the navigation key for the first time according to the disabling policy and notifying the application layer to disable the navigation key again according to the disabling policy is in milliseconds, thereby reducing the impact of refreshing the disabling policy on the user's vision.
[0025] In a second aspect, a terminal device is provided, comprising: one or more processors, and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the terminal device executes the described method.
[0026] It should be understood that the expansion, limitation, explanation and description of the relevant contents in the above-mentioned first aspect also apply to the same contents in the second aspect.
[0027] In a third aspect, a chip system is provided. The chip system is applied to a terminal device. The chip system includes one or more processors. The one or more processors are used to call computer instructions so that the terminal device executes the described method.
[0028] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes instructions, and when the instructions are executed on a terminal device, the terminal device executes the described method.
[0029] In a fifth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by a terminal device, the terminal device executes any one of the methods for preventing the lock from escaping in the first aspect.
[0030] An embodiment of the present application provides a method for preventing the lock mode from escaping. After the lock mode of the terminal device is activated, the disabling policy is refreshed to disable the navigation keys of the terminal device again, ensuring that all the navigation keys of the terminal device are disabled, thereby preventing the lock mode of the terminal device from escaping, protecting the supplier's profits, and improving the supplier's experience.
[0031] In addition, the method for preventing the lock machine from escaping provided in the embodiment of the present application does not require change and will not affect the detection mechanism of the terminal device. The method for preventing the lock machine from escaping provided in the embodiment of the present application has little impact on the original functions of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a schematic diagram of an interface of a terminal device provided by an embodiment of the present application in a normal working state;
[0033] Figure 2A A schematic diagram of a related page in a locked state of a terminal device provided in an embodiment of the present application;
[0034] Figure 2B This is a schematic diagram of an interface showing that all installment payments of a terminal device provided in an embodiment of the present application have been completed;
[0035] Figure 3A A schematic diagram of related pages of a terminal device in a screen fixed mode provided by an embodiment of the present application;
[0036] Figure 3B A schematic diagram of a related page that can be escaped when a terminal device is in a locked mode provided by an embodiment of the present application;
[0037] Figure 4 A schematic diagram of the structure of a software system of a terminal device provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a flow chart of a method for preventing a locked machine from escaping provided in an embodiment of the present application;
[0039] Figure 6 A flowchart of a method for preventing a locked machine from escaping provided by another embodiment of the present application;
[0040] Figure 7 A flowchart of a method for preventing a locked machine from escaping provided by another embodiment of the present application;
[0041] Figure 8 A hardware system of a terminal device provided in an embodiment of the present application;
[0042] Fig. 9 A schematic diagram of the structure of a terminal device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0044] 1. International Mobile Equipment Identity (IMEI). In the field of terminal equipment technology, the International Mobile Equipment Identity is a mark that distinguishes mobile devices. It is generally stored in mobile devices and can be used to monitor stolen or invalid mobile devices. For example, the International Mobile Equipment Identity can be used to identify each independent mobile phone in the global system for mobile communications (GSM) mobile network, which is equivalent to the mobile phone's ID number. Each GSM mobile phone sold through formal channels has a unique IMEI code, commonly known as "mobile phone serial number", "mobile phone serial code", "mobile phone serial number", etc. The IMEI code is uniformly planned by the GSM Association and authorized to be organized and allocated in various regions. Its total length is generally 15 digits, and each digit only uses 0 to 9.
[0045] 2. Installment payment (pay by installments). In the field of terminal equipment technology, installment payment is actually a loan provided by the seller to the buyer. The seller is the creditor and the buyer is the debtor. The buyer can obtain the required goods or services after paying only a small part of the purchase price. However, since the subsequent installments include interest, the amount paid for the same goods or services purchased by installment payment is more than the amount paid in one lump sum. The installment payment method can enable the seller to complete promotional activities on the one hand, and provide convenience to the buyer on the other hand. Installment payment is mostly used in some product transactions with long production cycles, long use cycles or high costs. For example, the export of complete sets of equipment, large-scale transportation vehicles, heavy machinery and equipment, etc. It is also currently used in electronic products, such as mobile phones, computers, cameras, etc.
[0046] 3. Locking the phone. In the field of terminal equipment technology, locking the phone is a solution for users who purchase terminal equipment in installments but refuse to pay when due. When the user fails to pay on time, the locking mode will lock the terminal device. After locking, the terminal device can only use a few applications and functions such as locking applications and settings. For example, when the terminal device is a mobile phone, after the mobile phone is locked, generally only a few functions such as locking applications, settings and calls can be used. Exemplarily, the commonly used implementation method of the locking mode is: the supplier of the terminal device provides the terminal device IMEI to the locking application manufacturer, and the terminal device IMEI is added to the server of the locking application manufacturer. When the terminal device is in the boot wizard process, the terminal device will automatically download the data link control (DLC) program and the locking application. The locking application implements the locked state of the terminal device through the DLC program.
[0047] 4. Screen domination. In the field of terminal device technology, screen domination means that when a user purchases a terminal device by installment payment, if the user refuses to pay on time, the screen of the terminal device will enter lock mode and display the screen domination interface to urge the user to pay as soon as possible.
[0048] For example, when the terminal device is a mobile phone, if the user fails to pay on time, the mobile phone screen will display the following Figure 2A The screen domination interface shown in (a) in the figure. At this time, after the mobile phone is dominated by the screen, it is impossible to switch applications or return to the main page. Only when the user completes the payment through the payment control in the screen domination interface can the mobile phone be used normally.
[0049] 5. Screen fixed mode. In the field of terminal device technology, the screen fixed mode is used to fix the screen so that the terminal device can only use the currently running application. If the screen fixed mode is used, even if the user accidentally touches the touch button, the running application will not stop running. The screen fixed mode can effectively reduce the impact of the user's unintentional operation on the running application. Even when the mobile phone is lent to others, some functions are still locked. Especially for the situation where children play with their parents' mobile phones, it can effectively prevent children from randomly pressing and touching the parents' mobile phones.
[0050] 6. Mobile phone navigation three keys. In the field of terminal device technology, mobile phone navigation three keys refer to the three navigation keys at the bottom of the mobile phone, including the return key 13, the home screen key 12 and the multi-tasking key 11, such as Figure 1 As shown. Among them, the function of the return key is to click the return key once to return the page to the parent interface, which is usually displayed through a triangle button. The function of the home screen key is to return to the desktop no matter what interface you are currently in, by clicking the key, which is usually displayed through a circular button. The function of the multitasking key is to click the multitasking key once to display multiple tasks running in the background, so that you can enter or delete a certain task, which is usually displayed through a square button.
[0051] The above is a brief introduction to the terms involved in the embodiments of the present application, which will not be repeated below.
[0052] Figure 1 This is a schematic diagram of an interface of a terminal device provided in an embodiment of the present application under normal working conditions.
[0053] When a user purchases a terminal device 100 by installment payment, the supplier of the terminal device 100 will send the machine identification code of the terminal device 100 to the lock application manufacturer in advance and add it to the lock application manufacturer's server. In this way, when the terminal device 100 is turned on for the first time, the lock application will be automatically downloaded to the desktop, so that the supplier can monitor the payment of the terminal device 100 through the lock application. Figure 1 As shown, at this time, the lock application only exists as an application program on the desktop of the terminal device 100 and does not affect the normal use of the terminal device 100.
[0054] Specifically, the display interface in the lock application will display the total amount of the terminal device 100, the number of installments, the amount to be paid in each installment, and the remittance account, etc. When the user remits the outstanding amount to the designated remittance account before the deadline for each installment payment, the terminal device 100 can continue to be used normally.
[0055] For example, Figure 1As shown, the desktop of the terminal device 100 can be set with multiple applications, such as a clock, a calendar, a gallery, etc. A multitasking key 11, a home screen key 12, and a return key 13 are also provided at the bottom of the desktop of the terminal device 100. Among them, the multitasking key 11 is used for the terminal device 100 to jump from the current page to one or more applications running in the background of the terminal device 100, and to enter or close a certain application. The home screen key 12 is used for the terminal device 100 to jump from the current page to the desktop of the terminal device 100. The return key 13 is used for the terminal device 100 to jump from the current page to the last opened page.
[0056] When the user fails to complete the payment before the payment deadline, the lock application will be activated in lock mode, and the terminal device 100 will be "dominated" by the lock application, disabling the multitasking key 11, the home key 12, and the return key 13, making the terminal device 100 unusable or only able to use some basic functions, in order to urge the user to repay the loan as soon as possible. When the user completes the payment by operating the payment control on the "dominated" interface, the terminal device 100 can be used normally.
[0057] Combine the following Figure 2A and Figure 2B This section briefly introduces the "Dominate Screen" interface and the process of switching the terminal device from lock mode back to normal working state.
[0058] Figure 2A This is a schematic diagram of the relevant interfaces of a terminal device in a locked state provided by an embodiment of the present application.
[0059] When the user fails to complete the payment before the payment deadline, the lock application will be activated in lock mode, occupying the screen of the terminal device 100, indicating that the terminal device 100 is restricted due to non-payment. Figure 2A The screen dominance page 201 shown in (a) in the figure prompts the user that "your phone is restricted due to non-payment. Please use the payment control below to pay your unpaid balance, or use the payment code at any retail location." In addition, the payment control is displayed, and the home key, multitasking key and back key are disabled, so that the terminal device 100 can neither switch to other applications nor return to the desktop, and other applications and pages cannot be used normally.
[0060] Optionally, in order to prevent certain emergencies of users, basic functions can generally be set on the "Dominate the Screen" page to solve the user's urgent needs. Figure 2A In the dominating screen page 201 shown in (a), an emergency call control is provided on the "dominating screen" page, and the emergency call control is used to implement functions such as calling a rescue phone when responding to user operations.
[0061] When the user clicks the payment control on the "Dominate Screen" page, they will be redirected to the payment page. Figure 2A The payment page 202 shown in (b) of FIG. 1 may display the payment object, payment amount, payment method, and a password input box. When the user enters the payment password on the payment page and completes the payment action, the locking application may control the terminal device 100 to exit from the payment page 202 and jump to the outstanding payment page, such as Figure 2A The arrears page 203 shown in (c) of FIG. 10 is displayed, and the home key, multitasking key and return key of the terminal device 100 are restored to normal use. The arrears page 203 can display the remaining time until the next payment of the terminal device 100, the next payment deadline, and the payment control. When the user clicks the payment control in the arrears page 203, the next payment operation can be performed.
[0062] Optionally, the user can complete the next payment in advance on the outstanding payment page 203, or temporarily refrain from paying, exit the outstanding payment page 203 using the navigation key, and use other applications of the terminal device 100 normally.
[0063] Figure 2B This is a schematic diagram of an interface showing that all installment payments of a terminal device provided in an embodiment of the present application have been completed.
[0064] like Figure 2B As shown, when the user purchases the terminal device 100 by installment payment and has completed the last installment payment, so that the purchase amount and interest of the terminal device 100 purchased by installment payment are all paid, the prompt page 204 can be displayed. Through the prompt page 204, the user is notified that the installment payment amount of the terminal device 100 has been fully paid. The user can delete the lock application as needed, or keep the lock application for later use.
[0065] That is to say, when the user purchases the terminal device 100 by installment payment, the terminal device 100 will automatically download the lock application during the first startup process, and cannot be uninstalled by itself before the user fully pays the entire purchase amount of the terminal device 100. It should be noted that the lock application is an application independent of other system applications of the terminal device 100. Under normal circumstances, when a certain installment payment node is reached but the user has not paid, the lock application will automatically start the lock mode, and the screen page of the locked terminal device 100 will form a "dominated screen" page, and the navigation keys will be disabled, resulting in other system applications being unusable, or only a few basic applications can be used. At the same time, the reason for the dominance of the screen and the payment controls are displayed on the "dominated screen" page to urge users to pay the current bill as soon as possible.
[0066] However, the test found that when the terminal device 100 is in the screen fixed mode, and the terminal device 100 reaches a certain installment payment node but the user has not paid, the screen fixed mode setting prohibits disabling the multitasking key, which causes the lock application to be unable to disable the multitasking key. If the user presses the multitasking key at this time, he can escape from the current "screen domination" page, thereby causing the lock mode of the terminal device 100 to be escaped. The supplier cannot monitor the user's installment payment status through the lock mode, so that the user can use the terminal device 100 normally without paying when the payment is due, which seriously affects the supplier's revenue.
[0067] Combine the following Figure 3A-3B , a detailed introduction is given to the problem that the terminal device can be escaped when the screen is fixed mode and the lock mode is activated.
[0068] Figure 3A A schematic diagram of related pages of a terminal device in a screen fixed mode provided by an embodiment of the present application.
[0069] Exemplarily, when the terminal device 100 is in a normal working state, for example, when playing a video screen, the terminal device 100 can enter the screen fixed mode through the screen fixed control, such as Figure 3A The video page 301 shown in (a) in FIG. It should be noted that in the video page 301, the screen fixed control is in the open state, and the return key, the home screen key and the multi-tasking key in the navigation key can all be used normally.
[0070] For example, according to the actual needs of the user, the user can click the screen fixation control to make the terminal device 100 enter the screen fixation mode, such as Figure 3A The screen fixed page 302 shown in (b) in FIG. It should be noted that in the screen fixed page 302, the screen fixed control is in a closed state, the return key and the home key in the navigation key are disabled, but the multitasking key can be used normally and is not allowed to be disabled. In other words, when the terminal device 100 is in the screen fixed mode, you can enter the multitasking page by clicking the multitasking key, and then enter any task interface running in the background of the terminal device 100 through the multitasking page.
[0071] Figure 3B A schematic diagram of related pages that can be escaped when a terminal device is in lock mode provided in an embodiment of the present application.
[0072] For example, the test found that when the terminal device 100 is in the screen fixed mode and the lock application is activated in the lock mode, the terminal device 100 will enter the screen fixed mode, that is, enter the "Dominating Screen" page to urge the user to pay the current outstanding amount as soon as possible. However, since the terminal device 100 is currently in the screen fixed mode, and the screen fixed mode prohibits disabling the multitasking key, the lock application displays the "Dominating Screen" page, but cannot disable the multitasking key (recent key). The multitasking key is still displayed as usable, such as Figure 3B In the abnormal page 303 shown in (a), the user is prompted that "your phone is restricted due to non-payment, please use the payment controls below to pay your unpaid balance, or use the payment code at any retail location." The payment controls are displayed. Although the back key and the home key are disabled or hidden, the multitasking key is still displayed as usable.
[0073] At this time, the user can jump to the multitasking page of the terminal device 100 by clicking the multitasking key, such as Figure 3B The multitasking page 304 shown in (b) in FIG. In the multitasking page 304, multiple task pages running in the background of the terminal device 100 are arranged and displayed, and a recycling control is provided below the multiple task pages. Among them, the multiple task pages are all reduced versions of the task windows. The user can browse the multiple task windows in sequence by sliding left and right or up and down. In addition, the user can also close a task window by long pressing and pulling down to the recycling control.
[0074] It should be noted that at this time, the user can enter the corresponding task page by clicking on a task window, so as to escape the "screen domination" page caused by the locked application. For example, the user can enter the call page by clicking on the call window in the multitasking page. Figure 3B In the call page 305 shown in (c) of FIG. 305, for example, the user's recent call records can be displayed, specifically the call object, call time, and call duration. Among them, the multitasking key, the home screen key, and the return key are all displayed as being usable normally. For example, the user can jump to the desktop of the terminal device 100 by clicking the home screen key in the call page 305, such as Figure 3B The desktop 306 shown in (d) in FIG. 4 is shown in FIG. 4 . As a result, the supplier cannot monitor the user's installment payment status through the lock mode, so that the user can use the terminal device 100 normally without paying when the payment is due, which seriously affects the supplier's income.
[0075] In view of this, in order to solve the problem that the terminal device 100 in the embodiment of the present application is in the screen fixed mode, and the lock mode of the lock application is activated but can be escaped, the present application provides a method for preventing the lock mode from being escaped. After the lock mode of the terminal device is activated, the disabling policy of the terminal device is refreshed, and the navigation keys are disabled again, so that the terminal device determines that the lock mode is implemented, and all navigation keys including the multi-tasking key are disabled, so as to avoid the lock mode of the terminal device from being escaped, thereby protecting the supplier's profits and improving the supplier's experience.
[0076] In addition, the method for preventing the lock machine from escaping provided in the embodiment of the present application does not require changes and will not affect the normal application programs of the terminal device. The method for preventing the lock machine from escaping provided in the embodiment of the present application has little impact on the original functions of the terminal device.
[0077] The embodiment of the present application does not specifically limit the type of the terminal device 100. In some embodiments, the terminal device 100 may be a mobile phone, a wearable device (such as a smart bracelet, a smart watch, a headset, etc.), a tablet computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, and other IOT (internet of things) devices. For ease of understanding, the following embodiments are exemplified by taking the terminal device 100 as a mobile phone as an example.
[0078] Based on the interface diagram of the above terminal device, the software system involved in the terminal device is briefly introduced below, and then the locking process of the locking application is explained in combination with the software system.
[0079] Figure 4 This is a schematic diagram of the structure of a software system of a terminal device provided in an embodiment of the present application. The terminal device can be Figure 1 The terminal equipment shown in . Figure 4 As shown, the software system may include an application layer, a system framework layer (framework, FWK), a system operation layer, a hardware abstract layer (hardware abstract layer, HAL) and a kernel layer. The following is a detailed description of each of them.
[0080] The application layer can include a series of application packages, such as desktop applications, contact applications, call applications, short messages, gallery, video applications, calendar, camera, navigation applications, map applications, Bluetooth, WLAN, email client and other applications.
[0081] It should be noted that the application layer may also include a locking application for monitoring user installment payments.
[0082] Exemplarily, the locking application may be a Trustonic locking application or a PayJoy locking application.
[0083] The system framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The system framework layer may include some predefined functions, such as a function for receiving events sent by the system framework layer.
[0084] Specifically, the system framework layer may include a view system (Views), content providers (ContentProviders), a resource manager (ResourceManager), a notification manager (NotificationManager), an activity manager (ActivityManager), a window manager (Windows Manager), and the like.
[0085] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0086] Content providers allow applications to access another application's data (such as a contact database), or to share their own data. Content providers are used to store and retrieve data and make it accessible to applications. The data can include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0087] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0088] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0089] The activity manager is used to manage the application life cycle and provide common navigation back functionality.
[0090] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0091] The system runtime layer includes program libraries and program runtime libraries. For example, in the Android system, program libraries include some C / C++ libraries that can be used by different components in the Android system. They provide services to developers through the Android application framework. The program runtime library includes a core library that provides most of the functions of the JAVA programming language core library.
[0092] The hardware abstraction layer is an interface layer between the hardware layer and the software layer, which is used to abstract the hardware. The hardware abstraction layer includes audio and video interfaces, call interfaces, wireless fidelity (WiFi) interfaces, etc.
[0093] The kernel layer may include display drivers, camera drivers, sensor drivers, etc., which are used to drive related hardware of the hardware layer, such as display screens, cameras, sensors, etc.
[0094] Combine the following Figures 5 to 7 , and then a solution for refreshing the disabling policy of the terminal device after the lock mode of the terminal device is activated is introduced in detail.
[0095] Figure 5 A flowchart of a method for preventing a locked machine from escaping provided in an embodiment of the present application is provided.
[0096] like Figure 5 As shown, in one embodiment provided in the present application, illustratively, a method for preventing a locked machine from escaping may include:
[0097] S5011. In response to a first operation initiated by a user, the first application sends a screen fixed mode instruction to the system framework layer.
[0098] For example, in the embodiment of the present application, the first operation may be that the user can click on the screen fixation control of a task page on the terminal device 100, so that the first application sends a screen fixation mode instruction to the system framework layer, such as Figure 3A The video page 301 shown in (a) in FIG.
[0099] It should be noted that, in the embodiment of the present application, the screen fixed mode is a non-disabled navigation key mode. For example, when the terminal device 100 is in the screen fixed mode, it is not allowed to disable the multitasking key.
[0100] Optionally, the first application may be other applications in the application layer except the locked application, such as a video application, a game application, etc.
[0101] S5012: The system framework layer notifies the first application to enter the screen fixed mode according to the screen fixed mode instruction.
[0102] Exemplarily, in an embodiment of the present application, the system framework layer inside the terminal device 100 obtains the screen fixed mode instruction of the first application, calls the corresponding program algorithm, and thus notifies the first application to enter the screen fixed mode.
[0103] S5013: The first application enters the screen fixed mode.
[0104] For example, in the embodiment of the present application, when the first application receives the instruction to enter the fixed screen mode, it will execute the operation of entering the fixed screen mode, such as Figure 3A The screen fixed page 302 shown in (b) of FIG. When the screen page of the terminal device 100 enters the screen fixed mode, it means that unless the user operates to exit the screen fixed mode, it is temporarily impossible to switch or exit the screen page.
[0105] It should be noted that in the embodiment of the present application, when the terminal device 100 is a mobile phone, the navigation keys of the terminal device 100 generally include a return key, a home screen key, and a multitasking key, etc. When the mobile phone enters the screen fixed mode, it is generally not allowed to disable the multitasking key, so that the user can control the mobile phone screen by clicking on the multitasking interface.
[0106] Optionally, in the application layer of the terminal device 100, the set In Screen Pinning() program can generally be used to implement the application layer entering the screen pinning mode. Specifically, when the application layer of the terminal device 100 needs to enter the screen pinning mode, mScreen Pinning Active = true can be used to implement it.
[0107] S5021. The lock application sends a lock mode instruction to the system framework layer.
[0108] For example, in the embodiment of the present application, when the user does not perform a certain operation in the lock application within the specified period, or does not complete the payment within the specified time, the lock application will send a lock mode instruction to the system framework layer. For example, when the user purchases the terminal device 100 by installment payment, and the user does not pay when a certain installment expires, the lock application will start the lock mode and send a lock mode instruction to the system framework layer.
[0109] It should be understood that the application layer is the system application layer of the terminal device 100, and the application layer may include a lock application, a first application, and multiple other applications. When the lock application enters the lock mode, the lock application locks other applications in the application layer and blocks other applications from running.
[0110] Exemplarily, the lock application may include a DLC program and a lock application program. The DLC program is a lock control program inside the terminal device 100, and the lock application program is a lock application program displayed on the desktop of the terminal device 100. When a user purchases the terminal device 100 by installment payment, the lock application program is used to monitor the user's installment payment in real time. When the user fails to pay due, the lock application program is activated in lock mode, and the lock mode of the terminal device 100 is implemented through the DLC program, so that the terminal device 100 presents a "dominant screen" page to urge the user to repay as soon as possible.
[0111] S5022: The system framework layer notifies the first application to exit the screen fixed mode according to the lock mode instruction.
[0112] For example, in an embodiment of the present application, when the system framework layer of the terminal device 100 receives a lock mode instruction from the lock application, it notifies the first application to exit the non-disabled navigation key mode according to the lock mode instruction. For example, the first application is notified to exit the screen fixed mode according to the lock mode instruction.
[0113] S5023: The first application exits the screen fixation mode.
[0114] Exemplarily, in the embodiment of the present application, when the first application receives an instruction to exit the fixed screen mode, it executes an operation to exit the fixed screen mode.
[0115] It should be noted that in the embodiment of the present application, when the system framework layer receives the lock mode instruction of the lock application, it only issues an instruction for the first application to exit the screen fixed mode, but does not determine whether the first application has completely exited the screen fixed mode.
[0116] Optionally, in the application layer of the terminal device 100, the set In Screen Pinning() program can generally be used to implement the first application to exit the screen pinning mode. Specifically, when the first application of the terminal device 100 needs to exit the screen pinning mode, mScreen Pinning Active = false can be used to implement it.
[0117] S5031. The system framework layer also obtains a disabling strategy according to the lock mode instruction, and notifies the application layer to disable the navigation key.
[0118] For example, in the embodiment of the present application, the system framework layer also notifies the application layer to disable the navigation key according to the lock mode instruction. For example, when the terminal device 100 is a mobile phone, the system framework layer also notifies the application layer to start screen dominance according to the lock mode instruction and disables the back key, the home screen key and the multitasking key.
[0119] S5032: The application layer disables the navigation key.
[0120] Exemplarily, in the embodiment of the present application, when the first application receives the instruction to exit disabling the navigation key, it will execute the operation of exiting disabling the navigation key.
[0121] Optionally, in the application layer of the terminal device 100, an update Nav ButtonIcons() program can generally be used to implement the application layer exiting the screen fixed mode.
[0122] However, in one embodiment of the present application, since the program for the first application to exit the screen fixed mode requires internal message forwarding three times and the running time is relatively long, it takes a long time for the application layer to completely exit the screen fixed mode, and it is even longer than the time when the application layer disables the navigation key according to the disabling policy. In other words, the time node when the application layer exits the non-disabled navigation key mode is later than the time node when the application layer disables the navigation key. In the embodiment of the present application, it means that the time node when the first application exits the screen fixed mode is later than the time node when the application layer disables the navigation key. As a result, the application layer first implements the operation of disabling the navigation key according to the disabling policy, but because the terminal device 100 is still in the screen fixed mode, the application layer cannot achieve the effect of disabling the navigation key, and the state of being unable to disable the navigation key is maintained. Even if the first application has exited the screen fixed mode later, the screen of the terminal device 100 still maintains this state of being unable to disable the navigation key.
[0123] Figure 6 A flowchart of a method for preventing a locked machine from escaping provided in yet another embodiment of the present application.
[0124] like Figure 6 As shown, in an embodiment provided in the present application, illustratively, a method for preventing a locked machine from escaping may include the following steps:
[0125] S5011. In response to a first operation initiated by a user, the first application sends a screen fixed mode instruction to the system framework layer.
[0126] For example, in the embodiment of the present application, the first operation may be that the user can click on the screen fixation control of a task page on the terminal device 100, so that the first application sends a screen fixation mode instruction to the system framework layer, such as Figure 3A The video page 301 shown in (a) in FIG.
[0127] It should be noted that, in the embodiment of the present application, the screen fixed mode is a non-disabled navigation key mode. For example, when the terminal device 100 is in the screen fixed mode, it is not allowed to disable the multitasking key.
[0128] Optionally, the first application may be other applications in the application layer except the locked application, such as a video application, a game application, etc.
[0129] S5012: The system framework layer notifies the first application to enter the screen fixed mode according to the screen fixed mode instruction.
[0130] Exemplarily, in an embodiment of the present application, the system framework layer inside the terminal device 100 obtains the screen fixed mode instruction of the first application, calls the corresponding program algorithm, and thus notifies the first application to enter the screen fixed mode.
[0131] S5013: The first application enters the screen fixed mode.
[0132] For example, in the embodiment of the present application, when the first application receives the instruction to enter the fixed screen mode, it will execute the operation of entering the fixed screen mode, such as Figure 3A The screen fixed page 302 shown in (b) of FIG. When the screen page of the terminal device 100 enters the screen fixed mode, it means that unless the user operates to exit the screen fixed mode, it is temporarily impossible to switch or exit the screen page.
[0133] It should be noted that in the embodiment of the present application, when the terminal device 100 is a mobile phone, the navigation keys of the terminal device 100 generally include a return key, a home screen key, and a multitasking key, etc. When the mobile phone enters the screen fixed mode, it is generally not allowed to disable the multitasking key, so that the user can control the mobile phone screen by clicking on the multitasking interface.
[0134] Optionally, in the application layer of the terminal device 100, the set In Screen Pinning() program can generally be used to implement the application layer entering the screen pinning mode. Specifically, when the application layer of the terminal device 100 needs to enter the screen pinning mode, mScreen Pinning Active = true can be used to implement it.
[0135] S5021. The lock application sends a lock mode instruction to the system framework layer.
[0136] For example, in the embodiment of the present application, when the user does not perform a certain operation in the lock application within the specified period, or does not complete the payment within the specified time, the lock application will send a lock mode instruction to the system framework layer. For example, when the user purchases the terminal device 100 by installment payment, and the user does not pay when a certain installment expires, the lock application will start the lock mode and send a lock mode instruction to the system framework layer.
[0137] It should be understood that the application layer is the system application layer of the terminal device 100, and the application layer may include a lock application, a first application, and multiple other applications. When the lock application enters the lock mode, the lock application locks other applications in the application layer and blocks other applications from running.
[0138] Exemplarily, the lock application may include a DLC program and a lock application program. The DLC program is a lock control program inside the terminal device 100, and the lock application program is a lock application program displayed on the desktop of the terminal device 100. When a user purchases the terminal device 100 by installment payment, the lock application program is used to monitor the user's installment payment in real time. When the user fails to pay due, the lock application program is activated in lock mode, and the lock mode of the terminal device 100 is implemented through the DLC program, so that the terminal device 100 presents a "dominant screen" page to urge the user to repay as soon as possible.
[0139] S5022: The system framework layer notifies the first application to exit the screen fixed mode according to the lock mode instruction.
[0140] For example, in an embodiment of the present application, when the system framework layer of the terminal device 100 receives a lock mode instruction from the lock application, it notifies the first application to exit the non-disabled navigation key mode according to the lock mode instruction. For example, the first application is notified to exit the screen fixed mode according to the lock mode instruction.
[0141] S5023: The first application exits the screen fixation mode.
[0142] Exemplarily, in the embodiment of the present application, when the first application receives an instruction to exit the fixed screen mode, it executes an operation to exit the fixed screen mode.
[0143] Optionally, in the application layer of the terminal device 100, the set In Screen Pinning() program can generally be used to implement the first application to exit the screen pinning mode. Specifically, when the first application of the terminal device 100 needs to exit the screen pinning mode, mScreen Pinning Active = false can be used to implement it.
[0144] S5024: The first application feeds back a signal for exiting the screen fixed mode.
[0145] Exemplarily, in an embodiment of the present application, when the first application exits the screen fixing mode, a signal is fed back to the system framework layer so that the system framework layer determines that the first application has exited the screen fixing mode.
[0146] S5031. The system framework layer also obtains a disabling strategy according to the lock mode instruction, and notifies the application layer to disable the navigation key.
[0147] For example, in the embodiment of the present application, the system framework layer also notifies the application layer to disable the navigation key according to the lock mode instruction. For example, when the terminal device 100 is a mobile phone, the system framework layer also notifies the application layer to start screen dominance according to the lock mode instruction and disables the back key, the home screen key and the multitasking key.
[0148] S5032: The application layer disables the navigation key.
[0149] Exemplarily, in the embodiment of the present application, when the first application receives the instruction to exit disabling the navigation key, it will execute the operation of exiting disabling the navigation key.
[0150] Optionally, in the application layer of the terminal device 100, an update Nav ButtonIcons() program can generally be used to implement the application layer exiting the screen fixed mode.
[0151] It should be noted that in the embodiment of the present application, since it has been determined that the first application has exited the screen fixed mode, the system framework layer can directly disable the navigation key in the application layer according to the disabling policy, and the problem of being unable to disable the navigation key will not occur.
[0152] Exemplarily, in another embodiment of the present application, it may also include: the system framework layer also determines whether the application layer disables the navigation key according to the feedback signal of the application layer. When the system framework layer determines that the application layer disables the navigation key according to the feedback signal of the application layer, the process ends. When the system framework layer cannot determine that the application layer disables the navigation key according to the feedback signal of the application layer, the disabling policy can be refreshed again according to the disabling policy, and the application layer is notified again to disable the navigation key.
[0153] Figure 7A flowchart of a method for preventing a locked machine from escaping provided in yet another embodiment of the present application.
[0154] like Figure 7 As shown, in one embodiment provided in the present application, illustratively, a method for preventing a locked machine from escaping may include:
[0155] S5011. In response to a first operation initiated by a user, the first application sends a screen fixed mode instruction to the system framework layer.
[0156] For example, in the embodiment of the present application, the first operation may be that the user can click on the screen fixation control of a task page on the terminal device 100, so that the first application sends a screen fixation mode instruction to the system framework layer, such as Figure 3A The video page 301 shown in (a) in FIG.
[0157] It should be noted that, in the embodiment of the present application, the screen fixed mode is a non-disabled navigation key mode. For example, when the terminal device 100 is in the screen fixed mode, it is not allowed to disable the multitasking key.
[0158] Optionally, the first application may be other applications in the application layer except the locked application, such as a video application, a game application, etc.
[0159] S5012: The system framework layer notifies the first application to enter the screen fixed mode according to the screen fixed mode instruction.
[0160] Exemplarily, in an embodiment of the present application, the system framework layer inside the terminal device 100 obtains the screen fixed mode instruction of the first application, calls the corresponding program algorithm, and thus notifies the first application to enter the screen fixed mode.
[0161] S5013: The first application enters the screen fixed mode.
[0162] For example, in the embodiment of the present application, when the first application receives the instruction to enter the fixed screen mode, it will execute the operation of entering the fixed screen mode, such as Figure 3A The screen fixed page 302 shown in (b) of FIG. When the screen page of the terminal device 100 enters the screen fixed mode, it means that unless the user operates to exit the screen fixed mode, it is temporarily impossible to switch or exit the screen page.
[0163] It should be noted that in the embodiment of the present application, when the terminal device 100 is a mobile phone, the navigation keys of the terminal device 100 generally include a return key, a home screen key, and a multitasking key, etc. When the mobile phone enters the screen fixed mode, it is generally not allowed to disable the multitasking key, so that the user can control the mobile phone screen by clicking on the multitasking interface.
[0164] Optionally, in the application layer of the terminal device 100, the set In Screen Pinning() program can generally be used to implement the application layer entering the screen pinning mode. Specifically, when the application layer of the terminal device 100 needs to enter the screen pinning mode, mScreen Pinning Active = true can be used to implement it.
[0165] S5021. The lock application sends a lock mode instruction to the system framework layer.
[0166] For example, in the embodiment of the present application, when the user does not perform a certain operation in the lock application within the specified period, or does not complete the payment within the specified time, the lock application will send a lock mode instruction to the system framework layer. For example, when the user purchases the terminal device 100 by installment payment, and the user does not pay when a certain installment expires, the lock application will start the lock mode and send a lock mode instruction to the system framework layer.
[0167] It should be understood that the application layer is the system application layer of the terminal device 100, and the application layer may include a lock application, a first application, and multiple other applications. When the lock application enters the lock mode, the lock application locks other applications in the application layer and blocks other applications from running.
[0168] Exemplarily, the lock application may include a DLC program and a lock application program. The DLC program is a lock control program inside the terminal device 100, and the lock application program is a lock application program displayed on the desktop of the terminal device 100. When a user purchases the terminal device 100 by installment payment, the lock application program is used to monitor the user's installment payment in real time. When the user fails to pay due, the lock application program is activated in lock mode, and the lock mode of the terminal device 100 is implemented through the DLC program, so that the terminal device 100 presents a "dominant screen" page to urge the user to repay as soon as possible.
[0169] S5022: The system framework layer notifies the first application to exit the screen fixed mode according to the lock mode instruction.
[0170] For example, in an embodiment of the present application, when the system framework layer of the terminal device 100 receives a lock mode instruction from the lock application, it notifies the first application to exit the non-disabled navigation key mode according to the lock mode instruction. For example, the first application is notified to exit the screen fixed mode according to the lock mode instruction.
[0171] S5023: The first application exits the screen fixation mode.
[0172] Exemplarily, in the embodiment of the present application, when the first application receives an instruction to exit the fixed screen mode, an operation to exit the fixed screen mode is executed.
[0173] It should be noted that in the embodiment of the present application, when the system framework layer receives the lock mode instruction of the lock application, it only issues an instruction for the first application to exit the screen fixed mode, but does not determine whether the first application has completely exited the screen fixed mode.
[0174] Optionally, in the application layer of the terminal device 100, the set In Screen Pinning() program can generally be used to implement the first application to exit the screen pinning mode. Specifically, when the first application of the terminal device 100 needs to exit the screen pinning mode, mScreen Pinning Active = false can be used to implement it.
[0175] S5031. The system framework layer also obtains a disabling strategy according to the lock mode instruction, and notifies the application layer to disable the navigation key.
[0176] For example, in the embodiment of the present application, the system framework layer also notifies the application layer to disable the navigation key according to the lock mode instruction. For example, when the terminal device 100 is a mobile phone, the system framework layer also notifies the application layer to start screen dominance according to the lock mode instruction and disables the back key, the home screen key and the multitasking key.
[0177] S5032: The application layer disables the navigation key.
[0178] Exemplarily, in the embodiment of the present application, when the first application receives the instruction to exit disabling the navigation key, it will execute the operation of exiting disabling the navigation key.
[0179] Optionally, in the application layer of the terminal device 100, an update Nav ButtonIcons() program can generally be used to implement the application layer exiting the screen fixed mode.
[0180] S5041. The system framework layer also refreshes the disabling policy according to the lock mode instruction, and notifies the application layer to disable the navigation key again.
[0181] Exemplarily, in an embodiment of the present application, the system framework layer will also refresh the disabling policy according to the lock mode instruction, and notify the first application to disable all navigation keys again.
[0182] S5042: The application layer disables the navigation key again.
[0183] Exemplarily, in an embodiment of the present application, the application layer may further disable the navigation key again according to the disabling policy, thereby ensuring that the navigation key of the terminal device 100 is completely disabled to avoid the phenomenon of locking the device and escaping.
[0184] In the application layer of the terminal device 100, the update Nav ButtonIcons() program can generally be used to implement the application layer to exit the screen pinning mode. In the embodiment of the present application, since the application layer has completely exited the screen pinning mode, that is, mScreen Pinning Active = false, refreshing the disabling policy again can achieve the purpose of disabling the navigation key.
[0185] Exemplarily, the terminal device 100 can implement disabling the navigation key by hiding the navigation key on the screen page. For example, when the terminal device 100 is a mobile phone, the home screen key, multitasking key or return key on the mobile phone page can be hidden.
[0186] It should be noted that the time interval between the application layer refreshing the disabling policy and the system framework layer notifying the application layer to disable the navigation keys is in milliseconds, which is about 20ms in actual measurement, so it will not affect the user's vision.
[0187] Therefore, in the embodiment of the present application, when the terminal device 100 is in the screen fixed mode and the lock application is activated in the lock mode, the system framework layer notifies the application layer to exit the screen fixed mode according to the lock mode instruction, and notifies the application layer to disable the navigation key. However, since the program running time of the application layer to exit the screen fixed mode is relatively long, the time node of the application layer to exit the screen fixed mode is later than the time node of the application layer to disable the navigation key. Therefore, by adopting the embodiment of the present application, the application layer can refresh the disabling policy again, thereby ensuring that the application layer can determine to disable the navigation key.
[0188] Combination of the above Figures 1 to 7 , describes the software system, the method for preventing the lock machine from escaping and the applicable scenarios in several embodiments provided by this application. Figures 8 to 9 , describes in detail the hardware system and chip system of the terminal device to which the present application is applicable. It should be understood that the hardware system and chip system in the embodiments of the present application can execute the various methods of the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
[0189] Figure 8 A hardware system of a terminal device provided in an embodiment of the present application can be used to implement the processing steps corresponding to the terminal device in the method for preventing the locked device from escaping described in the above method embodiment.
[0190] In the embodiment of the present application, the terminal device 100 can be Figure 1The mobile phone shown can also be a tablet computer, a smart screen, a wearable electronic device, an in-vehicle electronic device, an augmented reality device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other devices with a mirror screen projection function. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device 100. By refreshing the disabling policy after the lock mode of the terminal device is activated, the terminal device disables the navigation key again, ensuring that the navigation keys of the terminal device are all disabled, thereby preventing the lock mode of the terminal device from being escaped, protecting the supplier's revenue, and improving the supplier's experience.
[0191] The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a first antenna 1, a second antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0192] It should be noted that Figure 8 The structure shown does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include Figure 8 More or fewer components than those shown, or the terminal device may include Figure 8 A combination of some of the components shown, or a terminal device may include Figure 8 Subassemblies of some of the components shown. Figure 8 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0193] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated devices. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0194] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0195] Figure 8 The connection relationship between the modules shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the terminal device. Optionally, the modules of the terminal device may also adopt a combination of multiple connection modes in the above embodiments.
[0196] The charging management module 140 is used to receive power from the charger. While the charging management module 140 is charging the battery 142, it can also power the terminal device through the power management module 141. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and powers the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number and battery health status (e.g., leakage, impedance). Optionally, the power management module 141 can be set in the processor 110, or the power management module 141 and the charging management module 140 can be set in the same device.
[0197] The wireless communication function of the terminal device can be implemented by components such as antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization rate of the antenna.
[0198] The mobile communication module 150 can provide a wireless communication solution applied to the terminal device, such as at least one of the following solutions: second generation (2 th generation, 2G) mobile communication solutions, third generation (3 th generation, 3G) mobile communication solutions, fourth generation (4 th generation, 5G) mobile communication solutions, the fifth generation (5 th generation, 5G) mobile communication solutions.
[0199] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (e.g., a speaker 170A, a receiver 170B), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0200] Similar to the mobile communication module 150, the wireless communication module 160 can also provide wireless communication solutions for application on the terminal device, such as at least one of the following solutions: wireless local area networks (WLAN), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technology.
[0201] In some embodiments, the antenna 1 of the terminal device is coupled to the mobile communication module 150, and the antenna 2 of the terminal device is coupled to the wireless communication module 160, so that the terminal device can communicate with the network and other terminal devices through wireless communication technology.
[0202] The external memory interface 120 can be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0203] The internal memory 121 may be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area.
[0204] In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, for example, they may be resistive pressure sensors, inductive pressure sensors or capacitive pressure sensors. The capacitive pressure sensor may include at least two parallel plates having conductive materials. When force acts on the pressure sensor 180A, the capacitance between the electrodes changes, and the terminal device determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal device detects the touch operation according to the pressure sensor 180A. The terminal device may also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on a short message application icon, an instruction to view a short message is executed; when a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on a short message application icon, an instruction to create a new short message is executed.
[0205] The fingerprint sensor 180H is used to collect fingerprints. The terminal device can use the collected fingerprint characteristics to achieve functions such as unlocking, accessing application locks, taking photos, and answering calls.
[0206] The touch sensor 180K is also called a touch control device. The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch control screen. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor 180K can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the terminal device and set at a different position from the display screen 194.
[0207] The key 190 includes a power key and a volume key. The key 190 can be a mechanical key or a touch key. The terminal device can receive a key input signal and implement functions related to the case input signal.
[0208] Fig. 9 A schematic diagram of the structure of a terminal device provided in yet another embodiment of the present application.
[0209] Fig. 9 The dotted line in the figure indicates that the unit or the module is optional, and the terminal device 100 can be used to implement the method for preventing the locked machine from escaping as described in the above method embodiment.
[0210] The terminal device 100 includes one or more processors 110, which can support the terminal device 100 to implement the method in the method embodiment. The processor 110 can be a general-purpose processor or a special-purpose processor. For example, the processor 110 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0211] The processor 110 may be used to control the terminal device 100, execute software programs, and process data of the software programs. The terminal device 100 may also include a communication unit 105 to implement input (reception) and output (transmission) of signals.
[0212] For example, the terminal device 100 may be a chip, the communication unit 105 may be an input and / or output circuit of the chip, or the communication unit 105 may be a communication interface of the chip, and the chip may be a component of the terminal device or other terminal devices. For another example, the terminal device 100 may be a terminal device, the communication unit 105 may be a transceiver of the terminal device, or the communication unit 105 may be a transceiver circuit of the terminal device.
[0213] The terminal device 100 may include one or more memories 102 on which a program 104 is stored. The program 104 can be executed by the processor 110 to generate instructions 103, so that the processor 110 executes the method for preventing the lock from escaping described in the above method embodiment according to the instructions 103.
[0214] Optionally, data may be stored in the memory 102. Optionally, the processor 110 may read data stored in the memory 102. The data may be stored at the same storage address as the program 104, or may be stored at a different storage address than the program 104.
[0215] The processor 110 and the memory 102 may be provided separately or integrated together; for example, integrated on a system on chip (SOC) of a terminal device.
[0216] Exemplarily, the memory 102 can be used to store the program 104 related to the method for preventing the lock machine from escaping provided in the embodiment of the present application, and the processor 110 can be used to call the program 104 related to the method for preventing the lock machine from escaping stored in the memory 102 during the upgrade, and execute the method for preventing the lock machine from escaping in the embodiment of the present application. For example: by refreshing the disabling policy after the lock machine mode of the terminal device is activated, the terminal device disables the navigation key again, ensuring that the navigation keys of the terminal device are all disabled, thereby preventing the lock machine mode of the terminal device from escaping, protecting the supplier's revenue, and improving the supplier's experience.
[0217] The present application also provides a computer program product, which, when executed by the processor 110, implements the method for preventing the locked machine from escaping as described in any method embodiment of the present application.
[0218] The computer program product may be stored in the memory 102 , for example, a program 104 , which is converted into an executable target file that can be executed by the processor 110 after preprocessing, compiling, assembling, linking and other processing processes.
[0219] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method for preventing the lock from escaping as described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
[0220] Optionally, the computer-readable storage medium is, for example, a memory 102. The memory 102 may be a volatile memory or a non-volatile memory, or the memory 102 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0221] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0222] In several embodiments provided in the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.
[0223] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0224] In addition, the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0225] In short, the above is only a preferred embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection scope of this application.
Claims
1. A method for preventing a locked machine from escaping, characterized in that: Applied to a terminal device with a fixed screen mode, the terminal device includes an application layer; the application layer is provided with a lock application and a navigation key, including: In response to the first operation, controlling the application layer to enter a screen fixed mode; In response to a lock mode instruction of the lock application, notifying the application layer to exit the screen fixed mode; Based on the lock mode instruction of the lock application, obtain a disabling policy, and notify the application layer to disable the navigation key for the first time according to the disabling policy; Based on the lock mode instruction of the lock application, the disabling policy is refreshed, and the application layer is notified again to disable the navigation key according to the disabling policy.
2. The method for preventing a locked machine from escaping according to claim 1, characterized in that: The method for preventing the locked machine from escaping also includes: The time node when the application layer implements exiting the screen fixed mode is later than the time node when the application layer first implements disabling the navigation key.
3. The method for preventing a locked machine from escaping according to claim 1 or 2, characterized in that: The time node of refreshing the disabling policy is later than the time node of the application layer realizing exiting the screen fixed mode.
4. The method for preventing a locked machine from escaping according to claim 1 or 2, characterized in that: The screen fixed mode prohibits disabling the navigation key.
5. The method for preventing a locked machine from escaping according to claim 1 or 2, characterized in that: Responding to the lock mode instruction of the lock application, comprising: The locking application is activated in locking mode and generates a locking mode instruction.
6. The method for preventing a locked machine from escaping according to claim 5, characterized in that: The locking application is activated in the locking mode, including: A scenario where a user fails to pay for a purchase on time by using the installment payment method.
7. The method for preventing a locked machine from escaping according to claim 1 or 2, characterized in that: The navigation keys include a return key, a home key and a multitasking key; The disabling policy includes disabling one or more of the back key, the home key, and the multitasking key.
8. The method for preventing a locked machine from escaping according to claim 1 or 2, characterized in that: The time interval between notifying the application layer to disable the navigation key according to the disabling policy and notifying the application layer again to disable the navigation key according to the disabling policy is in millisecond order.
9. A terminal device, characterized in that: The terminal device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the terminal device to execute the method according to any one of claims 1 to 8.
10. A chip system, characterized in that: The chip system is applied to a terminal device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the terminal device executes the method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions, and when the instructions are executed on a terminal device, the terminal device executes the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Terminal control method and device, mobile terminal and computer readable storage medium
CN116456324A
Method of locking an application on a computing device
US20140283012A1