Loading play-services-core/src/main/AndroidManifest.xml +71 −41 Original line number Diff line number Diff line Loading @@ -13,55 +13,68 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.android.gms" android:versionName="1.0" android:versionCode="6772000"> android:versionCode="6772000" android:versionName="1.0"> <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" /> <permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <permission android:name="com.google.android.c2dm.permission.RECEIVE" android:protectionLevel="dangerous" android:permissionGroup="android.permission-group.NETWORK" android:label="@string/perm_c2dm_receive_label" /> <permission android:name="com.google.android.c2dm.permission.SEND" android:protectionLevel="dangerous" /> android:protectionLevel="dangerous" android:label="@string/perm_c2dm_send_label" /> <permission-tree android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" /> <permission-tree android:icon="@drawable/proprietary_auth_ic_scope_icon_default" android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" /> <permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.local" android:label="@string/permission_service_local_label" android:description="@string/permission_service_local_description" /> android:protectionLevel="dangerous" android:description="@string/permission_service_local_description" android:label="@string/permission_service_local_label" /> <permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" android:label="@string/permission_service_mail_label" android:description="@string/permission_service_mail_description" /> android:protectionLevel="dangerous" android:description="@string/permission_service_mail_description" android:label="@string/permission_service_mail_label" /> <permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.writely" android:label="@string/permission_service_writely_label" android:description="@string/permission_service_writely_description" /> android:protectionLevel="dangerous" android:description="@string/permission_service_writely_description" android:label="@string/permission_service_writely_label" /> <uses-permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE" /> <permission android:name="org.microg.gms.STATUS_BROADCAST" android:protectionLevel="dangerous" android:label="@string/perm_status_broadcast_label" /> <uses-permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="com.google.android.c2dm.permission.SEND" /> <uses-permission android:name="org.microg.gms.STATUS_BROADCAST" /> <application android:label="@string/gms_app_name" android:icon="@drawable/ic_microg_app"> android:icon="@drawable/ic_microg_app" android:label="@string/gms_app_name"> <meta-data android:name="fake-signature" android:value="@string/fake_signature" /> Loading @@ -76,10 +89,6 @@ </intent-filter> </service> <!-- ~ TODO: maybe this should go in UnifiedNlp? ~ Only if fake signature is not required --> <service android:name="org.microg.gms.location.ReportingAndroidService"> <intent-filter> <action android:name="com.google.android.location.reporting.service.START" /> Loading @@ -93,13 +102,13 @@ <provider android:name="org.microg.gms.gservices.GServicesProvider" android:exported="true" android:authorities="com.google.android.gsf.gservices" /> android:authorities="com.google.android.gsf.gservices" android:exported="true" /> <provider android:name="org.microg.gms.settings.GoogleSettingsProvider" android:exported="true" android:authorities="com.google.settings" /> android:authorities="com.google.settings" android:exported="true" /> <provider android:name="org.microg.gms.feeds.SubscribedFeedsProvider" Loading @@ -119,10 +128,12 @@ </intent-filter> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="android.server.checkin.CHECKIN" /> </intent-filter> <intent-filter> <action android:name="android.provider.Telephony.SECRET_CODE" /> <data android:host="2432546" android:scheme="android_secret_code" /> Loading @@ -136,29 +147,38 @@ android:permission="com.google.android.c2dm.permission.RECEIVE"> <intent-filter> <action android:name="com.google.android.c2dm.intent.REGISTER" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <intent-filter> <action android:name="com.google.android.c2dm.intent.UNREGISTER" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> <service android:name="org.microg.gms.gcm.mcs.McsService" android:name="org.microg.gms.gcm.McsService" android:exported="true" /> <service android:name="com.google.android.gms.gcm.http.GoogleHttpService" android:exported="true" /> <receiver android:name="org.microg.gms.gcm.TriggerReceiver"> <intent-filter> <action android:name="android.provider.Telephony.SECRET_CODE" /> <data android:host="42678278" android:scheme="android_secret_code" /> </intent-filter> </receiver> <!-- DroidGuard --> <service android:exported="true" android:name="org.microg.gms.droidguard.DroidGuardService"> android:name="org.microg.gms.droidguard.DroidGuardService" android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.droidguard.service.START" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> Loading @@ -170,6 +190,7 @@ android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.people.service.START" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> Loading Loading @@ -206,36 +227,39 @@ <activity android:name="org.microg.tools.AccountPickerActivity" android:exported="true" android:excludeFromRecents="true"> android:excludeFromRecents="true" android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.common.account.CHOOSE_ACCOUNT" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name="org.microg.gms.auth.login.LoginActivity" android:theme="@style/LoginBlueTheme" android:configChanges="keyboardHidden|orientation|screenSize" android:exported="true"> android:exported="true" android:theme="@style/LoginBlueTheme"> <intent-filter> <action android:name="com.google.android.gms.auth.login.LOGIN" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name="org.microg.gms.auth.AskPermissionActivity" android:theme="@style/Theme.AppCompat.Light.Dialog" android:excludeFromRecents="true" android:exported="true" android:excludeFromRecents="true" /> android:theme="@style/Theme.AppCompat.Light.Dialog" /> <service android:name="com.google.android.gms.auth.GetToken" android:name=".auth.GetToken" android:exported="true" /> <activity android:name="com.google.android.gms.auth.TokenActivity" android:name=".auth.TokenActivity" android:exported="true" /> <!-- Other --> Loading @@ -245,6 +269,7 @@ android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.mdm.services.START" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> Loading Loading @@ -280,5 +305,10 @@ <action android:name="com.google.android.gms.playlog.service.START" /> </intent-filter> </service> <service android:name=".gcm.http.GoogleHttpService" android:exported="true" /> </application> </manifest> play-services-core/src/main/java/org/microg/gms/checkin/TriggerReceiver.java +1 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ public class TriggerReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "Trigger checkin: " + intent); Intent subIntent = new Intent(context, CheckinService.class); if ("android.provider.Telephony.SECRET_CODE".equals(intent.getAction())) { subIntent.putExtra("force", true); Loading play-services-core/src/main/java/org/microg/gms/gcm/mcs/Constants.java→play-services-core/src/main/java/org/microg/gms/gcm/Constants.java +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package org.microg.gms.gcm.mcs; package org.microg.gms.gcm; public class Constants { public static final int MCS_HEARTBEAT_PING_TAG = 0; Loading play-services-core/src/main/java/org/microg/gms/gcm/mcs/McsInputStream.java→play-services-core/src/main/java/org/microg/gms/gcm/McsInputStream.java +16 −8 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package org.microg.gms.gcm.mcs; package org.microg.gms.gcm; import android.util.Base64; import android.util.Log; Loading @@ -22,16 +22,24 @@ import android.util.Log; import com.squareup.wire.Message; import com.squareup.wire.Wire; import org.microg.gms.gcm.mcs.Close; import org.microg.gms.gcm.mcs.DataMessageStanza; import org.microg.gms.gcm.mcs.HeartbeatAck; import org.microg.gms.gcm.mcs.HeartbeatPing; import org.microg.gms.gcm.mcs.IqStanza; import org.microg.gms.gcm.mcs.LoginRequest; import org.microg.gms.gcm.mcs.LoginResponse; import java.io.IOException; import java.io.InputStream; import static org.microg.gms.gcm.mcs.Constants.MCS_CLOSE_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_DATA_MESSAGE_STANZA_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_HEARTBEAT_ACK_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_HEARTBEAT_PING_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_IQ_STANZA_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_LOGIN_REQUEST_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_LOGIN_RESPONSE_TAG; import static org.microg.gms.gcm.Constants.MCS_CLOSE_TAG; import static org.microg.gms.gcm.Constants.MCS_DATA_MESSAGE_STANZA_TAG; import static org.microg.gms.gcm.Constants.MCS_HEARTBEAT_ACK_TAG; import static org.microg.gms.gcm.Constants.MCS_HEARTBEAT_PING_TAG; import static org.microg.gms.gcm.Constants.MCS_IQ_STANZA_TAG; import static org.microg.gms.gcm.Constants.MCS_LOGIN_REQUEST_TAG; import static org.microg.gms.gcm.Constants.MCS_LOGIN_RESPONSE_TAG; public class McsInputStream { private static final String TAG = "GmsGcmMcsInput"; Loading play-services-core/src/main/java/org/microg/gms/gcm/mcs/McsMessage.java→play-services-core/src/main/java/org/microg/gms/gcm/McsMessage.java +4 −0 Original line number Diff line number Diff line package org.microg.gms.gcm.mcs; package org.microg.gms.gcm; public class McsMessage { } Loading
play-services-core/src/main/AndroidManifest.xml +71 −41 Original line number Diff line number Diff line Loading @@ -13,55 +13,68 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.android.gms" android:versionName="1.0" android:versionCode="6772000"> android:versionCode="6772000" android:versionName="1.0"> <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" /> <permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <permission android:name="com.google.android.c2dm.permission.RECEIVE" android:protectionLevel="dangerous" android:permissionGroup="android.permission-group.NETWORK" android:label="@string/perm_c2dm_receive_label" /> <permission android:name="com.google.android.c2dm.permission.SEND" android:protectionLevel="dangerous" /> android:protectionLevel="dangerous" android:label="@string/perm_c2dm_send_label" /> <permission-tree android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" /> <permission-tree android:icon="@drawable/proprietary_auth_ic_scope_icon_default" android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" /> <permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.local" android:label="@string/permission_service_local_label" android:description="@string/permission_service_local_description" /> android:protectionLevel="dangerous" android:description="@string/permission_service_local_description" android:label="@string/permission_service_local_label" /> <permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" android:label="@string/permission_service_mail_label" android:description="@string/permission_service_mail_description" /> android:protectionLevel="dangerous" android:description="@string/permission_service_mail_description" android:label="@string/permission_service_mail_label" /> <permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.writely" android:label="@string/permission_service_writely_label" android:description="@string/permission_service_writely_description" /> android:protectionLevel="dangerous" android:description="@string/permission_service_writely_description" android:label="@string/permission_service_writely_label" /> <uses-permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE" /> <permission android:name="org.microg.gms.STATUS_BROADCAST" android:protectionLevel="dangerous" android:label="@string/perm_status_broadcast_label" /> <uses-permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="com.google.android.c2dm.permission.SEND" /> <uses-permission android:name="org.microg.gms.STATUS_BROADCAST" /> <application android:label="@string/gms_app_name" android:icon="@drawable/ic_microg_app"> android:icon="@drawable/ic_microg_app" android:label="@string/gms_app_name"> <meta-data android:name="fake-signature" android:value="@string/fake_signature" /> Loading @@ -76,10 +89,6 @@ </intent-filter> </service> <!-- ~ TODO: maybe this should go in UnifiedNlp? ~ Only if fake signature is not required --> <service android:name="org.microg.gms.location.ReportingAndroidService"> <intent-filter> <action android:name="com.google.android.location.reporting.service.START" /> Loading @@ -93,13 +102,13 @@ <provider android:name="org.microg.gms.gservices.GServicesProvider" android:exported="true" android:authorities="com.google.android.gsf.gservices" /> android:authorities="com.google.android.gsf.gservices" android:exported="true" /> <provider android:name="org.microg.gms.settings.GoogleSettingsProvider" android:exported="true" android:authorities="com.google.settings" /> android:authorities="com.google.settings" android:exported="true" /> <provider android:name="org.microg.gms.feeds.SubscribedFeedsProvider" Loading @@ -119,10 +128,12 @@ </intent-filter> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="android.server.checkin.CHECKIN" /> </intent-filter> <intent-filter> <action android:name="android.provider.Telephony.SECRET_CODE" /> <data android:host="2432546" android:scheme="android_secret_code" /> Loading @@ -136,29 +147,38 @@ android:permission="com.google.android.c2dm.permission.RECEIVE"> <intent-filter> <action android:name="com.google.android.c2dm.intent.REGISTER" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <intent-filter> <action android:name="com.google.android.c2dm.intent.UNREGISTER" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> <service android:name="org.microg.gms.gcm.mcs.McsService" android:name="org.microg.gms.gcm.McsService" android:exported="true" /> <service android:name="com.google.android.gms.gcm.http.GoogleHttpService" android:exported="true" /> <receiver android:name="org.microg.gms.gcm.TriggerReceiver"> <intent-filter> <action android:name="android.provider.Telephony.SECRET_CODE" /> <data android:host="42678278" android:scheme="android_secret_code" /> </intent-filter> </receiver> <!-- DroidGuard --> <service android:exported="true" android:name="org.microg.gms.droidguard.DroidGuardService"> android:name="org.microg.gms.droidguard.DroidGuardService" android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.droidguard.service.START" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> Loading @@ -170,6 +190,7 @@ android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.people.service.START" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> Loading Loading @@ -206,36 +227,39 @@ <activity android:name="org.microg.tools.AccountPickerActivity" android:exported="true" android:excludeFromRecents="true"> android:excludeFromRecents="true" android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.common.account.CHOOSE_ACCOUNT" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name="org.microg.gms.auth.login.LoginActivity" android:theme="@style/LoginBlueTheme" android:configChanges="keyboardHidden|orientation|screenSize" android:exported="true"> android:exported="true" android:theme="@style/LoginBlueTheme"> <intent-filter> <action android:name="com.google.android.gms.auth.login.LOGIN" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name="org.microg.gms.auth.AskPermissionActivity" android:theme="@style/Theme.AppCompat.Light.Dialog" android:excludeFromRecents="true" android:exported="true" android:excludeFromRecents="true" /> android:theme="@style/Theme.AppCompat.Light.Dialog" /> <service android:name="com.google.android.gms.auth.GetToken" android:name=".auth.GetToken" android:exported="true" /> <activity android:name="com.google.android.gms.auth.TokenActivity" android:name=".auth.TokenActivity" android:exported="true" /> <!-- Other --> Loading @@ -245,6 +269,7 @@ android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.mdm.services.START" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </service> Loading Loading @@ -280,5 +305,10 @@ <action android:name="com.google.android.gms.playlog.service.START" /> </intent-filter> </service> <service android:name=".gcm.http.GoogleHttpService" android:exported="true" /> </application> </manifest>
play-services-core/src/main/java/org/microg/gms/checkin/TriggerReceiver.java +1 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ public class TriggerReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "Trigger checkin: " + intent); Intent subIntent = new Intent(context, CheckinService.class); if ("android.provider.Telephony.SECRET_CODE".equals(intent.getAction())) { subIntent.putExtra("force", true); Loading
play-services-core/src/main/java/org/microg/gms/gcm/mcs/Constants.java→play-services-core/src/main/java/org/microg/gms/gcm/Constants.java +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package org.microg.gms.gcm.mcs; package org.microg.gms.gcm; public class Constants { public static final int MCS_HEARTBEAT_PING_TAG = 0; Loading
play-services-core/src/main/java/org/microg/gms/gcm/mcs/McsInputStream.java→play-services-core/src/main/java/org/microg/gms/gcm/McsInputStream.java +16 −8 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package org.microg.gms.gcm.mcs; package org.microg.gms.gcm; import android.util.Base64; import android.util.Log; Loading @@ -22,16 +22,24 @@ import android.util.Log; import com.squareup.wire.Message; import com.squareup.wire.Wire; import org.microg.gms.gcm.mcs.Close; import org.microg.gms.gcm.mcs.DataMessageStanza; import org.microg.gms.gcm.mcs.HeartbeatAck; import org.microg.gms.gcm.mcs.HeartbeatPing; import org.microg.gms.gcm.mcs.IqStanza; import org.microg.gms.gcm.mcs.LoginRequest; import org.microg.gms.gcm.mcs.LoginResponse; import java.io.IOException; import java.io.InputStream; import static org.microg.gms.gcm.mcs.Constants.MCS_CLOSE_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_DATA_MESSAGE_STANZA_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_HEARTBEAT_ACK_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_HEARTBEAT_PING_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_IQ_STANZA_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_LOGIN_REQUEST_TAG; import static org.microg.gms.gcm.mcs.Constants.MCS_LOGIN_RESPONSE_TAG; import static org.microg.gms.gcm.Constants.MCS_CLOSE_TAG; import static org.microg.gms.gcm.Constants.MCS_DATA_MESSAGE_STANZA_TAG; import static org.microg.gms.gcm.Constants.MCS_HEARTBEAT_ACK_TAG; import static org.microg.gms.gcm.Constants.MCS_HEARTBEAT_PING_TAG; import static org.microg.gms.gcm.Constants.MCS_IQ_STANZA_TAG; import static org.microg.gms.gcm.Constants.MCS_LOGIN_REQUEST_TAG; import static org.microg.gms.gcm.Constants.MCS_LOGIN_RESPONSE_TAG; public class McsInputStream { private static final String TAG = "GmsGcmMcsInput"; Loading
play-services-core/src/main/java/org/microg/gms/gcm/mcs/McsMessage.java→play-services-core/src/main/java/org/microg/gms/gcm/McsMessage.java +4 −0 Original line number Diff line number Diff line package org.microg.gms.gcm.mcs; package org.microg.gms.gcm; public class McsMessage { }