选择伪装地点上图是我将核⼼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 {

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。