From 2403f97e18479150cfe6fce6d6358ddb1561acb9 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Tue, 12 Dec 2017 11:36:01 -0600 Subject: [PATCH] Add fake contact sync to fix AOSP contact app --- .../src/main/AndroidManifest.xml | 11 +++++++ .../microg/gms/people/ContactSyncService.java | 30 +++++++++++++++++++ .../src/main/res/xml/contact_syncadapter.xml | 21 +++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 play-services-core/src/main/java/org/microg/gms/people/ContactSyncService.java create mode 100644 play-services-core/src/main/res/xml/contact_syncadapter.xml diff --git a/play-services-core/src/main/AndroidManifest.xml b/play-services-core/src/main/AndroidManifest.xml index cdb97333..9dc7a89a 100644 --- a/play-services-core/src/main/AndroidManifest.xml +++ b/play-services-core/src/main/AndroidManifest.xml @@ -289,6 +289,17 @@ + + + + + + + diff --git a/play-services-core/src/main/java/org/microg/gms/people/ContactSyncService.java b/play-services-core/src/main/java/org/microg/gms/people/ContactSyncService.java new file mode 100644 index 00000000..96c2bb85 --- /dev/null +++ b/play-services-core/src/main/java/org/microg/gms/people/ContactSyncService.java @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2017 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.people; + +import android.app.Service; +import android.content.Intent; +import android.os.IBinder; +import android.support.annotation.Nullable; + +public class ContactSyncService extends Service { + @Nullable + @Override + public IBinder onBind(Intent intent) { + return null; + } +} diff --git a/play-services-core/src/main/res/xml/contact_syncadapter.xml b/play-services-core/src/main/res/xml/contact_syncadapter.xml new file mode 100644 index 00000000..4106b1f3 --- /dev/null +++ b/play-services-core/src/main/res/xml/contact_syncadapter.xml @@ -0,0 +1,21 @@ + + + + \ No newline at end of file