diff --git a/play-services-core/src/main/java/org/microg/gms/places/GeoDataService.java b/play-services-core/src/main/java/org/microg/gms/places/GeoDataService.java index ca45ca0b..716843e5 100644 --- a/play-services-core/src/main/java/org/microg/gms/places/GeoDataService.java +++ b/play-services-core/src/main/java/org/microg/gms/places/GeoDataService.java @@ -17,7 +17,6 @@ package org.microg.gms.places; import android.os.RemoteException; -import android.util.Log; import com.google.android.gms.common.internal.GetServiceRequest; import com.google.android.gms.common.internal.IGmsCallbacks; @@ -32,6 +31,6 @@ public class GeoDataService extends BaseService { @Override public void handleServiceRequest(IGmsCallbacks callback, GetServiceRequest request, GmsService service) throws RemoteException { - Log.d(TAG, "unimplemented Method: handleServiceRequest"); + callback.onPostInitComplete(0, new PlacesServiceImpl().asBinder(), null); } } diff --git a/play-services-core/src/main/java/org/microg/gms/places/PlaceDetectionService.java b/play-services-core/src/main/java/org/microg/gms/places/PlaceDetectionService.java index 985641ca..c5977902 100644 --- a/play-services-core/src/main/java/org/microg/gms/places/PlaceDetectionService.java +++ b/play-services-core/src/main/java/org/microg/gms/places/PlaceDetectionService.java @@ -32,6 +32,6 @@ public class PlaceDetectionService extends BaseService { @Override public void handleServiceRequest(IGmsCallbacks callback, GetServiceRequest request, GmsService service) throws RemoteException { - Log.d(TAG, "unimplemented Method: handleServiceRequest"); + callback.onPostInitComplete(0, new PlaceDetectionServiceImpl().asBinder(), null); } } diff --git a/play-services-core/src/main/java/org/microg/gms/places/PlaceDetectionServiceImpl.java b/play-services-core/src/main/java/org/microg/gms/places/PlaceDetectionServiceImpl.java new file mode 100644 index 00000000..34d3e5cb --- /dev/null +++ b/play-services-core/src/main/java/org/microg/gms/places/PlaceDetectionServiceImpl.java @@ -0,0 +1,34 @@ +/* + * Copyright 2013-2016 microG Project Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.microg.gms.places; + +import android.os.Parcel; +import android.os.RemoteException; +import android.util.Log; + +import com.google.android.gms.location.places.internal.IGooglePlaceDetectionService; + +public class PlaceDetectionServiceImpl extends IGooglePlaceDetectionService.Stub{ + private static final String TAG = "GmsPlcDtctSvcImpl"; + + @Override + public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { + if (super.onTransact(code, data, reply, flags)) return true; + Log.d(TAG, "onTransact [unknown]: " + code + ", " + data + ", " + flags); + return false; + } +} diff --git a/play-services-core/src/main/java/org/microg/gms/places/PlacesServiceImpl.java b/play-services-core/src/main/java/org/microg/gms/places/PlacesServiceImpl.java new file mode 100644 index 00000000..d77128be --- /dev/null +++ b/play-services-core/src/main/java/org/microg/gms/places/PlacesServiceImpl.java @@ -0,0 +1,34 @@ +/* + * Copyright 2013-2016 microG Project Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.microg.gms.places; + +import android.os.Parcel; +import android.os.RemoteException; +import android.util.Log; + +import com.google.android.gms.location.places.internal.IGooglePlacesService; + +public class PlacesServiceImpl extends IGooglePlacesService.Stub { + private static final String TAG = "GmsPlcSvcImpl"; + + @Override + public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { + if (super.onTransact(code, data, reply, flags)) return true; + Log.d(TAG, "onTransact [unknown]: " + code + ", " + data + ", " + flags); + return false; + } +}