CN112181126A - Navigation application program detection method and device, computer equipment and storage medium - Google Patents

Navigation application program detection method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112181126A
CN112181126A CN202011037450.XA CN202011037450A CN112181126A CN 112181126 A CN112181126 A CN 112181126A CN 202011037450 A CN202011037450 A CN 202011037450A CN 112181126 A CN112181126 A CN 112181126A
Authority
CN
China
Prior art keywords
providing component
position providing
identification mark
application program
location
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
CN202011037450.XA
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011037450.XA priority Critical patent/CN112181126A/en
Publication of CN112181126A publication Critical patent/CN112181126A/en
Pending legal-status Critical Current

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/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • 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/44594Unloading
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The invention provides a navigation application program detection method, a navigation application program detection device, computer equipment and a storage medium, wherein the method comprises the steps of acquiring a first identification mark of an application program; acquiring a first position providing component of each application program; extracting a second position providing component with the position providing type of satellite positioning from each first position providing component; detecting whether the second position providing component is in a continuous updating state; when the second position providing component is in a continuous updating state, acquiring a second identification mark of the application program corresponding to the second position providing component; detecting whether the first identification mark and the second identification mark are the same; and when the first identification mark and the second identification mark are the same, returning a first judgment value. Whether the position providing type acquired by the position providing component is satellite positioning or not is detected, and whether the position providing is continuously updated or not is detected, so that whether the application program is a navigation program or not is judged, the non-navigation application program can be frozen, and system resources are saved.

Description

Navigation application program detection method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of application management technologies, and in particular, to a navigation application detection method, an apparatus, a computer device, and a storage medium.
Background
Background process running on Android (Android) has a great influence on the endurance and performance of a mobile phone, so that at present, many mobile phones limit the running of the background process, but not all background processes need to be limited, and the limitation is that judgment and filtering are performed on the premise that navigation application in the background cannot be limited, for example, the navigation application in the background is limited, so that the normal use of a user is influenced.
At present, when a plurality of application programs (apps) are in a background, the mobile phone system can not accurately judge which background position requests are sent by the application programs and which background position requests are sent by the navigation application programs, so that the mobile phone system can not accurately limit the position requests.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a navigation application detection method, apparatus, computer device and storage medium for solving the above technical problems.
A navigation application detection method, comprising:
acquiring a first identification mark of an application program;
acquiring a first position providing component of each application program;
traversing each first position providing component, and extracting a second position providing component with a position providing type of satellite positioning from each first position providing component;
detecting whether the second location providing component is in a continuously updated state;
when the second position providing component is in a continuous updating state, acquiring a second identification mark of an application program corresponding to the second position providing component;
detecting whether the first identification mark and the second identification mark are the same;
and when the first identification mark and the second identification mark are the same, returning a first judgment value.
In one embodiment, the step of detecting whether the second location providing component is in a continuously updated state comprises:
acquiring update record information of the second location providing component;
detecting whether the value of the update record information is null;
and when the value of the update record information is not null, detecting whether the second position providing component is in a continuous update state or not according to the update record information.
In one embodiment, the step of detecting whether the value of the updated record information is empty further comprises:
and when the value of the updated recorded information is null, returning a second judgment value.
In one embodiment, the step of detecting whether the second location providing component is in a continuously updated state according to the update record information when the value of the update record information is not null comprises:
when the value of the updated record information is not null, acquiring an update field recorded by the updated record information;
detecting whether the value of the update field is true;
the step of acquiring the second identifier of the application program corresponding to the second location providing component when the second location providing component is in the continuous update state includes:
and when the value of the update field is true, acquiring the second identification mark of the application program corresponding to the second position providing component.
In one embodiment, the step of detecting whether the value of the update field is true further includes:
and when the value of the updating field is not true, traversing each first position providing component, and extracting a second position providing component with the next position providing type being satellite positioning from each first position providing component.
In one embodiment, the step of acquiring the second identifier of the application corresponding to the second location providing component when the second location providing component is in the continuously updated state includes:
and when the second position providing component is in a continuous updating state, acquiring the second identification mark of the corresponding application program according to the updating record information.
In one embodiment, the step of detecting whether the first identifier and the second identifier are the same further includes:
and when the first identification mark is different from the second identification mark, traversing each first position providing assembly, and extracting a second position providing assembly with the next position providing type being satellite positioning from each first position providing assembly.
A navigation application detection apparatus, comprising:
the first identification mark acquisition module is used for acquiring a first identification mark of an application program;
the first position providing component acquisition module is used for acquiring the first position providing components of each application program;
a second location providing component extracting module, configured to traverse each of the first location providing components, and extract a second location providing component with a location providing type of satellite positioning from each of the first location providing components;
an update state detection module for detecting whether the second location providing component is in a continuous update state;
a second identifier obtaining module, configured to obtain a second identifier of the application program corresponding to the second location providing component when the second location providing component is in a continuous update state;
the identification detection module is used for detecting whether the first identification and the second identification are the same or not;
and the judgment value returning module is used for returning a first judgment value when the first identification mark is the same as the second identification mark.
A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of:
acquiring a first identification mark of an application program;
acquiring a first position providing component of each application program;
traversing each first position providing component, and extracting a second position providing component with a position providing type of satellite positioning from each first position providing component;
detecting whether the second location providing component is in a continuously updated state;
when the second position providing component is in a continuous updating state, acquiring a second identification mark of an application program corresponding to the second position providing component;
detecting whether the first identification mark and the second identification mark are the same;
and when the first identification mark and the second identification mark are the same, returning a first judgment value.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a first identification mark of an application program;
acquiring a first position providing component of each application program;
traversing each first position providing component, and extracting a second position providing component with a position providing type of satellite positioning from each first position providing component;
detecting whether the second location providing component is in a continuously updated state;
when the second position providing component is in a continuous updating state, acquiring a second identification mark of an application program corresponding to the second position providing component;
detecting whether the first identification mark and the second identification mark are the same;
and when the first identification mark and the second identification mark are the same, returning a first judgment value.
According to the navigation application program detection method, the navigation application program detection device, the computer equipment and the storage medium, whether the position providing type acquired by the position providing component is satellite positioning or not is detected, and whether the position providing is continuously updated or not is detected, so that whether the application program is the navigation program or not is judged, the system can freeze the non-navigation application program, and system resources are saved.
Drawings
FIG. 1 is a flow diagram illustrating a method for detecting a navigation application in accordance with one embodiment;
FIG. 2 is a block diagram of a navigation application detection device in one embodiment;
FIG. 3 is a diagram of the internal structure of a computer device in one embodiment;
fig. 4 is a schematic diagram illustrating implementation steps of a navigation application detection method in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Example one
In this embodiment, as shown in fig. 1, a method for detecting a navigation application is provided, which includes:
step 110, a first identification mark of the application program is obtained.
Specifically, the application is an application running in the background of the system, and the first identification mark is a unique identification mark of the application and is used for distinguishing different applications, for example, the first identification mark is an uid of the application.
In this embodiment, a first identification mark of an application program running in a system background is obtained.
Step 120, a first location-providing component of each application is obtained.
In particular, the first location providing component is a class for providing location information services for applications, which may also be referred to as a location provider, and in android, the location providing component is a provider for providing different types of location information for applications, which includes base station network positioning (network), passive positioning (passive) and satellite positioning (GPS).
Step 130, traversing each of the first location providing components, and extracting a second location providing component with a location providing type of satellite positioning from each of the first location providing components.
The location providing component provides the location to the application program. The location providing type is satellite positioning, that is, the type of the location information provided by the application program is satellite positioning, which means that the positioning type of the application program is precise positioning, it should be understood that for non-navigation type application programs, for content push, most of the push algorithms are associated with base station network positioning, so nearby businesses, goods or content can be better pushed to users, and for navigation type application programs, positioning needs to be accurately obtained to plan a navigation route, so that whether the application program is navigation type or not can be preliminarily determined through the location providing type.
It should be noted that the satellite Positioning mode may be GPS (Global Positioning System) or beidou satellite Positioning. In this embodiment, it is detected whether the location providing type of the first location providing component is satellite positioning, and when the location providing type of the first location providing component is satellite positioning, the first location providing component is extracted, and the extracted first location providing component is the second location providing component. When the location providing type of the first location providing component is not satellite positioning, for example, the location providing type of the first location providing component is base station network positioning or passive positioning, it is detected whether the location providing type of the next first location providing component is satellite positioning.
In this step, each first position providing component is traversed, and a second position providing component with a position providing type of a GPS is extracted. In this embodiment, the provider set is traversed to find out the element of which the provider is gps.
Step 140, detecting whether the second location providing component is in a continuously updated state.
Specifically, the location information service provided by the second location providing component may be continuous or short-term, and in this step, it is detected whether the second location providing component is continuously providing the location information service.
Step 150, when the second location providing component is in the continuous update state, obtaining a second identification mark of the application program corresponding to the second location providing component.
Specifically, when the second location providing component is in the continuous update state, it indicates that the corresponding application program is continuously acquiring the location information thereof, and updating the location information, so that the application program is a navigation application program. Therefore, in this step, the second identifier of the application corresponding to the second location providing component is obtained, that is, the application of the object of the location service provided by the second location providing component is obtained. The second identification is a unique identification of the application, e.g., the second identification is the uid of the application.
Step 160, detecting whether the first identification mark and the second identification mark are the same.
In this step, whether the identification mark of the application program running in the background is the same as the identification mark of the application program corresponding to the second position providing component is compared to detect whether the application program running in the background is the application program corresponding to the second position providing component, so as to judge whether the application program running in the background is the navigation application program.
Step 170, when the first identification mark is the same as the second identification mark, returning a first judgment value.
Specifically, when the first identification mark and the second identification mark are the same, it is indicated that the application program running in the background and the application program of the object of the location service provided by the second location providing component are the same application program, and it is determined that the application program running in the background is the navigation application program, and therefore, the first determination value is returned. In this embodiment, the first determination value is true. The first judgment value is used for informing the system that the current judgment result is that the background application program is the navigation application program, and the system keeps running the application program in the background.
In this embodiment, when the first identification mark is the same as the second identification mark, a true value is returned, and the application program is kept running in the background, so that the application program of the navigation class can continuously obtain the positioning information, thereby continuously providing the navigation function in the background. And when the background application program detected through the process is not the navigation application program, freezing the non-navigation application program and stopping providing the positioning service for the non-navigation application program.
In the above embodiment, whether the position providing type obtained by the position providing component is satellite positioning is detected, and whether the position providing is continuously updated is detected, so as to determine whether the application program is a navigation program, so that the system can freeze a non-navigation application program, and further system resources are saved.
In one embodiment, the step of detecting whether the second location providing component is in a continuously updated state comprises: acquiring update record information of the second location providing component; detecting whether the value of the update record information is null; and when the value of the update record information is not null, detecting whether the second position providing component is in a continuous update state or not according to the update record information.
In this embodiment, the update recording information is used to record an effective location update or record an update state of a location providing service, and in an android, the update recording information is recorded by an UpdateRecord linked list, and each provider corresponds to one UpdateRecord linked list. Therefore, by acquiring the second location providing component, the corresponding UpdateRecord linked list can be acquired, the UpdateRecord linked list is traversed, and whether the UpdateRecord is empty is detected. It is further detected whether the second location providing component is in a persistent update state, when the value of UpdateRecord is not null, or when the value of UpdateRecord is not null, indicating that the current location update is a valid location update. By detecting the value of the UpdateRecord, whether the position update of the application program is effective position update can be accurately judged, so that whether the application program is a navigation application program can be further accurately judged.
In one embodiment, the step of detecting whether the value of the updated record information is empty further comprises: and when the value of the updated recorded information is null, returning a second judgment value.
In this embodiment, when the value of the update record information is null, it indicates that effective location update is not currently performed, and therefore, it is determined that the application program corresponding to the second location providing component is a non-navigation application program, and a second determination value is returned, for example, the second determination value is false.
In one embodiment, the step of detecting whether the second location providing component is in a continuously updated state according to the update record information when the value of the update record information is not null comprises: when the value of the updated record information is not null, acquiring an update field recorded by the updated record information; detecting whether the value of the update field is true.
The step of acquiring the second identifier of the application program corresponding to the second location providing component when the second location providing component is in the continuous update state includes: and when the value of the update field is true, acquiring the second identification mark of the application program corresponding to the second position providing component.
Specifically, the update field of the update record information record is mIsForegrouund Uid, the value of the update field includes true (true) and false (false), and when the value of the update field is true, the location update application program indicated in the background can continuously provide the location information, indicating that the second location providing component is in a continuously updated state.
In this embodiment, when the value of the UpdateRecord is non-empty, which indicates that the current location update is a valid location update, it is further detected whether the value of the mis forceground uid of the UpdateRecord is true, and when the value of the mis forceground uid is true, the second identification identifier of the application program corresponding to the second location providing component is obtained. Whether the application program is a navigation application program or not is judged by detecting whether the application program continuously updates the position or not through the process, and the judgment precision can be effectively improved.
In one embodiment, the step of detecting whether the value of the update field is true further comprises: and when the value of the updating field is not true, traversing each first position providing component, and extracting a second position providing component with the next position providing type being satellite positioning from each first position providing component.
In this embodiment, when the value of the mbisformegrouund uid of the UpdateRecord is not true, it indicates that the corresponding application program does not continuously update the location, and for the navigation application program, the location needs to be continuously updated, so that it is determined that the application program is a non-navigation-class application program, the step returns to step 130, the first location providing components are traversed again, and the second location providing component with the next location providing type as satellite positioning is extracted from the first location providing components.
In one embodiment, the step of acquiring the second identifier of the application corresponding to the second location providing component when the second location providing component is in the continuously updated state includes: and when the second position providing component is in a continuous updating state, acquiring the second identification mark of the corresponding application program according to the updating record information.
In this embodiment, a receiving object of the update record information is obtained, and the second identifier of the corresponding application program is obtained according to the receiving object. The receiving object is Receiver.
In this embodiment, when the value of the mbisformeground uid of the UpdateRecord is true, the uid of the application program is obtained according to the Receiver of the current UpdateRecord. Thereby determining whether the mUid of mCallerIdentity of Receiver of the current UpdateRecord is identical to the uid of the application obtained in step 110.
In one embodiment, the step of detecting whether the first identifier and the second identifier are the same further comprises: and when the first identification mark is different from the second identification mark, traversing each first position providing assembly, and extracting a second position providing assembly with the next position providing type being satellite positioning from each first position providing assembly.
In this embodiment, when the first identification mark is different from the second identification mark, it indicates that the application program running in the background is not the same as the application program corresponding to the second location providing component, the process returns to step 130, and traverses each of the first location providing components again, and extracts the second location providing component of which the next location providing type is satellite positioning from each of the first location providing components.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. Unless otherwise stated explicitly herein, the steps are not limited to be performed in a strict order, and may be performed in other orders, for example, step 110 may be performed between step 120 and step 150, or after step 150. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Example two
It should be understood that almost all application programs need to acquire the location information of the application in the background at present, but most of the apps do not have any effect on the user to acquire the location information, and if the useless apps need to be frozen in the background, it needs to be accurately determined which apps are navigating in the background, and which apps only acquire the location information once. In this embodiment, through analysis of the navigation apps, it is found that all the navigation apps provide information through gps, and the misForeground Uid of the UpdateRecord recorded in the system when the apps enter the background is true, so that it can be determined whether the apps entering the background are navigating or not through this condition, if the apps do not enter the background, the apps are set to be in a frozen state by the system, and will not occupy system resources in the background, and if the apps are in a navigation state, the apps run normally.
Please refer to fig. 4, the specific implementation method is as follows:
1, acquiring a set of all providers;
2: and traversing the provider set to find out an element of which the provider is Gps, wherein the element records UpdateRecord of all active states, and all Gps request information is recorded here.
3: traversing a linked list of the UpdateRecord, acquiring the UpdateRecord, judging whether the UpdateRecord is not empty, if so, executing the step 4, otherwise, executing the step 7;
4: if the UpdateRecord is not empty, judging whether the mIsForeground Uid of the UpdateRecord is true, if so, executing the step 5, otherwise, executing the step 3;
5: if the mIsForeground Uid is true, judging whether the mUid of mCallerIdentity of Receiver of the current UpdateRecord is the same as the incoming uid, if so, executing the step 6, otherwise, executing the step 3;
6: when the uid is navigating, returning to true;
7: returning to false when the uid does not navigate currently;
EXAMPLE III
In this embodiment, as shown in fig. 2, a navigation application detecting device is provided, which includes:
a first identifier obtaining module 210, configured to obtain a first identifier of an application;
a first location providing component acquiring module 220, configured to acquire a first location providing component of each application;
a second location providing component extracting module 230, configured to traverse each of the first location providing components, and extract a second location providing component with a location providing type of satellite positioning from each of the first location providing components;
an update status detection module 240, configured to detect whether the second location providing component is in a continuous update status;
a second identifier obtaining module 250, configured to obtain a second identifier of the application corresponding to the second location providing component when the second location providing component is in a continuously updated state;
an identifier detecting module 260, configured to detect whether the first identifier and the second identifier are the same;
a judgment value returning module 270, configured to return a first judgment value when the first identification identifier is the same as the second identification identifier, and return a second judgment value when the first identification identifier is different from the second identification identifier.
In one embodiment, the update status detection module comprises:
an update record information acquisition unit configured to acquire update record information of the second location providing component;
an update record information detection unit for detecting whether a value of the update record information is null;
and the updating state detection unit is used for detecting whether the second position providing component is in a continuous updating state or not according to the updating record information when the value of the updating record information is not null.
In one embodiment, the update status detection module further comprises:
and the second judgment value returning unit is used for returning the second judgment value when the value of the updated record information is null.
In one embodiment, the update state detection unit includes:
an update field acquiring subunit, configured to acquire an update field of the update record information record when the value of the update record information is not null;
an update field detection subunit, configured to detect whether a value of the update field is true;
the second identifier obtaining module is further configured to obtain the second identifier of the application corresponding to the second location providing component when the value of the update field is true.
In one embodiment, the update state detection unit further includes:
and a return traversing subunit, configured to traverse each of the first location providing components when the value of the update field is not true, and extract a second location providing component with a next location providing type being satellite positioning from each of the first location providing components.
In one embodiment, the second identifier obtaining module is further configured to obtain the second identifier of the corresponding application according to the update record information when the second location providing component is in a continuously updated state.
In one embodiment, the navigation application detection device further comprises:
and a return traversing module, configured to traverse each of the first location providing assemblies when the first identifier is different from the second identifier, and extract a second location providing assembly with a next location providing type being satellite positioning from each of the first location providing assemblies.
For the specific definition of the navigation application detection device, reference may be made to the above definition of the navigation application detection method, which is not described herein again. The units in the navigation application detection device can be wholly or partially realized by software, hardware and a combination thereof. The units can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the units.
Example four
In this embodiment, a computer device is provided. The internal structure thereof may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program, and is deployed with a database for storing location update records and location data. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with other computer devices that deploy application software. The computer program is executed by a processor to implement a navigation application detection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
acquiring a first identification mark of an application program;
acquiring a first position providing component of each application program;
traversing each first position providing component, and extracting a second position providing component with a position providing type of satellite positioning from each first position providing component;
detecting whether the second location providing component is in a continuously updated state;
when the second position providing component is in a continuous updating state, acquiring a second identification mark of an application program corresponding to the second position providing component;
detecting whether the first identification mark and the second identification mark are the same;
and when the first identification mark and the second identification mark are the same, returning a first judgment value.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring update record information of the second location providing component;
detecting whether the value of the update record information is null;
and when the value of the update record information is not null, detecting whether the second position providing component is in a continuous update state or not according to the update record information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the value of the updated recorded information is null, returning a second judgment value.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the value of the updated record information is not null, acquiring an update field recorded by the updated record information;
detecting whether the value of the update field is true;
and when the value of the update field is true, acquiring the second identification mark of the application program corresponding to the second position providing component.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the value of the updating field is not true, traversing each first position providing component, and extracting a second position providing component with the next position providing type being satellite positioning from each first position providing component.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the second position providing component is in a continuous updating state, acquiring the second identification mark of the corresponding application program according to the updating record information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the first identification mark is different from the second identification mark, traversing each first position providing assembly, and extracting a second position providing assembly with the next position providing type being satellite positioning from each first position providing assembly.
EXAMPLE five
In this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, the computer program realizing the following steps when executed by a processor:
acquiring a first identification mark of an application program;
acquiring a first position providing component of each application program;
traversing each first position providing component, and extracting a second position providing component with a position providing type of satellite positioning from each first position providing component;
detecting whether the second location providing component is in a continuously updated state;
when the second position providing component is in a continuous updating state, acquiring a second identification mark of an application program corresponding to the second position providing component;
detecting whether the first identification mark and the second identification mark are the same;
and when the first identification mark and the second identification mark are the same, returning a first judgment value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring update record information of the second location providing component;
detecting whether the value of the update record information is null;
and when the value of the update record information is not null, detecting whether the second position providing component is in a continuous update state or not according to the update record information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the value of the updated recorded information is null, returning a second judgment value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the value of the updated record information is not null, acquiring an update field recorded by the updated record information;
detecting whether the value of the update field is true;
and when the value of the update field is true, acquiring the second identification mark of the application program corresponding to the second position providing component.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the value of the updating field is not true, traversing each first position providing component, and extracting a second position providing component with the next position providing type being satellite positioning from each first position providing component.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the second position providing component is in a continuous updating state, acquiring the second identification mark of the corresponding application program according to the updating record information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the first identification mark is different from the second identification mark, traversing each first position providing assembly, and extracting a second position providing assembly with the next position providing type being satellite positioning from each first position providing assembly.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A navigation application detection method, comprising:
acquiring a first identification mark of an application program;
acquiring a first position providing component of each application program;
traversing each first position providing component, and extracting a second position providing component with a position providing type of satellite positioning from each first position providing component;
detecting whether the second location providing component is in a continuously updated state;
when the second position providing component is in a continuous updating state, acquiring a second identification mark of an application program corresponding to the second position providing component;
detecting whether the first identification mark and the second identification mark are the same;
and when the first identification mark and the second identification mark are the same, returning a first judgment value.
2. The method of claim 1, wherein the step of detecting whether the second location providing component is in a continuously updated state comprises:
acquiring update record information of the second location providing component;
detecting whether the value of the update record information is null;
and when the value of the update record information is not null, detecting whether the second position providing component is in a continuous update state or not according to the update record information.
3. The method according to claim 2, wherein the step of detecting whether the value of the update record information is empty further comprises:
and when the value of the updated recorded information is null, returning a second judgment value.
4. The method according to claim 2, wherein the step of detecting whether the second location providing component is in a continuously updated state according to the update record information when the value of the update record information is not empty comprises:
when the value of the updated record information is not null, acquiring an update field recorded by the updated record information;
detecting whether the value of the update field is true;
the step of acquiring the second identifier of the application program corresponding to the second location providing component when the second location providing component is in the continuous update state includes:
and when the value of the update field is true, acquiring the second identification mark of the application program corresponding to the second position providing component.
5. The method of claim 4, wherein the step of detecting whether the value of the update field is true further comprises:
and when the value of the updating field is not true, traversing each first position providing component, and extracting a second position providing component with the next position providing type being satellite positioning from each first position providing component.
6. The method according to claim 2, wherein the step of acquiring the second identifier of the application corresponding to the second location providing component when the second location providing component is in the continuously updated state comprises:
and when the second position providing component is in a continuous updating state, acquiring the second identification mark of the corresponding application program according to the updating record information.
7. The method according to any of claims 1-6, wherein the step of detecting whether the first signature and the second signature are the same further comprises:
and when the first identification mark is different from the second identification mark, traversing each first position providing assembly, and extracting a second position providing assembly with the next position providing type being satellite positioning from each first position providing assembly.
8. A navigation application detection apparatus, comprising:
the first identification mark acquisition module is used for acquiring a first identification mark of an application program;
the first position providing component acquisition module is used for acquiring the first position providing components of each application program;
a second location providing component extracting module, configured to traverse each of the first location providing components, and extract a second location providing component with a location providing type of satellite positioning from each of the first location providing components;
an update state detection module for detecting whether the second location providing component is in a continuous update state;
a second identifier obtaining module, configured to obtain a second identifier of the application program corresponding to the second location providing component when the second location providing component is in a continuous update state;
the identification detection module is used for detecting whether the first identification and the second identification are the same or not;
and the judgment value returning module is used for returning a first judgment value when the first identification mark is the same as the second identification mark.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011037450.XA 2020-09-28 2020-09-28 Navigation application program detection method and device, computer equipment and storage medium Pending CN112181126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011037450.XA CN112181126A (en) 2020-09-28 2020-09-28 Navigation application program detection method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011037450.XA CN112181126A (en) 2020-09-28 2020-09-28 Navigation application program detection method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112181126A true CN112181126A (en) 2021-01-05

Family

ID=73944325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011037450.XA Pending CN112181126A (en) 2020-09-28 2020-09-28 Navigation application program detection method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112181126A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101366A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Mobile terminal control method and mobile terminal
CN107317923A (en) * 2017-06-19 2017-11-03 深圳传音通讯有限公司 Control method, device and the terminal of GPS running statuses
CN107704754A (en) * 2017-08-22 2018-02-16 努比亚技术有限公司 A kind of terminal control method and device, computer-readable recording medium
CN108279430A (en) * 2017-12-25 2018-07-13 广州市中海达测绘仪器有限公司 Data synchronize method, apparatus, computer equipment and the storage medium of positioning
CN111076741A (en) * 2019-12-03 2020-04-28 Oppo广东移动通信有限公司 Navigation state acquisition method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101366A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Mobile terminal control method and mobile terminal
CN107317923A (en) * 2017-06-19 2017-11-03 深圳传音通讯有限公司 Control method, device and the terminal of GPS running statuses
CN107704754A (en) * 2017-08-22 2018-02-16 努比亚技术有限公司 A kind of terminal control method and device, computer-readable recording medium
CN108279430A (en) * 2017-12-25 2018-07-13 广州市中海达测绘仪器有限公司 Data synchronize method, apparatus, computer equipment and the storage medium of positioning
CN111076741A (en) * 2019-12-03 2020-04-28 Oppo广东移动通信有限公司 Navigation state acquisition method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107798557B (en) Electronic device, service place recommendation method based on LBS data and storage medium
US11663371B2 (en) Method and apparatus for location-based recovery of stolen mobile devices
EP1622306A2 (en) Event and dependency based failure identification management system and method
US10986464B1 (en) Quantifying mobility of mobile devices via a privacy preserving mobility metric
CN113204580A (en) Overwater target position information query method, system, device, equipment and medium
CN112288340B (en) Logistics order dispatching method and device, computer equipment and storage medium
JP2015158799A (en) Space-time clustering processing device, method and program
CN112181126A (en) Navigation application program detection method and device, computer equipment and storage medium
CN110049535B (en) Network searching method, device, equipment and storage medium
CN111328068B (en) Card writing method and device, computer equipment and storage medium
CN109493447B (en) Method and device for starting driving record, computer equipment and storage medium
CN110569167B (en) Webpage alarm monitoring method, script error reporting method, device and computer equipment
CN115630020B (en) Method and device for multiplexing safety scanning result and electronic equipment
CN111259374A (en) Authority abnormity detection method and device, computer equipment and storage medium
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
JP2019109556A (en) Identity authentication method using behavior history
US9323511B1 (en) Splitting application permissions on devices
CN112444831A (en) Terminal power saving method and device for GPS data acquisition and intelligent terminal
US20190208364A1 (en) System and method for retrieving lost electronic device
CN112767732B (en) Parking position determining method and device and electronic equipment
CN112969218B (en) Network registration method and device, electronic equipment and storage medium
CN112788523B (en) Positioning method of sharing equipment and server
CN113534202A (en) Satellite positioning system detection method, device, computer equipment and storage medium
JP2005286955A (en) Mobile terminal narrow-down apparatus and mobile terminal narrow-down program
CN112463783A (en) Index data monitoring method and device, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105