Android 默认接受";“提高定位精度”;更新Google play服务时弹出[ROOT]
我有一个应用程序,安装在出租车司机用来跟踪位置和驾驶距离的电话中。(手机已根目录,我们对手机拥有所有权限)。在应用程序的第一个实现中,我们使用LocationManager.RequestLocationUpdate从GPS和网络提供商处获取位置更新。由于我们需要捕获驾驶室行驶的每一公里,我们在位置设置中启用了“高精度”模式 出于两个原因,我们愿意选择融合位置提供商Android 默认接受";“提高定位精度”;更新Google play服务时弹出[ROOT],android,gps,google-play-services,fusedlocationproviderapi,android-fusedlocation,Android,Gps,Google Play Services,Fusedlocationproviderapi,Android Fusedlocation,我有一个应用程序,安装在出租车司机用来跟踪位置和驾驶距离的电话中。(手机已根目录,我们对手机拥有所有权限)。在应用程序的第一个实现中,我们使用LocationManager.RequestLocationUpdate从GPS和网络提供商处获取位置更新。由于我们需要捕获驾驶室行驶的每一公里,我们在位置设置中启用了“高精度”模式 出于两个原因,我们愿意选择融合位置提供商 出于某种原因(android中的一个已知错误:)网络提供商没有提供位置更新 由于某些原因,设备突然失去GPS定位,并且在设备重新启
实现这一点的任何方法——如在设备外壳中执行命令、发出意图或修改GooglePlayServices apk本身,我都可以接受。在根设备上,您可以通过编程方式在初始化使用位置服务之前设置以下值来抢占这些对话框 以
su
的形式运行以下命令:
content insert --uri content://com.google.settings/partner --bind name:s:network_location_opt_in --bind value:i:1
content insert --uri content://com.google.settings/partner --bind name:s:use_location_for_services --bind value:i:1
content insert --uri content://settings/global --bind name:s:assisted_gps_enabled --bind value:i:1
content insert --uri content://settings/secure --bind name:s:allowed_geolocation_origins --bind value:s:'http://www.google.co.uk http://www.google.com'
我也有同样的问题。如果你找到了任何解决方案,请分享。@NasserMansouri没有找到正确的解决方案,但由于我们所有的手机都是相同品牌和型号的,弹出窗口出现在相同的位置。因此,我们在(x,y)处模拟触摸通过adb shell命令定位复选框。如果是这种情况,您可以尝试。