|
发表于 2020-8-5 09:33:22
7140 浏览 0 回复
Android 6.0 外置GPS无法定位
在调试一个外置GPS模块,搜星正常,但是无法定位。
在 reportLocation中将对数据的GPS数据的筛选关闭,强制将定位的数据上报。
--- a/frameworks/base/services/core/java/com/android/server/LocationManagerService.java
+++ b/frameworks/base/services/core/java/com/android/server/LocationManagerService.java
@@ -2366,12 +2366,12 @@ public class LocationManagerService extends ILocationManager.Stub {
@Override
public void reportLocation(Location location, boolean passive) {
checkCallerIsProvider();
-
+/*
if (!location.isComplete()) {
Log.w(TAG, "Dropping incomplete location: " + location);
return;
}
-
+*/
|
|
|
|
|
|
|
登录或注册
|