Compare commits

...
Sign in to create a new pull request.
Message SHA1
Auth: improve handling of network and timeout exceptions
https://github.com/microg/GmsCore/pull/3220
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-05-01 14:46:20 +07:00
e8b5a02903
add lavender profile
cuynu   commited 2025-03-22 16:30:00 +07:00
843497509c
Revert "Add preference for play licensing microg@4ef2248"
cuynu   commited 2025-03-22 15:54:30 +07:00
b9ceaea14f
Revert "Add preference for play licensing microg@4ef2248"
This reverts commit 9a12599b

cuynu   commited 2025-03-22 15:51:40 +07:00
ef31eda600
make back to vanced+ option clickable
cuynu   commited 2025-03-22 15:48:45 +07:00
d55ee374ad
bump 25.09.34
cuynu   commited 2025-03-22 15:35:49 +07:00
d65e8c359c
up gradle 8.1
cuynu   commited 2025-03-22 15:34:55 +07:00
299785daaf
UI: Unify preferences "microg@d831bbc"
cuynu   commited 2024-10-02 23:46:17 +07:00
b96a8d4727
update play icon
cuynu   commited 2024-10-02 17:34:44 +07:00
97d91d8c45
Themes + Material3 improvements "microg@b62f089" "microg@4fc5b75"
cuynu   commited 2024-10-02 17:12:35 +07:00
3f7d3cb596
microG settings must be exported
cuynu   commited 2024-10-02 16:29:52 +07:00
46369ca844
No hardcoded application name in setting permission uses "microg@2b186fd"
cuynu   commited 2024-10-02 16:26:10 +07:00
82e7c9fd46
No hardcoded application name in setting permission names "microg@53c683a"
cuynu   commited 2024-10-02 16:25:30 +07:00
f52534c2be
Expose settings via signature level permission "microg@05ca063"
cuynu   commited 2024-10-02 16:23:18 +07:00
1bb77401e0
Add preference for play licensing microg@4ef2248
cuynu   commited 2024-10-02 16:18:37 +07:00
9a12599b40
move serial preference to other category
cuynu   commited 2024-09-27 00:00:54 +07:00
b3e0e54545
switch to monthly for now
cuynu   commited 2024-09-26 23:56:16 +07:00
7a5ae620b2
bump gms 24.38.32
cuynu   commited 2024-09-26 23:55:42 +07:00
34a0e32b2a
bump gradle 8.0.2
cuynu   commited 2024-09-26 23:54:18 +07:00
31955e783e
test compile with targetSdk 33
cuynu   commited 2024-09-26 23:21:02 +07:00
99177daf0f
set FLAG_IMMUTABLE flag
cuynu   commited 2024-09-26 23:20:33 +07:00
320320c24a
android id must be visible
cuynu   commited 2024-09-26 23:20:02 +07:00
81ea45af34
set FlAG_IMMUTABLE flag
cuynu   commited 2024-09-26 23:19:37 +07:00
5c93d71dba
show serial
cuynu   commited 2024-09-26 23:17:58 +07:00
195673c14b
add new profile
cuynu   commited 2024-09-26 23:17:21 +07:00
fccdc9c288
update gradle 8.0.0
Cuynu   commited 2024-08-08 14:08:42 +07:00
8eec459e70
.
Cuynu   commited 2024-07-29 10:13:16 +00:00
ee29d87c72
bump 24.28.34
Cuynu   commited 2024-07-29 10:09:51 +00:00
ec9a57224f
hide open YouTube Vanced+ options until its first release
Cuynu   commited 2024-05-11 07:46:07 +00:00
d97a1ea32b
remove useless strings
Cuynu   commited 2024-05-10 18:10:03 +07:00
19590c5331
bump 24.17.17
Cuynu   commited 2024-05-10 17:55:35 +07:00
701468ccd0
No commit
Cuynu   commited 2024-05-10 17:54:40 +07:00
7a389fbe1a
update repo link to match with current
Cuynu   commited 2024-05-10 10:28:10 +00:00
280d2dc20b
disable back to YouTube Vanced+ option
Cuynu   commited 2024-05-10 10:20:12 +00:00
519b24613f
rebase
Cuynu   commited 2024-05-10 17:12:50 +07:00
01b38f6ea1
Build: Fix GetLocales lint f0b15d275a
inotia00   authored and   Cuynu   commited 2024-04-30 18:30:11 +07:00
f897156c31
Expose device profile as content 9d5a99710f
inotia00   authored and   Cuynu   commited 2024-04-30 18:30:08 +07:00
77cef2fec3
Add an activity-alias for Google settings compatibility (other apps are supposed to able to open Google settings) af5055034e
inotia00   authored and   Cuynu   commited 2024-04-30 18:30:07 +07:00
8ccec790c1
Declare com.mgoogle.android.providers.gsf.permission.READ_GSERVICES permission 833e2940f2
inotia00   authored and   Cuynu   commited 2024-04-30 18:30:06 +07:00
ae639e3771
Auth: Forward UID/PID from IAuthManagerService.getTokenWithAccount 4a7bac35f8
inotia00   authored and   Cuynu   commited 2024-04-30 18:30:01 +07:00
f933a77f3f
Auth: Add option to authenticate without android id 8663e52563
inotia00   authored and   Cuynu   commited 2024-04-30 18:29:58 +07:00
ebb9f2d54e
Build: Change system for optional components dd8c5601f5
inotia00   authored and   Cuynu   commited 2024-04-30 18:29:53 +07:00
3b12bb0e11
Base: Allow default settings to be provided in meta-data 2c80de55d1
inotia00   authored and   Cuynu   commited 2024-04-30 18:28:11 +07:00
caa7e931eb
Checkin: Use null serial instead of empty ae607f1665
inotia00   authored and   Cuynu   commited 2024-04-30 18:28:05 +07:00
09a1bbc165
Use fake-signature module 0f04df65e0
inotia00   authored and   Cuynu   commited 2024-04-30 18:28:05 +07:00
2f0175f825
Push: Don't try adding app extra to network request 23d1b18e28
inotia00   authored and   Cuynu   commited 2024-04-30 18:28:05 +07:00
51103b5833
Fix account setting crash under Android < 5 11001291e1
inotia00   authored and   Cuynu   commited 2024-04-30 18:28:05 +07:00
3ae0869aed
Keep Conscrypt classes in the primary dex file 640be73476
inotia00   authored and   Cuynu   commited 2024-04-30 18:28:05 +07:00
f4bebc4489
Add basic Google account settings dcf5f1fecb
inotia00   authored and   Cuynu   commited 2024-04-30 18:26:27 +07:00
bb405b5b58
Add Emulator profiles 0338543570
inotia00   authored and   Cuynu   commited 2024-04-30 18:25:58 +07:00
0b8b6208b2
Allow to compress the libraries 4651ed5530
inotia00   authored and   Cuynu   commited 2024-04-30 18:25:18 +07:00
287158a264
Stop importing android.os.Build 56b468ecbb
inotia00   authored and   Cuynu   commited 2024-04-30 18:24:28 +07:00
4cf763d832
Set max auto heartbeat interval to 15min 1e96dd137e
inotia00   authored and   Cuynu   commited 2024-04-30 18:23:54 +07:00
08f46a1a49
Push: Add minor features 23cb98075a
inotia00   authored and   Cuynu   commited 2024-04-30 18:23:18 +07:00
1b4ff54e59
AppCert: Update for latest API 3a42d956ab
inotia00   authored and   Cuynu   commited 2024-04-30 18:22:55 +07:00
21e75291fe
Asorted fixes 80c1d9cf61
inotia00   authored and   Cuynu   commited 2024-04-30 18:22:26 +07:00
10a29689c1
Location: Entire rewrite of the location subsystem f5ad796b82
inotia00   authored and   Cuynu   commited 2024-04-30 18:21:48 +07:00
89ee97e3b9
ProfileManager: Fix for old Android versions b3f5a33713
inotia00   authored and   Cuynu   commited 2024-04-30 18:21:20 +07:00
bfab9954f0
Set basePackageName
inotia00   authored and   Cuynu   commited 2024-04-30 18:20:43 +07:00
79d6cd0e70
Specify targetPackage for intents from Authenticator Preferences b31072290a
inotia00   authored and   Cuynu   commited 2024-04-30 18:19:55 +07:00
e4a990c8bf
Restructure modules 18c3a6154d
inotia00   authored and   Cuynu   commited 2024-04-30 18:18:45 +07:00
b19fad1281
Allow synthetic field(s) in ObjectWrapper bc6bc583b9
inotia00   authored and   Cuynu   commited 2024-04-30 18:17:29 +07:00
5f278780e1
Fido: Add support for fido authentication during Google Account sign-in ff5c5a7e1b
inotia00   authored and   Cuynu   commited 2024-04-30 18:15:52 +07:00
8e98efdf09
281 changed files with 9090 additions and 2065 deletions

View file

@ -1,9 +1,9 @@
# Vanced+ MicroG
This fork tweaks MicroG to be usable by applications that require Google authentication such as [YouTube Vanced+](https://gitlab.com/cuynu/ytvancedx).
This fork tweaks MicroG to be usable by applications that require Google authentication such as [YouTube Vanced+](https://gitlab.com/cuynu/vancedx).
## Warning!
Vanced+ microG probably does not works in ReVanced/RVX in future as recent changes from ReVanced/RVX to use with they specific MicroG called ReVanced MicroG with different package name !
Vanced+ microG are currently **DOES NOT WORK** with ReVanced/RVX as they now uses their own ReVanced microG with specific package name! However, there are workaround : [Issues #15](https://gitlab.com/cuynu/VancedxMicroG/-/issues/15#note_1837372638)
## Notable changes

View file

@ -4,26 +4,31 @@
*/
buildscript {
ext.kotlinVersion = '1.8.20'
ext.applicationNamespace = "com.google.android.gms"
ext.basePackageName = "com.mgoogle"
ext.safeParcelVersion = '1.7.1'
ext.kotlinVersion = '1.7.21'
ext.coroutineVersion = '1.6.4'
ext.annotationVersion = '1.6.0'
ext.annotationVersion = '1.5.0'
ext.appcompatVersion = '1.6.1'
ext.coreVersion = '1.9.0'
ext.collectionVersion = '1.3.0-dev01'
ext.fragmentVersion = '1.5.5'
ext.lifecycleVersion = '2.5.1'
ext.materialVersion = '1.8.0'
ext.materialVersion = '1.7.0'
ext.navigationVersion = '2.5.3'
ext.preferenceVersion = '1.2.0'
ext.webkitVersion = '1.6.0'
ext.webkitVersion = '1.5.0'
ext.circleimageviewVersion = '3.1.0'
ext.volleyVersion = '1.2.1'
ext.wireVersion = '4.5.5'
ext.wireVersion = '4.8.0'
ext.androidBuildGradleVersion = '8.0.0'
ext.androidBuildGradleVersion = '8.0.2'
ext.androidBuildVersionTools = '33.0.2'
ext.androidMinSdk = 23
@ -36,14 +41,14 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath "com.android.tools.build:gradle:$androidBuildGradleVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.squareup.wire:wire-gradle-plugin:$wireVersion"
}
}
def gmsVersion = "24.09.13"
def gmsVersion = "25.09.34"
def gmsVersionCode = Integer.parseInt(gmsVersion.replaceAll('\\.', ''))
def ourVersionBase = "0.3.0"
@ -65,4 +70,13 @@ subprojects {
mavenCentral()
google()
}
}
afterEvaluate {
// Temporary hack for Android Studio
if (project.plugins.hasPlugin('com.android.base')) {
dependencies {
compileOnly "org.microg:safe-parcel:$safeParcelVersion"
testCompileOnly "org.microg:safe-parcel:$safeParcelVersion"
}
}
}
}

View file

@ -0,0 +1,26 @@
/*
* SPDX-FileCopyrightText: 2023 microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
apply plugin: 'com.android.library'
android {
namespace "org.microg.signature.fake"
compileSdkVersion androidCompileSdk
buildToolsVersion androidBuildVersionTools
defaultConfig {
minSdkVersion androidMinSdk
targetSdkVersion androidTargetSdk
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
dependencies {
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ SPDX-FileCopyrightText: 2023 microG Project Team
~ SPDX-License-Identifier: Apache-2.0
-->
<resources>
<string-array name="signature_want_fake">
<item>com.google.android.gms</item>
<item>com.android.vending</item>
<item>com.spotify.music</item>
</string-array>
<string-array name="signature_never_fake">
<item>com.truecaller</item>
</string-array>
</resources>

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ SPDX-FileCopyrightText: 2014 microG Project Team
~ SPDX-License-Identifier: Apache-2.0
-->
<resources>
<string name="fake_signature">
308204433082032ba003020102020900c2e08746644a308d300d06092a864886f70d01010405003074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f6964301e170d3038303832313233313333345a170d3336303130373233313333345a3074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f696430820120300d06092a864886f70d01010105000382010d00308201080282010100ab562e00d83ba208ae0a966f124e29da11f2ab56d08f58e2cca91303e9b754d372f640a71b1dcb130967624e4656a7776a92193db2e5bfb724a91e77188b0e6a47a43b33d9609b77183145ccdf7b2e586674c9e1565b1f4c6a5955bff251a63dabf9c55c27222252e875e4f8154a645f897168c0b1bfc612eabf785769bb34aa7984dc7e2ea2764cae8307d8c17154d7ee5f64a51a44a602c249054157dc02cd5f5c0e55fbef8519fbe327f0b1511692c5a06f19d18385f5c4dbc2d6b93f68cc2979c70e18ab93866b3bd5db8999552a0e3b4c99df58fb918bedc182ba35e003c1b4b10dd244a8ee24fffd333872ab5221985edab0fc0d0b145b6aa192858e79020103a381d93081d6301d0603551d0e04160414c77d8cc2211756259a7fd382df6be398e4d786a53081a60603551d2304819e30819b8014c77d8cc2211756259a7fd382df6be398e4d786a5a178a4763074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f6964820900c2e08746644a308d300c0603551d13040530030101ff300d06092a864886f70d010104050003820101006dd252ceef85302c360aaace939bcff2cca904bb5d7a1661f8ae46b2994204d0ff4a68c7ed1a531ec4595a623ce60763b167297a7ae35712c407f208f0cb109429124d7b106219c084ca3eb3f9ad5fb871ef92269a8be28bf16d44c8d9a08e6cb2f005bb3fe2cb96447e868e731076ad45b33f6009ea19c161e62641aa99271dfd5228c5c587875ddb7f452758d661f6cc0cccb7352e424cc4365c523532f7325137593c4ae341f4db41edda0d0b1071a7c440f0fe9ea01cb627ca674369d084bd2fd911ff06cdbf2cfa10dc0f893ae35762919048c7efc64c7144178342f70581c9de573af55b390dd7fdb9418631895d5f759f30112687ff621410c069308a
</string>
<string name="real_signature">
308202ed308201d5a003020102020426ffa009300d06092a864886f70d01010b05003027310b300906035504061302444531183016060355040a130f4e4f47415050532050726f6a656374301e170d3132313030363132303533325a170d3337303933303132303533325a3027310b300906035504061302444531183016060355040a130f4e4f47415050532050726f6a65637430820122300d06092a864886f70d01010105000382010f003082010a02820101009a8d2a5336b0eaaad89ce447828c7753b157459b79e3215dc962ca48f58c2cd7650df67d2dd7bda0880c682791f32b35c504e43e77b43c3e4e541f86e35a8293a54fb46e6b16af54d3a4eda458f1a7c8bc1b7479861ca7043337180e40079d9cdccb7e051ada9b6c88c9ec635541e2ebf0842521c3024c826f6fd6db6fd117c74e859d5af4db04448965ab5469b71ce719939a06ef30580f50febf96c474a7d265bb63f86a822ff7b643de6b76e966a18553c2858416cf3309dd24278374bdd82b4404ef6f7f122cec93859351fc6e5ea947e3ceb9d67374fe970e593e5cd05c905e1d24f5a5484f4aadef766e498adf64f7cf04bddd602ae8137b6eea40722d0203010001a321301f301d0603551d0e04160414110b7aa9ebc840b20399f69a431f4dba6ac42a64300d06092a864886f70d01010b0500038201010007c32ad893349cf86952fb5a49cfdc9b13f5e3c800aece77b2e7e0e9c83e34052f140f357ec7e6f4b432dc1ed542218a14835acd2df2deea7efd3fd5e8f1c34e1fb39ec6a427c6e6f4178b609b369040ac1f8844b789f3694dc640de06e44b247afed11637173f36f5886170fafd74954049858c6096308fc93c1bc4dd5685fa7a1f982a422f2a3b36baa8c9500474cf2af91c39cbec1bc898d10194d368aa5e91f1137ec115087c31962d8f76cd120d28c249cf76f4c70f5baa08c70a7234ce4123be080cee789477401965cfe537b924ef36747e8caca62dfefdd1a6288dcb1c4fd2aaa6131a7ad254e9742022cfd597d2ca5c660ce9e41ff537e5a4041e37
</string>
</resources>

View file

@ -1,5 +1,5 @@
android.useAndroidX=true
org.gradle.jvmargs=-Xmx4096m -XX:+UseParallelGC
org.gradle.jvmargs=-Xmx2048m -XX:+UseParallelGC
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
android.nonFinalResIds=false

Binary file not shown.

View file

@ -1,6 +1,7 @@
#Thu Jun 29 16:45:22 ICT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-rc-3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

46
gradlew vendored
View file

@ -1,6 +1,5 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
#
# Copyright © 2015-2021 the original authors.
#
@ -56,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@ -81,13 +80,11 @@ do
esac
done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@ -128,26 +125,35 @@ if [ -n "$JAVA_HOME" ] ; then
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
@ -192,11 +198,15 @@ if "$cygwin" || "$msys" ; then
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
@ -204,6 +214,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
@ -230,4 +246,4 @@ eval "set -- $(
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
exec "$JAVACMD" "$@"

34
gradlew.bat vendored
View file

@ -14,7 +14,7 @@
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@ -25,7 +25,8 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@ -54,7 +55,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@ -64,21 +65,6 @@ echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
@ -86,17 +72,19 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal

View file

@ -17,8 +17,8 @@
apply plugin: 'com.android.library'
android {
compileSdk androidCompileSdk
buildToolsVersion '33.0.2'
compileSdkVersion androidCompileSdk
buildToolsVersion androidBuildVersionTools
defaultConfig {
minSdkVersion androidMinSdk
@ -26,13 +26,13 @@ android {
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = "1.8"
sourceCompatibility = 17
targetCompatibility = 17
}
namespace 'org.microg.gms.api'
buildFeatures {
aidl true
}
namespace 'org.microg.gms.api'
}
dependencies {

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 />

View file

@ -7,7 +7,7 @@ import com.google.android.gms.auth.AccountChangeEventsResponse;
import com.google.android.gms.auth.AccountChangeEventsRequest;
import com.google.android.gms.auth.GetHubTokenRequest;
import com.google.android.gms.auth.GetHubTokenInternalResponse;
import com.google.android.gms.auth.HasCababilitiesRequest;
import com.google.android.gms.auth.HasCapabilitiesRequest;
interface IAuthManagerService {
Bundle getToken(String accountName, String scope, in Bundle extras) = 0;
@ -18,6 +18,6 @@ interface IAuthManagerService {
Bundle getAccounts(in Bundle extras) = 5;
Bundle removeAccount(in Account account) = 6;
Bundle requestGoogleAccountsAccess(String packageName) = 7;
int hasCapabilities(in HasCababilitiesRequest request) = 8;
int hasCapabilities(in HasCapabilitiesRequest request) = 8;
GetHubTokenInternalResponse getHubToken(in GetHubTokenRequest request, in Bundle extras) = 9;
}

View file

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

View file

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

View file

@ -1,12 +0,0 @@
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

@ -19,5 +19,5 @@ package com.google.android.gms.auth;
import org.microg.safeparcel.AutoSafeParcelable;
public class AccountChangeEvent extends AutoSafeParcelable {
public static Creator<AccountChangeEvent> CREATOR = new AutoCreator<>(AccountChangeEvent.class);
public static Creator<AccountChangeEvent> CREATOR = new AutoCreator<AccountChangeEvent>(AccountChangeEvent.class);
}

View file

@ -21,18 +21,18 @@ import static org.microg.gms.auth.AuthConstants.DEFAULT_ACCOUNT_TYPE;
import android.accounts.Account;
import org.microg.safeparcel.AutoSafeParcelable;
import org.microg.safeparcel.SafeParceled;
public class AccountChangeEventsRequest extends AutoSafeParcelable {
@Field(1)
private final int versionCode = 1;
@Field(2)
private int since;
@Field(3)
@Deprecated
private final String accountName;
private String accountName;
@Field(4)
private final Account account;
public AccountChangeEventsRequest(String accountName, Account account) {
this.accountName = accountName;
this.account = account;
}
private Account account;
public Account getAccount() {
if (account != null) return account;
@ -40,6 +40,6 @@ public class AccountChangeEventsRequest extends AutoSafeParcelable {
return null;
}
public static Creator<AccountChangeEventsRequest> CREATOR = new AutoCreator<>(AccountChangeEventsRequest.class);
public static Creator<AccountChangeEventsRequest> CREATOR = new AutoCreator<AccountChangeEventsRequest>(AccountChangeEventsRequest.class);
}

View file

@ -17,11 +17,20 @@
package com.google.android.gms.auth;
import org.microg.safeparcel.AutoSafeParcelable;
import org.microg.safeparcel.SafeParceled;
import java.util.ArrayList;
import java.util.List;
public class AccountChangeEventsResponse extends AutoSafeParcelable {
@SafeParceled(1)
private final int versionCode = 1;
@SafeParceled(value = 2, subClass = AccountChangeEvent.class)
private final List<AccountChangeEvent> events;
public AccountChangeEventsResponse() {
events = new ArrayList<AccountChangeEvent>();
}
public static Creator<AccountChangeEventsResponse> CREATOR = new AutoCreator<>(AccountChangeEventsResponse.class);
public static Creator<AccountChangeEventsResponse> CREATOR = new AutoCreator<AccountChangeEventsResponse>(AccountChangeEventsResponse.class);
}

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