CN111610849B - Method and equipment for preventing association starting between applications - Google Patents

Method and equipment for preventing association starting between applications Download PDF

Info

Publication number
CN111610849B
CN111610849B CN202010292086.5A CN202010292086A CN111610849B CN 111610849 B CN111610849 B CN 111610849B CN 202010292086 A CN202010292086 A CN 202010292086A CN 111610849 B CN111610849 B CN 111610849B
Authority
CN
China
Prior art keywords
application
starting
started
foreground
identification information
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.)
Active
Application number
CN202010292086.5A
Other languages
Chinese (zh)
Other versions
CN111610849A (en
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.)
Shanghai Zhuoyi Technology Co Ltd
Original Assignee
Shanghai Zhuoyi Technology 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 Shanghai Zhuoyi Technology Co Ltd filed Critical Shanghai Zhuoyi Technology Co Ltd
Priority to CN202010292086.5A priority Critical patent/CN111610849B/en
Publication of CN111610849A publication Critical patent/CN111610849A/en
Application granted granted Critical
Publication of CN111610849B publication Critical patent/CN111610849B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application aims to provide a method and equipment for preventing association between applications from starting. Compared with the prior art, the method and the device have the advantages that whether the first application is started in an associated starting mode or not is detected, wherein the first application has at least one second application associated with the first application, the second application can be started in an associated mode through the first application, when the first application is started in the associated starting mode, whether the identification information of the first application and the identification information of the second application are the same or not is detected, and when the identification information of the first application and the identification information of the second application are different, whether the starting of at least one of the first application or the second application is prevented or not is determined based on the activity states of the first application and the second application. By the method, the related application can be prevented from being started, so that background power consumption is reduced, and user experience is improved.

Description

Method and equipment for preventing correlation starting between applications
Technical Field
The application relates to the technical field of computers, in particular to a technology for preventing correlation starting between applications.
Background
With the increasing market application types, different applications can be started in a correlated manner, so that some applications are active in the background, power consumption problems can be caused, the performance of running applications in the foreground can be influenced, and user experience is poor.
Disclosure of Invention
The application aims to provide a method and equipment for preventing association between applications from starting.
According to an aspect of the present application, there is provided a method of preventing an association between applications from starting, wherein the method includes:
detecting whether a first application is started in an associated starting mode or not, wherein the first application has at least one second application associated with the first application, and the second application can be started in an associated mode through the first application;
when the first application is started in an associated starting mode, detecting whether the identification information of the first application and the second application is the same;
when the identification information of the first application and the second application are different, determining whether to prevent the starting of at least any one of the first application or the second application based on the activity states of the first application and the second application.
Further, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
and when the active states of the first application and the second application are not in the foreground, preventing the starting of at least one of the first application or the second application.
Further, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
and when the active state of the first application is not in the foreground, the active state of the second application is in the foreground, and the starting of the second application is not prevented.
Further, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
and when the activity state of the first application is in the foreground, the activity state of the second application is in a background cache process list, and the starting of the second application is not prevented.
Further, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
and when the active state of the first application is in the foreground and the active state of the second application is not in a background cache process list, preventing the second application from being started.
Further, the association initiating manner includes at least any one of the following: services; ContentProvider; BroadCast.
According to another aspect of the present application, there is also provided a computer readable medium having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the operations of the method as described above.
According to still another aspect of the present application, there is also provided an apparatus for preventing an association between applications from starting, wherein the apparatus includes:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform operations of the method as previously described.
Compared with the prior art, the method and the device have the advantages that whether the first application is started in an associated starting mode or not is detected, at least one second application associated with the first application exists in the first application, the second application can be started in an associated mode through the first application, when the first application is started in the associated starting mode, whether the identification information of the first application and the identification information of the second application are the same or not is detected, and when the identification information of the first application and the identification information of the second application are different, whether the starting of at least one of the first application or the second application is prevented or not is determined based on the activity states of the first application and the second application. By the method, the related application can be prevented from being started, so that background power consumption is reduced, and user experience is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 illustrates a flow diagram of a method for preventing the initiation of an association between applications, in accordance with an aspect of the subject application;
fig. 2 shows a flow diagram of a method for preventing an association between applications from starting according to a preferred embodiment of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
To further illustrate the technical means and effects adopted by the present application, the following description clearly and completely describes the technical solution of the present application with reference to the accompanying drawings and preferred embodiments.
Fig. 1 illustrates a method for preventing an association between applications from starting according to an aspect of the present application, wherein the method includes:
s11, detecting whether a first application is started in an associated starting mode or not, wherein the first application has at least one second application associated with the first application, and the second application can be started in an associated mode through the first application;
s12, when the first application is started in a correlated starting mode, detecting whether the identification information of the first application and the second application is the same;
s13, when the identification information of the first application and the second application are different, determining whether to block the starting of at least any one of the first application or the second application based on the active states of the first application and the second application.
In the present application, the method is performed by a device 1, where the device 1 is a user device that includes an application capable of installing an associated application, for example, the user device includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with a user through a touch panel, for example, a smart phone, a tablet computer, and the like, and the mobile electronic product may employ any operating system, such as an android operating system, an iOS operating system, and the like.
In this embodiment, in step S11, device 1 detects whether a first application is launched by an associated launch method, where the first application has at least one second application associated with the first application, and the second application is launched by the first application in an associated manner.
Some applications typically installed on the user device will be launched in association with other applications, for example, when a first application is launched, a second application will be launched either simultaneously or over a preset time, the second application may be launched directly to the foreground, or may be launched in the background. For example, the second application may be started in the background, and the user is unaware of the start of the second application, but for the user equipment, the second application started in the background may occupy resources of the user equipment, causing a power consumption problem.
Preferably, the association initiating means includes, but is not limited to, at least any one of the following: services; ContentProvider; BroadCast. The manner in which the association is initiated is merely an example, and other existing or future manners that may occur, such as those that apply to the present application, are also intended to be encompassed by the scope of the present application.
Specifically, when the device 1 detects that the first application is started, it may simultaneously detect whether the first application is associated and started in the above-mentioned associated and started manner, and determine one or more second applications that are associated and started with the first application.
In this embodiment, in step S12, when the first application is started by the associated starting method, the device 1 detects whether the identification information of the first application and the identification information of the second application are the same. Here, the identification information is used as a unique identification of the application in the system. For example, when it is detected that the identification information of the first application applied to the second application is the same, it indicates that the first application is self-started and does not belong to the associated start in the actual sense.
Continuing in this embodiment, in step S13, when the identification information of the first application and the second application are different, the device 1 determines whether to prevent the start of at least either one of the first application or the second application based on the activity states of the first application and the second application.
Here, the active state includes, but is not limited to, whether the application is in the foreground, in the background, or in a background cache process list, etc. Here, the active state is merely an example. In particular, the device 1 may detect the active state of an application on the device 1 at all times or at preset time intervals.
Specifically, when the identification information of the first application is different from that of the second application, that is, there is a case of associated start, the power consumption of the device 1 may be reduced by preventing start of at least any one of the first application or the second application, so as to improve the operating efficiency of the device 1.
Preferably, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
when the active states of the first application and the second application are not in the foreground, preventing the starting of at least any one of the first application or the second application. In this embodiment, when the active state of the first application to the second application is not in the foreground, it indicates that the user is not using the first application or the second application, and therefore, the start of at least any one of the first application or the second application may be prevented, where the prevention of the start of the application may include closing at least any one of the first application or the second application, and preferably, the start of the second application may be prevented.
Preferably, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
and when the active state of the first application is not in the foreground, the active state of the second application is in the foreground, and the starting of the second application is not prevented. In this embodiment, the first application is not in the foreground, while the second application is in the foreground, indicating that the user is using the second application, and therefore, in this case, the starting of the second application is not prevented, i.e. the second application is not closed, and for the first application, the starting state may be maintained all the time or the first application may be closed when the first application is in the active state that is not in the foreground for a certain period of time.
Preferably, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
and when the activity state of the first application is in the foreground, the activity state of the second application is in a background cache process list, and the starting of the second application is not prevented.
In this embodiment, if the second application is in the background cache process list and the first application is in the foreground, it indicates that the association between the second application and the first application in the foreground may be relatively large, and therefore, the starting of the second application is not prevented, that is, the second application is not closed.
Preferably, wherein the determining whether to block the launching of the first application or the second application based on the activity states of the first application and the second application comprises:
and when the active state of the first application is in the foreground and the active state of the second application is not in a background cache process list, preventing the second application from being started.
In this embodiment, if the active state of the first application is in the foreground, if the active state of the second application is not in the background cache process list, which indicates that the association degree between the start of the first application and the second application is not large, the start of the second application is prevented, so as to reduce power consumption.
Fig. 2 shows a flow diagram of a method for preventing an association between applications from starting according to a preferred embodiment of the present application.
In the flowchart, the a process represents a process of a first application, and the B process represents a process of a second application, where the package name represents identification information of the first application or the second application. Wherein, preventing the current start refers to preventing the start of B.
Firstly, when the A process is started in a related starting mode such as Services, contentProvider or BroadCast, the starting mode is preset to start the B process in a related mode through the A process, so that when the packet names of the A and B are the same, the starting is not prevented.
When the names of the A and B packets are different, the detection judges whether to prevent the starting by detecting the activity states of the A and B packets. For example, when a is not in the foreground and B is not in the foreground, the current start is prevented, that is, the start of B is prevented; when A is not in the foreground and B is in the foreground, the starting of the current time is not stopped, namely the starting of the B is not stopped; when A is in foreground and B is in background buffer process list, the starting is not prevented; and when the A is in the foreground and the B is not in the background cache process list, the starting is prevented.
Compared with the prior art, the method and the device have the advantages that whether the first application is started in an associated starting mode or not is detected, wherein the first application has at least one second application associated with the first application, the second application can be started in an associated mode through the first application, when the first application is started in the associated starting mode, whether the identification information of the first application and the identification information of the second application are the same or not is detected, and when the identification information of the first application and the identification information of the second application are different, whether the starting of at least one of the first application or the second application is prevented or not is determined based on the activity states of the first application and the second application. By the method, the related application can be prevented from being started, so that background power consumption is reduced, and user experience is improved.
Furthermore, the embodiment of the present application also provides a computer readable medium, on which computer readable instructions are stored, and the computer readable instructions can be executed by a processor to implement the foregoing method.
The embodiment of the present application further provides an apparatus for preventing association between applications from starting, where the apparatus includes:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the foregoing method.
For example, the computer readable instructions, when executed, cause the one or more processors to: detecting whether a first application is started in an associated starting mode or not, wherein the first application has at least one second application associated with the first application, and the second application can be started in an associated mode through the first application; when the first application is started in an associated starting mode, detecting whether the identification information of the first application and the second application is the same; when the identification information of the first application and the second application are different, determining whether to prevent the starting of at least any one of the first application or the second application based on the activity states of the first application and the second application.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (4)

1. A method of preventing an association between applications from starting, wherein the method comprises:
detecting whether a first application is started in an associated starting mode or not, wherein the first application has at least one second application associated with the first application, and the second application can be started in an associated mode through the first application;
when the first application is started in an associated starting mode, detecting whether the identification information of the first application and the identification information of the second application are the same;
when the identification information of the first application and the second application are different, determining whether to prevent starting of at least any one of the first application or the second application based on the activity states of the first application and the second application, wherein the activity states comprise whether the application is in the foreground, whether the application is in the background or whether the application is in a background cache process list;
wherein the determining whether to block launching of the first application or the second application based on the activity states of the first application and the second application comprises:
when the active states of the first application and the second application are not in the foreground, preventing the starting of at least one of the first application or the second application; alternatively, the first and second liquid crystal display panels may be,
when the active state of the first application is not in the foreground, the active state of the second application is in the foreground, and the starting of the second application is not prevented; alternatively, the first and second electrodes may be,
when the active state of the first application is in the foreground, the active state of the second application is in a background cache process list, and the second application is not prevented from being started; alternatively, the first and second electrodes may be,
and when the active state of the first application is in the foreground and the active state of the second application is not in a background cache process list, preventing the second application from being started.
2. The method of claim 1, wherein the association initiation means comprises at least any one of:
Services;
ContentProvider;
BroadCast。
3. a computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 1 to 2.
4. An apparatus for preventing an association between applications from starting, wherein the apparatus comprises:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the method of any of claims 1-2.
CN202010292086.5A 2020-04-14 2020-04-14 Method and equipment for preventing association starting between applications Active CN111610849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010292086.5A CN111610849B (en) 2020-04-14 2020-04-14 Method and equipment for preventing association starting between applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010292086.5A CN111610849B (en) 2020-04-14 2020-04-14 Method and equipment for preventing association starting between applications

Publications (2)

Publication Number Publication Date
CN111610849A CN111610849A (en) 2020-09-01
CN111610849B true CN111610849B (en) 2022-06-03

Family

ID=72199678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010292086.5A Active CN111610849B (en) 2020-04-14 2020-04-14 Method and equipment for preventing association starting between applications

Country Status (1)

Country Link
CN (1) CN111610849B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603872A (en) * 2017-01-23 2017-04-26 努比亚技术有限公司 Method for starting application according to association strategy, device and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022103A (en) * 2016-05-18 2016-10-12 广东欧珀移动通信有限公司 Method and apparatus for preventing application from being started through pushing platform component
CN107766128B (en) * 2016-08-17 2021-01-29 华为技术有限公司 Method and device for starting application
CN107861773A (en) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 Associate management-control method, device, storage medium and the mobile terminal started
CN109167882A (en) * 2018-09-27 2019-01-08 努比亚技术有限公司 A kind of association starting control method, terminal and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603872A (en) * 2017-01-23 2017-04-26 努比亚技术有限公司 Method for starting application according to association strategy, device and mobile terminal

Also Published As

Publication number Publication date
CN111610849A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
US8671455B1 (en) Systems and methods for detecting unintentional information disclosure
US11422827B2 (en) Method, device, apparatus for identifying graphics card of GPU server and medium
CN110290557B (en) Method and equipment for loading page tags in application
CN111294459B (en) Method, device and storage medium for detecting privacy of android mobile phone
CN110321189B (en) Method and equipment for presenting hosted program in hosted program
WO2021190113A1 (en) Method and device for providing presentation information
WO2021120612A1 (en) Method and device for presenting message notification
CN111277696A (en) Method and device for detecting privacy of apple mobile phone
US20150161388A1 (en) Memory attack detection
CN110515692B (en) Method and equipment for starting reading application
WO2022142620A1 (en) Method and device for recognizing qr code
CN111314445A (en) Method and device for controlling recycling machine to open door by mobile phone
CN111610849B (en) Method and equipment for preventing association starting between applications
CN116126581B (en) Memory fault processing method, device, system, equipment and storage medium
CN114356591A (en) Inter-process communication method and device, Internet of things operating system and Internet of things equipment
CN111342513A (en) Charging method and device based on temperature monitoring
CN108089904B (en) Display page expansion method and device
CN107656702B (en) Method and system for accelerating hard disk read-write and electronic equipment
CN111506233B (en) Method and equipment for providing book information in reading application
CN111949563A (en) Method and apparatus for memory defragmentation
CN110336913B (en) Method, equipment and computer readable medium for presenting call video in telephone call process
CN110321205B (en) Method and equipment for managing hosted program in hosted program
CN114666652A (en) Method, device, medium and program product for playing video
CN113157162A (en) Method, apparatus, medium and program product for revoking session messages
CN110958315A (en) Method and equipment for presenting message notification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200901

Assignee: SHANGHAI ZHUO YOU NETWORK TECHNOLOGY Co.,Ltd.

Assignor: SHANGHAI DROI TECHNOLOGY Co.,Ltd.

Contract record no.: X2022310000090

Denomination of invention: A method and device for preventing association startup between applications

Granted publication date: 20220603

License type: Common License

Record date: 20220829

EE01 Entry into force of recordation of patent licensing contract