A method of detecting virtual positioning of an iOS device

By repeatedly acquiring and caching location information on iOS devices, and combining this with user actions such as shaking the phone, the system determines whether the location information changes. This solves the problems of missed detections and inaccuracies in virtual location detection, and improves the accuracy and coverage of detection.

CN116320126BActive Publication Date: 2025-11-25QIMING INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310050612.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-01
Publication Date
2025-11-25
Estimated Expiration
2043-02-01

AI Technical Summary

Technical Problem

Existing technologies cannot effectively detect virtual location on iOS devices, which may lead to violations such as remote work attendance and fraud. The detection methods have problems with missed detections and inaccuracies.

Method used

Location information is obtained through the CoreLocation and CLLocationManager modules of the iOS system and cached multiple times within a preset time. The location information is then retrieved again when the user shakes the phone to determine whether the latitude, longitude and altitude have changed. If there is no change, it is determined to be a virtual location.

Benefits of technology

It improves the accuracy and coverage of virtual location detection, reduces the risks associated with virtual location, and enhances the effectiveness of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320126B_ABST
    Figure CN116320126B_ABST
Patent Text Reader

Abstract

The application discloses a method for detecting virtual positioning of an iOS device. According to the specificity of the iOS system, the longitude, latitude and altitude of the device for virtual positioning are always fixed to certain values. The method for detecting virtual positioning of the iOS device is used to acquire real-time positioning information of a user, and the positioning information is detected, cached and analyzed to determine whether the user is virtually positioned. Furthermore, the accuracy and the coverage of detection are improved by increasing user interaction, so that various risks caused by virtual positioning are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of virtual location technology, and in particular to a method for detecting the virtual location of an iOS device. Background Technology

[0002] With the widespread use of GPS positioning, numerous iOS apps developed based on location have penetrated into social networking, office work, gaming, e-commerce, and other fields. Many businesses operate based on the current location, and there are already many apps on the App Store that modify phone location. If virtual location detection is not taken seriously, it can lead to violations of company rules and even criminal offenses, such as remote work attendance fraud. Therefore, timely detection and early warning of virtual location technology on iOS devices are necessary. Summary of the Invention

[0003] To address the issue of timely determination of virtual location on iOS devices, this invention proposes a method for detecting virtual location on iOS devices.

[0004] A method for detecting virtual location on an iOS device, comprising the following steps:

[0005] Step S1: The user authorizes the acquisition of location information;

[0006] Step S2: Within a preset time period, acquire the current location information multiple times and cache the acquired location information locally;

[0007] Step S3: Determine each set of cached location information. If the location information remains unchanged, request the user to shake their phone to re-acquire and cache the location information.

[0008] Step S4: Determine if the new location information has changed. If it has changed, determine that virtual location was not used. If it has not changed, repeat step S3.

[0009] Step S5: If the location information remains unchanged after repeating step S3 up to the maximum number of attempts, it is determined that virtual location was used.

[0010] Furthermore, the location information is obtained through the iOS system's CoreLocation and CLLocationManager modules.

[0011] Furthermore, the location information includes latitude and longitude, altitude, and acquisition time.

[0012] Furthermore, step S2 includes: acquiring location information within a preset time period, acquiring the information n times, and acquiring the location information and time each time, namely the first location information, the second location information, ..., the nth location information.

[0013] Furthermore, the local cache of the location information uses Database or NSUserDatabase.

[0014] Furthermore, the determination of the location information in step S4 includes: determining whether the altitude of the data set remains unchanged. If it remains unchanged, a prompt will pop up, requiring the user to shake the phone and re-acquire the location information n times within a preset time. If there is no change within the maximum number of attempts, it is determined that virtual location is being used.

[0015] Furthermore, the determination of the location information in step S4 also includes: determining whether the latitude and longitude of the data set remains unchanged. If it remains unchanged, a prompt will pop up, requiring the user to shake the phone and re-acquire the location information n times within a preset time. If there is no change within the maximum number of attempts, it is determined that virtual location is being used.

[0016] The beneficial effects of this invention are as follows: This invention proposes a method for detecting virtual positioning of iOS devices. Due to the specificity of the iOS system, the latitude, longitude and altitude of virtual positioning devices will always be a fixed value. After the current iOS device modifies its positioning using virtual positioning software, the method can determine whether it is virtual positioning by detecting and analyzing its positioning information. Furthermore, by increasing user interaction, the accuracy and detection coverage can be further improved, thereby reducing various risks caused by virtual positioning. Attached Figure Description

[0017] Figure 1 This is a flowchart of the method for detecting virtual location of iOS devices according to the present invention. Detailed Implementation

[0018] To provide a clearer understanding of the technical features, objectives, and effects of the present invention, specific embodiments of the present invention will now be described with reference to the accompanying drawings.

[0019] Currently, iOS apps do not natively detect or recognize virtual locations. Furthermore, virtual locations on mobile devices can enable remote location display, remote check-in, and other business processes. Without a virtual location warning mechanism, this can have serious consequences. Current virtual location detection methods on iOS suffer from issues such as lack of specificity, missed detections, and inaccurate results. Therefore, this paper proposes a method for detecting virtual locations on iOS devices. This method is highly efficient, consumes minimal device resources, and incorporates a user verification step, improving detection coverage. This invention proposes a method for detecting virtual locations on iOS devices, performing virtual location judgment on iOS devices, such as... Figure 1 As shown, it includes the following steps:

[0020] Step S1: The user authorizes the acquisition of location information;

[0021] Step S2: Within a preset time period, acquire the current location information multiple times and cache the acquired location information locally;

[0022] Step S3: Determine each set of cached location information. If the location information remains unchanged, request the user to shake their phone to re-acquire and cache the location information.

[0023] Step S4: Determine if the new location information has changed. If it has changed, determine that virtual location was not used. If it has not changed, repeat step S3.

[0024] Step S5: If the location information remains unchanged after repeating step S3 up to the maximum number of attempts, it is determined that virtual location was used.

[0025] Location information is acquired through the iOS system's CoreLocation and CLLocationManager modules. The location information includes latitude and longitude, altitude, and acquisition time. Step S2 includes: acquiring location information within a preset time period, with n acquisitions, where the acquired location information and time are respectively the first location information, the second location information, ..., the nth location information. The location information is locally cached using Database or NSUserDatabase.

[0026] The location information determination in step S4 includes: determining whether the altitude of the data set remains constant; if it remains constant, a prompt will appear asking the user to shake their phone and re-acquire location information n times within a preset time period; if there is no change within the maximum number of attempts, it is determined that virtual location is being used. It also includes: determining whether the latitude and longitude of the data set remains constant; if it remains constant, a prompt will appear asking the user to shake their phone and re-acquire location information n times within a preset time period; if there is no change within the maximum number of attempts, it is determined that virtual location is being used.

[0027] In this embodiment, the existing technology for iOS devices determines whether a location is virtual by checking if the latitude, longitude, or altitude remains constant. However, based on actual testing data, this method is not entirely accurate in some special cases. There are indeed situations where latitude, longitude, and altitude remain unchanged even when virtual positioning is not used. Therefore, data collection under phone shaking conditions is the most accurate method. Existing virtual positioning detection methods are widely used in mobile device detection. For iOS devices, a user authorization step needs to be added to the positioning module. Furthermore, shaking the device allows for the acquisition of changed positioning and altitude data. Adding this step improves the detection coverage and accuracy.

[0028] In this embodiment, the solution includes the following steps: First, within a certain period of time when the user uses the APP, and provided the user has authorized the acquisition of location information, the current latitude, longitude, altitude, and acquisition time are acquired multiple times within a specified time t seconds using the iOS system's CoreLocation and CLLocationManager modules. The number of acquisitions is n, and the location information and time acquired each time are respectively the first location information, the second location information, ..., the nth location information. The location data is cached locally within the APP using Database or NSUserDatabase. Further, based on the location information and... Figure 1 The implementation process determines whether the location information is real or fake. Specifically, it first checks if the altitude of the data remains constant. If so, a prompt appears asking the user to shake their phone and re-acquire the phone's location n times within a time interval t seconds. If the altitude remains unchanged for three consecutive times, it is determined that virtual location is being used. Further, it checks if the latitude and longitude values ​​of the data remain constant. If so, a prompt appears asking the user to shake their phone and re-acquire the phone's location within a time interval t seconds. If the latitude and longitude remain unchanged for three consecutive times, it is determined that virtual location is being used.

[0029] In this embodiment, the method is used for data verification. Xcode and an iPhone XR are used, and the virtual location is modified using iTools. The actual data verification is performed by obtaining location information once every 0.2 seconds, for a total of 10 times, with a total duration of 2 seconds.

[0030] Example of data using virtual location:

[0031]

[0032]

[0033] Example of location data after shaking the phone (without using virtual location):

[0034]

[0035] Example of location data after shaking the phone using virtual location:

[0036]

[0037] This invention proposes a method for detecting virtual positioning on iOS devices. It detects when an iOS device modifies its location using virtual positioning software, and analyzes its location information to determine whether it is a virtual location. Due to the unique characteristics of the iOS system, the latitude, longitude, and altitude of the device will always remain at a fixed value. Furthermore, by increasing user interaction, the accuracy and detection coverage can be further improved, thereby reducing various risks to enterprises caused by virtual positioning.

[0038] The foregoing description and illustrations have shown and described the basic principles, main features, and advantages of this invention. Those skilled in the art should understand that this invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to this invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the invention as claimed. The scope of protection of this invention is defined by the appended claims and their equivalents.

Claims

1. A method for detecting virtual location on an iOS device, comprising determining virtual location for the iOS device, characterized in that, Includes the following steps: Step S1: The user authorizes the acquisition of location information; Step S2: Within a preset time period, acquire the current location information multiple times and cache the acquired location information locally; Step S3: Determine each set of cached location information. If the location information remains unchanged, request the user to shake their phone to re-acquire and cache the location information. Step S4: Determine if the new location information has changed. If it has changed, determine that virtual location was not used. If it has not changed, repeat step S3. Step S5: If the location information remains unchanged after repeating step S3 up to the maximum number of attempts, it is determined that virtual location was used.

2. The method for detecting virtual location of an iOS device according to claim 1, characterized in that, The location information is obtained through the iOS system's CoreLocation and CLLocationManager modules.

3. The method for detecting virtual location of an iOS device according to claim 1, characterized in that, The location information includes latitude and longitude, altitude, and acquisition time.

4. The method for detecting virtual location of an iOS device according to claim 1, characterized in that, Step S2 includes: acquiring location information within a preset time period, acquiring the information n times, and acquiring the location information and time each time, namely the first location information, the second location information, ..., the nth location information.

5. The method for detecting virtual location of an iOS device according to claim 1, characterized in that, The location information is cached locally using Database or NSUserDatabase.

6. The method for detecting virtual location of an iOS device according to claim 1, characterized in that, The determination of location information in step S4 includes: determining whether the altitude of the data set remains unchanged. If it remains unchanged, a prompt will pop up, asking the user to shake the phone and re-acquire the location information n times within a preset time. If there is no change within the maximum number of attempts, it is determined that virtual location is being used.

7. The method for detecting virtual location of an iOS device according to claim 6, characterized in that, The determination of location information in step S4 also includes: determining whether the latitude and longitude of the data set remains unchanged. If it remains unchanged, a prompt will pop up, requiring the user to shake the phone and re-acquire the location information n times within the preset time limit. If there is no change within the maximum number of attempts, it is determined that virtual location is used.

Citation Information

Patent Citations

  • Virtual positioning detection method and device, electronic equipment and storage medium

    CN114189550A

  • Equipment virtual positioning data detection method and device, terminal and storage medium

    CN114510656A