0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-27 21:53:00 +00:00
This commit is contained in:
KevinX8 2020-07-16 03:08:12 +03:00
commit 1fa69cd352
914 changed files with 35547 additions and 621 deletions

15
.gitmodules vendored
View file

@ -1,15 +0,0 @@
[submodule "extern/UnifiedNlp"]
path = extern/UnifiedNlp
url = https://github.com/microg/android_packages_apps_UnifiedNlp.git
[submodule "extern/GmsApi"]
path = extern/GmsApi
url = https://github.com/microg/android_external_GmsApi.git
[submodule "extern/Wearable"]
path = extern/Wearable
url = https://github.com/microg/android_external_Wearable.git
[submodule "extern/GmsLib"]
path = extern/GmsLib
url = https://github.com/microg/android_external_GmsLib.git
[submodule "extern/RemoteDroidGuard"]
path = extern/RemoteDroidGuard
url = https://github.com/microg/android_packages_apps_RemoteDroidGuard.git

View file

@ -10,7 +10,6 @@ android:
components: components:
- tools - tools
- platform-tools - platform-tools
- build-tools-29.0.2 - build-tools-29.0.3
- android-27 - android-29
- android-28
- extra-android-m2repository - extra-android-m2repository

View file

@ -1,63 +1,110 @@
/* /*
* Copyright 2013-2019 microG Project Team * SPDX-FileCopyrightText: 2013, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* 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.
*/ */
buildscript { buildscript {
ext.kotlin_version = '1.3.21' ext.nlpVersion = '2.0-alpha1'
ext.remoteDroidGuardVersion = '0.1.1'
ext.safeParcelVersion = '1.6.0'
ext.wearableVersion = '0.1.1'
ext.kotlinVersion = '1.3.72'
ext.coroutineVersion = '1.3.7'
ext.annotationVersion = '1.1.0'
ext.appcompatVersion = '1.1.0'
ext.fragmentVersion = '1.2.5'
ext.lifecycleVersion = '2.2.0'
ext.mediarouterVersion = '1.1.0'
ext.multidexVersion = '2.0.1'
ext.navigationVersion = '2.3.0'
ext.preferenceVersion = '1.1.1'
ext.recyclerviewVersion = '1.1.0'
ext.supportLibraryVersion = "28.0.0"
ext.slf4jVersion = "1.7.25"
ext.androidBuildGradleVersion = "3.6.3"
ext.androidBuildVersionTools = "29.0.3"
ext.androidMinSdk = 14
ext.androidTargetSdk = 29
ext.androidCompileSdk = 29
repositories { repositories {
jcenter() jcenter()
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.5.1' classpath "com.android.tools.build:gradle:$androidBuildGradleVersion"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }
def execResult(...args) {
def stdout = new ByteArrayOutputStream()
exec {
commandLine args
standardOutput = stdout
}
return stdout.toString().trim()
}
def gmsVersion = "19.4.20"
def gmsVersionCode = Integer.parseInt(gmsVersion.replaceAll('\\.', ''))
def gitVersionBase = execResult('git', 'describe', '--tags', '--abbrev=0', '--match=v[0-9]*').substring(1)
def gitCommitCount = Integer.parseInt(execResult('git', 'rev-list', '--count', "v$gitVersionBase..HEAD"))
def gitCommitId = execResult('git', 'show-ref', '--abbrev=7', '--head', 'HEAD').split(' ')[0]
def gitDirty = execResult('git', 'status', '--porcelain').size() > 0
def ourVersionBase = gitVersionBase.substring(0, gitVersionBase.lastIndexOf('.'))
def ourVersionMinor = Integer.parseInt(ourVersionBase.substring(ourVersionBase.lastIndexOf('.') + 1))
def ourVersionCode = gmsVersionCode * 1000 + ourVersionMinor * 2 + (gitCommitCount > 0 || gitDirty ? 1 : 0)
def ourVersionName = "$ourVersionBase.$gmsVersionCode" + (gitCommitCount > 0 && !gitDirty ? "-$gitCommitCount" : "") + (gitDirty ? "-dirty" : "") + (gitCommitCount > 0 && !gitDirty ? " ($gitCommitId)" : "")
logger.lifecycle('Starting build for version {} ({})...', ourVersionName, ourVersionCode)
@Deprecated
String getMyVersionName() {
return ourVersionName
}
@Deprecated
int getMyVersionCode() {
return ourVersionCode
}
allprojects { allprojects {
apply plugin: 'idea' apply plugin: 'idea'
ext.androidBuildVersionTools = "29.0.2"
ext.supportLibraryVersion = "28.0.0" group = 'org.microg.gms'
version = ourVersionName
ext.appVersionCode = ourVersionCode
ext.isReleaseVersion = false ext.isReleaseVersion = false
ext.slf4jVersion = "1.7.25"
} }
def androidCompileSdk() { return 28 } @Deprecated
def androidCompileSdk() { return androidCompileSdk }
def androidTargetSdk() { return 29 } @Deprecated
def androidTargetSdk() { return androidTargetSdk }
def androidMinSdk() { return 14 } @Deprecated
def androidMinSdk() { return androidMinSdk }
@Deprecated
def versionCode() { def versionCode() {
def stdout = new ByteArrayOutputStream() return ourVersionCode
exec { commandLine 'git', 'rev-list', '--count', "HEAD"; standardOutput = stdout }
return Integer.parseInt(stdout.toString().trim())
} }
@Deprecated
def versionName() { def versionName() {
def stdout = new ByteArrayOutputStream() return ourVersionName
if (rootProject.file("gradlew").exists())
exec { commandLine 'git', 'describe', '--tags', '--always', '--dirty'; standardOutput = stdout }
else // automatic build system, don't tag dirty
exec { commandLine 'git', 'describe', '--tags', '--always'; standardOutput = stdout }
return stdout.toString().trim().substring(1)
} }
subprojects { subprojects {
group = 'org.microg'
repositories { repositories {
jcenter() jcenter()
google() google()

1
extern/GmsApi vendored

@ -1 +0,0 @@
Subproject commit 2a43448e49dc0aec0d6c53c8a27dd58245fdaba6

1
extern/GmsLib vendored

@ -1 +0,0 @@
Subproject commit 15cd4491bcca57d627796b35b69bdf8c97564792

1
extern/UnifiedNlp vendored

@ -1 +0,0 @@
Subproject commit 82479b79c76353f532e0c6edd0d1dee8d49c48f4

1
gradle.properties Normal file
View file

@ -0,0 +1 @@
android.useAndroidX=true

View file

@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-all.zip

View file

@ -1 +0,0 @@
extern/UnifiedNlp/microg-ui-tools/

View file

@ -1 +0,0 @@
extern/GmsApi/play-services-api

View file

@ -0,0 +1,42 @@
/*
* Copyright 2013-2015 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.
*/
apply plugin: 'com.android.library'
android {
compileSdkVersion androidCompileSdk
buildToolsVersion "$androidBuildVersionTools"
defaultConfig {
versionName version
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}
dependencies {
api project(':play-services-basement')
api project(':play-services-cast-api')
api project(':play-services-cast-framework-api')
api project(':play-services-iid-api')
api project(':play-services-location-api')
api project(':play-services-wearable-api')
}

View file

@ -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.
#
POM_NAME=Play Services Internal API
POM_DESCRIPTION=Interfaces and objects for IPC between Play Services Library and Play Services Core
POM_PACKAGING=aar
POM_URL=https://github.com/microg/android_external_GmsApi
POM_SCM_URL=https://github.com/microg/android_external_GmsApi
POM_SCM_CONNECTION=scm:git@github.com:microg/android_external_GmsApi.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:microg/android_external_GmsApi.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=mar-v-in
POM_DEVELOPER_NAME=Marvin W

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2013-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.
-->
<manifest package="org.microg.gms.api"/>

View file

@ -0,0 +1,14 @@
package com.google.android.auth;
import android.os.Bundle;
import android.accounts.Account;
import com.google.android.gms.auth.AccountChangeEventsResponse;
import com.google.android.gms.auth.AccountChangeEventsRequest;
interface IAuthManagerService {
Bundle getToken(String accountName, String scope, in Bundle extras) = 0;
Bundle clearToken(String token, in Bundle extras) = 1;
AccountChangeEventsResponse getChangeEvents(in AccountChangeEventsRequest request) = 2;
Bundle getTokenWithAccount(in Account account, String scope, in Bundle extras) = 4;
}

View file

@ -0,0 +1,4 @@
package com.google.android.gms.ads;
interface AdManagerCreator {
}

View file

@ -0,0 +1,8 @@
package com.google.android.gms.ads.identifier.internal;
interface IAdvertisingIdService {
String getAdvertisingId() = 0;
boolean isAdTrackingLimited(boolean defaultHint) = 1;
String generateAdvertisingId(String packageName) = 2;
void setAdTrackingLimited(String packageName, boolean limited) = 3;
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.appdatasearch;
parcelable CorpusStatus;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.appdatasearch;
parcelable PIMEUpdate;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.appdatasearch;
parcelable PIMEUpdateResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.appdatasearch;
parcelable RequestIndexingSpecification;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.appdatasearch;
parcelable SuggestSpecification;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.appdatasearch;
parcelable SuggestionResults;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.appdatasearch;
parcelable UsageInfo;

View file

@ -0,0 +1,14 @@
package com.google.android.gms.appdatasearch.internal;
import com.google.android.gms.appdatasearch.CorpusStatus;
import com.google.android.gms.appdatasearch.PIMEUpdateResponse;
import com.google.android.gms.appdatasearch.RequestIndexingSpecification;
import com.google.android.gms.appdatasearch.SuggestionResults;
import com.google.android.gms.appdatasearch.SuggestSpecification;
interface IAppDataSearch {
SuggestionResults getSuggestions(String var1, String packageName, in String[] accounts, int maxNum, in SuggestSpecification specs) = 1;
boolean requestIndexing(String packageName, String accountName, long l, in RequestIndexingSpecification specs) = 3;
CorpusStatus getStatus(String packageName, String accountName) = 4;
PIMEUpdateResponse requestPIMEUpdate(String s1, String s2, int i, in byte[] bs) = 34;
}

View file

@ -0,0 +1,8 @@
package com.google.android.gms.appdatasearch.internal;
import com.google.android.gms.appdatasearch.internal.ILightweightAppDataSearchCallbacks;
import com.google.android.gms.appdatasearch.UsageInfo;
interface ILightweightAppDataSearch {
void view(ILightweightAppDataSearchCallbacks callbacks, String packageName, in UsageInfo[] usageInfos);
}

View file

@ -0,0 +1,4 @@
package com.google.android.gms.appdatasearch.internal;
interface ILightweightAppDataSearchCallbacks {
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.auth;
parcelable AccountChangeEventsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.auth;
parcelable AccountChangeEventsResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.auth.api.credentials;
parcelable Credential;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.auth.api.credentials;
parcelable CredentialRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.auth.api.credentials.internal;
parcelable DeleteRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.auth.api.credentials.internal;
parcelable GeneratePasswordRequest;

View file

@ -0,0 +1,10 @@
package com.google.android.gms.auth.api.credentials.internal;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.auth.api.credentials.Credential;
interface ICredentialsCallbacks {
void onStatusAndCredential(in Status status, in Credential credential) = 0;
void onStatus(in Status status) = 1;
void onStatusAndString(in Status status, String string) = 2;
}

View file

@ -0,0 +1,15 @@
package com.google.android.gms.auth.api.credentials.internal;
import com.google.android.gms.auth.api.credentials.CredentialRequest;
import com.google.android.gms.auth.api.credentials.internal.ICredentialsCallbacks;
import com.google.android.gms.auth.api.credentials.internal.DeleteRequest;
import com.google.android.gms.auth.api.credentials.internal.GeneratePasswordRequest;
import com.google.android.gms.auth.api.credentials.internal.SaveRequest;
interface ICredentialsService {
void request(ICredentialsCallbacks callbacks, in CredentialRequest request) = 0;
void save(ICredentialsCallbacks callbacks, in SaveRequest request) = 1;
void delete(ICredentialsCallbacks callbacks, in DeleteRequest request) = 2;
void disableAutoSignIn(ICredentialsCallbacks callbacks) = 3;
void generatePassword(ICredentialsCallbacks callbacks, in GeneratePasswordRequest request) = 4;
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.auth.api.credentials.internal;
parcelable SaveRequest;

View file

@ -0,0 +1,5 @@
package com.google.android.gms.checkin.internal;
interface ICheckinService {
String getDeviceDataVersionInfo();
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.clearcut;
parcelable LogEventParcelable;

View file

@ -0,0 +1,7 @@
package com.google.android.gms.clearcut.internal;
import com.google.android.gms.common.api.Status;
interface IClearcutLoggerCallbacks {
void onStatus(in Status status) = 0;
}

View file

@ -0,0 +1,8 @@
package com.google.android.gms.clearcut.internal;
import com.google.android.gms.clearcut.internal.IClearcutLoggerCallbacks;
import com.google.android.gms.clearcut.LogEventParcelable;
interface IClearcutLoggerService {
void log(IClearcutLoggerCallbacks callbacks, in LogEventParcelable event) = 0;
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.common.internal;
parcelable GoogleCertificatesQuery;

View file

@ -0,0 +1,8 @@
package com.google.android.gms.common.internal;
import com.google.android.gms.dynamic.IObjectWrapper;
interface ICertData {
IObjectWrapper getWrappedBytes();
int remoteHashCode();
}

View file

@ -0,0 +1,12 @@
package com.google.android.gms.common.internal;
import com.google.android.gms.common.internal.GoogleCertificatesQuery;
import com.google.android.gms.dynamic.IObjectWrapper;
interface IGoogleCertificatesApi {
IObjectWrapper getGoogleCertficates();
IObjectWrapper getGoogleReleaseCertificates();
boolean isGoogleReleaseSigned(String packageName, IObjectWrapper certData);
boolean isGoogleSigned(String packageName, IObjectWrapper certData);
boolean isGoogleOrPlatformSigned(in GoogleCertificatesQuery query, IObjectWrapper packageManager);
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable AddEventListenerRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable AddPermissionRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable AuthorizeAccessRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CancelPendingActionsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ChangeResourceParentsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ChangeSequenceNumber;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ChangesResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CheckResourceIdsExistRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CloseContentsAndUpdateMetadataRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CloseContentsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ContentsResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ControlProgressRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CreateContentsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CreateFileIntentSenderRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CreateFileRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable CreateFolderRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable DeleteResourceRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable DeviceUsagePreferenceResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable DisconnectRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable DownloadProgressResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable DriveIdResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable DrivePreferencesResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable DriveServiceResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable EventResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable FetchThumbnailRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable FetchThumbnailResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable GetChangesRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable GetDriveIdFromUniqueIdRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable GetMetadataRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable GetPermissionsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable GetPermissionsResponse;

View file

@ -0,0 +1,95 @@
package com.google.android.gms.drive.internal;
import com.google.android.gms.drive.internal.DriveServiceResponse;
import com.google.android.gms.drive.internal.IDriveServiceCallbacks;
import com.google.android.gms.drive.internal.IEventCallback;
import com.google.android.gms.drive.internal.AddEventListenerRequest;
import com.google.android.gms.drive.internal.AddPermissionRequest;
import com.google.android.gms.drive.internal.AuthorizeAccessRequest;
import com.google.android.gms.drive.internal.CancelPendingActionsRequest;
import com.google.android.gms.drive.internal.ChangeResourceParentsRequest;
import com.google.android.gms.drive.internal.CheckResourceIdsExistRequest;
import com.google.android.gms.drive.internal.CloseContentsAndUpdateMetadataRequest;
import com.google.android.gms.drive.internal.CloseContentsRequest;
import com.google.android.gms.drive.internal.ControlProgressRequest;
import com.google.android.gms.drive.internal.CreateContentsRequest;
import com.google.android.gms.drive.internal.CreateFileRequest;
import com.google.android.gms.drive.internal.CreateFileIntentSenderRequest;
import com.google.android.gms.drive.internal.CreateFolderRequest;
import com.google.android.gms.drive.internal.DeleteResourceRequest;
import com.google.android.gms.drive.internal.DisconnectRequest;
import com.google.android.gms.drive.internal.FetchThumbnailRequest;
import com.google.android.gms.drive.internal.GetChangesRequest;
import com.google.android.gms.drive.internal.GetDriveIdFromUniqueIdRequest;
import com.google.android.gms.drive.internal.GetMetadataRequest;
import com.google.android.gms.drive.internal.GetPermissionsRequest;
import com.google.android.gms.drive.internal.ListParentsRequest;
import com.google.android.gms.drive.internal.LoadRealtimeRequest;
import com.google.android.gms.drive.internal.OpenContentsRequest;
import com.google.android.gms.drive.internal.OpenFileIntentSenderRequest;
import com.google.android.gms.drive.internal.RealtimeDocumentSyncRequest;
import com.google.android.gms.drive.internal.RemoveEventListenerRequest;
import com.google.android.gms.drive.internal.RemovePermissionRequest;
import com.google.android.gms.drive.internal.SetDrivePreferencesRequest;
import com.google.android.gms.drive.internal.SetFileUploadPreferencesRequest;
import com.google.android.gms.drive.internal.SetResourceParentsRequest;
import com.google.android.gms.drive.internal.StreamContentsRequest;
import com.google.android.gms.drive.internal.TrashResourceRequest;
import com.google.android.gms.drive.internal.UnsubscribeResourceRequest;
import com.google.android.gms.drive.internal.UntrashResourceRequest;
import com.google.android.gms.drive.internal.UpdateMetadataRequest;
import com.google.android.gms.drive.internal.UpdatePermissionRequest;
interface IDriveService {
void getMetadata(in GetMetadataRequest request, IDriveServiceCallbacks callbacks) = 0;
void updateMetadata(in UpdateMetadataRequest request, IDriveServiceCallbacks callbacks) = 2;
void createContents(in CreateContentsRequest request, IDriveServiceCallbacks callbacks) = 3;
void createFile(in CreateFileRequest request, IDriveServiceCallbacks callbacks) = 4;
void createFolder(in CreateFolderRequest request, IDriveServiceCallbacks callbacks) = 5;
DriveServiceResponse openContents(in OpenContentsRequest request, IDriveServiceCallbacks callbacks) = 6;
void closeContents(in CloseContentsRequest request, IDriveServiceCallbacks callbacks) = 7;
void requestSync(IDriveServiceCallbacks callbacks) = 8;
IntentSender openFileIntentSender(in OpenFileIntentSenderRequest request) = 9;
IntentSender createFileIntentSender(in CreateFileIntentSenderRequest request) = 10;
void authorizeAccess(in AuthorizeAccessRequest request, IDriveServiceCallbacks callbacks) = 11;
void listParents(in ListParentsRequest request, IDriveServiceCallbacks callbacks) = 12;
void addEventListener(in AddEventListenerRequest request, IEventCallback callback, String unused, IDriveServiceCallbacks callbacks) = 13;
void removeEventListener(in RemoveEventListenerRequest request, IEventCallback callback, String unused, IDriveServiceCallbacks callbacks) = 14;
void disconnect(in DisconnectRequest request) = 15;
void trashResource(in TrashResourceRequest request, IDriveServiceCallbacks callbacks) = 16;
void closeContentsAndUpdateMetadata(in CloseContentsAndUpdateMetadataRequest request, IDriveServiceCallbacks callbacks) = 17;
void deleteResource(in DeleteResourceRequest request, IDriveServiceCallbacks callbacks) = 23;
void loadRealtime(in LoadRealtimeRequest request, IDriveServiceCallbacks callbacks) = 26;
void setResourceParents(in SetResourceParentsRequest request, IDriveServiceCallbacks callbacks) = 27;
void getDriveIdFromUniqueId(in GetDriveIdFromUniqueIdRequest request, IDriveServiceCallbacks callbacks) = 28;
void checkResourceIdsExist(in CheckResourceIdsExistRequest request, IDriveServiceCallbacks callbacks) = 29;
void completePendingAction(IDriveServiceCallbacks callbacks) = 30;
void getDrivePreferences(IDriveServiceCallbacks callbacks) = 31;
void setDrivePreferences(in SetDrivePreferencesRequest request, IDriveServiceCallbacks callbacks) = 32;
void realtimeDocumentSync(in RealtimeDocumentSyncRequest request, IDriveServiceCallbacks callbacks) = 33;
void getDeviceUsagePreferences(IDriveServiceCallbacks callbacks) = 34;
void setFileUploadPreferences(in SetFileUploadPreferencesRequest request, IDriveServiceCallbacks callbacks) = 35;
void cancelPendingActions(in CancelPendingActionsRequest request, IDriveServiceCallbacks callbacks) = 36;
void untrashResource(in UntrashResourceRequest request, IDriveServiceCallbacks callbacks) = 37;
void isAutoBackupEnabled(IDriveServiceCallbacks callbacks) = 40;
void fetchThumbnail(in FetchThumbnailRequest request, IDriveServiceCallbacks callbacks) = 41;
void getChanges(in GetChangesRequest request, IDriveServiceCallbacks callbacks) = 43;
void unsubscribeResource(in UnsubscribeResourceRequest request, IDriveServiceCallbacks callbacks) = 45;
void getPermissions(in GetPermissionsRequest request, IDriveServiceCallbacks callbacks) = 46;
void addPermission(in AddPermissionRequest request, IDriveServiceCallbacks callbacks) = 47;
void updatePermission(in UpdatePermissionRequest request, IDriveServiceCallbacks callbacks) = 48;
void removePermission(in RemovePermissionRequest request, IDriveServiceCallbacks callbacks) = 49;
void removeQueryResultListener(IEventCallback callback, IDriveServiceCallbacks callbacks) = 51;
void controlProgress(in ControlProgressRequest request, IDriveServiceCallbacks callbacks) = 52;
void changeResourceParents(in ChangeResourceParentsRequest request, IDriveServiceCallbacks callbacks) = 54;
DriveServiceResponse streamContents(in StreamContentsRequest request, IDriveServiceCallbacks callbacks) = 55;
}

View file

@ -0,0 +1,48 @@
package com.google.android.gms.drive.internal;
import com.google.android.gms.drive.internal.IRealtimeService;
import com.google.android.gms.drive.internal.DownloadProgressResponse;
import com.google.android.gms.drive.internal.ListEntriesResponse;
import com.google.android.gms.drive.internal.DriveIdResponse;
import com.google.android.gms.drive.internal.MetadataResponse;
import com.google.android.gms.drive.internal.ContentsResponse;
import com.google.android.gms.drive.internal.ListParentsResponse;
import com.google.android.gms.drive.internal.SyncMoreResponse;
import com.google.android.gms.drive.internal.LoadRealtimeResponse;
import com.google.android.gms.drive.internal.ResourceIdSetResponse;
import com.google.android.gms.drive.internal.DrivePreferencesResponse;
import com.google.android.gms.drive.internal.DeviceUsagePreferenceResponse;
import com.google.android.gms.drive.internal.FetchThumbnailResponse;
import com.google.android.gms.drive.internal.ChangeSequenceNumber;
import com.google.android.gms.drive.internal.ChangesResponse;
import com.google.android.gms.drive.internal.GetPermissionsResponse;
import com.google.android.gms.drive.internal.StringListResponse;
import com.google.android.gms.drive.internal.StartStreamSession;
import com.google.android.gms.common.api.Status;
interface IDriveServiceCallbacks {
void onDownloadProgress(in DownloadProgressResponse response) = 0;
void onListEntries(in ListEntriesResponse response) = 1;
void onDriveId(in DriveIdResponse response) = 2;
void onMetadata(in MetadataResponse response) = 3;
void onContents(in ContentsResponse response) = 4;
void onStatus(in Status status) = 5;
void onSuccess() = 6;
void onListParents(in ListParentsResponse response) = 7;
void onSyncMore(in SyncMoreResponse response) = 8;
void onLoadRealtime(in LoadRealtimeResponse response, IRealtimeService realtimeService) = 10;
void onResourceIdSet(in ResourceIdSetResponse response) = 11;
void onDrivePreferences(in DrivePreferencesResponse response) = 12;
void onDeviceUsagePreference(in DeviceUsagePreferenceResponse response) = 13;
void onBooleanAnswer(boolean bool) = 14;
void onFetchThumbnail(in FetchThumbnailResponse response) = 15;
void onChangeSequenceNumber(in ChangeSequenceNumber csn) = 16;
void onChanges(in ChangesResponse response) = 17;
void onGetPermissions(in GetPermissionsResponse response) = 19;
void onStringList(in StringListResponse response) = 20;
void onStartStreamSession(in StartStreamSession response) = 21;
}

View file

@ -0,0 +1,7 @@
package com.google.android.gms.drive.internal;
import com.google.android.gms.drive.internal.EventResponse;
interface IEventCallback {
void onEventResponse(in EventResponse response) = 0;
}

View file

@ -0,0 +1,5 @@
package com.google.android.gms.drive.internal;
interface IRealtimeService {
// TODO
}

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ListEntriesResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ListParentsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ListParentsResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable LoadRealtimeRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable LoadRealtimeResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable MetadataResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable OpenContentsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable OpenFileIntentSenderRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable RealtimeDocumentSyncRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable RemoveEventListenerRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable RemovePermissionRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable ResourceIdSetResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable SetDrivePreferencesRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable SetFileUploadPreferencesRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable SetResourceParentsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable StartStreamSession;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable StreamContentsRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable StringListResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable SyncMoreResponse;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable TrashResourceRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable UnsubscribeResourceRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable UntrashResourceRequest;

View file

@ -0,0 +1,3 @@
package com.google.android.gms.drive.internal;
parcelable UpdateMetadataRequest;

Some files were not shown because too many files have changed in this diff Show more