CN117931212A - Processing method of popup advertisement, electronic equipment and readable storage medium - Google Patents

Processing method of popup advertisement, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117931212A
CN117931212A CN202311494569.3A CN202311494569A CN117931212A CN 117931212 A CN117931212 A CN 117931212A CN 202311494569 A CN202311494569 A CN 202311494569A CN 117931212 A CN117931212 A CN 117931212A
Authority
CN
China
Prior art keywords
application
icon
desktop icon
desktop
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311494569.3A
Other languages
Chinese (zh)
Inventor
肖名鹏
雒云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311494569.3A priority Critical patent/CN117931212A/en
Publication of CN117931212A publication Critical patent/CN117931212A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a processing method of popup advertisements, electronic equipment and a readable storage medium, which relate to the technical field of terminals and are used for solving the problem that the electronic equipment displays advertisements through popup, and the method comprises the following steps: the method comprises the steps that the electronic equipment installs a first application, wherein a desktop icon is not arranged in the first application, or the desktop icon of the first application is transparent; the first application is a third party application; after the application program package of the first application is installed, the first application is started automatically, and a popup window is applied for display; the electronic device does not display a popup window of the first application; the electronic equipment installs a second application, the second application is provided with 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 program package of the second application is installed, the second application is started automatically, the popup window is applied to be displayed, and the electronic equipment displays the popup window of the second application.

Description

Processing method of popup advertisement, electronic equipment and readable storage medium
The present application is a divisional application, the application number of the original application is 202211020738.5, the original application date is 2022, 8 months and 24 days, and the whole content of the original application is incorporated by reference.
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for processing a pop-up advertisement, an electronic device, and a readable storage medium.
Background
With the development of electronic devices, various Applications (APP) are endless, so that users can process many things on the electronic devices through the applications, and convenience is provided for the users. However, some applications frequently display popup advertisements after being started, display advertisements on a screen locking interface or frequently pop advertisement links by the applications so as to guide users to download other applications and other advertisements, and the use of the users is affected.
Disclosure of Invention
The embodiment of the application provides a processing method of popup advertisements, electronic equipment and a readable storage medium, which are used for solving the problem of popup advertisement display by application.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
In a first aspect, a method for processing a popup advertisement is provided, where the method includes: the method comprises the steps that the electronic equipment installs a first application, wherein a desktop icon is not arranged in the first application, or the desktop icon of the first application is transparent; the first application is a third party application; after the application program package of the first application is installed, the first application is started automatically, and a popup window is applied for display; the electronic device does not display a popup window of the first application; the electronic equipment installs a second application, the second application is provided with 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 program package of the second application is installed, the second application is started automatically, the popup window is applied to be displayed, and the electronic equipment displays the popup window of the second application.
Based on the first aspect, when the first application is installed on the electronic device, the desktop icon is not set by the first application, or the desktop icon of the first application is transparent, after the installation of the application program package of the first application is completed, if the first application is self-started and applies for displaying the popup window, the popup window of the first application is not displayed by the electronic device, so that the problem that the popup window advertisement is displayed by the first application can be solved.
In one possible design of the first aspect, the first application does not set a desktop icon, and the method further includes: after the application program package of the first application is installed, the electronic equipment displays a preset desktop icon; wherein, the preset desktop icon is non-transparent; and responding to clicking operation on the preset desktop icon, and displaying an interface of the first application by the electronic equipment.
In this possible design, in the case where the first application does not set the desktop icon, after the application package of the first application is installed, the electronic device may display the preset desktop icon, and when the electronic device responds to a click operation on the preset desktop icon, the electronic device may also display an interface of the first application.
In one possible design of the first aspect, the desktop icon of the first application is transparent; the method further comprises the steps of: after the application program package of the first application is installed, rendering a desktop icon of the first application by the electronic equipment, and displaying the rendered desktop icon of the first application; wherein the rendered desktop icon of the first application is non-transparent.
In the possible design, under the condition that the desktop icon of the first application is transparent, after the application package of the first application is installed, rendering the desktop icon of the first application by the electronic equipment, and displaying the rendered desktop icon of the first application; because 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 a user can conveniently operate the first application on the desktop, and user experience is improved.
In one possible design of the first aspect, the first application does not set an application name, and the method further includes: the electronic equipment takes the package name of the first application as the application name of the first application after rendering, and displays the application name.
In the possible design, under the condition that the first application is not provided with the application name, the electronic device can also take the package name of the first application as the application name of the first application after rendering and display the application name, so that a user can operate the first application on a desktop conveniently, and user experience is improved.
In one possible design of the first aspect, the first application is not provided with a desktop icon; the electronic device does not display a popup window for a first application, comprising: if the first application meets the preset condition, the electronic equipment does not display a popup window of the first application; the preset conditions comprise one or more of that the first application is in a preset list, an application package of the first application is not downloaded from a system, the first application has permission to access the electronic equipment, the first application monitors the system state of the electronic equipment, the first application is displayed on a screen locking interface of the electronic equipment, the first application is displayed in a floating window mode, the version of the first application is not compatible with the version of the electronic equipment, the application package of the first application is installed through a target path, and the first application is not in a feature library; the preset list comprises package names of applications with abnormal behaviors in a history period, and the abnormal behaviors are used for triggering the electronic equipment to display a popup window; the feature library comprises package names of system applications and package names of applications with the use frequency of the users being greater than or equal to a preset frequency.
In the possible design, if the first application meets the preset condition under the condition that the desktop icon is not set by the first application, the electronic device does not display the popup window of the first application, so that the behavior of displaying the popup window by the first application can be prevented from being mismanaged and controlled.
In one possible design of the first aspect, when the electronic device installs the first application, the method further includes: the method comprises the steps that electronic equipment obtains desktop icon information of a first application; the desktop icon information is used for indicating transparency information of the desktop icon of the first application, and the transparency information comprises transparency of the desktop icon of the first application or non-transparency of the desktop icon of the first application; or desktop icon information is used to indicate that the first application does not set a desktop icon.
In one possible design of the first aspect, the desktop icon information is further used to indicate an icon color and an icon type of a desktop icon of the first application; the desktop icon of the first application is transparent, and the electronic device does not display a popup window of the first application, including: the icon type of the desktop icon of the first application is the first icon type, and if the foreground transparency and the background transparency of the desktop icon of the first application are smaller than or equal to transparency threshold values, the electronic equipment does not display a popup window of the first application; or the icon type of the desktop icon of the first application is the second icon type, if the transparency of the icon converted from the icon color of the desktop icon of the first application is smaller than or equal to the transparency threshold, the electronic device does not display the popup window of the first application; or the icon type of the desktop icon of the first application is a third icon type, and if the icon transparency of the desktop icon of the first application is smaller than or equal to the transparency threshold, the electronic device does not display the popup window of the first application; the desktop icons corresponding to the first icon type, the second icon type and the third icon type are different in display format.
In one possible design of the first aspect, the method further comprises: after the application program package of the first application is installed, the electronic equipment closes the popup window function of the first application.
In this possible design, after the application package of the first application is installed, the electronic device may also close the pop-up window of the first application, so as to further solve the problem that the electronic device displays the pop-up window advertisement.
In a second aspect, an electronic device is provided, which has the functionality to implement the method described in the first aspect. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a third aspect, there is provided an electronic device comprising: a display screen, a memory, and one or more processors; the display screen, the memory couples with processor; the memory is for storing computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the steps of: the method comprises the steps that the electronic equipment installs a first application, wherein a desktop icon is not arranged in the first application, or the desktop icon of the first application is transparent; the first application is a third party application; after the application program package of the first application is installed, the first application is started automatically, and a popup window is applied for display; the electronic device does not display a popup window of the first application; the electronic equipment installs a second application, the second application is provided with 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 program package of the second application is installed, the second application is started automatically, the popup window is applied to be displayed, and the electronic equipment displays the popup window of the second application.
In one possible design of the third aspect, the first application is not provided with a desktop icon; the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: after the application program package of the first application is installed, the electronic equipment displays a preset desktop icon; wherein, the preset desktop icon is non-transparent; and responding to clicking operation on the preset desktop icon, and displaying an interface of the first application by the electronic equipment.
In one possible design of the third aspect, the desktop icon of the first application is transparent; the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: after the application program package of the first application is installed, rendering a desktop icon of the first application by the electronic equipment, and displaying the rendered desktop icon of the first application; wherein the rendered desktop icon of the first application is non-transparent.
In one possible design of the third aspect, the first application does not set an application name, which when executed by the processor causes the electronic device to further perform the steps of: the electronic equipment takes the package name of the first application as the application name of the first application after rendering, and displays the application name.
In one possible design of the third aspect, the first application is not provided with a desktop icon; when the processor executes the computer instructions, the electronic device is caused to specifically perform the steps of: if the first application meets the preset condition, the electronic equipment does not display a popup window of the first application; the preset conditions comprise one or more of that the first application is in a preset list, an application package of the first application is not downloaded from a system, the first application has permission to access the electronic equipment, the first application monitors the system state of the electronic equipment, the first application is displayed on a screen locking interface of the electronic equipment, the first application is displayed in a floating window mode, the version of the first application is not compatible with the version of the electronic equipment, the application package of the first application is installed through a target path, and the first application is not in a feature library; the preset list comprises package names of applications with abnormal behaviors in a history period, and the abnormal behaviors are used for triggering the electronic equipment to display a popup window; the feature library comprises package names of system applications and package names of applications with the use frequency of the users being greater than or equal to a preset frequency.
In one possible design of the third aspect, when the first application is installed by the electronic device, the processor executes the computer instructions, causing the electronic device to further perform the steps of: the method comprises the steps that electronic equipment obtains desktop icon information of a first application; the desktop icon information is used for indicating transparency information of the desktop icon of the first application, and the transparency information comprises transparency of the desktop icon of the first application or non-transparency of the desktop icon of the first application; or desktop icon information is used to indicate that the first application does not set a desktop icon.
In one possible design of the third aspect, the desktop icon information is further used to indicate an icon color and an 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 is caused to specifically execute the following steps: the icon type of the desktop icon of the first application is the first icon type, and if the foreground transparency and the background transparency of the desktop icon of the first application are smaller than or equal to transparency threshold values, the electronic equipment does not display a popup window of the first application; or the icon type of the desktop icon of the first application is the second icon type, if the transparency of the icon converted from the icon color of the desktop icon of the first application is smaller than or equal to the transparency threshold, the electronic device does not display the popup window of the first application; or the icon type of the desktop icon of the first application is a third icon type, and if the icon transparency of the desktop icon of the first application is smaller than or equal to the transparency threshold, the electronic device does not display the popup window of the first application; the desktop icons corresponding to the first icon type, the second icon type and the third icon type are different in display format.
In one possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: after the application program package of the first application is installed, the electronic equipment closes the popup window function of the first application.
In a fourth aspect, there is provided a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of the first aspects above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects above.
The technical effects of any one of the design manners of the second aspect to the fifth aspect may be referred to the technical effects of the different design manners of the first aspect, and will not be repeated here.
Drawings
Fig. 1 is a schematic diagram of an interface for displaying a pop-up window advertisement on a lock screen interface of an electronic device according to an embodiment of the present application;
fig. 2 is a second interface schematic diagram of displaying a pop-up window advertisement on a lock screen interface by using an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface without desktop icons for an application according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an interface for a transparent icon according to an embodiment of the present application;
FIG. 5 is a second schematic interface diagram of a transparent icon according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a software framework of an electronic device according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating a method for processing pop-up advertisements according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an interface for displaying default icons for an application according to an embodiment of the present application;
FIG. 10 is a schematic flow chart of application installation according to an embodiment of the present application;
FIG. 11 is a second flow chart of a method for processing pop-up advertisements according to an embodiment of the present application;
fig. 12 is a flowchart illustrating a method for processing pop-up window advertisement according to an embodiment of the present application;
Fig. 13 is a flow chart diagram of a method for processing pop-up window advertisements according to an embodiment of the present application;
Fig. 14 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the present application, "/" means that the related objects are in a "or" relationship, unless otherwise specified, for example, a/B may mean a or B; the "and/or" in the present application is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural. Also, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural. In addition, in order to facilitate the clear description of the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
For ease of understanding, the description of the scenario involved in the present application will be described with reference to the accompanying drawings before describing embodiments of the present application.
According to big data statistical analysis, users 'Voices (VOCs) generated by the behavior of applications (such as third party applications) displaying advertisements, or users' public opinion is up to 1000 or more. Among these user public opinion include various problems of users in using electronic devices due to the behavior of applications displaying advertisements. For example, the public opinion of the user is: popup advertisements and advertisement links seriously affect some older users to make calls or surf the internet using electronic devices (e.g., cell phones); and such user public opinion is mentioned 51% of the total user public opinion.
By way of example, through extensive data and case analysis, the behavior of an application to display advertisements mainly includes the following:
1) Some applications will display advertisements on desktop, lock screen interface, rest screen interface, other applications (e.g., phone application, chat application, video application, etc.) interfaces after background startup (including self-start and associated startup).
Taking the electronic device as an example of a mobile phone, as shown in fig. 1, some applications display advertisements on a screen locking interface of the mobile phone, which not only affects the aesthetic property of the screen locking interface, but also seriously affects the use of users. For example, in fig. 1, (a), (b), (c), and (d) respectively illustrate different advertisements displayed on the lock screen interfaces of different mobile phones.
Or when the mobile phone displays the main interface of the desktop and does not receive the operation of the user within a certain time, the mobile phone is applied to display advertisements on the main interface of the mobile phone, and the phenomenon of false screen locking (or screen locking advertisement) is manufactured. For example, as shown in fig. 2 (a) and (b), some applications display advertisements on the main interface of the mobile phone, and these advertisements cover the main interface of the mobile phone, so that the phenomenon of false screen locking of the mobile phone occurs.
2) The application guides the user to download other applications in the modes of public numbers, web pages and the like; or the application guides the user to share other applications with each other (e.g., a photo application, a singing application, etc.). In addition, some applications may impersonate cleaning tools (e.g., antivirus software) that guide the user in their installation. After the user installs the applications, the applications may display advertisements in various ways.
3) The desktop icon is not displayed on the desktop after the application is installed, or is set to be transparent, or is disabled on the desktop when the application is running. Then, the application displays the advertisement by means of self-starting, background keep-alive, timing restarting and the like by utilizing a mechanism provided by a native system of the electronic device (such as an Android TM system, an iOS TM system and the like).
For example, as shown in fig. 3, after the application is installed, a desktop icon is not displayed on the desktop of the mobile phone, but the application can be found in the application management of the mobile phone. For another example, as shown in fig. 4 (a), after the application is installed, the application desktop icon is set to be transparent, so that the user cannot see the application desktop icon on the mobile phone desktop, but when the mobile phone detects that the user's finger presses the blank area of the desktop for three seconds, the control of the application is displayed on the mobile phone desktop. Illustratively, as shown in fig. 4 (b), the desktop of the handset will display the sharing control and the deletion control for the application.
In some embodiments, as shown in fig. 5, after the application is installed, the application name of the application is displayed without setting the application name to null, although the application desktop icon is set to transparent.
In addition, a large number of detection and analysis show that some applications can generate two desktop icons of a main icon and a sub icon after being installed; the main icons are visible to the user, and the auxiliary icons are invisible to the user. The secondary icon defaults to a transparent icon and is not displayed, and when an application calls an application program interface (application programming interface, API) of the mobile phone system, the primary icon is hidden and the secondary icon is displayed. Since the sub-icons are themselves transparent icons and are not displayed, the desktop icon of the application is not visible on the desktop of the cell phone.
While current device manufacturers explicitly require that various types of applications not be permitted to have the act of displaying advertisements, there are a large number of applications for which the act of displaying advertisements is a benefit. The system virus checking and killing function of the current equipment is only to detect the application installation package in the application installation link, and if the application is detected to be virus-free, the equipment can allow the application to be installed. But after the application is installed, the application may still display advertisements in various ways, affecting user usage. Based on this, a scheme capable of detecting and intercepting the advertisement display behavior of an application is needed to improve the use experience of the user.
In the related art, after a developer finds that an application has an advertisement displaying action, the application is added to a blacklist to limit the advertisement displaying action of the application. However, after the application for displaying the advertisement changes, the developer needs to re-analyze and add the advertisement to the blacklist, so that the method is time-consuming and labor-consuming, and the behavior of displaying the advertisement by the application cannot be intercepted in time.
In addition, for the scene that the desktop icon is not displayed on the desktop after the application is installed, or the desktop icon is set to be transparent, or the desktop icon is disabled on the desktop when the application runs, it is difficult for a user to know which application is displaying the advertisement, so that the action of displaying the advertisement by the application by the mobile phone may exist for a long time, and the use experience of the user is seriously affected.
The embodiment of the application provides a processing method of popup advertisements, which can solve the popup advertisement behaviors of an application and improve the use experience of a user. Specifically, after the application is installed, when the electronic device determines that the application has no desktop icon; or the application sets the desktop icon to be transparent, and when the application name is set to be empty, the electronic equipment closes the popup window function of the application. Therefore, the electronic equipment can effectively solve the problem that the application subsequently displays the popup advertisements by closing the popup function of the application in advance, and the user experience is improved.
Or in the running process of the application, when the electronic equipment detects that the application disables the desktop icon, the electronic equipment closes the popup window function of the application. Therefore, as long as the electronic equipment detects that the application has the condition of disabling the desktop icon, the electronic equipment closes the popup function of the application, the problem that the application subsequently displays popup advertisements is solved, and the user experience is improved.
Furthermore, the electronic device can display the desktop icons of the applications and remind the users that the applications have the action of hiding the desktop icons. Therefore, the electronic equipment displays the desktop icon of the application, and guides the user to uninstall the application through prompting the class information, so that the problem that the application subsequently displays the popup advertisement again is further solved, and the user experience is improved.
In the embodiment of the present application, the application may display no desktop icon on the desktop after installation, set the desktop icon to be transparent, or disable the desktop icon on the desktop when the application is running.
In addition, the popup window in the embodiment of the present application refers to: and applying a window displayed on the upper layer of a display interface of the electronic device in a floating window mode. For example, as shown in fig. 1 and fig. 2, the window displayed on the upper layer of the lock screen interface of the electronic device in the manner of a floating window is the popup window.
The following describes in detail the solution provided by the embodiments of the present application with reference to the drawings attached to the specification.
The method for processing the abnormal application behavior provided by the embodiment of the application can be applied to electronic equipment, and the electronic equipment can be any electronic equipment with a display screen, such as a mobile phone, a tablet personal computer, a smart phone, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal DIGITAL ASSISTANT, PDA) and the like. The embodiment of the application does not limit the specific form of the electronic equipment.
In some embodiments, the method for processing abnormal behavior of application provided by the embodiment of the present application may also be applied to the consumer product field of 1+8+n. Wherein, "1" refers to a mobile phone; "8" refers to a car set, a sound box, headphones, a watch/bracelet, a tablet, a large screen, a personal computer (personal computer, PC), an augmented reality (augmented reality, AR) device/Virtual Reality (VR) device, etc.; "N" refers to the Internet of things (internet of things, ioT).
Fig. 6 is a schematic structural diagram of the electronic device 100. Wherein the electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity 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.
It is to be understood that the structure illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device. In other embodiments, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating 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. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied to the electronic device 100.
The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), or the like.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred 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 the like format. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of electronic devices can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may include a storage program area and a storage data area by executing instructions stored in the internal memory 121.
The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device 100 platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of hardware and software.
The method in the following embodiments may be implemented in the electronic device 100 having the above-described hardware structure. In the following embodiments, the method according to the embodiments of the present application is described by taking the electronic device 100 as a mobile phone.
In order to make the technical scheme of the application clearer and easy to understand, the method of the embodiment of the application is exemplified below by combining the software architecture of the mobile phone.
Fig. 7 is a software structure block diagram of a mobile phone according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, android TM is divided into five layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android runtime) and system library, a hardware abstraction layer (hardware abstraction layer, HAL), a kernel layer, and a driver layer, respectively. It should be understood that: the Android TM system is used for illustration, and in other operating systems (such as iOS TM system, etc.), the scheme of the present application can be implemented as long as the functions implemented by the respective functional modules are similar to those implemented by the embodiments of the present application.
The application layer may include a series of application packages (Android application package, APK).
As shown in fig. 7, the application layer may install various applications. Such as conversations, memos, browsers, contacts, gallery, calendar, maps, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
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., to which embodiments of the present application are not limited in any way.
For example, the window manager described above is used to manage window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The activity manager is used for managing the life cycle of each application program and the navigation rollback function, and is responsible for the creation of the main thread of the Android and the maintenance of the life cycle of each application program. The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system described above may be used to build a display interface for an application. Each display interface may be composed of one or more controls. In general, controls may include interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, micro (Widget) items, and the like. The resource manager provides various resources, such as localization strings, icons, pictures, layout files, video files, and the like, to the application program. The notification manager can display notification information in a status bar by using an application program, can be used for conveying a notification type message, can automatically disappear after a short stay, and does not need user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is presented in a status bar, a prompt tone is emitted, vibration is generated, and an indicator light blinks.
In the embodiment of the present application, the application framework layer may further include a packet management service (PACKAGE MANAGER SERVICE, PMS), a hidden behavior recognition module, a hidden behavior processing module, and the like, which is not limited in any way by the embodiment of the present application.
Wherein the package management service is used for managing application information of each application program, installing and uninstalling the application program, and the like. The hiding behavior is used to identify whether the application has a desktop icon, transparency of the desktop icon, whether the application has an application name, whether the application disables the desktop icon, etc. The hiding behavior processing module is used for processing the application according to the hiding behavior of the application; such as closing a pop-up window function of the application, uninstalling the application, or forcedly displaying a desktop icon of the application to guide a user to uninstall the application.
As shown in FIG. 7, android runtime includes a core library and virtual machines. Android runtime is responsible for scheduling and management of the android system.
The core library consists of two parts: one part is a function which needs to be called by java voice, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used for managing the display subsystem and providing fusion of 2D and 3D layers for a plurality of application programs. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The hardware abstraction layer is an interface layer between the kernel layer and the hardware, and may be used to abstract the hardware. The hardware abstraction layer may include Wi-Fi HAL, audio HAL, and the like.
The kernel layer is located below the hardware abstraction layer and is the layer between hardware and software. The kernel layer at least comprises display drive, camera drive, audio drive, sensor drive and the like, and the embodiment of the application is not limited in any way.
The following describes in detail the technical solution provided by the embodiments of the present application with reference to the drawings of the specification.
Typically, the desktop icon is generated on the desktop after the application is installed, so that the electronic device can start and run the application in response to the operation of the user on the desktop icon. Therefore, after the application is installed, if the application has no desktop icon on the desktop, the application is more likely to display popup advertisements in the subsequent running process. Based on this, in the embodiment of the present application, the electronic device may determine whether the application is an application displaying a pop-up advertisement by determining whether the application has a desktop icon on the desktop.
For example, 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 the pop-up window advertisement in the subsequent running process.
Application desktop icon behavior First preset condition
Whether or not to set desktop icon Unset desktop icons
Whether an application disables desktop icons at runtime Disabling desktop icons at runtime for applications
Transparency of desktop icon, application name Transparency is 0, application name is null
Applications are provided with double icons The primary icon is visible and the secondary icon is invisible
TABLE 1
In combination with table 1, when the electronic device determines that the application desktop icon behavior meets the first preset condition, the electronic device determines that the application has a high possibility of displaying the popup advertisement in the subsequent operation process, so that the electronic device can close the popup function of the application to prevent the application from displaying the popup advertisement. Further, the electronic device can forcedly display the desktop icon of the application to guide the user to uninstall the application.
As shown in fig. 8, in some embodiments, after an application is installed, the electronic device determines whether the application is provided with a desktop icon, and if the application is not provided with 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 equipment records the desktop icon behavior of the application. The electronic device records the package name of the application and the desktop icon behavior corresponding to the application (e.g., the application is not provided with a desktop icon and the application is a third party application).
In other embodiments, the electronic device determines whether the application has disabled the desktop icon while the application is running. If the application disables the desktop icon, the electronic device records the package name of the application and the desktop icon behavior corresponding to the application (such as application disabling the desktop icon).
In still other embodiments, after the application is installed, if the electronic device detects that the transparency of the application desktop icon is 0, the application name is empty, the electronic device records the package name of the application, and the desktop icon behavior of the application (e.g., the transparency of the application desktop icon is 0, and the application name is empty).
As also shown in fig. 8, 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 may cause the application to display a popup advertisement; on the basis, the electronic equipment controls the application according to the desktop icon behaviors.
For example, the electronic device may close a pop-up function of the application, preventing the application from subsequently displaying a pop-up advertisement at runtime. Furthermore, the electronic equipment can forcedly display the desktop icon of the application to guide the user to uninstall the application, so that the display of popup advertisements by the application is fundamentally solved.
For example, as shown in fig. 9, the electronic device may display a desktop icon of the application in a blank area of the desktop, and display an application name of the application. For example, the desktop icon may be set as a system default icon and the application name may be set as an application package name. For example, the desktop icon is in the form of "iCon" and the application name is "APPName".
In combination with fig. 7, in the 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 the 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 may be implemented by an application framework layer. In particular, it may be implemented by a Package Management Service (PMS) of an application framework layer; or by the suppressed behavior identification module and the suppressed behavior processing module, to which embodiments of the present application are not limited. It should be noted that the method described in the following embodiments of the present application is specifically implemented by the PMS in the application framework layer.
It should be noted that, specific implementation manners of the electronic device for judging that the desktop icon behaviors meet the first preset condition are illustrated with respect to different desktop icon behaviors of the application. It should be understood that the detailed description and specific examples, while indicating the embodiment of the application, are intended for purposes of illustration only and are not intended to limit the scope of the application.
(1) The application (e.g., the first application described in the embodiments of the present application) does not have a desktop icon set.
Illustratively, as shown in FIG. 10, the electronic device first downloads an application installation package in the application layer. For example, the electronic device may download the application installation package through an application marketplace, browser, or file management. The electronic device then initiates installation to the application framework layer through the application layer such that the electronic device installs the application installation package for the application through the application framework layer. For example, the electronic device parses an application installation package of the application through an application framework layer and registers the application installation package to complete installation of the application installation package.
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 a desktop application (luancher) of the application layer that the application installation is complete. For example, the electronic device broadcasts a message to the application layer via the action_ PACKAGE ADDED command. After the desktop application of the application layer receives the broadcast message, the application layer updates the desktop icon, acquires the desktop icon information of the newly installed application, and then displays the desktop icon of the newly installed application through desktop application management (LuancherAppService).
In the embodiment of the application, the electronic equipment is added in the desktop application management (LuancherAppService) to judge whether the application is provided with the desktop icon, and when the application is not provided with the desktop icon and the second preset condition is met, the electronic equipment determines that the application has the risk of displaying the popup advertisement, and can manage and control the application.
The electronic device installs the first application, if the first application is not provided with the desktop icon and the first application is a third party application, after the installation of the application package of the first application is completed, the electronic device does not display the popup window of the first application when the first application is automatically started and the popup window is applied for display, that is, the electronic device prohibits the display of the popup window of the first application.
Correspondingly, the electronic equipment installs the second application, if the second application is provided with the desktop icon and is a third party application, after the installation of the application package of the second application is completed, the electronic equipment displays the popup window of the second application when the second application is self-started and the popup window is applied for display.
In the embodiment of the present application, the first application and the second application may be the same application or may be different applications, which is not limited in the embodiment of the present application.
For example, in connection with fig. 10, as shown in fig. 11, the process of the electronic device determining that an application (for example, the first application described in the embodiment of the present application) does not set a desktop icon may be implemented by S201-S204.
S201, the electronic equipment acquires desktop icon information of the application.
For example, after the application package of the application is installed, the electronic device may query desktop icon information of the application through a Package Management Service (PMS). For example, the electronic device invokes the following function through a management service (PMS) to query desktop icon information of the application. The desktop icon information may include, for example: the size, shape, color, transparency, etc. of each desktop icon of the application.
Intent intent=new Intent();
intent.setPackage(“com.test.myapp”);
intent.setAction(“android.intent.action.MAIN”);
intent.addCategory(“android.intent.category.LAUNCHER”);
List<ResolveInfo>list=
getPackageManager().queryIntentActivities(intent,PackageManager.MATCH_ALL)。
S202, the electronic device judges whether the desktop icon is set by the application according to the desktop icon information of the application.
For example, when the electronic device queries desktop icon information of the application through the PMS, list=0; or list=null, the electronic device determines that the application does not set the desktop icon.
In some embodiments, if the application does not set the desktop icon, the electronic device continues to execute S203; if the application is provided with the desktop icon, the electronic device displays the desktop icon of the application.
S203, the electronic device judges whether the application is a third party application.
The electronic device obtains a package name identifier of the application through the package name of the application, and when the package name identifier of the application is FLAG_DATA, the application is a third party application; when the packet name of an application is identified as flag_system, the application is a SYSTEM application.
S204, the electronic device judges whether the application needs to display desktop icons or not.
In some embodiments, if the application does not set the desktop icon, the application is a third party application, and the application needs to display the desktop icon, the electronic device manages the application. Such as closing a pop-up window function of the application; and further processing desktop icon display of the application to guide a user to uninstall the application.
It should be noted that some applications currently exist that do not need to display desktop icons on the desktop, but these applications do not subsequently display pop-up advertisements. Therefore, in the embodiment of the application, when the electronic device determines that the application does not set the desktop icon, the electronic device can judge whether the application needs to display the desktop icon or not, so as to prevent the electronic device from carrying out error control on the application.
In some embodiments, at the time of application installation, the electronic device may parse the application installation package through the PMS to obtain application information (e.g., applicationInfo) of the application. For example, the electronic device may call an API of the PMS: packageManager. GetApplationInfo (PACKAGENAME)) obtains application information for an application. The application information of the application at least comprises: application identification, application installation package source, application authority, application monitoring state, application display mode, application version information, installation path of application installation package, application characteristic information and the like.
For example, when the application information of the application meets a second preset condition (for example, the preset condition is described in the embodiment of the present application), the electronic device determines that the application needs to display a desktop icon; the electronic device then displays the desktop icon for the application. In some embodiments, the electronic device may display a preset desktop icon; and then, the electronic equipment responds to clicking operation on the preset desktop icon, and the electronic equipment displays an interface of the application (namely the first application in the embodiment of the application). In other embodiments, the electronic device may display a preset desktop icon; and then, the electronic equipment responds to the unloading operation on the preset desktop icon to unload the first application. By way of example, the uninstall operation may be, for example, an operation in which the user touches a preset desktop icon for a period of time greater than 3 seconds. For example, the electronic device displays an "uninstall" control in response to an uninstall operation of the user on the preset desktop icon, and uninstalls the first application in response to a click operation of the "uninstall" control by the user.
Wherein the second preset condition includes: the application is one or more of an abnormal application (such as an application in a preset list), an installation package of the application is not downloaded from a system, the application has the authority to access the electronic equipment (such as an application camera, a microphone, a call record, a short message, a telephone or a position, and the like), the application monitors the system state of the electronic equipment, an application locks a screen display or a floating window display, and the like, the version of the electronic equipment which is not compatible with the application, the application is installed through a target path, and the application is not in a feature library.
In particular, abnormal applications refer to applications that present a risk of displaying popup advertisements. Illustratively, the electronic device names an application package for which an application displaying a pop-up advertisement has been confirmed; or the application package name of the application marked by the user is stored in a database (or preset list). The electronic device may call mMaliciousApp an interface to determine if 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 side, and the cloud server side can also synchronize the application package name of the abnormal application in the database to other electronic devices.
The installation package of the application not being downloaded from the system refers to the application being downloaded through a third party application marketplace, browser, or file management. For example, the electronic device may call CALLINGPACKAGE the 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.
Applying permissions such as camera, microphone, call record, short message, telephone or position; for example, the electronic device may invoke an application info. Permission interface to determine whether the application has applied for these rights.
The application monitoring system state refers to the behavior that an application can have self-starting or associated starting by monitoring the system state change. For example, the electronic device may invoke queryIntentReccivers an interface to determine whether the application listens to the system state. In some embodiments, the system state change may include the following information:
<receiver android:name=“com.xxxxx.yyyyy.BootCompleteReceiver”>
<intene-filter>
< action android: name= "android. Intent. Action. QUICKBOOT_POWERON"/> -System restart
< Action android, name= "android. Blue. Adapter action"/> bluetooth connection state change
< Action android: name= "android. WIFI. Wifi_state_changed"/> WIFI connection STATE change
</intent-filter>
<intent-filter android:priority=“999”>
< Action android: name= "android. Net. Conn. Connection_changed"/> -change of network state occurs
< Action android: name= "android. Intent. Action. Boot_complete"/> -System Cold restart
< Action android: name= "android. Intent. Action. User_presence"/> -user unlock
< Action android: name= "android. Intent. Action. WALLPAPER_CHANNED"/> "wallpaper Change
</intent-filter>
<intene-filter>
< Action android: name= "android. Intent. Action. PACKAGE_ RESTARTED"/> "application restart
< Action android: name= "android. Intent. Action. PACKAGE_ REPLACED"/> "application upgrade
<data android:scheme=“package”/>
</intent-filter>
<intent-filter android:priority=“99999”>
< Action android: name= "android. Provider. Telephony. SECRET_CODE"/> -keyboard input password
<data android:scheme=“android_secret_code”/>
</intent-filter>
<intent-filter android:priority=“99999”>
< Action android: name= "android. Intent. Action. New_ OUTGOING _CALL"/>, user dials a CALL
</intent-filter>
<intene-filter>
< Action android: name= "android. Intent. Action. Media_ MOUNTED"/>, insert SD card
< Action android: name= "android. Intent. Action. Media_ UNMOUNTED"/> -extract SD card
<data android:scheme=“file”/>
</intent-filter>
</receiver>
The application applies for a lock screen display or a floating WINDOW display, for example, whether the application applies for a lock screen display (disable_ KEYGUARD) and a floating WINDOW display (system_alert_window) can be determined by the electronic device calling an application info. Permission interface.
The application incompatible current version can view the compatibility information of the application by calling an application info. TargetSdkVersion interface through the electronic device, for example.
Application installation via the target path refers to long application download of the application as a system, such as application installation via SD card, usb disk, debug bridge (android debug bridge, adb). For example, the electronic device may invoke the application info. FLAGs & FLAG_ EXTERNAL _ STORAG interface to query the installation path of the application.
The application is not in the feature library: the electronic device stores the system applications and the commonly used third party applications (i.e., applications with a user usage frequency greater than or equal to a preset frequency) in a feature library. When the application is not in the feature library, the application is described as a non-system application or a third party application which is not commonly used (namely, the use frequency of the user is less than the preset frequency); these applications typically risk displaying popup advertisements.
In some embodiments, when the application satisfies any one of the second preset conditions, the electronic device determines that the application needs to display the desktop icon. Subsequently, the electronic device displays the desktop icon of the application to guide the user to uninstall the application.
For example, the electronic device may sequentially determine, according to the priority order of the application information, whether the application information meets the second preset condition. For example, the priority order of the application information may be: the application identifier is the source of the application installation package, the application authority, the application monitoring state, the application display mode, the application version information, the installation path of the application installation package and the application characteristic information.
It should be noted that, in the embodiment of the present application, when the electronic device sequentially determines whether the application information meets the second preset condition 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 continuously determine other application information, which is beneficial to reducing power consumption of the device.
In the embodiment, after the application is installed, when the electronic device determines that the application is not provided with the desktop icon, the application is indicated to have the action of displaying the popup advertisement, and then the electronic device can close the popup function of the application, so that the display of the popup advertisement by the application is prevented, and the user experience is improved. Furthermore, the electronic device can display the desktop icon of the application to guide the user to uninstall the application, so that the problem of displaying popup advertisements by the application is fundamentally solved.
(2) An application (e.g., the first application described in embodiments of the present application) sets the desktop icon to transparent, unset the application name.
The electronic device installs the first application, if the desktop icon of the first application is transparent, and the first application is a third party application, after the installation of the application package of the first application is completed, the electronic device does not display the popup window of the first application when the first application is automatically started and the popup window is applied for display, that is, the electronic device prohibits the display of the popup window of the first application.
Correspondingly, the electronic equipment installs the second application, if the desktop icon of the second application is non-transparent and the second application is a third party application, after the installation of the application package of the second application is completed, the electronic equipment displays the popup window of the second application when the second application is self-started and the popup window is applied for display.
In the embodiment of the present application, the first application and the second application may be the same application or may be different applications, which is not limited in the embodiment of the present application.
In some embodiments, the electronic device may determine whether the desktop icon of the application is a transparent icon and whether to set the application name after the application is installed.
It should be noted that, the process of installing the application may be described with reference to fig. 10 and the above embodiments, which are not described here again. For example, as shown in fig. 10, the electronic device may determine whether the desktop icon of the application is a transparent icon and whether to set the application name when the application layer updates the desktop icon.
Illustratively, after the application is installed, the electronic device obtains desktop icon information for the application. Wherein the desktop icon information includes transparency information of one or more desktop icons of the application; the desktop icon information includes desktop icon transparency of the application or desktop icon non-transparency of the application. Wherein desktop icon transparency is used to indicate that the transparency of the application's desktop icon is less than or equal to a transparency threshold (e.g., may be zero); desktop icon non-transparency is used to indicate that the transparency of the desktop icon of the application is greater than a transparency threshold.
In the embodiment of the application, if the transparency information of one or more desktop icons of the application is transparent, at least one desktop icon of the application is a transparent icon.
In some embodiments, the desktop icon information further includes an icon type and an application name of the one or more desktop icons of the application.
In some embodiments, the electronic device may obtain desktop icon information for the application through an interface of the PMS. The electronic device may call the following functions through the PMS interface to obtain desktop icon information of the application.
PackageManager pm=this.getPackageManager();
ApplicationInfo info=pm.getApplicationInfo info(PackageName,0);
Resources rs=pm.getResourcesForActivity(new ComponentName();
Drawable loadIcon=pm.getResourcesForApplication().getDrawable(info.icon);
For example, when the application name is empty in desktop icon information of the application acquired by the electronic device, the electronic device determines that the application has not set the application name.
In some embodiments, desktop icon types (e.g., loadIcon) of the application include a first icon type, a second icon type, and a third icon type. Wherein, the display formats of 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, for example; the second icon type may be GradientDrawable, for example; the third icon type may be BitmapDrawable, for example.
For example, for different icon types of an application, the electronic device obtains transparency information corresponding to the different icon types, and determines whether a desktop icon of the application is a transparent icon according to the transparency information.
As shown in fig. 12, the process of the electronic device determining whether the desktop icon of the application is a transparent icon may be implemented by S301-S304, for example.
S301, the electronic equipment acquires the icon type of the desktop icon of the application.
The icon types of the desktop icons may include, for example, a first icon type, a second icon type, and a third icon type.
On the basis, the electronic equipment can sequentially acquire transparency information of different icon types according to the priority order of the icon types, and judge whether the desktop icons of the application are transparent icons.
The priority order of the icon types can be, for example, that the first icon type > the second icon type > the third icon type.
S302, the electronic device judges whether the icon type is the first icon type.
For example, if the icon type is the first icon type, the electronic device obtains transparency information corresponding to the first icon type. The transparency information corresponding to the first icon type comprises foreground transparency and background transparency of the desktop icon.
For example, the electronic device may call the AdaptivelconDrawable ad = (AdaptivelconDrawable) loadIcon interface of the PMS to obtain transparency information corresponding to the first icon type. The transparency information corresponding to the first icon type is as follows:
ad.getbackgroup (). GetAlpha () (foreground transparency)
Ad.getfortuground (). GetAlpha () (background transparency)
For example, if the foreground transparency and the background transparency are both 0 in the transparency information corresponding to the first icon type, the electronic device determines that the desktop icon is a transparent icon. Correspondingly, if the foreground transparency or the 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.
Note that if the electronic device determines that the icon type is not the first icon type, the electronic device executes S303.
S303, the electronic device judges whether the icon type is the second icon type.
For example, if the icon type is the second icon type, the electronic device obtains transparency information corresponding to the second icon type. 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 to a transparency (Alpha) of the desktop icon.
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:
int color=gd.getcolor (). GetDefaultColor (); (icon color)
Int alpha= (color &0xff 000000) > >24; (icon transparency)
For example, if the transparency information corresponding to the second icon type is 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 the transparency information corresponding to the second icon type is the transparency information, 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.
Note that, if the electronic device determines that the icon type is not the second icon type, the electronic device executes S304.
S304, the electronic device judges whether the icon type is a third icon type.
For example, if the icon type is the third icon type, the electronic device obtains transparency information corresponding to the third icon type. The transparency information corresponding to the third icon type is transparency of the desktop icon.
For example, the electronic device may call the BitmapDrawable bd = (BitmapDrawable) loadIcon interface of the PMS to obtain transparency information corresponding to the third icon type. The transparency information corresponding to the third icon type may be, for example: loadicon.
For example, if the transparency information corresponding to the third icon type is the transparency information of the desktop icon, when the transparency of the desktop icon is 0, the electronic device determines that the desktop icon is the transparent icon. Correspondingly, if the transparency of the desktop icon is not 0 in the transparency information corresponding to the third icon type, the electronic device determines that the desktop icon is a non-transparent icon.
In the embodiment, after the application is installed, when the electronic device determines that the desktop icon of the application is the transparent icon, the application is indicated to have the action of displaying the popup advertisement, and then the electronic device can close the popup function of the application, so that the display of the popup advertisement by the application is prevented, and the user experience is improved. Furthermore, the electronic device can display the desktop icon of the application (for example, the electronic device renders the transparent icon of the first application and displays the rendered transparent icon of the first application), so as to guide the user to uninstall the application, and fundamentally solve the problem of displaying the popup advertisement by the application.
It should be noted that, the transparency of the transparent icon of the first application after rendering is greater than the transparency threshold (for example, 0). The transparency of the transparent icon of the first application as rendered is greater than 0.
(3) An application (e.g., a target application as described in embodiments of the present application) disables desktop icons during execution.
It should be noted that, if the application name and desktop icon of the application are set by the application, and if the following filter (filter) is set in the corresponding activity in the application package of the application, the application may generate the corresponding desktop icon (or may generate multiple desktop icons) on the desktop.
<intene-filter>
<action android:name=“android.intent.action.MAIN”/>
<category android:name=“android.intent.category.LAUNCHER”/>
</intent-filter>
At present, since Android provides a corresponding API, the electronic device can change desktop icons of applications through the API provided by Android. For example, the electronic device may change the state of the desktop icon by the application invoking the setComponentEnabledSetting interface of the PMS.
Illustratively, the electronic device may set the activity state of the desktop icon of the application to: component_enable_state_disable (unavailable STATE); or the electronic device may also set the activity state of the desktop icon of the application to: component_enable_state_enable (available STATE).
It should be noted that, when the electronic device sets the desktop icon of the application to the unavailable state, that is, the electronic device disables the desktop icon of the application, the desktop of the electronic device will not display the desktop icon of the application.
Normally, the normal application can use the corresponding desktop icon as the display of the activity according to different festival activities by switching the states of the desktop icons. In some embodiments, in order to meet the requirements of different holiday activities, normal applications may set two or more desktop icons, and when the applications switch the states of the desktop icons, the applications switch the desktop icons in a manner of enabling and disabling the desktop icons. That is, when the normal application needs to switch desktop icons, the state of the new desktop icon is set to be the available state (i.e. the new desktop icon is started); the normal application then sets the state of the old desktop icon to an unavailable state (i.e., disables the old desktop icon). Thus, the desktop of the electronic device always displays the desktop icon of the application, and the situation that the user cannot see the desktop icon of the application on the desktop cannot exist.
However, the abnormal application can disable the desktop icon first, namely, the desktop icon of the application is set to be in an unavailable state; then, the abnormal application re-enables the desktop icon, i.e. the desktop icon of the application is set to the available state again. Thus, when the abnormal application is only provided with one desktop icon, after the abnormal application disables the desktop icon, the desktop of the electronic device does not display the desktop icon of the abnormal application, and the user cannot see the desktop icon of the application on the desktop.
Based on this, in the embodiment of the present application, with respect to the behavior of disabling the desktop icon for the abnormal application, the electronic device may solve the problem that the desktop does not display the desktop icon of the abnormal application after the abnormal application disables the desktop icon. For example, as shown in fig. 13, the electronic device may be implemented through S401-S407.
S401, when the target application calls an API corresponding to the active component, the electronic device obtains the active state of a first desktop icon corresponding to the target application.
The electronic device obtains an activity state of a first desktop icon corresponding to the target application. It should be noted that, when the target application calls the API corresponding to the active component (i.e. activity), the target application carries the icon name of the first desktop icon, so when the target application calls the API corresponding to the active component, the electronic device may obtain, through the icon name of the first desktop icon carried by the electronic device, the active state of the first desktop icon corresponding to the target application.
In some embodiments, the electronic device may register with the target application for listening to detect if the target application has an action to invoke the active component. For example, the electronic device may register for listening with the target application when first powered on; or the electronic device registers monitoring with the target application at each power-on.
In some embodiments, after the electronic device registers for interception with the target application, the electronic device may intercept the action of the target application calling the API in real time. When the electronic equipment monitors the action of calling the API by the target application, the electronic equipment can call the following function to acquire the activity state of the first desktop icon corresponding to the target application.
PackageManager p=getPackageManager();
ComponentName componentName=new ComponentName(this,com.test.app.MainActivity.class);
p.setComponentEnabledSetting(componentName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED,PackageManager.DONT_KILL_APP).
S402, the electronic device judges whether the active state of the first desktop icon corresponding to the target application is an unavailable state.
For example, if the active STATE of the first desktop icon corresponding to the target application is component_enable_state_disable, the electronic device determines that the STATE of the first desktop icon corresponding to the target application is an unavailable STATE, that is, the electronic device determines that the target application disables (i.e., disables) the first desktop icon.
S403, the electronic equipment acquires desktop icon information of the target application.
Wherein, desktop icon information includes: among all desktop icons of the target application, each desktop icon has an icon name, size, shape, color, activity status, transparency, and the like.
S404, the electronic device judges whether a desktop icon which is not disabled exists after the target application disables the first desktop icon.
In some embodiments, if the number of desktop icons that are not disabled by the target application is greater than a preset number threshold (e.g., 1), the electronic device determines that there are other desktop icons that are not disabled after the target application disables the first desktop icon.
In other embodiments, if the number of desktop icons that are not disabled by the target application is equal to the preset number threshold (e.g., 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. Accordingly, if the icon name of the desktop icon which is not disabled by the target application is the same as the icon name of the first desktop icon, after the electronic device determines that the target application disables the first desktop icon, no other desktop icons which are not disabled exist.
In an exemplary embodiment, 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 the other desktop icons that are not disabled on the desktop (e.g., displays the second desktop icon). Wherein. The target application disabling the first desktop icon refers to: the target application sets the activity state corresponding to the first desktop icon to be: component_enable_state_disable (DISABLED STATE). After the electronic device judges that the target application disables the first desktop icon, the electronic device records disabling information of the target application disables the first desktop icon under the condition that other desktop icons which are not disabled are not present. Wherein the disabling information includes: icon name of the first desktop icon and activity status (e.g., component_enable_state_disable) of the first desktop icon.
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 (for example, 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.
Or after the electronic equipment records the forbidden information of the target application forbidden first desktop icon, if the target application does not call the API corresponding to the active component within the first preset duration, the electronic equipment forbids to display the popup window of the target application; further, the electronic device displays a 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 duration, the electronic device executes S405.
S405, the electronic device acquires the activity state of a third desktop icon corresponding to the target application.
The third desktop icon is a desktop icon forbidden by the electronic device in a history period.
It should be noted that, the foregoing embodiments may be referred to for an illustration of the electronic device obtaining the activity state (i.e., the activity state) of the third desktop icon corresponding to the target application, which is not described herein in detail.
S406, the electronic device judges whether the active state of the third desktop icon corresponding to the target application is an available state.
For example, if the activity STATE of the third desktop icon corresponding to the target application is component_enable_state_enable, the electronic device determines that the activity STATE of the third desktop icon corresponding to the target application is an available STATE.
S407, the electronic equipment inquires the forbidden information and judges whether the target application forbidden first desktop icon exists or not.
For example, if the target application disables the first desktop icon, the electronic device first enables the third desktop icon and then disables the first desktop icon. If the target application disabled first desktop icon does not exist, the electronic device directly enables the third desktop icon.
Wherein after the electronic device disables the first desktop icon, the electronic device deletes the previously recorded disable information.
It should be noted that, the enabling of the third desktop icon by the electronic device refers to: the electronic device sets an activity STATE of the third desktop icon to a component_enable_state_enable (available STATE) through the target application, and displays the third desktop icon on the desktop.
In the embodiment, in the process of running the target application, when the electronic device detects that the target application disables the first desktop icon, the electronic device firstly records disabling information of the target application disables the first desktop icon and starts a timer to count; when the time length of the timer is longer than or equal to the preset time length and the target application does not start the third desktop icon, the electronic equipment forcedly displays the first desktop icon of the target application on the desktop; when the duration of the timer is smaller than the preset duration and the third desktop icon is enabled, the electronic device enables the third desktop icon first and then disables the first desktop icon, so that 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.
An embodiment of the application provides an electronic device, which may include a display screen, a memory, and one or more processors; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the functions or steps performed by the handset in the above-described embodiments. The structure of the electronic device may refer to the structure of the electronic device 100 shown in fig. 6.
Embodiments of the present application also provide a system on a chip, as shown in FIG. 14, the system on a chip 1800 including at least one processor 1801 and at least one interface circuit 1802. The processor 1801 may be the processor 110 shown in fig. 6 in the above embodiment. Interface circuit 1802 may be, for example, an interface circuit between processor 110 and an external memory; or as an interface circuit between the processor 110 and the internal memory 121.
The processor 1801 and interface circuit 1802 described above may be interconnected by wires. For example, interface circuit 1802 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 1802 may be used to send signals to other devices (e.g., processor 1801). The interface circuit 1802 may, for example, read instructions stored in a memory and send the instructions to the processor 1801. The instructions, when executed by the processor 1801, may cause the electronic device to perform the steps performed by the handset in the above embodiments. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
Embodiments of the present application also provide a computer readable storage medium, where the computer readable storage medium includes computer instructions, which when executed on an electronic device, cause the electronic device to perform the functions or steps performed by the electronic device in the above-described method embodiments.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps performed by the electronic device in the method embodiments described above.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method for processing a pop-up advertisement, comprising:
The method comprises the steps that the electronic equipment installs a first application, and after the installation of an application program package of the first application is completed, the first application is automatically started and a popup window is applied for display; the first application is a third party application;
Under the condition that the desktop icon is not set by the first application and the desktop icon needs to be displayed, the electronic equipment does not display a popup window of the first application; or under the condition that the desktop icon of the first application is transparent, the electronic equipment does not display a popup window of the first application;
the electronic equipment installs a second application, wherein the second application is provided with 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 program package of the second application is installed, the second application is started automatically and applies for displaying a popup window;
and the electronic equipment displays the popup window of the second application.
2. The method of claim 1, wherein the first application does not set a desktop icon; the method further comprises the steps of:
After the application program package of the first application is installed, the electronic equipment displays a preset desktop icon; wherein the preset desktop icon is non-transparent;
and responding to clicking operation on the preset desktop icon, and displaying an interface of the first application by the electronic equipment.
3. The method of claim 1, wherein the desktop icon of the first application is transparent; the method further comprises the steps of:
After the application package of the first application is installed, rendering a desktop icon of the first application by the electronic equipment, and displaying the rendered desktop icon of the first application;
wherein the rendered desktop icon of the first application is non-transparent.
4. A method according to claim 3, wherein the first application has no application name set; the method further comprises the steps of:
The electronic equipment takes the package name of the first application as the application name of the first application after rendering, and displays the application name.
5. The method of claim 1 or 2, wherein the first application is not provided with a desktop icon; the electronic device does not display a popup window of the first application, including:
if the first application meets the preset condition, the electronic equipment does not display a popup window of the first application;
The preset conditions comprise that the first application is in a preset list and the first application is not in a feature library; the preset list comprises package names of applications with abnormal behaviors in a history period, and the abnormal behaviors are used for triggering the electronic equipment to display a popup window; the feature library comprises package names of system applications and package names of applications with the use frequency of users being greater than or equal to a preset frequency.
6. The method of claim 5, wherein the preset conditions further comprise: the application package of the first application is not downloaded from a system, the first application has permission to access the electronic equipment, the first application monitors the system state of the electronic equipment, the first application is displayed on a screen locking interface of the electronic equipment, the first application is displayed in a floating window mode, the version of the first application is not compatible with the version of the electronic equipment, and the application package of the first application is installed through a target path.
7. The method of any of claims 1-6, wherein when the electronic device installs the first application, the method further comprises:
The electronic equipment acquires desktop icon information of the first application; the desktop icon information is used for indicating that the desktop icon of the first application is transparent; or the desktop icon information is used for indicating that the desktop icon of the first application is non-transparent; or the desktop icon information is used for indicating that the first application does not set a desktop icon.
8. The method of claim 7, wherein the desktop icon information is further for indicating an icon type of a desktop icon of the first application; the electronic device does not display a popup window of the first application, including:
If the electronic equipment determines that the desktop icon of the first application is transparent according to the icon type of the desktop icon of the first application, the electronic equipment does not display a popup window of the first application; and the transparency information of the desktop icons of the first application corresponding to different icon types is different.
9. The method of claim 7 or 8, wherein the electronic device determining that the desktop icon of the first application is transparent according to the icon type of the desktop icon of the first application comprises:
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 the background transparency of the desktop icon of the first application; if the foreground transparency and the background transparency are both smaller than or equal to a transparency threshold, the electronic device determines that the desktop icon of the first application is transparent; or alternatively
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 the icon transparency of the desktop icon of the first application; if the transparency of the icon converted by the icon color is smaller than or equal to the transparency threshold, the electronic equipment determines that the desktop icon of the first application is transparent; or alternatively
The icon type of the desktop icon of the first application is a third icon type, and the third icon type corresponds to the icon transparency of the desktop icon of the first application; and if the transparency of the icon is smaller than or equal to the transparency threshold, the electronic equipment determines that the desktop icon of the first application is transparent.
10. The method according to any one of claims 1-9, further comprising:
and after the application program package of the first application is installed, the electronic equipment closes the popup window function of the first application.
11. The method according to claim 2, wherein the method further comprises:
And responding to the unloading operation of the user on the preset desktop icon, and unloading the first application.
12. An electronic device, 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 for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method of any of claims 1-11.
13. A computer-readable storage medium comprising computer instructions; the computer instructions, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-11.
CN202311494569.3A 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium Pending CN117931212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311494569.3A CN117931212A (en) 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211020738.5A CN116048544B (en) 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium
CN202311494569.3A CN117931212A (en) 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202211020738.5A Division CN116048544B (en) 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117931212A true CN117931212A (en) 2024-04-26

Family

ID=86112238

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202311494569.3A Pending CN117931212A (en) 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium
CN202211020738.5A Active CN116048544B (en) 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202211020738.5A Active CN116048544B (en) 2022-08-24 2022-08-24 Processing method of popup advertisement, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (2) CN117931212A (en)

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162648A (en) * 2015-04-17 2016-11-23 上海墨贝网络科技有限公司 A kind of behavioral value method, server and system applying installation kit
CN106341373B (en) * 2015-07-09 2019-07-23 安一恒通(北京)科技有限公司 Method and apparatus for detecting and preventing to click maliciously advertisement link
US9996254B2 (en) * 2015-09-23 2018-06-12 Samsung Electronics Co., Ltd. Hidden application icons
CN105117643B (en) * 2015-09-23 2018-02-23 北京金山安全软件有限公司 Method and device for processing popup
CN106776610B (en) * 2015-11-19 2020-04-17 珠海豹趣科技有限公司 Advertisement popup intercepting method and device
CN106874757A (en) * 2015-12-10 2017-06-20 北京奇虎科技有限公司 The discharging method of Malware, the uninstalling system of Malware and terminal
CN106126562B (en) * 2016-06-15 2018-09-04 广东欧珀移动通信有限公司 A kind of pop-up hold-up interception method and terminal
CN106126019B (en) * 2016-06-16 2020-04-24 维沃移动通信有限公司 Display method of application program icon and mobile terminal
CN108052330A (en) * 2017-10-24 2018-05-18 深圳天珑无线科技有限公司 The method of terminal and its unloading application program, storage device
CN108920243A (en) * 2018-06-29 2018-11-30 北京奇虎科技有限公司 Control the method and device of pop-up
CN109189497A (en) * 2018-08-06 2019-01-11 北京奇虎科技有限公司 A kind of method, apparatus and computer equipment for clean room software
CN111753192A (en) * 2020-06-04 2020-10-09 珠海豹趣科技有限公司 Advertisement popup intercepting method and device, electronic equipment and storage medium
CN112307466A (en) * 2020-10-30 2021-02-02 珠海市魅族科技有限公司 Application program detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116048544B (en) 2023-11-07
CN116048544A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US11947974B2 (en) Application start method and electronic device
CN111191213B (en) Method for deleting security service and electronic equipment
CN112988213B (en) Program data updating method, electronic equipment and computer storage medium
WO2021027630A1 (en) Patching method, related apparatus, and system
CN116360725B (en) Display interaction system, display method and device
CN113568634B (en) Processing method and processing device for application optimization
US20240095000A1 (en) Plug-In Installation Method, Apparatus, and Storage Medium
WO2022253158A1 (en) User privacy protection method and apparatus
CN112860445B (en) Method and terminal for sharing data between fast application and native application
CN116483734B (en) Pile inserting method and system based on compiler and related electronic equipment
CN113656089B (en) Class verification method and device in application program
CN115309431B (en) Parameter updating method, readable medium and electronic equipment
CN116048545B (en) Processing method of popup advertisement, electronic equipment and readable storage medium
CN116048544B (en) Processing method of popup advertisement, electronic equipment and readable storage medium
CN113467821A (en) Application program repairing method, device, equipment and readable storage medium
CN115278642A (en) Method for acquiring information of SIM card, electronic equipment and terminal equipment
CN117009023B (en) Method for displaying notification information and related device
CN116321106A (en) Method and device for updating system data of user identity recognition module card
CN116048685B (en) Display method of magazine lock screen, graphical interface and electronic equipment
CN116048629B (en) System service switching method, control device, electronic equipment and storage medium
CN113867999B (en) Application exception handling method, terminal and computer readable storage medium
CN116048594B (en) Software upgrading method and related device
CN116048325A (en) Processing method for abnormal behavior of application, electronic equipment and storage medium
WO2023142935A1 (en) Application component management method and related device
CN117707562A (en) Parameter updating method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination