GPS remote nail punch

1. Now many of my friends encountered such problems, there are always a few times a month, traffic jams, and then late, deduct wages. This article is to help you solve nails GPS remote punch. So that you'll never be late again.

2. The source code has been uploaded to Github: https://github.com/xhzth7091/DingTalkOnlyGPS

3.hook positioning punch, the simplest and most direct is a direct hook APP positioning function, which is to achieve a virtual location, because the nail punch page is H5, then bound to call the Target native, then certainly used the locationManager : didUpdateLocations, search inside look at Hopper:
Here Insert Picture Description

4. Then the search method using Theos, all hook again, for example:

%hook AMapLocationCLMDelegate

- (void)locationManager:(id)arg1 didUpdateLocations:(id)arg2 {

%log;

%orig;

}

%end

5. Then open the console, click in attendance punch nails, and then pay attention to the output of the console to see which method to print out the final print is AMapLocationManager this class

6. Well, then you can start to modify my ultimate goal of positioning of latitude and longitude, after downloading MonkeyDev, create a new project, the future of the shelling nails into the project, the latitude and longitude of the following code modifications into your own Coordinates:

@class AMapLocationManager;

CHDeclareClass(AMapLocationManager)

CHOptimizedMethod2(self,void, AMapLocationManager, locationManager, id, arg1,didUpdateLocations,id,arg2){

    CLLocation *location = [[CLLocation alloc] initWithLatitude:纬度 longitude:经度];

    arg2 = @[location];

    CHSuper2(AMapLocationManager, locationManager, arg1,didUpdateLocations,arg2);

}

7.bundleId into com.laiwang.DingTalk, or else run the nails will pop up illegal client popups. Nails should be on bundleId were detected

8. Since the packet more than 2.7 M nails, there is no upload staple version 4.3.0, done

Guess you like

Origin blog.csdn.net/xhzth70911/article/details/91504770
Recommended