Method and device for blocking advertisement skipping from shake

By creating a sensor event container and a touch event listener in the mobile terminal operating system, we can determine and intercept highly sensitive "shake" advertising jumps, solving the problem of advertising triggering when the user does not actively operate, and achieving the protection of user experience. and autonomous control.

CN118535260APending Publication Date: 2024-08-23SHANGHAI DROI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410470856.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Due to their high sensitivity, "Shake" ads in mobile smart terminals are easily triggered when users do not actively operate, infringing on users' legitimate rights and interests and affecting user experience. Existing technology blocking solutions are one-size-fits-all, affecting normal functions and jump requirements.

Method used

By creating a sensor event container in the system sensor service of the operating system, recording the touch event time point, judging whether the page jump behavior is an inter-application page jump, and judging whether to block the jump based on the sensitivity value of the sensor event, and providing a dialog box Notify the user to decide whether to continue jumping.

Benefits of technology

Effectively distinguishes and intercepts highly sensitive sensor events that trigger jumps to protect the user experience. At the same time, it allows users to decide whether to jump to the page, avoids frequent permission switches, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535260A
    Figure CN118535260A
Patent Text Reader

Abstract

The invention aims to provide a method and equipment for blocking a shake jump advertisement, and the method comprises the steps: creating a sensor event container in a system sensor service of an operating system of a mobile terminal, storing a user ID (Identity) of a trigger application and a corresponding sensor event in a key-value pair form, and registering a touch event monitor at the same time; a user ID of a calling application, a calling application package name, a user ID of a target application and a target application package name to which a page jump behavior currently started by a calling page belongs are obtained through a page starter, and whether the page jump behavior is an inter-application page jump behavior or not is judged, so that whether the page jump behavior is the inter-application page jump behavior or not is judged; and different user interaction logic processing is carried out on the sensitivities corresponding to different sensor events according to the judgment logic that the inter-application page jump behavior is actively triggered by the user or triggered through the change of the sensor events, so that the blocking of the shake jump advertisement is realized or whether the jump is continued or not is determined by the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more particularly to a method and device for blocking advertisements that can be redirected by shaking a device. Background Art

[0002] In the operating system of mobile smart terminals, most applications have splash screen ads in order to increase their own advertising revenue. That is, after the user launches the application, an advertising page is first displayed, and then the application main page is entered. Splash screen ads generally require users to click to trigger the ad jump, but the user click-through rate is very low, and the advertising revenue created is limited. Some applications have invented the use of sensor event changes to actively trigger ad jumps. For example, the "shake" splash screen ad refers to an ad format in which the user triggers the ad jump by shaking the phone when opening an application. Similar ads can now be found in various applications.

[0003] The “shake” ads of some applications in mobile smart terminals are very sensitive, resulting in the phenomenon that users often trigger jump ads without actively taking any action in their daily lives, such as when walking, riding, picking up and putting down their phones. This infringes on the users’ legitimate rights and interests and affects their normal usage experience.

[0004] The "shake" advertising function is usually implemented by calling one or more sensors in the mobile phone, such as acceleration, gravity, gyroscope, etc. When the user shakes the phone to trigger the corresponding sensor threshold, advertising interaction can be achieved, such as jumping to the application corresponding to the advertisement.

[0005] In the operating system of mobile smart terminals, a series of application programming interfaces (APIs) are provided for application developers to implement the calling and operation of sensors. For example, the sensor manager (SensorManager) provides registration and deregistration of sensor event listeners (SensorEventListener), the sensor (Sensor) provides a method to determine the characteristics of the sensor, and the sensor event (SensorEvent) provides the properties of the sensor event.

[0006] In the operating system of a mobile smart terminal, application developers obtain the specified sensor (Sensor) through the sensor manager (SensorManager), such as the "AccelerometerSensor", and then register a sensor event listener (SensorEventListener) with the operating system through the registerListener method to monitor the changes of the specified sensor. When the sensor changes, the operating system will distribute the sensor event (SensorEvent) to all applications that have registered the corresponding sensor event listener (SensorEventListener). Application developers can obtain the sensor event (SensorEvent) in the callback method of the sensor event listener (SensorEventListener), and obtain the changes in sensor-related attributes based on the sensor event (SensorEvent), such as the acceleration of the "AccelerometerSensor" on the x, y, and z axes. Apply some algorithms to perform some business logic processing, such as left and right movement in a racing game, ball rolling, and "shake" advertising. After completing the relevant business logic processing, the application developer can unregister the previous sensor event listener (SensorEventListener) with the operating system through the unregisterListener method, so that the operating system will no longer distribute sensor event (SensorEvent) changes to the application.

[0007] The core implementation of application jump in the prior art described above actually consists of two parts: respectively, monitoring the changes in sensor events and implementing trigger events according to a certain algorithm, and performing advertising interaction behaviors such as application jump after the trigger event is achieved. The current operating systems of mobile smart terminals, such as the Android operating system, are not sensitive to sensor permissions. Any application can directly use the relevant methods of the sensor manager (SensorManager) to call and operate all sensors (Sensors) in the current mobile smart terminal; the Android operating system does not regulate the jump between applications, and any application can jump to each other. This makes it easy for "shake" ads to exploit this vulnerability to achieve automatic jumps between applications in order to achieve the purpose of generating more advertising business revenue.

[0008] In this regard, there are two technical solutions for intercepting the jump of "shake" advertisements in the prior art:

[0009] 1. By providing a sensor permission management mechanism, users can choose whether to authorize an application to read sensor data. After the user turns off the permission for an application to read sensor data, the application cannot receive sensor event changes and cannot trigger events. However, it is easy to cut corners by providing a sensor permission management mechanism. Since the application is blocked from reading sensor data, some normal sensor-related functions of the application may be affected. For example, the inability to read the gyroscope sensor may affect positioning, and the inability to read the acceleration sensor may affect the operation of some game applications. This may require users to frequently turn on and off sensor permissions to use the application normally, which is a bad user experience.

[0010] Second, by providing a jump management mechanism between applications, users can choose whether to allow the caller application (CallerPackage) to jump to the target application (TargetPackage). If the user does not allow the jump behavior, the caller application (CallerPackage) cannot jump to the target application (TargetPackage) even if the trigger event is reached. Providing a jump management mechanism between applications also makes it easy to cut corners. Since the caller application (CallerPackage) is blocked from jumping to the target application (TargetPackage), the user's normal jump needs may also be blocked. For example, if the user does manually click on the advertisement and wants to go to a shopping application to view it, it may be blocked by mistake. This may require the user to frequently switch the application to allow jumps in order to use it normally, and the user experience is not good. Summary of the invention

[0011] One purpose of the present application is to provide a method and device for blocking shake-to-jump ads, by judging whether it is an inter-application page jump behavior, and whether the inter-application page jump behavior is actively triggered by the user or triggered by a sensor event change, to perform different user interaction logic processing on the sensitivities corresponding to different sensor events, thereby achieving blocking of shake-to-jump ads.

[0012] According to one aspect of the present application, a method for blocking advertisement redirection by shaking is provided, which is applied to a mobile terminal, wherein the method comprises:

[0013] A sensor event container is created in the system sensor service of the operating system of the mobile terminal, and the user ID of at least one triggering application that can trigger the advertisement jump and its corresponding sensor event are stored in the sensor event container in the form of a key-value pair, and at the same time, a touch event listener for recording the time point T0 of the most recent touch event is registered;

[0014] Obtaining, through the page launcher of the operating system, the user ID and the package name of the calling application to which the page jump behavior currently initiated by the calling page of the mobile terminal belongs, and obtaining the user ID and the package name of the target application of the initiated page;

[0015] Based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, determining whether the page jump behavior is an inter-application page jump behavior,

[0016] If yes, then start interception processing, obtain the jump time point T1, and pause updating the most recent touch event time point T0;

[0017] Determine whether the user ID of the calling application exists in the sensor event container, and if so, calculate the time difference between the jump time point T1 and the most recent touch event time point T0;

[0018] If the time difference is greater than a preset time difference threshold, taking out a target sensor event corresponding to the user ID of the calling application from the sensor event container and calculating a sensor sensitivity value S0 according to the target sensor event;

[0019] If the sensor sensitivity value S0 is less than a preset sensor sensitivity threshold S, the page jump behavior of the current startup page is directly blocked, and a notification message indicating that the page jump behavior between applications triggered by the sensor event has been intercepted is popped up in the form of a dialog box.

[0020] Furthermore, in the above method, creating a sensor event container in the system sensor service of the operating system of the mobile terminal and storing the user ID of at least one triggering application that can trigger the advertisement jump and its corresponding sensor event in the form of a key-value pair in the sensor event container includes:

[0021] Creating a sensor event container in a system sensor service of an operating system of the mobile terminal;

[0022] embedding a point in the method of registering a sensor listener of the system sensor manager of the operating system of the mobile terminal, obtaining an application user ID of the registered sensor listener and recording the application user ID as a key to be stored in a key-value pair in the sensor event container;

[0023] In the sensor event distribution method of the system sensor manager of the operating system of the mobile terminal, a point is buried to obtain the user ID of the triggering application to which the sensor event is distributed and its corresponding sensor event, and the user ID of the triggering application is used as the key and the corresponding sensor event is stored in the sensor event container.

[0024] Furthermore, in the above method, the method further comprises:

[0025] A point is embedded in the method of cancelling the registration of the sensor listener of the system sensor manager of the operating system of the mobile terminal, the application user ID of the canceled sensor listener is obtained, and the record of the key-value pair with the canceled application user ID as the key in the sensor event container is cleared.

[0026] Furthermore, in the above method, judging whether the page jump behavior is an inter-application page jump behavior based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name includes:

[0027] Determine whether the user ID of the calling application is consistent with the user ID of the target application,

[0028] If yes, determine whether the calling application package name of the calling application is consistent with the target application package name of the target application. If they are consistent, it indicates that the page jump behavior is an intra-application page jump behavior. If they are inconsistent, it indicates that the page jump behavior is an inter-application page jump behavior.

[0029] If not, it indicates that the page jump behavior is an inter-application page jump behavior.

[0030] Furthermore, in the above method, after determining whether the page jump behavior triggered by the calling application is an inter-application jump based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, the method further includes:

[0031] If not, the calling page of the mobile terminal is allowed to initiate a page jump within the application.

[0032] Furthermore, in the above method, the method further comprises:

[0033] If the user ID of the calling application does not exist in the sensor event container, or if the time difference is less than or equal to a preset time difference threshold, a dialog box pops up to display a first selection operation key for selecting whether to allow the user to actively trigger a jump from the calling application to the target application, so that the user can choose whether to continue the page jump behavior, wherein the user is a handheld user currently operating the mobile terminal.

[0034] Furthermore, in the above method, the method further comprises:

[0035] If the sensor sensitivity value S0 is greater than or equal to a preset sensor sensitivity threshold S, a second selection operation key for selecting whether to allow the calling application to jump to the target application triggered by the sensor event is popped up and displayed in the form of a dialog box.

[0036] Furthermore, in the above method, the method further comprises:

[0037] After the currently started page jump behavior is intercepted and confirmed, the update record of the most recent touch event time point T0 is restarted.

[0038] According to another aspect of the present application, a non-volatile storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions can be executed by a processor, the processor implements the method of blocking advertisement redirection by shaking the display.

[0039] According to another aspect of the present application, a device for blocking advertisement redirection by shaking is provided, wherein the device comprises:

[0040] one or more processors;

[0041] A computer readable medium for storing one or more computer readable instructions,

[0042] When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the method for blocking advertisement redirection by shaking the device as described above.

[0043] Compared with the prior art, the present application creates a sensor event container in the system sensor service of the operating system of the mobile terminal and stores the user ID of at least one triggering application that can trigger an advertisement jump and its corresponding sensor event in the form of a key-value pair in the sensor event container, and at the same time, registers a touch event listener for recording the time point T0 of the most recent touch event; obtains the user ID and the calling application package name of the calling application to which the page jump behavior currently started by the calling page of the mobile terminal belongs through the page launcher of the operating system, and obtains the user ID and the target application package name of the target application of the started page; based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, determines whether the page jump behavior is an inter-application page jump behavior, and if so, starts interception processing, obtains the jump time point T1, and pauses updating the most recent touch event time point T0; determines whether there is a If the user ID of the calling application exists, the time difference between the jump time point T1 and the most recent touch event time point T0 is calculated; if the time difference is greater than the preset time difference threshold, the target sensor event corresponding to the user ID of the calling application is taken out from the sensor event container and the sensor sensitivity value S0 is calculated according to the target sensor event; if the sensor sensitivity value S0 is less than the preset sensor sensitivity threshold S, the page jump behavior of the current startup page is directly blocked, and a notification message indicating that the inter-application page jump behavior triggered by the sensor event has been intercepted is popped up in the form of a dialog box, thereby realizing the judgment of whether it is an inter-application page jump behavior, and whether the inter-application page jump behavior is actively triggered by the user or triggered by the change of the sensor event, to perform different user interaction logic processing on the sensitivities corresponding to different sensor events, thereby realizing the blocking of the shake jump advertisement or letting the user decide whether to continue the jump. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0045] Figure 1 A schematic diagram showing the main process of a method for blocking advertisement redirection by shaking according to one aspect of the present application;

[0046] Figure 2 A schematic diagram showing a flow chart of a method for blocking advertisement redirection by shaking according to one aspect of the present application in a practical application scenario;

[0047] Figure 3A schematic diagram showing the overall process of a method for blocking advertisement redirection by shaking according to one aspect of the present application in an actual application scenario;

[0048] Figure 4 A schematic diagram of a judgment process of determining whether to intercept a method for blocking shake-to-advertisement jumps in an actual application scenario according to one aspect of the present application is shown.

[0049] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0050] The present application is described in further detail below in conjunction with the accompanying drawings.

[0051] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (CPU), input / output interfaces, network interfaces and memories.

[0052] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0053] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0054] like Figure 1 As shown, Figure 1A flowchart of a method for blocking advertisements by shaking a shake button is provided in one aspect of the present application. The method is applied to a mobile terminal, including but not limited to a mobile phone, a pad, a computer, and a smart watch with a smart display screen. The method can be implemented in languages ​​such as Kotlin, Java, IOS, PS, and AI. The method mainly includes steps S11, S12, S13, S14, S15, S16, and S17, and specifically includes the following steps:

[0055] Step S11, creating a sensor event container in the system sensor service of the operating system of the mobile terminal and storing at least one user ID of a triggering application that can trigger an advertisement jump and its corresponding sensor event in the form of a key-value pair in the sensor event container, and registering a touch event listener for recording the time point T0 of the most recent touch event; here, in a preferred embodiment of the present application, the sensor event container is preferably a Map<Key,Value> Container (UidSensorEventMap), which is stored in the Map container (UidSensorEventMap) in the form of key-value pairs, wherein the application user ID (UID) is used as the Key and the sensor event (SensorEvent) is used as the Value to realize the creation of the Map container (UidSensorEventMap), wherein, when filling and storing the key-value pairs in the Map container, it is necessary to use the user ID (TriggerUID) of at least one triggering application that can trigger the advertisement jump as the Key, and the sensor event (SensorEvent) corresponding to the user ID (TriggerUID) of the triggering application as the Value, to realize the filling and storage of the key-value pairs in the Map container (UidSensorEventMap), the above is only a preferred embodiment of the present application, and the sensor event container may also be other container types, and therefore is also included in the protection scope of the present application.

[0056] While creating a sensor event container in the system sensor management service (SensorService), it is also necessary to register a touch event listener (PointerEventListener) and record the time point T0 of the most recent touch event in the touch event callback method (onPointerEvent) of the touch event listener, that is, update and record the time point T0 of the most recent touch event in the touch event listener (PointerEventListener).

[0057] Step S12, obtaining, through the page launcher of the operating system, the user ID and the package name of the calling application to which the page jump behavior currently launched by the calling page of the mobile terminal belongs, and obtaining the user ID and the package name of the target application of the launched page;

[0058] Step S13, based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, determining whether the page jump behavior is an inter-application page jump behavior,

[0059] Step S14, if yes, then start interception processing, obtain the jump time point T1, and pause updating the most recent touch event time point T0;

[0060] Step S15, determining whether the user ID of the calling application exists in the sensor event container, and if so, calculating the time difference between the jump time point T1 and the most recent touch event time point T0;

[0061] Step S16, if the time difference is greater than a preset time difference threshold, taking out a target sensor event corresponding to the user ID of the calling application from the sensor event container and calculating a sensor sensitivity value S0 according to the target sensor event;

[0062] Step S17, if the sensor sensitivity value S0 is less than the preset sensor sensitivity threshold S, the page jump behavior of the current startup page is directly blocked, and a notification message indicating that the page jump behavior between applications triggered by the sensor event has been intercepted is popped up in the form of a dialog box.

[0063] Through the above steps S11 to S17, it is achieved by judging whether it is an inter-application page jump behavior, and if it is an inter-application page jump behavior, judging whether the inter-application page jump behavior is triggered by a sensor or actively triggered by the user to perform different interception behaviors; if it is a highly sensitive target sensor event, it is directly intercepted, and the user is notified of the interception behavior after interception, thereby blocking the shake jump advertisement.

[0064] In the embodiments of the present application, the following is a further explanation of some vocabulary abbreviations of the relevant collected data of the present application:

[0065] The application user ID that registers the sensor listener (RegisterListenerUID),

[0066] Unregister the application user ID of the sensor listener (UnRegisterListenerUID),

[0067] The user ID (TriggerUID) of the application to which the sensor event is distributed, that is, the user ID of the triggering application.

[0068] SensorEvent,

[0069] The package name of the application to which the call is started (CallerPackage), that is, the calling application package name corresponding to the calling application,

[0070] The user ID (CallerUID) of the application that calls the application.

[0071] The package name of the application to which the launched page belongs (TargetPackage), that is, the corresponding target application package name of the target application.

[0072] The user ID of the application to which the launched page belongs (TargetUID), that is, the user ID of the target application.

[0073] Jump to time point T1,

[0074] The time point of the latest touch event is T0.

[0075] like Figure 2As shown, in a preferred embodiment of the present application, the user ID (CallerUID) and the calling application package name (CallerPackage) of the calling application to which the page jump behavior currently started by the calling page of the mobile terminal belongs are obtained through the page launcher (ActivityStarter) of the operating system, and the user ID (TargetUID) and the target application package name (TargetPackage) of the started page are obtained. Then, it is necessary to determine whether the page jump behavior is an inter-application page jump behavior. If so, the interception process is started to obtain the jump time point T1, and the update of the most recent touch event time point T0 is suspended; then, it is determined whether the user ID (CallerUID) of the calling application exists in the sensor event container UidSensorEventMap. If so, that is, there is a record of the key-value pair corresponding to the user ID (CallerUID) of the calling application in the sensor event container UidSensorEventMap, then it is predicted that the calling application corresponding to the calling application package name (CallerPackage) may use For an inter-application page jump triggered by a sensor event, it is necessary to continue to calculate the time difference between the jump time point T1 and the time point T0 of the most recent touch event, and determine whether the time difference is less than or equal to a preset time difference threshold T; if the time difference between the jump time point T1 and the time point T0 of the most recent touch event is greater than the preset time difference threshold, it is predicted that it may not be an active click by the user, but an inter-application page jump triggered by a calling application corresponding to the calling application package name (CallerPackage) using a sensor event, then it is necessary to continue to determine the sensor sensitivity value S0; when determining the sensor sensitivity value S0, take out the value Value corresponding to the key-value pair when the key is the user ID (CallerUID) of the calling application from the sensor event container UidSensorEventMap: target sensor event, and calculate the sensor sensitivity value S0 according to the target sensor event. Here, the preferred sensor is an acceleration sensor as an example, and after obtaining the accelerations of the x, y, and z axes in the target acceleration sensor event corresponding to the acceleration sensor, calculate the square root of the combined acceleration of the x, y, and z axes;After calculating the sensor sensitivity value S0 corresponding to the target sensor event, it is necessary to obtain the preset sensor sensitivity threshold value S, and determine whether the sensor sensitivity value S0 corresponding to the target sensor event is less than the preset sensor sensitivity threshold value S. If the sensor sensitivity value S0 is less than the preset sensor sensitivity threshold value S, indicating that the current target sensor event is highly sensitive, the page jump behavior of the current startup page (startActivity) is directly blocked, and a notification message indicating that the page jump behavior between applications triggered by the intercepted sensor event is displayed in the form of a dialog box, for example, a dialog box is displayed in the form of a pop-up: "The calling application corresponding to the calling application package name CallerPackage may use the sensor event to try to jump to the target application corresponding to the target application package name TargetPackage, which has been intercepted!", so as to clearly display and inform the user that the page jump behavior between applications of the current startup page has been intercepted in the startup page of the mobile terminal. ;

[0076] Following a preferred embodiment of the present application, a method for blocking shake-to-jump ads proposed in one aspect of the present application also includes:

[0077] If the user ID of the calling application does not exist in the sensor event container, or if the time difference is less than or equal to a preset time difference threshold, a dialog box pops up to display a first selection operation key for selecting whether to allow the user to actively trigger a jump from the calling application to the target application, so that the user can choose whether to continue the page jump behavior, wherein the user is a handheld user currently operating the mobile terminal.

[0078] For example, Figure 2 As shown, if there is no record of the key-value pair corresponding to the user ID (CallerUID) of the calling application in the sensor event container UidSensorEventMap, it is predicted that the inter-application page jump is not triggered by the calling application corresponding to the calling application package name CallerPackage using the sensor event, but is triggered by the user's active click, or it may be triggered by other unknown reasons. In this case, a dialog box is popped up to display the first selection operation key for selecting whether to allow the user to actively trigger the jump from the calling application to the target application. For example, a dialog box is popped up to display: "Whether to allow the jump from the calling application corresponding to the calling application package name CallerPackage to the target application corresponding to the target application package name TargetPackage", so that the user can choose whether to continue the page jump behavior. The user is a handheld user currently operating the mobile terminal, so that the user can decide whether to continue the page jump behavior independently.

[0079] For example, Figure 2 As shown, after determining whether the time difference between the jump time point T1 and the time point T0 of the most recent touch event is less than or equal to the preset time difference threshold, the time difference between the jump time point T1 and the time point T0 of the most recent touch event is less than or equal to the preset time difference threshold T, a first selection operation key for selecting whether to allow the user to actively trigger the jump from the calling application to the target application is popped up in the form of a dialog box, for example, a dialog box is popped up to display: "Whether to allow the jump from the calling application corresponding to the calling application package name CallerPackage to the target application corresponding to the target application package name TargetPackage", so that the user can choose whether to continue the page jump behavior. The user is a handheld user currently operating the mobile terminal, and the user can decide whether to continue the page jump behavior independently.

[0080] Following the above embodiments of the present application, a method for blocking advertisement redirection by shaking a button provided in one aspect of the present application further includes:

[0081] If the sensor sensitivity value S0 is greater than or equal to a preset sensor sensitivity threshold S, a second selection operation key for selecting whether to allow the calling application to jump to the target application triggered by the sensor event is popped up and displayed in the form of a dialog box.

[0082] For example, Figure 2 As shown, after determining whether the sensor sensitivity value S0 corresponding to the target sensor event is less than the preset sensor sensitivity threshold S, if the sensor sensitivity value S0 is greater than or equal to the preset sensor sensitivity threshold S, indicating that the current target sensor event is of low sensitivity, a second selection operation key for selecting whether to allow the calling application to use the sensor event to trigger the jump to the target application is displayed in the form of a dialog box. For example, a dialog box is popped up to display: "Whether to allow the calling application corresponding to the calling application package name CallerPackage to use the sensor event to trigger the jump to the target application corresponding to the target application package name TargetPackage", so that the user can choose whether to continue the page jump behavior. The user is a handheld user currently operating the mobile terminal, which enables the user to decide whether to continue the page jump behavior independently.

[0083] Following the above embodiment of the present application, the step of creating a sensor event container in the system sensor service of the operating system of the mobile terminal and storing the user ID of at least one triggering application that can trigger advertisement redirection and its corresponding sensor event in the form of a key-value pair in the sensor event container includes:

[0084] Creating a sensor event container in a system sensor service of an operating system of the mobile terminal;

[0085] embedding a point in the method of registering a sensor listener of the system sensor manager of the operating system of the mobile terminal, obtaining an application user ID of the registered sensor listener and recording the application user ID as a key to be stored in a key-value pair in the sensor event container;

[0086] In the sensor event distribution method of the system sensor manager of the operating system of the mobile terminal, a point is buried to obtain the user ID of the triggering application to which the sensor event is distributed and its corresponding sensor event, and the user ID of the triggering application is used as the key and the corresponding sensor event is stored in the sensor event container.

[0087] like Figure 3As shown, in a preferred embodiment of the present application, a sensor event container is created in the system sensor management service (SensorService) of the operating system of the mobile terminal, such as Map<Key,Value> Container (UidSensorEventMap), in which the application user ID (UID) is the key and the sensor event (SensorEvent) is the value Value; at the same time, it is also necessary to register a touch event listener (PointerEventListener), and record the time point T0 of the most recent touch event in the touch event callback method (onPointerEvent) of the touch event listener, that is, update and record the time point T0 of the most recent touch event in the touch event listener (PointerEventListener); after registering the sensor event container, bury a point in the register sensor listener (registerListener) method of the system sensor manager (SystemSensorManager) of the operating system of the mobile terminal to obtain the current registered sensor listener of the mobile terminal The application user ID (RegisterListenerUID) of the sensor is recorded and stored as the key in the sensor event container UidSensorEventMap; and a point is buried in the sensor event dispatch (dispatchSensorEvent) method of the system sensor manager (SystemSensorManager) of the operating system of the mobile terminal to obtain the user ID (TriggerUID) of the trigger application to which the current sensor event of the mobile terminal is distributed and its corresponding sensor event (SensorEvent), and the user ID of the trigger application: TriggerUID is used as the key, and the sensor event SensorEvent corresponding to the trigger application is used as the value to update and store it in the sensor event container UidSensorEventMap, so as to realize the storage record of the sensor event container.

[0088] Following the above embodiments of the present application, a method for blocking advertisement redirection by shaking a button provided in one aspect of the present application further includes:

[0089] A point is embedded in the method of cancelling the registration of the sensor listener of the system sensor manager of the operating system of the mobile terminal, the application user ID of the canceled sensor listener is obtained, and the record of the key-value pair with the canceled application user ID as the key in the sensor event container is cleared.

[0090] like Figure 3As shown, in a preferred embodiment of the present application, after the operating system of the mobile terminal registers the sensor event container UidSensorEventMap, a point is embedded in the unregistering sensor listener (unregisterListener) method of the system sensor manager (SystemSensorManager) of the operating system of the mobile terminal to obtain the application user ID (UnRegisterListenerUID) of the mobile terminal that currently unregisters the sensor listener, and clears the record of the key-value pair with the canceled application user ID as the key in the sensor event container UidSensorEventMap, that is, cancels the record of UnRegisterListenerUID, thereby realizing the synchronous clearing of the key-value pairs of the application user ID of the mobile terminal that currently unregisters the sensor listener and its corresponding sensor event stored in the sensor event container.

[0091] Following the above embodiment of the present application, judging whether the page jump behavior is an inter-application page jump behavior based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name includes:

[0092] Determine whether the user ID of the calling application is consistent with the user ID of the target application,

[0093] If yes, determine whether the calling application package name of the calling application is consistent with the target application package name of the target application. If they are consistent, it indicates that the page jump behavior is an intra-application page jump behavior. If they are inconsistent, it indicates that the page jump behavior is an inter-application page jump behavior.

[0094] If not, it indicates that the page jump behavior is an inter-application page jump behavior.

[0095] In the start page (startActivity) method of the page launcher (ActivityStarter) of the operating system of the mobile terminal, a point is buried. After obtaining the user ID (CallerUID) and the calling application package name (CallerPackage) of the calling application to which the page jump behavior currently started by the calling page of the mobile terminal belongs, and obtaining the user ID (TargetUID) and the target application package name (TargetPackage) of the started page, it is necessary to determine whether the page jump is intercepted, that is, to determine whether the page jump behavior is an inter-application page jump behavior, such as Figure 4As shown, the specific judgment steps include: first, judging whether the user ID (CallerUID) of the calling application to which the calling page starts is consistent with the user ID (TargetUID) of the target application to which the started page belongs. If so (that is, the user ID (CallerUID) of the calling application is consistent with the user ID (TargetUID) of the target application), it is necessary to further judge whether the calling application package name (CallerPackage) of the calling application is consistent with the target application package name (TargetPackage) of the target application. If the calling application package name (CallerPackage) of the calling application is consistent with the target application package name (TargetPackage) of the target application, it indicates that the page jump behavior is an intra-application page jump behavior, and the calling page of the mobile terminal can be directly allowed to start an intra-application page jump; if the calling application If the calling application package name (CallerPackage) is inconsistent with the target application package name (TargetPackage) of the target application, it indicates that the page jump behavior is an inter-application page jump behavior, which means that the calling application corresponding to CallerPackage is trying to jump to another target application corresponding to TargetPackage, and it is necessary to continue to intercept the page jump behavior so that the user can determine whether to continue the jump; if the user ID (CallerUID) of the calling application is inconsistent with the user ID (TargetUID) of the target application, it indicates that the page jump behavior is an inter-application page jump behavior, which also means that the calling application corresponding to CallerPackage is trying to jump to another target application corresponding to TargetPackage, thereby realizing the judgment and processing of whether the page jump detected by the page launcher is intercepted.

[0096] Following the above embodiment of the present application, after determining whether the page jump behavior triggered by the calling application is an inter-application jump based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, the method further includes:

[0097] If not, the calling page of the mobile terminal is allowed to initiate a page jump within the application.

[0098] For example, based on the user ID (CallerUID) of the calling application and its calling application package name (CallerPackage) and the user ID (TargetUID) of the target application and its target application package name (TargetPackage), determine whether the page jump behavior triggered by the calling application is an inter-application jump. If the user ID (CallerUID) of the calling application to which the calling page starts is consistent with the user ID (TargetUID) of the target application to which the started page belongs, and the calling application package name (CallerPackage) corresponding to the calling application is consistent with the target application package name (TargetPackage) corresponding to the target application, it means that the calling application and the target application belong to the same application, that is, the page jump behavior belongs to an intra-application page jump behavior. In this case, there is no need to intercept the page jump, and the calling page of the mobile terminal is directly allowed to start the intra-application page jump behavior, thereby realizing a direct jump to the intra-application page jump.

[0099] Following the above embodiments of the present application, a method for blocking advertisement redirection by shaking a button provided in one aspect of the present application further includes:

[0100] After the currently started page jump behavior is intercepted and confirmed, the update record of the time point T0 of the most recent touch event is restarted. Figure 3 As shown, in a preferred embodiment of the present application, whether in the form of a dialog box notification or in the form of a dialog box notification selection, that is, after a judgment is made that the page jump behavior between applications should be intercepted and the interception confirmation is made, it is necessary to restart the update record of the latest touch event time point T0 in the touch event listener (PointerEventListener) to realize the update record of the latest touch event time point T0.

[0101] In an embodiment of the present application, it will be determined whether it is an inter-application page jump behavior, and if it is an inter-application page jump behavior, it will be determined whether the inter-application page jump behavior is triggered by a sensor event or actively triggered by the user, and different interception behaviors will be performed. When it is determined that it is actively triggered by the user, a pop-up box will be displayed to indicate to the user whether to allow the jump, so that the user can choose whether to continue the page jump. When it is determined that it is triggered by a sensor event, if it is a high-sensitivity event, it will be intercepted directly, and the user will be notified of the interception behavior after the interception. If it is a low-sensitivity event, a pop-up box will be displayed to indicate to the user whether to allow the jump, and the user will decide whether to continue the page jump. For example, a sensor sensitivity threshold S is preset. For example, if the "shake" sensitivity of a certain application is relatively high, the jump behavior will be triggered when the corresponding sensor sensitivity value is less than S when the phone is shaken slightly. In the implementation of this application, this behavior will be directly intercepted, and the user will be informed in the form of a dialog box notification after the interception that the page jump behavior of the application has been intercepted; if the user really wants to "shake" to jump to the application, the phone can be shaken more violently so that the shake value is not less than S to trigger the page jump behavior. When intercepted, the user will be informed in the form of a dialog box whether to allow the page jump behavior between applications. The user can choose "Allow" to continue the page jump behavior between applications, or click "Cancel" to terminate the page jump behavior between applications, further realizing the judgment logic in the operating system of the mobile terminal: whether the page jump behavior between applications is actively triggered by the user or triggered by a sensor event change, and different user interaction behavior logic according to the sensor sensitivity, thereby blocking the shake jump advertisement or letting the user decide whether to continue the jump.

[0102] According to another aspect of the present application, a non-volatile storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions can be executed by a processor, the processor implements the method of blocking the shake-to-jump advertisement as described above.

[0103] According to another aspect of the present application, a device for blocking advertisement redirection by shaking a button is provided, wherein the device comprises:

[0104] one or more processors;

[0105] A computer readable medium for storing one or more computer readable instructions,

[0106] When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the above-mentioned method of blocking shake-to-jump advertisements.

[0107] Here, for the detailed contents of each embodiment of the device for blocking shake-to-jump ads, please refer to the corresponding part of the above-mentioned method embodiment for blocking shake-to-jump ads, which will not be described in detail here.

[0108] To summarize, the present application creates a sensor event container in the system sensor service of the operating system of the mobile terminal and stores the user ID of at least one triggering application that can trigger an advertisement jump and its corresponding sensor event in the form of a key-value pair in the sensor event container. At the same time, a touch event listener for recording the time point T0 of the most recent touch event is registered; the user ID and the calling application package name of the calling application to which the page jump behavior currently started by the calling page of the mobile terminal belongs are obtained through the page launcher of the operating system, and the user ID and the target application package name of the target application of the started page are obtained; based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, it is determined whether the page jump behavior is an inter-application page jump behavior, and if so, the interception process is started to obtain the jump time point T1, and the update of the most recent touch event time point T0 is suspended; it is determined whether the sensor event container contains the required The user ID of the calling application, if it exists, calculates the time difference between the jump time point T1 and the time point T0 of the most recent touch event; if the time difference is greater than the preset time difference threshold, takes out the target sensor event corresponding to the user ID of the calling application from the sensor event container and calculates the sensor sensitivity value S0 according to the target sensor event; if the sensor sensitivity value S0 is less than the preset sensor sensitivity threshold S, directly blocks the page jump behavior of the current startup page, and pops up a dialog box to display a notification message indicating that the inter-application page jump behavior triggered by the sensor event has been intercepted, thereby realizing the judgment logic of whether it is an inter-application page jump behavior, and whether the inter-application page jump behavior is actively triggered by the user or triggered by the change of the sensor event, to perform different user interaction logic processing on the sensitivity corresponding to different sensor events, thereby realizing the blocking of the shake jump advertisement or letting the user decide whether to continue the jump.

[0109] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0110] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. The program instruction for calling the method of the present application may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in a working memory of a computer device that runs according to the program instruction. Here, according to an embodiment of the present application, a device is included, the device including a memory for storing computer program instructions and a processor for executing program instructions, wherein, when the computer program instruction is executed by the processor, the device is triggered to run the method and / or technical solution based on the aforementioned multiple embodiments according to the present application.

[0111] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A method for blocking advertisement redirection by shaking a button, the method being applied to a mobile terminal, wherein: The method includes: A sensor event container is created in the system sensor service of the operating system of the mobile terminal, and the user ID of at least one triggering application that can trigger the advertisement jump and its corresponding sensor event are stored in the sensor event container in the form of a key-value pair, and at the same time, a touch event listener for recording the time point T0 of the most recent touch event is registered; Obtaining, through the page launcher of the operating system, the user ID and the package name of the calling application to which the page jump behavior currently initiated by the calling page of the mobile terminal belongs, and obtaining the user ID and the package name of the target application of the initiated page; Based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, determining whether the page jump behavior is an inter-application page jump behavior, If yes, then start interception processing, obtain the jump time point T1, and pause updating the most recent touch event time point T0; Determine whether the user ID of the calling application exists in the sensor event container, and if so, calculate the time difference between the jump time point T1 and the most recent touch event time point T0; If the time difference is greater than a preset time difference threshold, taking out a target sensor event corresponding to the user ID of the calling application from the sensor event container and calculating a sensor sensitivity value S0 according to the target sensor event; If the sensor sensitivity value S0 is less than a preset sensor sensitivity threshold S, the page jump behavior of the current startup page is directly blocked, and a notification message indicating that the page jump behavior between applications triggered by the sensor event has been intercepted is popped up in the form of a dialog box.

2. The method according to claim 1, wherein: The step of creating a sensor event container in a system sensor service of an operating system of a mobile terminal and storing at least one user ID of a triggering application that can trigger an advertisement redirect and its corresponding sensor event in the sensor event container in the form of a key-value pair includes: Creating a sensor event container in a system sensor service of an operating system of the mobile terminal; embedding a point in the method of registering a sensor listener of the system sensor manager of the operating system of the mobile terminal, obtaining an application user ID of the registered sensor listener and recording the application user ID as a key to be stored in a key-value pair in the sensor event container; In the sensor event distribution method of the system sensor manager of the operating system of the mobile terminal, a point is buried to obtain the user ID of the triggering application to which the sensor event is distributed and its corresponding sensor event, and the user ID of the triggering application is used as the key and the corresponding sensor event is stored in the sensor event container.

3. The method according to claim 2, wherein: The method further comprises: A point is embedded in the method of cancelling the registration of the sensor listener of the system sensor manager of the operating system of the mobile terminal, the application user ID of the canceled sensor listener is obtained, and the record of the key-value pair with the canceled application user ID as the key in the sensor event container is cleared.

4. The method according to claim 1, wherein: The determining whether the page jump behavior is an inter-application page jump behavior based on the user ID of the calling application and the package name of the calling application and the user ID of the target application and the package name of the target application includes: Determine whether the user ID of the calling application is consistent with the user ID of the target application, If yes, determine whether the calling application package name of the calling application is consistent with the target application package name of the target application. If they are consistent, it indicates that the page jump behavior is an intra-application page jump behavior. If they are inconsistent, it indicates that the page jump behavior is an inter-application page jump behavior. If not, it indicates that the page jump behavior is an inter-application page jump behavior.

5. The method according to claim 1, wherein: After determining whether the page jump behavior triggered by the calling application is an inter-application jump based on the user ID of the calling application and its calling application package name and the user ID of the target application and its target application package name, the method further includes: If not, the calling page of the mobile terminal is allowed to initiate a page jump within the application.

6. The method according to claim 1, wherein: The method further comprises: If the user ID of the calling application does not exist in the sensor event container, or if the time difference is less than or equal to a preset time difference threshold, a dialog box pops up to display a first selection operation key for selecting whether to allow the user to actively trigger a jump from the calling application to the target application, so that the user can choose whether to continue the page jump behavior, wherein the user is a handheld user currently operating the mobile terminal.

7. The method according to claim 1, wherein: The method further comprises: If the sensor sensitivity value S0 is greater than or equal to a preset sensor sensitivity threshold S, a second selection operation key for selecting whether to allow the calling application to jump to the target application triggered by the sensor event is popped up and displayed in the form of a dialog box.

8. The method according to any one of claims 1 to 7, wherein: The method further comprises: After the currently started page jump behavior is intercepted and confirmed, the update record of the most recent touch event time point T0 is restarted.

9. A non-volatile storage medium having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executable by a processor, the processor is enabled to implement the method according to any one of claims 1 to 8.

10. A device for blocking advertisement redirection by shaking the device, wherein: The equipment includes: one or more processors; A computer readable medium for storing one or more computer readable instructions, When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.