|
发表于 2022-4-27 20:11:43
只看该作者
地板
请问是怎么添加自己的gsp.default.so的呢,新手不太懂这些,我现在编译出来一个gps.90.so,位置也在vendor目录下的对应位置,开机的时候没有进入这个判断, private void loadProvidersLocked() {
// create a passive location provider, which is always enabled
PassiveProvider passiveProvider = new PassiveProvider(this);
addProviderLocked(passiveProvider);
mEnabledProviders.add(passiveProvider.getName());
mPassiveProvider = passiveProvider;
Log.e(TAG, "in locationMS GnssLocationProvider.isSupported()= " +GnssLocationProvider.isSupported());
if (GnssLocationProvider.isSupported()) {
// Create a gps location provider
Log.e(TAG, "in location MS loadProvidersLocked add GPS Provider");
GnssLocationProvider gnssProvider = new GnssLocationProvider(mContext, this,
mLocationHandler.getLooper());
mGnssSystemInfoProvider = gnssProvider.getGnssSystemInfoProvider();
mGnssBatchingProvider = gnssProvider.getGnssBatchingProvider();
mGnssMetricsProvider = gnssProvider.getGnssMetricsProvider();
mGnssStatusProvider = gnssProvider.getGnssStatusProvider();
mNetInitiatedListener = gnssProvider.getNetInitiatedListener();
addProviderLocked(gnssProvider);
mRealProviders.put(LocationManager.GPS_PROVIDER, gnssProvider);
mGnssMeasurementsProvider = gnssProvider.getGnssMeasurementsProvider();
mGnssNavigationMessageProvider = gnssProvider.getGnssNavigationMessageProvider();
mGpsGeofenceProxy = gnssProvider.getGpsGeofenceProxy();
},开机后无法使用GPS 测试没有provider |
|