A method for processing pop-up advertisements, electronic device and readable storage medium

By judging the desktop icon settings and transparency of the application in electronic devices, the problem of pop-up advertisements in the application is solved, the user experience is improved and the display of advertisements is prevented, and the effective control of the application is achieved.

CN117931212BActive Publication Date: 2025-01-10HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311494569.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-24
Publication Date
2025-01-10
Estimated Expiration
2042-08-24

AI Technical Summary

Technical Problem

In existing electronic devices, pop-up advertisements frequently appear after the application is started, affecting the user experience, especially displaying advertisements on the lock screen interface and desktop, resulting in inconvenience to users.

Method used

By determining whether the application sets the transparency of desktop icons and icons, if the icon is not set or the icon is transparent, the electronic device will not display the pop-up window of the application, and force the desktop icon to be displayed if necessary, and turn off the pop-up window function to prevent advertisements from being displayed.

Benefits of technology

It effectively solves the problem of pop-up ads in the application, improves the user experience, prevents the application from continuing to display ads after hiding the desktop icons, and enhances users' visibility and control over the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117931212B_ABST
    Figure CN117931212B_ABST
Patent Text Reader

Abstract

The present application provides a method for processing pop-up advertisements, an electronic device and a readable storage medium, which relate to the field of terminal technology and are used to solve the problem of electronic devices displaying advertisements through pop-up windows. The method comprises: the electronic device installs a first application, the first application does not have a desktop icon set, or the desktop icon of the first application is transparent; the first application is a third-party application; after the application package of the first application is installed, the first application starts automatically and applies to display a pop-up window; the electronic device does not display the pop-up window of the first application; the electronic device installs a second application, the second application has a desktop icon set, and the desktop icon of the second application is non-transparent; the second application is a third-party application; after the application package of the second application is installed, the second application starts automatically and applies to display a pop-up window, and the electronic device displays the pop-up window of the second application.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202211020738.5, and the original application date is August 24, 2022. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a method for processing pop-up advertisements, an electronic device, and a readable storage medium. Background Art

[0003] With the development of electronic devices, various applications (APPs) emerge in an endless stream, allowing users to handle many things through applications on electronic devices, providing convenience for users. However, some applications frequently display pop-up ads after startup, display ads on the lock screen interface, or frequently pop up ad links to guide users to download other applications, etc., which affects user usage. Summary of the invention

[0004] The embodiments of the present application provide a method for processing pop-up advertisements, an electronic device, and a readable storage medium, which are used to solve the problem of displaying pop-up advertisements in an application.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a method for processing pop-up advertisements is provided, the method comprising: an electronic device installs a first application, the first application does not have a desktop icon set, or the desktop icon of the first application is transparent; the first application is a third-party application; after the application package of the first application is installed, the first application starts automatically and applies to display a pop-up window; the electronic device does not display the pop-up window of the first application; the electronic device installs a second application, the second application has a desktop icon set, and the desktop icon of the second application is non-transparent; the second application is a third-party application; after the application package of the second application is installed, the second application starts automatically and applies to display a pop-up window, and the electronic device displays the pop-up window of the second application.

[0007] Based on the first aspect, when a first application is installed on an electronic device and no desktop icon is set for the first application, or the desktop icon of the first application is transparent, after the application package of the first application is installed, if the first application starts automatically and applies to display a pop-up window, the electronic device does not display the pop-up window of the first application, thereby solving the problem of the first application displaying pop-up advertisements.

[0008] In a possible design of the first aspect, the first application does not have a desktop icon set, and the method also includes: after the application package of the first application is installed, the electronic device displays a preset desktop icon; wherein the preset desktop icon is non-transparent; in response to a click operation on the preset desktop icon, the electronic device displays the interface of the first application.

[0009] In this possible design, when the first application does not have a desktop icon set, after the application package of the first application is installed, the electronic device can display a preset desktop icon, and when the electronic device responds to a click operation on the preset desktop icon, the electronic device can also display the interface of the first application.

[0010] In a possible design of the first aspect, the desktop icon of the first application is transparent; the method also includes: after the application package of the first application is installed, the electronic device renders the desktop icon of the first application and displays the rendered desktop icon of the first application; wherein the rendered desktop icon of the first application is non-transparent.

[0011] In this possible design, when the desktop icon of the first application is transparent, after the application package of the first application is installed, the electronic device renders the desktop icon of the first application and displays the rendered desktop icon of the first application; since the rendered desktop icon of the first application is non-transparent, the electronic device can display the desktop icon of the first application on the desktop, so that the user can operate the first application on the desktop, thereby improving the user experience.

[0012] In a possible design of the first aspect, the first application does not have an application name set, and the method further includes: the electronic device uses the package name of the first application as the application name of the rendered first application, and displays the application name.

[0013] In this possible design, when the first application does not set an application name, the electronic device can also use the package name of the first application as the application name of the rendered first application and display the application name to facilitate users to operate the first application on the desktop, thereby improving user experience.

[0014] In a possible design of the first aspect, the first application does not set a desktop icon; the electronic device does not display a pop-up window of the first application, including: if the first application meets a preset condition, the electronic device does not display a pop-up window of the first application; wherein the preset condition includes one or more of the first application being in a preset list, the application package of the first application not being downloaded from the system, the first application having permission to access the electronic device, the first application monitoring the system status of the electronic device, the first application being displayed on the lock screen interface of the electronic device, the first application being displayed in the form of a floating window, the version of the first application being incompatible with the version of the electronic device, the application package of the first application being installed through a target path, and the first application not being in a feature library; the preset list includes the package names of applications that have exhibited abnormal behavior within a historical period, and the abnormal behavior is used to trigger the electronic device to display a pop-up window; the feature library includes the package names of system applications, and the package names of applications whose user usage frequency is greater than or equal to a preset frequency.

[0015] In this possible design, when the first application does not set a desktop icon, if the first application meets preset conditions, the electronic device does not display a pop-up window of the first application, thereby preventing incorrect control of the behavior of displaying a pop-up window of the first application.

[0016] In a possible design of the first aspect, when the electronic device installs the first application, the method also includes: the electronic device obtains desktop icon information of the first application; wherein the desktop icon information is used to indicate transparency information of the desktop icon of the first application, and the transparency information includes that the desktop icon of the first application is transparent or the desktop icon of the first application is non-transparent; or, the desktop icon information is used to indicate that the first application has not set a desktop icon.

[0017] In a possible design of the first aspect, the desktop icon information is also used to indicate the icon color and icon type of the desktop icon of the first application; the desktop icon of the first application is transparent, and the electronic device does not display a pop-up window of the first application, including: the icon type of the desktop icon of the first application is a first icon type, if the foreground transparency and background transparency of the desktop icon of the first application are both less than or equal to a transparency threshold, the electronic device does not display a pop-up window of the first application; or, the icon type of the desktop icon of the first application is a second icon type, if the icon transparency of the desktop icon of the first application converted from the icon color is less than or equal to the transparency threshold, the electronic device does not display a pop-up window of the first application; or, the icon type of the desktop icon of the first application is a third icon type, if the icon transparency of the desktop icon of the first application is less than or equal to the transparency threshold, the electronic device does not display a pop-up window of the first application; wherein, the display formats of the desktop icons corresponding to the first icon type, the second icon type, and the third icon type are different.

[0018] In a possible design of the first aspect, the method also includes: after the application package of the first application is installed, the electronic device closes the pop-up function of the first application.

[0019] In this possible design, after the application package of the first application is installed, the electronic device can also close the pop-up window of the first application, further solving the problem of the electronic device displaying pop-up advertisements.

[0020] In a second aspect, an electronic device is provided, which has the function of implementing the method described in the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0021] In a third aspect, an electronic device is provided, comprising: a display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the following steps: the electronic device installs a first application, the first application does not have a desktop icon set, or the desktop icon of the first application is transparent; the first application is a third-party application; after the application package of the first application is installed, the first application starts automatically and applies to display a pop-up window; the electronic device does not display the pop-up window of the first application; the electronic device installs a second application, the second application sets a desktop icon, and the desktop icon of the second application is non-transparent; the second application is a third-party application; after the application package of the second application is installed, the second application starts automatically and applies to display a pop-up window, and the electronic device displays the pop-up window of the second application.

[0022] In a possible design of the third aspect, the first application does not have a desktop icon set; when the processor executes the computer instructions, the electronic device also performs the following steps: after the application package of the first application is installed, the electronic device displays a preset desktop icon; wherein the preset desktop icon is non-transparent; in response to a click operation on the preset desktop icon, the electronic device displays the interface of the first application.

[0023] In a possible design of the third aspect, the desktop icon of the first application is transparent; when the processor executes the computer instructions, the electronic device further performs the following steps: after the application package of the first application is installed, the electronic device renders the desktop icon of the first application and displays the rendered desktop icon of the first application; wherein the rendered desktop icon of the first application is non-transparent.

[0024] In a possible design of the third aspect, the first application does not have an application name set. When the processor executes the computer instructions, the electronic device further performs the following steps: the electronic device uses the package name of the first application as the application name of the rendered first application and displays the application name.

[0025] In a possible design of the third aspect, the first application does not have a desktop icon set; when the processor executes the computer instructions, the electronic device specifically performs the following steps: if the first application meets the preset conditions, the electronic device does not display a pop-up window of the first application; wherein the preset conditions include one or more of the first application being in a preset list, the application package of the first application not being downloaded from the system, the first application having permission to access the electronic device, the first application monitoring the system status of the electronic device, the first application being displayed on the lock screen interface of the electronic device, the first application being displayed in the form of a floating window, the version of the first application being incompatible with the version of the electronic device, the application package of the first application being installed through a target path, and the first application not being in a feature library; the preset list includes the package names of applications that have exhibited abnormal behavior within a historical period, and the abnormal behavior is used to trigger the electronic device to display a pop-up window; the feature library includes the package names of system applications, and the package names of applications whose user usage frequency is greater than or equal to a preset frequency.

[0026] In a possible design of the third aspect, when the electronic device installs the first application, when the processor executes the computer instructions, the electronic device also performs the following steps: the electronic device obtains desktop icon information of the first application; wherein the desktop icon information is used to indicate transparency information of the desktop icon of the first application, and the transparency information includes that the desktop icon of the first application is transparent or the desktop icon of the first application is non-transparent; or, the desktop icon information is used to indicate that the first application has not set a desktop icon.

[0027] In a possible design of the third aspect, the desktop icon information is also used to indicate the icon color and icon type of the desktop icon of the first application; the desktop icon of the first application is transparent, and when the processor executes the computer instruction, the electronic device specifically performs the following steps: the icon type of the desktop icon of the first application is the first icon type, if the foreground transparency and background transparency of the desktop icon of the first application are both less than or equal to the transparency threshold, the electronic device does not display the pop-up window of the first application; or, the icon type of the desktop icon of the first application is the second icon type, if the icon transparency of the desktop icon of the first application converted from the icon color is less than or equal to the transparency threshold, the electronic device does not display the pop-up window of the first application; or, the icon type of the desktop icon of the first application is the third icon type, if the icon transparency of the desktop icon of the first application is less than or equal to the transparency threshold, the electronic device does not display the pop-up window of the first application; wherein, the display formats of the desktop icons corresponding to the first icon type, the second icon type and the third icon type are different.

[0028] In a possible design of the third aspect, when the processor executes the computer instructions, the electronic device further performs the following steps: after the application package of the first application is installed, the electronic device closes the pop-up function of the first application.

[0029] In a fourth aspect, a computer-readable storage medium is provided, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device can execute any one of the methods described in the first aspect.

[0030] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect.

[0031] Among them, the technical effects brought about by any design method in the second to fifth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 An electronic device provided in an embodiment of the present application displays a pop-up advertisement on the lock screen interface. Figure 1 ;

[0033] Figure 2 An electronic device provided in an embodiment of the present application displays a pop-up advertisement on the lock screen interface. Figure 2 ;

[0034] Figure 3 A schematic diagram of an interface of an application without a desktop icon provided in an embodiment of the present application;

[0035] Figure 4 An interface diagram of an application as a transparent icon provided in an embodiment of the present application Figure 1 ;

[0036] Figure 5 An interface diagram of an application as a transparent icon provided in an embodiment of the present application Figure 2 ;

[0037] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0038] Figure 7 A schematic diagram of a software framework of an electronic device provided in an embodiment of the present application;

[0039] Figure 8 A flowchart of a method for processing pop-up ads provided in an embodiment of the present application Figure 1 ;

[0040] Fig. 9 A schematic diagram of an interface for displaying a default icon for an application provided in an embodiment of the present application;

[0041] Fig.10 A schematic diagram of an application installation process provided in an embodiment of the present application;

[0042] Fig.11 A flowchart of a method for processing pop-up ads provided in an embodiment of the present application Figure 2 ;

[0043] Fig.12 A flowchart of a method for processing pop-up ads provided in an embodiment of the present application Figure 3 ;

[0044] Fig.13 A flowchart of a method for processing pop-up ads provided in an embodiment of the present application Figure 4 ;

[0045] Fig.14 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0047] To facilitate understanding, before introducing the embodiments of the present application, the scenarios involved in the present application are first described in conjunction with the drawings in the specification.

[0048] According to big data statistical analysis, there are currently more than 1,000 user voices (VOCs) or user public opinions generated by the behavior of applications (such as third-party applications) displaying advertisements. Among them, these user public opinions include various problems caused by the behavior of applications displaying advertisements when users use electronic devices. For example, user public opinion is: pop-up ads and advertising links seriously affect some elderly users' use of electronic devices (such as mobile phones) to make calls or surf the Internet; and the number of times such user public opinions are mentioned accounts for 51% of the total user public opinions.

[0049] For example, through a large amount of data and case analysis, the behaviors of application display advertising mainly include the following:

[0050] 1) Some applications will display advertisements on the desktop, lock screen, screen off interface, and other application interfaces (such as phone applications, chat applications, video applications, etc.) after they are started in the background (including automatic start and associated start).

[0051] Taking the above electronic device as a mobile phone as an example, for example, Figure 1 As shown in Figure 1, some applications display advertisements on the lock screen of mobile phones, which not only affects the aesthetics of the lock screen interface, but also seriously affects user usage. For example, Figure 1 (a), (b), (c), and (d) respectively illustrate different advertisements displayed on the lock screen interfaces of different mobile phones.

[0052] Alternatively, when the phone displays the main interface of the desktop and does not receive any user operation within a certain period of time, the application displays an advertisement on the main interface of the phone, creating a fake lock screen phenomenon (or lock screen advertisement). Figure 2 As shown in (a) and (b), some applications display advertisements on the main interface of the mobile phone. These advertisements cover the main interface of the mobile phone, resulting in a fake lock screen phenomenon of the mobile phone.

[0053] 2) Apps guide users to download other apps through official accounts, web pages, etc.; or apps guide users to share other apps (such as photo apps, singing apps, etc.). In addition, some apps will pretend to be cleaning tools (such as antivirus software) to guide users to install them. After users install these apps, the apps will display advertisements in various ways.

[0054] 3) After the application is installed, the desktop icon is not displayed on the desktop, or the desktop icon is set to transparent, or the desktop icon is disabled on the desktop when the application is running. Then, the application uses the native system of the electronic device (such as Android TM System, iOS TM The mechanism provided by the system, etc., displays advertisements through self-starting, background keep-alive, scheduled restart, etc.

[0055] For example, Figure 3 As shown in , after the application is installed, the desktop icon is not displayed on the mobile phone desktop, but the application can be found in the application management of the mobile phone. Figure 4 As shown in (a), after the application is installed, the application desktop icon is set to transparent, so the user cannot see the desktop icon of the application on the mobile phone desktop. However, when the mobile phone detects that the user's finger is pressed for three seconds on the blank area of ​​the desktop, the mobile phone desktop will display the control of the application. Figure 4 As shown in (b), the desktop of the mobile phone will display sharing controls and deletion controls for the application.

[0056] In some embodiments, Figure 5As shown, after the application is installed, although the application desktop icon is set to transparent, the application name of the application will be displayed if the application name is not set to empty.

[0057] In addition, after a lot of testing and analysis, it was found that some applications will generate two desktop icons, a main icon and a secondary icon, after installation; the main icon is visible to the user, while the secondary icon is invisible to the user. The secondary icon is transparent by default and is not displayed. When the application calls the application programming interface (API) of the mobile phone system, the main icon is hidden and the secondary icon is displayed. Since the secondary icon itself is a transparent icon and is not displayed, the desktop icon of the application cannot be seen on the mobile phone desktop.

[0058] Although current device manufacturers explicitly require that all types of applications are not allowed to display advertisements, a large number of applications still display advertisements for profit considerations. The current system virus detection function of the device only detects the application installation package during the application installation process. If the application is detected to be virus-free, the device will allow the application to be installed. However, after the application is installed, the application will still display advertisements in various ways, affecting user use. Based on this, there is an urgent need for a solution that can detect and block the application from displaying advertisements to improve the user experience.

[0059] In the related art, after the R&D personnel find that an application displays advertisements through analysis, they add the application to a blacklist to restrict the application from displaying advertisements. However, when the application that displays advertisements changes, the R&D personnel need to re-analyze and add it to the blacklist, which is not only time-consuming and labor-intensive, but also fails to block the application from displaying advertisements in a timely manner.

[0060] In addition, for scenarios where the desktop icon is not displayed on the desktop after the application is installed, or the desktop icon is set to transparent, or the desktop icon is disabled on the desktop when the application is running, it is difficult for users to know which specific application is displaying advertisements. As a result, the behavior of displaying advertisements through applications on the mobile phone may exist for a long time, seriously affecting the user experience.

[0061] The embodiment of the present application provides a method for processing pop-up ads, which can solve the pop-up ad behavior of the application and improve the user experience. Specifically, after the application is installed, when the electronic device determines that the application has no desktop icon; or when the application sets the desktop icon to be transparent and the application name is set to empty, the electronic device turns off the pop-up function of the application. In this way, the electronic device can effectively solve the problem of the subsequent display of pop-up ads by turning off the pop-up function of the application in advance, thereby improving the user experience.

[0062] Alternatively, during the running of the application, when the electronic device detects that the application has disabled desktop icons, the electronic device turns off the pop-up function of the application. In this way, as long as the electronic device detects that the application has disabled desktop icons, the electronic device turns off the pop-up function of the application, solving the problem of the subsequent display of pop-up advertisements in the application and improving the user experience.

[0063] Furthermore, the electronic device can also display the desktop icon of the application and remind the user that such application has hidden desktop icons. In this way, the electronic device further solves the problem of the application displaying pop-up ads again in the future by displaying the desktop icon of the application and guiding the user to uninstall the application through prompt information, thereby improving the user experience.

[0064] It should be noted that in the embodiments of the present application, the behavior of not displaying the desktop icon on the desktop after the application is installed, or setting the desktop icon to be transparent, or disabling the desktop icon on the desktop when the application is running can be called hidden behavior.

[0065] In addition, the pop-up window described in the embodiment of the present application refers to: a window displayed by the application on the upper layer of the display interface of the electronic device in the form of a floating window. Figure 1 and Figure 2 As shown, the window displayed by the application on the upper layer of the lock screen interface of the electronic device in the form of a floating window is a pop-up window.

[0066] The solution provided by the embodiments of the present application is described in detail below in conjunction with the accompanying drawings.

[0067] The method for processing abnormal application behavior provided in the embodiment of the present application can be applied to electronic devices, and the electronic devices can be mobile phones, tablet computers, smart phones, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), netbooks, cellular phones, personal digital assistants (personal digital assistants, PDAs) and any other electronic devices with display screens. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device.

[0068] In some embodiments, the method for processing abnormal application behavior provided in the embodiments of the present application can also be applied to the consumer product field of 1+8+N. Among them, "1" refers to mobile phones; "8" refers to car computers, speakers, headphones, watches / bracelets, tablets, large screens, personal computers (PCs), augmented reality (AR) devices / virtual reality (VR) devices, etc.; "N" refers to the Internet of Things (IoT).

[0069] like Figure 6 , which is a schematic diagram of the structure of an electronic device 100. The electronic 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, an antenna 1, an 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.

[0070] Among them, the above-mentioned sensor module 180 may include sensors such as 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 and a bone conduction sensor 180M.

[0071] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0072] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0073] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0074] 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.

[0075] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0076] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0077] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an electronic device. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0078] 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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 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, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0079] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0080] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0081] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.

[0082] The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 can be set in the same device as at least some modules of the processor 110.

[0083] 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 (not limited to a speaker 170A, a receiver 170B, etc.), 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.

[0084] The wireless communication module 160 can provide wireless communication solutions for application in the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0085] The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna 2.

[0086] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0087] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0088] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-OLED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc.

[0089] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0090] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0091] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0092] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.

[0093] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. In this way, the electronic device can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0094] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0095] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0096] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may execute the instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area.

[0097] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0098] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0099] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0100] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0101] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0102] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of hardware and software.

[0103] The methods in the following embodiments can be implemented in the electronic device 100 having the above hardware structure. In the following embodiments, the methods in the embodiments of the present application are introduced by taking the electronic device 100 as a mobile phone as an example.

[0104] In order to make the technical solution of the present application clearer and easier to understand, the method of the embodiment of the present application is illustrated below in combination with the software architecture of a mobile phone.

[0105] Figure 7 This is a software structure block diagram of the mobile phone of an embodiment of the present application.

[0106] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, Android TM It is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime and system library, hardware abstraction layer (HAL), kernel layer and driver layer. TM For example, in other operating systems (such as iOS TM System, etc.), as long as the functions implemented by each functional module are similar to the embodiments of the present application, the solution of the present application can also be implemented.

[0107] The application layer may include a series of application packages (Android application package, APK).

[0108] like Figure 7 As shown in the figure, the application layer can install various applications, such as calls, memos, browsers, contacts, gallery, calendar, maps, Bluetooth, music, videos, short messages, etc.

[0109] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0110] For example, the application framework layer may include a window manager, an activity manager, a content provider, a view system, a resource manager, a notification manager, etc., and the embodiments of the present application do not impose any restrictions on this.

[0111] For example, the above-mentioned window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The above-mentioned activity manager is used to manage the life cycle of each application and the navigation back function, and is responsible for the creation of the main thread of Android and the maintenance of the life cycle of each application. The above-mentioned content provider is used to store and obtain data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The above-mentioned view system can be used to build the display interface of the application. Each display interface can be composed of one or more controls. Generally speaking, controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other interface elements. The above-mentioned resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The above-mentioned notification manager uses the application to display notification information in the status bar, which 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 the completion of downloads, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window, such as a text message in the status bar, a beep, a vibration, a flashing indicator light, etc.

[0112] In the embodiment of the present application, the application framework layer may also include a package management service (PMS), a hidden behavior identification module, and a hidden behavior processing module, etc. The embodiment of the present application does not impose any restrictions on this.

[0113] The package management service is used to manage the application information of each application and to install and uninstall applications. The hidden behavior is used to identify whether the application has a desktop icon, the transparency of the desktop icon, whether the application has an application name, or whether the application has disabled the desktop icon. The hidden behavior processing module is used to process the application according to the hidden behavior of the application; for example, turn off the pop-up function of the application, uninstall the application, or force the desktop icon of the application to be displayed to guide the user to uninstall the application.

[0114] like Figure 7 As shown in Figure 1, Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0115] The core library consists of two parts: one is the function that Java voice needs to call, and the other is the Android core library.

[0116] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0117] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0118] Among them, the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple commonly used audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.

[0119] The hardware abstraction layer is an interface layer between the kernel layer and the hardware, which can be used to abstract the hardware. The hardware abstraction layer can include Wi-Fi HAL, Audio HAL, etc.

[0120] The kernel layer is located below the hardware abstraction layer and is a layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, etc., and the present application embodiment does not impose any restrictions on this.

[0121] The technical solution provided by the embodiments of the present application is described in detail below in conjunction with the accompanying drawings.

[0122] Usually, after an application is installed, a desktop icon will be generated on the desktop, so that the electronic device can start and run the application in response to the user's operation on the desktop icon. Therefore, after the application is installed, if there is no desktop icon for the application on the desktop, then the application is likely to display pop-up ads during subsequent operation. Based on this, in an embodiment of the present application, the electronic device can determine whether the application is an application that displays pop-up ads by judging whether the application has a desktop icon on the desktop.

[0123] Exemplarily, as shown in Table 1 below, when the electronic device determines that the desktop icon behavior of the application on the desktop meets the first preset condition, the electronic device determines that the application is more likely to display a pop-up advertisement during subsequent operation.

[0124] Apply desktop icon behavior First Precondition Whether to set desktop icon No desktop icon set Whether to disable desktop icons when the application is running Disable desktop icons while the app is running Desktop icon transparency, application name The transparency is 0 and the application name is empty The application sets a dual icon The main icon is visible, and the secondary icon is invisible

[0125] Table 1

[0126] In combination with the above Table 1, it can be seen that when the electronic device determines that the application desktop icon behavior meets the first preset condition, the electronic device determines that the application is likely to display pop-up ads during subsequent operation, so the electronic device can turn off the pop-up function of the application to prevent the application from displaying pop-up ads. Furthermore, the electronic device can also force the application desktop icon to be displayed to guide the user to uninstall the application.

[0127] like Figure 8 As shown, in some embodiments, after the application is installed, the electronic device determines whether the application sets a desktop icon. If the application does not set a desktop icon, the electronic device determines whether the application is a third-party application; if the application is a third-party application, the electronic device records the desktop icon behavior of the application. Exemplarily, the electronic device records the package name of the application and the desktop icon behavior corresponding to the application (such as the application does not set a desktop icon and the application is a third-party application).

[0128] In other embodiments, when the application is running, the electronic device determines whether the application has disabled the desktop icon. If the application has disabled the desktop icon, the electronic device records the package name of the application and the desktop icon behavior corresponding to the application (such as the application disabling the desktop icon).

[0129] In some other embodiments, after the application is installed, if the electronic device detects that the transparency of the application desktop icon is 0 and the application name is empty, the electronic device records the package name of the application and the desktop icon behavior of the application (such as the transparency of the application desktop icon is 0 and the application name is empty).

[0130] Still Figure 8 As shown, after the electronic device records the package name of the application and the desktop icon behavior of the application, the electronic device analyzes the desktop icon behavior of the application and determines that the desktop icon behavior of the application will cause the application to display pop-up advertisements; on this basis, the electronic device manages and controls the application according to the desktop icon behavior.

[0131] For example, the electronic device can turn off the pop-up window function of the application to prevent the application from displaying pop-up window ads later when it is running. Furthermore, the electronic device can also force the desktop icon of the application to be displayed, guiding the user to uninstall the application, fundamentally solving the problem of the application displaying pop-up window ads.

[0132] For example, Fig. 9As shown, the electronic device can display the desktop icon of the application in the blank area of ​​the desktop and display the application name of the application. Exemplarily, the desktop icon can be set as the system default icon, and the application name can be set as the application package name. For example, the desktop icon is in the form of "iCon" and the application name is "APPName".

[0133] Combination Figure 7 As shown, in an embodiment of the present application, the electronic device determines whether the desktop icon behavior of the application meets the first preset condition, the electronic device records the application package name and desktop icon behavior of the application, the electronic device analyzes the desktop icon behavior, and the electronic device manages the application according to the desktop icon behavior, etc., which can be implemented by the application framework layer. Specifically, it can be implemented by the package management service (PMS) of the application framework layer; or by the hidden behavior identification module and the hidden behavior processing module, which is not limited in the embodiments of the present application. It should be noted that the methods described in the following embodiments of the present application are specifically implemented by the PMS in the application framework layer.

[0134] It should be noted that, for different desktop icon behaviors, the specific implementation method of the electronic device determining whether the desktop icon behavior meets the first preset condition is illustrated by example. It should be understood that the specific implementation method shown in the embodiment of the present application is only an example and does not constitute a limitation of the present application.

[0135] (1) The application (for example, the first application described in the embodiment of the present application) does not have a desktop icon set.

[0136] For example, Fig.10 As shown, the electronic device first downloads the application installation package in the application layer. For example, the electronic device can download the application installation package through the application market, browser or file management. After that, the electronic device initiates the installation to the application framework layer through the application layer, so that the electronic device installs the application installation package of the application through the application framework layer. For example, the electronic device parses the application installation package of the application through the application framework layer and registers the application installation package to complete the installation of the application installation package.

[0137] Subsequently, after the electronic device completes the installation of the application installation package, the electronic device sends a broadcast message to the application layer through the application framework layer. The broadcast message is used to notify the application layer of the desktop application (luancher) that the application installation is complete. For example, the electronic device broadcasts a message to the application layer through the ACTION_PACKAGE ADDED command. After the desktop application of the application layer receives the broadcast message, the application layer updates the desktop icon, obtains the desktop icon information of the newly installed application, and then displays the desktop icon of the newly installed application through the desktop application management (LuancherAppService).

[0138] In an embodiment of the present application, an electronic device is added to the desktop application management (LuancherAppService) to determine whether a desktop icon is set for the application. When the application does not have a desktop icon and meets the second preset condition, the electronic device determines that the application has a risk of displaying pop-up advertisements, and the electronic device can manage and control the application.

[0139] Exemplarily, an electronic device installs a first application. If the first application does not have a desktop icon and is a third-party application, after the application package of the first application is installed, when the first application starts automatically and requests to display a pop-up window, the electronic device does not display the pop-up window of the first application, that is, the electronic device is prohibited from displaying the pop-up window of the first application.

[0140] Correspondingly, when the electronic device installs a second application and a desktop icon is set for the second application and the second application is a third-party application, after the application package of the second application is installed, when the second application starts automatically and requests to display a pop-up window, the electronic device displays a pop-up window of the second application.

[0141] It should be noted that in the embodiment of the present application, the first application and the second application may be the same application or different applications, and the embodiment of the present application is not limited to this.

[0142] Exemplary, combined Fig.10 ,like Fig.11 As shown, the process of the electronic device determining that an application (eg, the first application described in the embodiment of the present application) has not set a desktop icon can be implemented by S201-S204.

[0143] S201. The electronic device obtains desktop icon information of an application.

[0144] Exemplarily, after the application package of the application is installed, the electronic device can query the desktop icon information of the application through the package management service (PMS). For example, the electronic device calls the following function through the management service (PMS) to query the desktop icon information of the application. The desktop icon information may include, for example, the size, shape, color, and transparency of each desktop icon of the application.

[0145] Intent intent=new Intent();

[0146] intent.setPackage("com.test.myapp");

[0147] intent.setAction("android.intent.action.MAIN");

[0148] intent.addCategory(“android.intent.category.LAUNCHER”);

[0149] List <resolveinfo>list=

[0150] getPackageManager().queryIntentActivities(intent,PackageManager.MATCH_ALL).

[0151] S202: The electronic device determines whether a desktop icon is set for the application based on the desktop icon information of the application.

[0152] Exemplarily, when the electronic device queries the desktop icon information of the application through the PMS and list=0; or list=null, the electronic device determines that the application has not set a desktop icon.

[0153] In some embodiments, if the application does not set a desktop icon, the electronic device continues to execute S203; if the application sets a desktop icon, the electronic device displays the desktop icon of the application.

[0154] S203: The electronic device determines whether the application is a third-party application.

[0155] Exemplarily, the electronic device obtains the package name identifier of the application through the package name of the application. When the package name identifier of the application is FLAG_DATA, the application is a third-party application; when the package name identifier of the application is FLAG_SYSTEM, the application is a system application.

[0156] S204: The electronic device determines whether the application needs to display a desktop icon.

[0157] In some embodiments, if the application does not have a desktop icon, the application is a third-party application, and the application needs to display a desktop icon, the electronic device controls the application, such as closing the pop-up function of the application; further displaying the desktop icon of the application to guide the user to uninstall the application.

[0158] It should be noted that there are currently some applications that do not need to display desktop icons on the desktop, but these applications will not display pop-up ads later. Therefore, in the embodiment of the present application, when the electronic device determines that the application does not have a desktop icon, the electronic device can determine whether the application needs to display a desktop icon to prevent the electronic device from mismanaging the application.

[0159] In some embodiments, when installing an application, the electronic device can parse the application installation package through the PMS to obtain the application information of the application (such as ApplicationInfo). Exemplarily, the electronic device can call the PMS API: PackageManager.getApplicationInfo(packageName)) to obtain the application information of the application. Among them, the application information of the application includes at least: application identification, application installation package source, application application permission, application monitoring status, application application display mode, application version information, application installation package installation path and application feature information, etc.

[0160] Exemplarily, when the application information of the application meets the second preset condition (for example, the preset condition described in the embodiment of the present application), the electronic device determines that the application needs to display a desktop icon; then, the electronic device displays the desktop icon of the application. In some embodiments, the electronic device can display a preset desktop icon; then, in response to a click operation on the preset desktop icon, the electronic device displays the interface of the application (i.e., the first application described in the embodiment of the present application). In other embodiments, the electronic device can display a preset desktop icon; then, the electronic device uninstalls the first application in response to an uninstall operation on the preset desktop icon. Exemplarily, the uninstall operation can be, for example, an operation in which the user touches the preset desktop icon for more than 3 seconds. For example, in response to the user's uninstall operation on the preset desktop icon, the electronic device displays an "uninstall" control, and in response to the user's click operation on the "uninstall" control, the electronic device uninstalls the first application.

[0161] Among them, the second preset condition includes: the application is an abnormal application (such as the application is in the preset list), the application installation package is not downloaded from the system, the application has the permission to access the electronic device (such as the application applies for camera, microphone, call log, SMS, phone or location permissions), the application monitors the system status of the electronic device, the application applies for lock screen display or floating window display, etc., the application is not compatible with the version of the electronic device, the application is installed through the target path, and the application is not in the feature library. One or more.

[0162] Specifically, an abnormal application refers to an application that has the risk of displaying pop-up ads. Exemplarily, the electronic device stores the application package name of an application that has been confirmed to display pop-up ads; or, stores the application package name of the application marked by the user in a database (or a preset list). The electronic device can call the mMaliciousApp interface to determine whether the application is in the database; if the application is in the database, the application is an abnormal application. In addition, the electronic device can also send the application package name of the abnormal application in the database to the cloud server, and the cloud server can also synchronize the application package name of the abnormal application in the database to other electronic devices.

[0163] The fact that the installation package of the application is not downloaded from the system means that the application is downloaded through a third-party application market, browser or file management. Exemplarily, the electronic device can call a callingPackage interface to obtain the application package name, and determine the source information of the installation package of the application according to the application package name.

[0164] The application applies for permissions such as camera, microphone, call log, SMS, phone or location; illustratively, the electronic device can call the applicationInfo.permission interface to determine whether the application has applied for these permissions.

[0165] Application monitoring system status means that the application will start automatically or start in association by monitoring the system status changes. For example, the electronic device can call the queryIntentReccivers interface to determine whether the application monitors the system status. In some embodiments, the system status change may include the following information:

[0166] <receiver android:name="com.xxxxx.yyyyy.BootCompleteReceiver”>

[0167] <intene-filter>

[0168] <action android:name="android.intent.action.QUICKBOOT_POWERON” / > System Restart

[0169] <action android:name="android.bluetooth.adapter.action.STATE_CHANGED” / > Bluetooth connection status changed

[0170] <action android:name="android.wifi.WIFI_STATE_CHANGED” / > WiFi connection status changed

[0171]

[0172] <intent-filter android:priority="999”>

[0173] <action android:name="android.net.conn.CONNECTIVITY_CHANGED” / > The network status has changed

[0174] <action android:name="android.intent.action.BOOT_COMPLETED” / > System cold restart

[0175] <action android:name="android.intent.action.USER_PRESENT” / > User Unlock

[0176] <action android:name="android.intent.action.WALLPAPER_CHANGED” / > Wallpaper Change

[0177]

[0178] <intene-filter>

[0179] <action android:name="android.intent.action.PACKAGE_RESTARTED” / > Application restart

[0180] <action android:name="android.intent.action.PACKAGE_REPLACED” / > Application Upgrade

[0181] <data android:scheme="package” / >

[0182]

[0183] <intent-filter android:priority="99999”>

[0184] <action android:name="android.provider.Telephony.SECRET_CODE” / > Dial keypad to enter password

[0185] <data android:scheme="android_secret_code” / >

[0186]

[0187] <intent-filter android:priority="99999”>

[0188] <action android:name="android.intent.action.NEW_OUTGOING_CALL” / > User makes a call

[0189]

[0190] <intene-filter>

[0191] <action android:name="android.intent.action.MEDIA_MOUNTED” / > Insert SD card

[0192] <action android:name="android.intent.action.MEDIA_UNMOUNTED” / > Remove the SD card

[0193] <data android:scheme="file” / >

[0194]

[0195]

[0196] The application applies for lock screen display or floating window display. For example, the electronic device can call the applicationInfo.permission interface to determine whether the application has applied for lock screen display (DISABLE_KEYGUARD) and floating window display (SYSTEM_ALERT_WINDOW).

[0197] If the application is not compatible with the current version, for example, the electronic device can call the applicationInfo.targetSdkVersion interface to view the compatibility information of the application.

[0198] The application is installed through the target path means that the application is downloaded as a system application, such as the application is installed through an SD card, a USB flash drive, or an android debug bridge (adb). For example, the electronic device can call the applicationInfo.flags&FLAG_EXTERNAL_STORAG ​​interface to query the installation path of the application.

[0199] The application is not in the feature library: The electronic device stores system applications and frequently used third-party applications (i.e., applications whose user usage frequency is greater than or equal to the preset frequency) in the feature library. When an application is not in the feature library, it means that the application is a non-system application or an infrequently used third-party application (i.e., applications whose user usage frequency is less than the preset frequency); these applications usually have the risk of displaying pop-up ads.

[0200] In some embodiments, when the application satisfies any one of the second preset conditions, the electronic device determines that the application needs to display a desktop icon. Subsequently, the electronic device displays the desktop icon of the application to guide the user to uninstall the application.

[0201] Exemplarily, the electronic device may determine whether the application information meets the second preset condition in order of priority of the application information. For example, the priority order of the application information may be: application identification > application installation package source > application application permission > application monitoring status > application application display mode > application version information > application installation package installation path > application feature information.

[0202] It should be noted that in the embodiment of the present application, when the electronic device determines whether the application information meets the second preset condition in sequence according to the priority of the application information, if the electronic device determines that a certain application information meets the second preset condition, the electronic device does not need to continue to judge other application information, which is conducive to reducing the power consumption of the device.

[0203] In this embodiment, after the application is installed, when the electronic device determines that the application has not set a desktop icon, it indicates that the application has displayed pop-up ads. After that, the electronic device can turn off the pop-up function of the application to prevent the application from displaying pop-up ads, thereby improving the user experience. Furthermore, the electronic device can also display the desktop icon of the application to guide the user to uninstall the application, thereby fundamentally solving the problem of the application displaying pop-up ads.

[0204] (2) An application (for example, the first application described in the embodiment of the present application) sets the desktop icon to be transparent and does not set an application name.

[0205] Exemplarily, an electronic device installs a first application. If the desktop icon of the first application is transparent and the first application is a third-party application, after the application package of the first application is installed, when the first application starts automatically and requests to display a pop-up window, the electronic device does not display the pop-up window of the first application, that is, the electronic device is prohibited from displaying the pop-up window of the first application.

[0206] Correspondingly, when the electronic device installs a second application, if the desktop icon of the second application is non-transparent and the second application is a third-party application, after the application package of the second application is installed, when the second application starts automatically and requests to display a pop-up window, the electronic device displays a pop-up window of the second application.

[0207] It should be noted that in the embodiment of the present application, the first application and the second application may be the same application or different applications, and the embodiment of the present application is not limited to this.

[0208] In some embodiments, after the application is installed, the electronic device may determine whether the desktop icon of the application is a transparent icon and whether to set the application name.

[0209] It should be noted that the application installation process can refer to Fig.10 As described in the above embodiments, they will not be described one by one here. Fig.10 As shown, when the electronic device updates the desktop icon at the application layer, it can determine whether the desktop icon of the application is a transparent icon and whether to set the application name.

[0210] Exemplarily, after the application is installed, the electronic device obtains the desktop icon information of the application. The desktop icon information includes transparency information of one or more desktop icons of the application; the desktop icon information includes whether the desktop icon of the application is transparent or whether the desktop icon of the application is non-transparent. The desktop icon transparency is used to indicate that the transparency of the desktop icon of the application is less than or equal to the transparency threshold (for example, it can be zero); the desktop icon non-transparent is used to indicate that the transparency of the desktop icon of the application is greater than the transparency threshold.

[0211] In an embodiment of the present application, if the transparency information of one or more desktop icons of the application includes at least one desktop icon being transparent, then the desktop icon of the application is a transparent icon.

[0212] In some embodiments, the desktop icon information also includes the icon type and application name of one or more desktop icons of the application.

[0213] In some embodiments, the electronic device can obtain the desktop icon information of the application through the interface of the PMS. Exemplarily, the electronic device can call the following function through the interface of the PMS to obtain the desktop icon information of the application.

[0214] PackageManager pm=this.getPackageManager();

[0215] ApplicationInfo info=pm.getApplicationInfo info(PackageName, 0);

[0216] Resources rs=pm.getResourcesForActivity(new ComponentName();

[0217] Drawable loadIcon=pm.getResourcesForApplication().getDrawable(info.icon);

[0218] Exemplarily, when the application name is empty in the desktop icon information of the application acquired by the electronic device, the electronic device determines that the application has not set an application name.

[0219] In some embodiments, the desktop icon type (such as loadIcon) of the application includes a first icon type, a second icon type, and a third icon type. Among them, the display formats of the desktop icons corresponding to the first icon type, the second icon type, and the third icon type are different. For example, the first icon type may be AdaptivelconDrawable, the second icon type may be GradientDrawable, and the third icon type may be BitmapDrawable.

[0220] Exemplarily, for different icon types of an application, the electronic device obtains transparency information corresponding to the different icon types, and determines whether the desktop icon of the application is a transparent icon according to the transparency information.

[0221] like Fig.12 As shown, illustratively, the process of the electronic device determining whether the desktop icon of the application is a transparent icon can be implemented by S301-S304.

[0222] S301: The electronic device obtains an icon type of a desktop icon of an application.

[0223] Exemplarily, the icon types of the desktop icons may include, for example, a first icon type, a second icon type, and a third icon type.

[0224] On this basis, the electronic device can obtain transparency information of different icon types in sequence according to the priority order of the icon types, and determine whether the desktop icon of the application is a transparent icon.

[0225] The priority order of the icon types may be, for example, the first icon type>the second icon type>the third icon type.

[0226] S302: The electronic device determines whether the icon type is the first icon type.

[0227] Exemplarily, if the icon type is the first icon type, the electronic device obtains transparency information corresponding to the first icon type, wherein the transparency information corresponding to the first icon type includes foreground transparency and background transparency of the desktop icon.

[0228] For example, the electronic device may call the AdaptivelconDrawable ad=(AdaptivelconDrawable)loadIcon interface of the PMS to obtain the transparency information corresponding to the first icon type. The transparency information corresponding to the first icon type is as follows:

[0229] ad.getBackground().getAlpha() (foreground transparency)

[0230] ad.getForeground().getAlpha() (background transparency)

[0231] Exemplarily, if the foreground transparency and background transparency in the transparency information corresponding to the first icon type are both 0, the electronic device determines that the desktop icon is a transparent icon. Correspondingly, if the foreground transparency or background transparency in the transparency information corresponding to the first icon type is not 0, the electronic device determines that the desktop icon is a non-transparent icon.

[0232] It should be noted that, if the electronic device determines that the icon type is not the first icon type, the electronic device executes S303.

[0233] S303: The electronic device determines whether the icon type is the second icon type.

[0234] Exemplarily, if the icon type is the second icon type, the electronic device obtains the transparency information corresponding to the second icon type. Wherein, the transparency information corresponding to the second icon type is the icon color of the desktop icon. In some embodiments, after the electronic device obtains the icon color of the desktop icon, the electronic device converts the icon color of the desktop icon into the transparency (Alpha) of the desktop icon.

[0235] For example, the electronic device may call the GradientDrawable gd=(GradientDrawable)loadIcon interface of the PMS to obtain the transparency information corresponding to the second icon type. The transparency information corresponding to the second icon type is as follows:

[0236] int color = gd.getColor().getDefaultColor(); (icon color)

[0237] int alpha=(color&0xff000000)>>>24; (icon transparency)

[0238] Exemplarily, if in the transparency information corresponding to the second icon type, when the transparency of the desktop icon converted by the icon color is 0, the electronic device determines that the desktop icon is a transparent icon. Correspondingly, if in the transparency information corresponding to the second icon type, when the transparency of the desktop icon converted by the icon color is not 0, the electronic device determines that the desktop icon is a non-transparent icon.

[0239] It should be noted that if the electronic device determines that the icon type is not the second icon type, the electronic device executes S304.

[0240] S304: The electronic device determines whether the icon type is a third icon type.

[0241] Exemplarily, if the icon type is the third icon type, the electronic device obtains transparency information corresponding to the third icon type, wherein the transparency information corresponding to the third icon type is the transparency of the desktop icon.

[0242] For example, the electronic device may call the BitmapDrawable bd=(BitmapDrawable)loadIcon interface of the PMS to obtain the transparency information corresponding to the third icon type. The transparency information corresponding to the third icon type may be, for example, loadIcon.getAlpha().

[0243] Exemplarily, if the transparency information corresponding to the third icon type indicates that the transparency of the desktop icon is 0, the electronic device determines that the desktop icon is a transparent icon. Correspondingly, if the transparency information corresponding to the third icon type indicates that the transparency of the desktop icon is not 0, the electronic device determines that the desktop icon is a non-transparent icon.

[0244] In this embodiment, after the application is installed, when the electronic device determines that the desktop icon of the application is a transparent icon, it indicates that the application has displayed pop-up ads. After that, the electronic device can turn off the pop-up function of the application to prevent the application from displaying pop-up ads, thereby improving the user experience. Furthermore, the electronic device can also display the desktop icon of the application (such as the electronic device rendering a transparent icon of the first application and displaying the rendered transparent icon of the first application) to guide the user to uninstall the application, thereby fundamentally solving the problem of the application displaying pop-up ads.

[0245] It should be noted that the transparency of the transparent icon of the first application after rendering is greater than a transparency threshold (for example, 0). For example, the transparency of the transparent icon of the first application after rendering is greater than 0.

[0246] (3) The application (such as the target application described in the embodiments of the present application) disables the desktop icon during operation.

[0247] It should be noted that the application name and desktop icon of the application are set by the application. For example, if the corresponding activity in the application package of the application is set with the following filter, the application will generate a corresponding desktop icon on the desktop (or multiple desktop icons).

[0248] <intene-filter>

[0249] <action android:name="android.intent.action.MAIN” / >

[0250] <category android:name="android.intent.category.LAUNCHER” / >

[0251]

[0252] Currently, since Android provides a corresponding API, an electronic device can change the desktop icon of an application through the API provided by Android. For example, an electronic device can change the state of a desktop icon by calling the setComponentEnabledSetting interface of the PMS through an application.

[0253] Exemplarily, the electronic device can set the activity state of the application's desktop icon to COMPONENT_ENABLED_STATE_DISABLED (unavailable state) by calling the setComponentEnabledSetting interface of PMS through the application; or, the electronic device can also set the activity state of the application's desktop icon to COMPONENT_ENABLED_STATE_ENABLED (available state) by calling the setComponentEnabledSetting interface of PMS through the application.

[0254] It should be noted that when the electronic device sets the desktop icon of the application to an unavailable state, that is, the electronic device disables the desktop icon of the application, so that the desktop icon of the application will not be displayed on the desktop of the electronic device.

[0255] Normally, normal applications will switch the status of desktop icons to use corresponding desktop icons as a display of activities according to different holiday activities. In some embodiments, in order to meet the needs of different holiday activities, normal applications will set two or more desktop icons, and when these applications switch the status of desktop icons, they will switch the desktop icons in a manner of first enabling and then disabling. In other words, when a normal application needs to switch desktop icons, it first sets the status of the new desktop icon to an available state (i.e., enabling the new desktop icon); then, the normal application sets the status of the old desktop icon to an unavailable state (i.e., disabling the old desktop icon). In this way, the desktop of the electronic device will always display the desktop icon of the application, and there will be no situation where the user cannot see the desktop icon of the application on the desktop.

[0256] However, the abnormal application will first disable the desktop icon, that is, first set the desktop icon of the application to an unavailable state; then, the abnormal application will enable the desktop icon, that is, set the desktop icon of the application to an available state. In this way, when the abnormal application is set with only one desktop icon, after the abnormal application disables the desktop icon, the desktop of the electronic device will not display the desktop icon of the abnormal application, and the user will not be able to see the desktop icon of the application on the desktop.

[0257] Based on this, in the embodiment of the present application, with respect to the behavior of disabling desktop icons for abnormal applications, the electronic device can solve the problem that after the abnormal application disables the desktop icon, the desktop does not display the desktop icon of the abnormal application. Fig.13 As shown, the electronic device can be implemented through S401-S407.

[0258] S401: When a target application calls an API corresponding to an active component, the electronic device obtains an activity state of a first desktop icon corresponding to the target application.

[0259] Exemplarily, the electronic device obtains the activity state of the first desktop icon corresponding to the target application. It should be noted that when the target application calls the API corresponding to the activity component (i.e., activity), it carries the icon name of the first desktop icon. Therefore, when the target application calls the API corresponding to the activity component, the electronic device can obtain the activity state of the first desktop icon corresponding to the target application through the icon name of the first desktop icon carried by the electronic device.

[0260] In some embodiments, the electronic device may register a listener with the target application to detect whether the target application has an action to call an active component. For example, the electronic device may register a listener with the target application when it is first powered on; or, the electronic device may register a listener with the target application each time it is powered on.

[0261] In some embodiments, after the electronic device registers monitoring with the target application, the electronic device can monitor the target application's action of calling the API in real time. When the electronic device monitors the target application's action of calling the API, the electronic device can call the following function to obtain the activity state of the first desktop icon corresponding to the target application.

[0262] PackageManager p=getPackageManager();

[0263] ComponentName componentName=new ComponentName(this,com.test.app.MainActivity.class);

[0264] p.setComponentEnabledSetting(componentName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED,PackageManager.DONT_KILL_APP).

[0265] S402: The electronic device determines whether the activity state of a first desktop icon corresponding to a target application is an unavailable state.

[0266] Exemplarily, if the activity state of the first desktop icon corresponding to the target application is COMPONENT_ENABLED_STATE_DISABLED, the electronic device determines that the state of the first desktop icon corresponding to the target application is unavailable, that is, the electronic device determines that the target application disables (ie, prohibits the use of) the first desktop icon.

[0267] S403: The electronic device obtains desktop icon information of the target application.

[0268] The desktop icon information includes: the icon name, size, shape, color, activity status, transparency, etc. of each desktop icon among all desktop icons of the target application.

[0269] S404: The electronic device determines whether there are any desktop icons that are not disabled after the target application disables the first desktop icon.

[0270] In some embodiments, if the number of desktop icons that are not disabled by the target application is greater than a preset number threshold (such as 1), the electronic device determines that after the target application disables the first desktop icon, there are other desktop icons that are not disabled.

[0271] In other embodiments, if the number of desktop icons that are not disabled by the target application is equal to a preset number threshold (such as 1), and the icon name of the desktop icon that is not disabled by the target application is different from the icon name of the first desktop icon, the electronic device determines that after the target application disables the first desktop icon, there are other desktop icons that are not disabled. Correspondingly, if the icon name of the desktop icon that is not disabled by the target application is the same as the icon name of the first desktop icon, the electronic device determines that after the target application disables the first desktop icon, there are no other desktop icons that are not disabled.

[0272] Exemplarily, after the electronic device determines that the target application disables the first desktop icon, if there are other desktop icons that are not disabled, the electronic device disables the first desktop icon through the target application, and displays other desktop icons that are not disabled on the desktop (such as displaying the second desktop icon). Among them. The target application disabling the first desktop icon means that the target application sets the activity state of the corresponding first desktop icon to: COMPONENT_ENABLED_STATE_DISABLED (unavailable state). After the electronic device determines that the target application disables the first desktop icon, if there are no other desktop icons that are not disabled, the electronic device records the disabling information of the target application disabling the first desktop icon. Among them, the disabling information includes: the icon name of the first desktop icon and the activity state of the first desktop icon (such as COMPONENT_ENABLED_STATE_DISABLED).

[0273] After the electronic device records the disabling information of the target application disabling the first desktop icon, the electronic device starts a timer to count. If the duration of the timer is greater than or equal to the preset duration (such as 5 minutes), and the electronic device does not detect that the target application does not call the API corresponding to the active component, the electronic device displays the first desktop icon of the target application on the desktop, that is, the electronic device prevents the target application from disabling the first desktop icon. If the duration of the timer is less than the preset duration, and the electronic device detects that the target application calls the API corresponding to the active component, the electronic device executes S405.

[0274] Alternatively, after the electronic device records the disabling information of the target application disabling the first desktop icon, if the target application does not call the API corresponding to the active component within the first preset time, the electronic device prohibits displaying the pop-up window of the target application; further, the electronic device displays the first desktop icon of the target application on the desktop. Accordingly, if the target application calls the API corresponding to the active component within the first preset time, the electronic device executes S405.

[0275] S405: The electronic device obtains an activity state of a third desktop icon corresponding to the target application.

[0276] Among them, the third desktop icon is a desktop icon that is disabled by the electronic device during a historical period.

[0277] It should be noted that, for an example of the electronic device acquiring the activity state (ie, activity state) of the third desktop icon corresponding to the target application, reference may be made to the above embodiment, which will not be described in detail here.

[0278] S406: The electronic device determines whether the activity state of the third desktop icon corresponding to the target application is an available state.

[0279] Exemplarily, if the activity state of the third desktop icon corresponding to the target application is COMPONENT_ENABLED_STATE_ENABLED, the electronic device determines that the activity state of the third desktop icon corresponding to the target application is an available state.

[0280] S407: The electronic device queries the disabling information to determine whether there is a target application that disables the first desktop icon.

[0281] Exemplarily, if there is a target application that disables the first desktop icon, the electronic device first enables the third desktop icon and then disables the first desktop icon. If there is no target application that disables the first desktop icon, the electronic device directly enables the third desktop icon.

[0282] After the electronic device disables the first desktop icon, the electronic device deletes the previously recorded disabling information.

[0283] It should be noted that the electronic device enabling the third desktop icon means that the electronic device sets the activity state of the third desktop icon to COMPONENT_ENABLED_STATE_ENABLED (available state) through the target application, and displays the third desktop icon on the desktop.

[0284] In this embodiment, during the operation of the target application, when the electronic device detects that the target application disables the first desktop icon, the electronic device first records the disabling information of the target application disabling the first desktop icon, and starts a timer to count; when the timer duration is greater than or equal to the preset duration, and the target application has not enabled the third desktop icon, the electronic device forces the first desktop icon of the target application to be displayed on the desktop; when the timer duration is less than the preset duration and the third desktop icon should be enabled, the electronic device first enables the third desktop icon and then disables the first desktop icon. In this way, the electronic device can solve the problem that the target application desktop icon is not displayed on the desktop after the target application disables the desktop icon, that is, the electronic device can display the desktop icon of the target application to guide the user to uninstall the target application.

[0285] The present application embodiment provides an electronic device, which may include a display screen, a memory, and one or more processors; the memory stores a computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device can execute the various functions or steps executed by the mobile phone in the above embodiment. The structure of the electronic device can refer to Figure 6 The structure of the electronic device 100 is shown.

[0286] The present application also provides a chip system, such as Fig.14 As shown, the chip system 1800 includes at least one processor 1801 and at least one interface circuit 1802. The processor 1801 may be Figure 6 The interface circuit 1802 may be, for example, an interface circuit between the processor 110 and an external memory; or an interface circuit between the processor 110 and the internal memory 121.

[0287] The processor 1801 and the interface circuit 1802 can be interconnected via lines. For example, the interface circuit 1802 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 1802 can be used to send signals to other devices (such as the processor 1801). Exemplarily, the interface circuit 1802 can read instructions stored in the memory and send the instructions to the processor 1801. When the instructions are executed by the processor 1801, the electronic device can execute the various steps executed by the mobile phone in the above embodiment. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiments of the present application.

[0288] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes each function or step executed by the electronic device in the above method embodiment.

[0289] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the electronic device in the above method embodiment.

[0290] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0291] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0292] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0293] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0294] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0295] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. < / resolveinfo>

Claims

1. A method for processing pop-up advertisements, characterized in that: include: The electronic device installs a first application, and after the application package of the first application is installed, the first application starts automatically and applies to display a pop-up window; The first application is a third-party application; In the case where the first application does not have a desktop icon and needs to display a desktop icon, the electronic device does not display a pop-up window of the first application; Alternatively, when the electronic device determines that the desktop icon of the first application is transparent according to the transparency information corresponding to the icon type of the desktop icon of the first application, the electronic device does not display the pop-up window of the first application; The electronic device installs a second application, the second application sets a desktop icon, and the desktop icon of the second application is non-transparent; The second application is a third-party application; After the application package of the second application is installed, the second application starts automatically and applies to display a pop-up window; The electronic device displays a pop-up window of the second application; The electronic device determines, according to transparency information corresponding to the icon type of the desktop icon of the first application, that the desktop icon of the first application is transparent, including: The icon type of the desktop icon of the first application is a first icon type, and the first icon type corresponds to the foreground transparency and background transparency of the desktop icon of the first application; if the foreground transparency and the background transparency are both less than or equal to the transparency threshold, the electronic device does not display the pop-up window of the first application; or, The icon type of the desktop icon of the first application is a second icon type, and the second icon type corresponds to the icon color and icon transparency of the desktop icon of the first application; if the icon transparency converted from the icon color is less than or equal to the transparency threshold, the electronic device does not display the pop-up window of the first application; or, The icon type of the desktop icon of the first application is the third icon type, and the third icon type corresponds to the icon transparency of the desktop icon of the first application; if the icon transparency is less than or equal to the transparency threshold, the electronic device does not display the pop-up window of the first application.

2. The method according to claim 1, characterized in that: The first application does not set a desktop icon; the method further includes: After the application package of the first application is installed, the electronic device displays a preset desktop icon; wherein the preset desktop icon is non-transparent; In response to a click operation on the preset desktop icon, the electronic device displays the interface of the first application.

3. The method according to claim 1, characterized in that: The desktop icon of the first application is transparent; the method further includes: After the application package of the first application is installed, the electronic device renders a desktop icon of the first application and displays the rendered desktop icon of the first application; The rendered desktop icon of the first application is non-transparent.

4. The method according to claim 3, characterized in that The first application does not have an application name set; the method further includes: The electronic device uses the package name of the first application as an application name of the rendered first application and displays the application name.

5. The method according to any one of claims 1 to 4, characterized in that: When the electronic device installs the first application, the method further includes: The electronic device obtains desktop icon information of the first application; wherein the desktop icon information is used to indicate that the desktop icon of the first application is transparent; or, the desktop icon information is used to indicate that the desktop icon of the first application is non-transparent; or, the desktop icon information is used to indicate that the first application has not set a desktop icon.

6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: After the application package of the first application is installed, the electronic device closes the pop-up function of the first application.

7. The method according to claim 2, characterized in that: The method further comprises: In response to the user's uninstall operation on the preset desktop icon, the first application is uninstalled.

8. An electronic device, characterized in that: include: A display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; The memory is used to store computer program codes, and the computer program codes include computer instructions; when the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The method comprises computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Terminal, method of uninstalling application program thereby and storage device

    CN108052330A

  • Advertisement popup window interception method and device, electronic equipment and storage medium

    CN111753192A