如果我删除 gps.conf 文件会发生什么
如果删除 system/etc/gps.conf
文件会发生什么?会导致手机无法使用吗?或者只影响与GPS相关的应用程序?
What will happen if I delete the system/etc/gps.conf
file? Does it cause phone to not work? or affect only the GPS related apps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于手机/OEM。有些芯片组甚至不使用 gps.conf 文件。此配置文件不必位于该文件夹中。我知道,因为我曾研究过许多 GPS 芯片组。
根据 OEM 的代码,如果该文件不存在,手机可能会在启动时崩溃。我认为OEM应该处理这种罕见的情况。 GPS 在
system_server
进程中运行。崩溃了可不好。如果手机成功启动,根据该文件中存储的信息,您可能无法获得 GPS 定位。您可能在 conf 文件中找到的更重要的设置之一是 SUPL 设置。 SUPL 服务器用于传递辅助数据,以便快速实现 GPS 定位。删除此文件可能会导致 GPS 模式转为独立模式,速度非常慢。 (有些手机甚至懒得进入独立模式,并且永远无法修复。)
这个故事的寓意是在删除/修改 gps.conf 文件之前始终对其进行备份。
It depends on the handsets / OEM. Some chipsets don't even use the gps.conf file. This config file does not have to be in that folder. I know because I've worked on many GPS chipsets.
Depending on the OEM's code, yeah the phone can crash at boot, if this file does not exists. I think that the OEM should handle this rare case. GPS runs in the
system_server
process. Crashing that is not good.If the phone manages to boot, depending on the information stored in that file, you may not be able to get a GPS fix. One of the more important settings you are likely to find in the conf file is the SUPL settings. SUPL servers are used to pass assisted data so that the GPS fix can be attained quickly. Deleting this file can cause the GPS mode to go to the Standalone mode, which is painfully slow. (Some phones won't even bother to go to the Standalone mode and you never get a fix.)
The moral of this story is always back up the gps.conf file before deleting/modifying it.