Loading GmsApi @ 216861e7 Compare db0be6ba to 216861e7 Original line number Diff line number Diff line Subproject commit db0be6ba010f52b4d12e69aed2482c38a3c2406c Subproject commit 216861e7dd86b11d6fcaafb87f64c22fa35af445 GmsLib @ 7015d9e7 Compare 90e9b7b7 to 7015d9e7 Original line number Diff line number Diff line Subproject commit 90e9b7b79dcaddfce887f87b94f80adeed8791e6 Subproject commit 7015d9e7f8f793e3b6d009a6e453f84f35b9d1c8 play-services-core/src/main/AndroidManifest.xml +14 −0 Original line number Diff line number Diff line Loading @@ -491,6 +491,20 @@ <!-- Other --> <provider android:name="org.microg.gms.phenotype.ConfigurationProvider" android:authorities="com.google.android.gms.phenotype" android:exported="true"/> <service android:name="org.microg.gms.measurement.MeasurementBrokerService" android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.measurement.START"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </service> <service android:name="org.microg.gms.mdm.NetworkQualityService"> <intent-filter> <action android:name="com.google.android.gms.mdm.services.START"/> Loading play-services-core/src/main/java/com/google/android/gms/cast/framework/internal/CastDynamiteModuleImpl.java +6 −69 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.google.android.gms.cast.framework.internal; import android.os.Bundle; import android.os.RemoteException; import android.util.Log; Loading @@ -26,14 +25,12 @@ import com.google.android.gms.cast.framework.ICastContext; import com.google.android.gms.cast.framework.ICastSession; import com.google.android.gms.cast.framework.IReconnectionService; import com.google.android.gms.cast.framework.ISession; import com.google.android.gms.cast.framework.ISessionManager; import com.google.android.gms.cast.framework.ISessionProxy; import com.google.android.gms.cast.framework.media.CastMediaOptions; import com.google.android.gms.cast.framework.media.IMediaNotificationService; import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTask; import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTaskProgressPublisher; import com.google.android.gms.dynamic.IObjectWrapper; import com.google.android.gms.dynamic.ObjectWrapper; import java.util.Map; Loading @@ -43,96 +40,36 @@ public class CastDynamiteModuleImpl extends ICastDynamiteModule.Stub { @Override public ICastContext newCastContextImpl(IObjectWrapper context, CastOptions options, IMediaRouter router, Map map) throws RemoteException { Log.d(TAG, "unimplemented Method: newCastContextImpl"); return new ICastContext.Stub() { @Override public Bundle getMergedSelectorAsBundle() throws RemoteException { Log.d(TAG, "unimplemented Method: getMergedSelectorAsBundle"); return new Bundle(); } @Override public boolean isApplicationVisible() throws RemoteException { Log.d(TAG, "unimplemented Method: isApplicationVisible"); return true; } @Override public ISessionManager getSessionManager() throws RemoteException { Log.d(TAG, "unimplemented Method: getSessionManager"); return new ISessionManager.Stub(){ @Override public IObjectWrapper getWrappedCurrentSession() throws RemoteException { Log.d(TAG, "unimplemented Method: getWrappedCurrentSession"); return ObjectWrapper.wrap(null); } @Override public void endCurrentSession(boolean b, boolean stopCasting) throws RemoteException { Log.d(TAG, "unimplemented Method: endCurrentSession"); } @Override public IObjectWrapper getWrappedThis() throws RemoteException { Log.d(TAG, "unimplemented Method: getWrappedThis"); return ObjectWrapper.wrap(this); } }; } @Override public void destroy() throws RemoteException { Log.d(TAG, "unimplemented Method: destroy"); } @Override public void onActivityResumed(IObjectWrapper activity) throws RemoteException { Log.d(TAG, "unimplemented Method: onActivityResumed"); } @Override public void onActivityPaused(IObjectWrapper activity) throws RemoteException { Log.d(TAG, "unimplemented Method: onActivityPaused"); } }; return null; } @Override public ISession newSessionImpl(String s1, String s2, ISessionProxy proxy) throws RemoteException { Log.d(TAG, "unimplemented Method: newSessionImpl"); return new ISession.Stub() { }; return null; } @Override public ICastSession newCastSessionImpl(CastOptions options, IObjectWrapper session, ICastConnectionController controller) throws RemoteException { Log.d(TAG, "unimplemented Method: newCastSessionImpl"); return new ICastSession.Stub() { }; return null; } @Override public IMediaNotificationService newMediaNotificationServiceImpl(IObjectWrapper service, IObjectWrapper castContext, IObjectWrapper resources, CastMediaOptions options) throws RemoteException { Log.d(TAG, "unimplemented Method: newMediaNotificationServiceImpl"); return new IMediaNotificationService.Stub() { }; return null; } @Override public IReconnectionService newReconnectionServiceImpl(IObjectWrapper service, IObjectWrapper sessionManager, IObjectWrapper discoveryManager) throws RemoteException { Log.d(TAG, "unimplemented Method: newReconnectionServiceImpl"); return new IReconnectionService.Stub() { }; return null; } @Override public IFetchBitmapTask newFetchBitmapTaskImpl(IObjectWrapper asyncTask, IFetchBitmapTaskProgressPublisher progressPublisher, int i1, int i2, boolean b1, long l1, int i3, int i4, int i5) throws RemoteException { Log.d(TAG, "unimplemented Method: newFetchBitmapTaskImpl"); return new IFetchBitmapTask.Stub() { }; return null; } } play-services-core/src/main/java/org/microg/gms/measurement/MeasurementBrokerService.java 0 → 100644 +39 −0 Original line number Diff line number Diff line /* * Copyright (C) 2018 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.measurement; import android.os.RemoteException; import android.util.Log; import com.google.android.gms.common.api.CommonStatusCodes; import com.google.android.gms.common.api.Status; import com.google.android.gms.common.internal.GetServiceRequest; import com.google.android.gms.common.internal.IGmsCallbacks; import org.microg.gms.BaseService; import org.microg.gms.common.GmsService; public class MeasurementBrokerService extends BaseService { public MeasurementBrokerService() { super("GmsMeasureBrokerSvc", GmsService.MEASUREMENT); } @Override public void handleServiceRequest(IGmsCallbacks callback, GetServiceRequest request, GmsService service) throws RemoteException { callback.onPostInitComplete(CommonStatusCodes.SUCCESS, new MeasurementServiceImpl().asBinder(), null); } } Loading
GmsApi @ 216861e7 Compare db0be6ba to 216861e7 Original line number Diff line number Diff line Subproject commit db0be6ba010f52b4d12e69aed2482c38a3c2406c Subproject commit 216861e7dd86b11d6fcaafb87f64c22fa35af445
GmsLib @ 7015d9e7 Compare 90e9b7b7 to 7015d9e7 Original line number Diff line number Diff line Subproject commit 90e9b7b79dcaddfce887f87b94f80adeed8791e6 Subproject commit 7015d9e7f8f793e3b6d009a6e453f84f35b9d1c8
play-services-core/src/main/AndroidManifest.xml +14 −0 Original line number Diff line number Diff line Loading @@ -491,6 +491,20 @@ <!-- Other --> <provider android:name="org.microg.gms.phenotype.ConfigurationProvider" android:authorities="com.google.android.gms.phenotype" android:exported="true"/> <service android:name="org.microg.gms.measurement.MeasurementBrokerService" android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.measurement.START"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </service> <service android:name="org.microg.gms.mdm.NetworkQualityService"> <intent-filter> <action android:name="com.google.android.gms.mdm.services.START"/> Loading
play-services-core/src/main/java/com/google/android/gms/cast/framework/internal/CastDynamiteModuleImpl.java +6 −69 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.google.android.gms.cast.framework.internal; import android.os.Bundle; import android.os.RemoteException; import android.util.Log; Loading @@ -26,14 +25,12 @@ import com.google.android.gms.cast.framework.ICastContext; import com.google.android.gms.cast.framework.ICastSession; import com.google.android.gms.cast.framework.IReconnectionService; import com.google.android.gms.cast.framework.ISession; import com.google.android.gms.cast.framework.ISessionManager; import com.google.android.gms.cast.framework.ISessionProxy; import com.google.android.gms.cast.framework.media.CastMediaOptions; import com.google.android.gms.cast.framework.media.IMediaNotificationService; import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTask; import com.google.android.gms.cast.framework.media.internal.IFetchBitmapTaskProgressPublisher; import com.google.android.gms.dynamic.IObjectWrapper; import com.google.android.gms.dynamic.ObjectWrapper; import java.util.Map; Loading @@ -43,96 +40,36 @@ public class CastDynamiteModuleImpl extends ICastDynamiteModule.Stub { @Override public ICastContext newCastContextImpl(IObjectWrapper context, CastOptions options, IMediaRouter router, Map map) throws RemoteException { Log.d(TAG, "unimplemented Method: newCastContextImpl"); return new ICastContext.Stub() { @Override public Bundle getMergedSelectorAsBundle() throws RemoteException { Log.d(TAG, "unimplemented Method: getMergedSelectorAsBundle"); return new Bundle(); } @Override public boolean isApplicationVisible() throws RemoteException { Log.d(TAG, "unimplemented Method: isApplicationVisible"); return true; } @Override public ISessionManager getSessionManager() throws RemoteException { Log.d(TAG, "unimplemented Method: getSessionManager"); return new ISessionManager.Stub(){ @Override public IObjectWrapper getWrappedCurrentSession() throws RemoteException { Log.d(TAG, "unimplemented Method: getWrappedCurrentSession"); return ObjectWrapper.wrap(null); } @Override public void endCurrentSession(boolean b, boolean stopCasting) throws RemoteException { Log.d(TAG, "unimplemented Method: endCurrentSession"); } @Override public IObjectWrapper getWrappedThis() throws RemoteException { Log.d(TAG, "unimplemented Method: getWrappedThis"); return ObjectWrapper.wrap(this); } }; } @Override public void destroy() throws RemoteException { Log.d(TAG, "unimplemented Method: destroy"); } @Override public void onActivityResumed(IObjectWrapper activity) throws RemoteException { Log.d(TAG, "unimplemented Method: onActivityResumed"); } @Override public void onActivityPaused(IObjectWrapper activity) throws RemoteException { Log.d(TAG, "unimplemented Method: onActivityPaused"); } }; return null; } @Override public ISession newSessionImpl(String s1, String s2, ISessionProxy proxy) throws RemoteException { Log.d(TAG, "unimplemented Method: newSessionImpl"); return new ISession.Stub() { }; return null; } @Override public ICastSession newCastSessionImpl(CastOptions options, IObjectWrapper session, ICastConnectionController controller) throws RemoteException { Log.d(TAG, "unimplemented Method: newCastSessionImpl"); return new ICastSession.Stub() { }; return null; } @Override public IMediaNotificationService newMediaNotificationServiceImpl(IObjectWrapper service, IObjectWrapper castContext, IObjectWrapper resources, CastMediaOptions options) throws RemoteException { Log.d(TAG, "unimplemented Method: newMediaNotificationServiceImpl"); return new IMediaNotificationService.Stub() { }; return null; } @Override public IReconnectionService newReconnectionServiceImpl(IObjectWrapper service, IObjectWrapper sessionManager, IObjectWrapper discoveryManager) throws RemoteException { Log.d(TAG, "unimplemented Method: newReconnectionServiceImpl"); return new IReconnectionService.Stub() { }; return null; } @Override public IFetchBitmapTask newFetchBitmapTaskImpl(IObjectWrapper asyncTask, IFetchBitmapTaskProgressPublisher progressPublisher, int i1, int i2, boolean b1, long l1, int i3, int i4, int i5) throws RemoteException { Log.d(TAG, "unimplemented Method: newFetchBitmapTaskImpl"); return new IFetchBitmapTask.Stub() { }; return null; } }
play-services-core/src/main/java/org/microg/gms/measurement/MeasurementBrokerService.java 0 → 100644 +39 −0 Original line number Diff line number Diff line /* * Copyright (C) 2018 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.measurement; import android.os.RemoteException; import android.util.Log; import com.google.android.gms.common.api.CommonStatusCodes; import com.google.android.gms.common.api.Status; import com.google.android.gms.common.internal.GetServiceRequest; import com.google.android.gms.common.internal.IGmsCallbacks; import org.microg.gms.BaseService; import org.microg.gms.common.GmsService; public class MeasurementBrokerService extends BaseService { public MeasurementBrokerService() { super("GmsMeasureBrokerSvc", GmsService.MEASUREMENT); } @Override public void handleServiceRequest(IGmsCallbacks callback, GetServiceRequest request, GmsService service) throws RemoteException { callback.onPostInitComplete(CommonStatusCodes.SUCCESS, new MeasurementServiceImpl().asBinder(), null); } }