資源簡介
android模擬位置程序,俗稱GPS欺騙,只能修改采用GPS定位的軟件。 手機定位方式目前有4種:基站定位,WIFI定位,GPS定位,AGPS定位,本方法,只能修改采用GPS定位方式。如果想要修改其他方式,目前研究思路采用root方式,然后進行線程注入,然后修改定位數據能實現,具體代碼,還在研究中。
重要說明
運行之前
- 請先打開android手機-設置-開發者選項-允許模擬位置,打鉤。
- 修改定位方法成僅限GPS,三星設置:設置-位置-模式-僅限GPS。
- 修改AndroidManifest.xml中的,使用你自己的百度地圖key,申請地址:http://lbsyun.baidu.com/apiconsole/key
代碼片段和文件信息
package?com.aslan.simulategps;
import?android.app.Application;
import?com.baidu.mapapi.SDKInitializer;
public?class?AppApplication?extends?Application?{
@Override
public?void?onCreate()?{
super.onCreate();
//?在使用?SDK?各組間之前初始化?context?信息,傳入?ApplicationContext
SDKInitializer.initialize(this);
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\
?????文件?????????952??2015-12-09?05:05??SimulateGps-master\README.md
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\
?????文件?????????539??2015-12-09?05:05??SimulateGps-master\SimulateGps\.classpath
?????文件?????????847??2015-12-09?05:05??SimulateGps-master\SimulateGps\.project
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\.settings\
?????文件?????????177??2015-12-09?05:05??SimulateGps-master\SimulateGps\.settings\org.eclipse.jdt.core.prefs
?????文件????????1917??2015-12-09?05:05??SimulateGps-master\SimulateGps\AndroidManifest.xm
?????文件???????51394??2015-12-09?05:05??SimulateGps-master\SimulateGps\ic_launcher-web.png
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\libs\
?????文件?????1032546??2015-12-09?05:05??SimulateGps-master\SimulateGps\libs\BaiduLBS_Android.jar
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\libs\armeabi\
?????文件?????1140028??2015-12-09?05:05??SimulateGps-master\SimulateGps\libs\armeabi\libBaiduMapSDK_v3_2_0_15.so
?????文件???????34648??2015-12-09?05:05??SimulateGps-master\SimulateGps\libs\armeabi\liblocSDK5.so
?????文件??????????53??2015-12-09?05:05??SimulateGps-master\SimulateGps\lint.xm
?????文件?????????781??2015-12-09?05:05??SimulateGps-master\SimulateGps\proguard-project.txt
?????文件?????????604??2015-12-09?05:05??SimulateGps-master\SimulateGps\project.properties
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-hdpi\
?????文件????????7658??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-hdpi\ic_launcher.png
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-mdpi\
?????文件????????3777??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-mdpi\ic_launcher.png
?????文件????????4423??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-mdpi\icon_gcoding.png
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-xhdpi\
?????文件???????12516??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-xhdpi\ic_launcher.png
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-xxhdpi\
?????文件???????24777??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\drawable-xxhdpi\ic_launcher.png
?????目錄???????????0??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\layout\
?????文件????????1384??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\layout\activity_about.xm
?????文件????????1361??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\layout\activity_main.xm
?????文件?????????733??2015-12-09?05:05??SimulateGps-master\SimulateGps\res\layout\dialog_customprogress.xm
............此處省略534個文件信息
評論
共有 條評論