选择伪装地点上图是我将核⼼Hook模块实现后利⽤百度地图做了⼀个简单的欺骗位置⼩软件。
伪装定位
5.核⼼H o o k模块代码
ample.administrator.hook;
import android.location.Criteria;
import android.location.GpsStatus;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Build;
import android.os.SystemClock;
lephony.CellIdentityCdma;
lephony.CellIdentityGsm;
lephony.CellIdentityLte;
lephony.CellIdentityWcdma;
lephony.CellInfoCdma;
lephony.CellInfoGsm;
android模拟点击lephony.CellInfoLte;
lephony.CellInfoWcdma;
lephony.CellLocation;
lephony.gsm.GsmCellLocation;
import flect.Method;
import flect.Modifier;
import java.util.ArrayList;
import java.util.List;
bv.android.xposed.XC_MethodHook;
bv.android.xposed.XposedBridge;
bv.android.xposed.XposedHelpers;
/**
* Created by CaptainXero on 2016/8/31 0031.
*/
public class HookUtils {
public static void HookAndChange(ClassLoader classLoader, final double latitude, final double longtitude, final int lac, final int cid) {        XposedHelpers.findAndHookMethod("lephony.TelephonyManager", classLoader,
"getCellLocation", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {