mirror of https://github.com/YTVanced/VancedMicroG
Compare commits
249 Commits
v0.2.16.20
...
master
Author | SHA1 | Date |
---|---|---|
KevinX8 | 6814161c48 | |
KevinX8 | 309544601e | |
KevinX8 | 88f083616a | |
Oizaro | 895b6628fb | |
Oizaro | 61582b63d0 | |
David BrazSan | 77b560e620 | |
David BrazSan | 1899564f74 | |
David BrazSan | 7e5f008906 | |
KevinX8 | 379346614c | |
KevinX8 | cafd5ee4d4 | |
Lukas Novotny | 2b2581d131 | |
Oizaro | 6ca53537ee | |
KevinX8 | dc6426b9ff | |
Oizaro | 8a0361ea5e | |
KevinX8 | d3092c4579 | |
Oizaro | 56538dd003 | |
Oizaro | a33a62ac79 | |
Marvin W | 17b8371b48 | |
Marvin W | adf534d20a | |
Tim Hetkämper | 75aaeb1fc6 | |
Marvin W | 61957c33cd | |
KevinX8 | e6d706456e | |
KevinX8 | d231e059f7 | |
Oizaro | 5f2b3b5205 | |
Oizaro | 785ffe4933 | |
Oizaro | 8472943bb4 | |
Oizaro | f600688264 | |
Oizaro | d64e4556f6 | |
Marvin W | af28974d97 | |
Marvin W | 0497f7ead3 | |
Torsten Grote | f3c20333b0 | |
Torsten Grote | b9b1ef6246 | |
Torsten Grote | 2ba2c04cc0 | |
Torsten Grote | bb68674cae | |
Marcus Hoffmann | 10455df7e2 | |
Marcus Hoffmann | 88d14e9e8a | |
Fynn Godau | 15a1b15591 | |
Marcus Hoffmann | 80b3129356 | |
Marcus Hoffmann | 6cfc0aa255 | |
Marvin W | 4a5c98491b | |
Marvin W | 7969aa817b | |
Marvin W | 91071bbea1 | |
Marvin W | 6e21b52bfe | |
Marvin W | 3bbae67fda | |
Marvin W | 9f3a5ce329 | |
Marvin W | 711e5c7e12 | |
Marvin W | 552aaf856d | |
Marvin W | 10de88b89f | |
Marvin W | 854f879da4 | |
Marvin W | 9304375da7 | |
Marvin W | fd8ce71a83 | |
Marvin W | e3b042ccd7 | |
Marvin W | 050afb8f87 | |
Marvin W | 0bdcb1319b | |
Marvin W | d593de25ef | |
Marvin W | 56b8bc9f65 | |
Marvin W | ee91cc9b79 | |
Marvin W | 2dd6b6b173 | |
Marvin W | 68e116388b | |
Marvin W | 110157dab8 | |
Marvin W | d16d438350 | |
Marvin W | fba6fbdfd0 | |
Marvin W | 05d18bb8d2 | |
Marvin W | a7b2b7e3f8 | |
Marvin W | 6d45bfb7ed | |
Marvin W | d8325870cb | |
Marvin W | 6202aa9b34 | |
Marvin W | 41a32d93fe | |
Marvin W | a7eb9a2732 | |
Oliver S | ac779f9ac8 | |
Oliver S | 7321ea7d25 | |
Oliver S | 24d6b5aef5 | |
Kaukov | 64f12230f7 | |
Francesco Saltori | 507c20aaac | |
Marcus Hoffmann | 0ae3a82b4e | |
Torsten Grote | 222b03f7ee | |
Torsten Grote | 00a06d4b94 | |
Torsten Grote | 14d666a163 | |
Torsten Grote | f806e1bcdb | |
Torsten Grote | 1367649a18 | |
Torsten Grote | d25e351c41 | |
Christian Grigis | 9067f66f0c | |
Christian Grigis | dd617e27b6 | |
Christian Grigis | 8a1ac35c4d | |
Christian Grigis | 3885ed6ef8 | |
David | 925ce2ddd9 | |
Marcos Marado | a4a20dc87a | |
Torsten Grote | a808476b7d | |
Marvin W | ae8516a339 | |
Francesco Saltori | 82d11e4e7a | |
Marvin W | e90ce370d4 | |
KevinX8 | 2a4c73518b | |
GoldenRetro | ae3feaad7e | |
KevinX8 | a610156db7 | |
GoldenRetro | 403c2f78ad | |
GoldenRetro | da6399b18c | |
Marvin W | 96cfe2bd9b | |
Marvin W | 2e286a7e5b | |
Marvin W | 60d26b80eb | |
Marvin W | 659ece03b4 | |
Marvin W | d707288ec9 | |
Christian Grigis | a0558a5f38 | |
Chirayu Desai | 1d747f6a83 | |
Francesco Saltori | 985f0aea5a | |
Chirayu Desai | 012c2ffc89 | |
KevinX8 | 020b789fe8 | |
Oizaro | c86b9ab7c5 | |
KevinX8 | 4c9230d279 | |
Oizaro | e32c3332e1 | |
Oizaro | 3c3f1e811a | |
KevinX8 | 42cde92013 | |
Oizaro | 64bd3ef520 | |
Oizaro | 11bab49107 | |
Marvin W | db6fd73736 | |
Marvin W | 3075bf1a34 | |
Oizaro | e519443293 | |
Oizaro | 6b534c2362 | |
Oizaro | dbecd4aab3 | |
Marvin W | d8e50cb341 | |
Marvin W | dc3d6250ac | |
Marvin W | a431fea9bb | |
Marvin W | 2d9419a785 | |
KevinX8 | 6b9aa61849 | |
Torsten Grote | aa3a2d65cd | |
Marvin W | fbcb6066c3 | |
Oizaro | 9554db9dd7 | |
Oizaro | d846a1afb1 | |
Oizaro | 19af72d14a | |
Marvin W | 28d82eff04 | |
Marvin W | 602a34ff4b | |
KevinX8 | c7cfb3e72b | |
Oizaro | 6710aab0bf | |
KevinX8 | ed5c96271b | |
Oizaro | 1bc6b82a27 | |
Marvin W | a43048995c | |
Marvin W | 2e64427734 | |
Oizaro | f1d530e1b5 | |
Oizaro | 79f78b8d86 | |
Torsten Grote | 9ccb2073e0 | |
Chirayu Desai | 3eb3380c2d | |
Marvin W | 6555997664 | |
KevinX8 | ba1ee758be | |
Oizaro | c17db96478 | |
KevinX8 | e3bbca5e06 | |
Oizaro | 0d69cfdeee | |
Oizaro | 748a0c021d | |
Marvin W | a830b5dd5d | |
Marvin W | a746e79b91 | |
Marvin W | 5d50ae375f | |
KevinX8 | 747cd9b5bd | |
KevinX8 | 7cf99fd238 | |
Oizaro | c4bace6880 | |
Oizaro | 806dcec9c3 | |
Marvin W | e42f68497f | |
Marvin W | ab36b32d47 | |
Marvin W | cb3592688b | |
Marvin W | cd0953b44e | |
Lukas Novotny | ba306f6898 | |
Lukas Novotny | 4744ce0fc8 | |
Marvin W | e9766db28e | |
Marvin W | f6ec0efb63 | |
Marvin W | 3c1cb13e32 | |
Marvin W | a37b14eda3 | |
Marvin W | 1a809e0e47 | |
Marvin W | 7f131c0cfa | |
Nico | f5cd584a0a | |
Fynn Godau | c9d767dd80 | |
fynngodau | 9eb0adda9d | |
KevinX8 | 70c5e044db | |
Oizaro | 7b7203388b | |
Marvin W | aee45c22be | |
KevinX8 | 8527e341f9 | |
KevinX8 | ace9dd0458 | |
Oizaro | a0eaf23de4 | |
Oizaro | d2f9be1fb6 | |
Francesco Saltori | ad12bd5de4 | |
KevinX8 | f6c2322506 | |
Oizaro | 0ad9e464c7 | |
Oizaro | 0bd641430d | |
KevinX8 | 15fc7e6ad4 | |
Dylanger Daly | e9f028c813 | |
Dima Ryazanov | 1a149c6c51 | |
Oliver Scott | 63d09df2fc | |
fynngodau | 8dceaad8ea | |
Oizaro | f0b904e313 | |
Oizaro | 540bbb94f6 | |
Marvin W | a173d26897 | |
Marvin W | 161c2ffa24 | |
KevinX8 | d01b6cd40e | |
KevinX8 | 7088a0da2f | |
Oizaro | a68d0ab98a | |
Oizaro | 5018c9ad2b | |
Oizaro | dc77b75927 | |
Marvin W | 91b0f6893f | |
Marvin W | 5eb04b44db | |
Marcus Hoffmann | ff1f879ab6 | |
Marvin W | c9e09e9714 | |
KevinX8 | 8ad8ea42e6 | |
X1nto | c7eee4fab1 | |
Tornike Khintibidze | f779e2593e | |
KevinX8 | 3e98b98aa3 | |
Oizaro | 221e6e74ce | |
KevinX8 | 0bb6500d04 | |
Oizaro | e015189785 | |
Oizaro | 4fb53e35d7 | |
Oizaro | c2a737a0c9 | |
KevinX8 | 5599ddb1bb | |
Oizaro | b41770fd5b | |
KevinX8 | 9f8f696656 | |
KevinX8 | 94ba880540 | |
KevinX8 | 73677ee57c | |
KevinX8 | dbb08e5085 | |
Oizaro | afe1be854d | |
KevinX8 | acf6facdb6 | |
Oizaro | e91ef2133c | |
Oizaro | 97b91b7dfe | |
KevinX8 | 416ef1d780 | |
Oizaro | 338a471cb2 | |
KevinX8 | 80d0992d5b | |
Oizaro | e89f21e9e3 | |
Marvin W | 1516af4395 | |
Marvin W | ecfe3da3f7 | |
KevinX8 | 2c6d46282e | |
X1nto | 6dffdfcf27 | |
X1nto | 764fe0d7ff | |
Tornike Khintibidze | 66055c95b0 | |
Fynn Godau | 87465cd1dd | |
Fynn Godau | 5b50e24636 | |
Marvin W | 412e513afe | |
Marvin W | 83a150b128 | |
Lukas Novotny | 4ba144af28 | |
Lukas Novotny | 9d12365421 | |
Marvin W | 3d2c7e9523 | |
Marvin W | 2fbe0a0928 | |
Marvin W | 1b3c2f87d8 | |
Marvin W | baf890cf18 | |
Óscar Fernández Díaz | b0fae31c4b | |
Marvin W | 19118d0b31 | |
Vladimir Filatov | 75ae299b54 | |
heyarne | 29b39a861e | |
Marvin W | 2fe12d8788 | |
Marvin W | 2f29b93a99 | |
Marvin W | 65032fbb3c | |
Marvin W | 11a86d9169 | |
Marvin W | 6e176cceed | |
Marvin W | af0aa2288a | |
Marvin W | f12536e6ce | |
Marvin W | 8e7544bd14 | |
Marvin W | 91c8e43ab9 |
|
@ -16,7 +16,7 @@ jobs:
|
|||
- name: JDK 8 Setup
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
java-version: 11.0.8
|
||||
|
||||
- name: Install NDK
|
||||
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669"
|
||||
|
|
|
@ -7,3 +7,8 @@ build/
|
|||
user.gradle
|
||||
local.properties
|
||||
.directory
|
||||
play-services-core/release
|
||||
|
||||
.settings
|
||||
.classpath
|
||||
.project
|
15
.travis.yml
15
.travis.yml
|
@ -1,15 +0,0 @@
|
|||
language: java
|
||||
jdk: openjdk8
|
||||
install:
|
||||
- mkdir $HOME/android-cmdline-tools
|
||||
- curl https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip > $HOME/android-cmdline-tools/cmdline-tools.zip
|
||||
- unzip -qq -n $HOME/android-cmdline-tools/cmdline-tools.zip -d $HOME/android-cmdline-tools
|
||||
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platform-tools'
|
||||
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'build-tools;29.0.3'
|
||||
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platforms;android-30'
|
||||
env:
|
||||
- ANDROID_HOME=$HOME/android-sdk TERM=dumb JAVA_OPTS="-Xmx2048m"
|
||||
before_script:
|
||||
- echo sdk.dir $ANDROID_HOME > local.properties
|
||||
script:
|
||||
- ./gradlew --no-daemon build
|
14
Android.mk
14
Android.mk
|
@ -22,20 +22,20 @@ LOCAL_PACKAGE_NAME := GmsCore
|
|||
gmscore_root := $(LOCAL_PATH)
|
||||
gmscore_dir := play-services-core
|
||||
gmscore_out := $(TARGET_COMMON_OUT_ROOT)/obj/APPS/$(LOCAL_MODULE)_intermediates
|
||||
gmscore_build := $(gmscore_root)/$(gmscore_dir)/build
|
||||
gmscore_apk := build/outputs/apk/release/play-services-core-release-unsigned.apk
|
||||
gmscore_build := $(gmscore_dir)/build
|
||||
gmscore_apk := $(gmscore_build)/outputs/apk/release/play-services-core-release-unsigned.apk
|
||||
|
||||
$(gmscore_root)/$(gmscore_dir)/$(gmscore_apk):
|
||||
rm -Rf $(gmscore_build)
|
||||
$(gmscore_root)/$(gmscore_apk):
|
||||
rm -Rf $(gmscore_root)/$(gmscore_build)
|
||||
mkdir -p $(ANDROID_BUILD_TOP)/$(gmscore_out)
|
||||
ln -s $(ANDROID_BUILD_TOP)/$(gmscore_out) $(ANDROID_BUILD_TOP)/$(gmscore_build)
|
||||
ln -s $(ANDROID_BUILD_TOP)/$(gmscore_out) $(ANDROID_BUILD_TOP)/$(gmscore_root)/$(gmscore_build)
|
||||
echo "sdk.dir=$(ANDROID_HOME)" > $(gmscore_root)/local.properties
|
||||
cd $(gmscore_root) && git submodule update --recursive --init
|
||||
cd $(gmscore_root)/$(gmscore_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleRelease
|
||||
|
||||
LOCAL_CERTIFICATE := platform
|
||||
LOCAL_SRC_FILES := $(gmscore_dir)/$(gmscore_apk)
|
||||
LOCAL_SRC_FILES := $(gmscore_apk)
|
||||
LOCAL_MODULE_CLASS := APPS
|
||||
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
|
||||
|
||||
include $(BUILD_PREBUILT)
|
||||
include $(BUILD_PREBUILT)
|
|
@ -0,0 +1,121 @@
|
|||
Creative Commons Legal Code
|
||||
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||
HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for
|
||||
the purpose of contributing to a commons of creative, cultural and
|
||||
scientific works ("Commons") that the public can reliably and without fear
|
||||
of later claims of infringement build upon, modify, incorporate in other
|
||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||
and for any purposes, including without limitation commercial purposes.
|
||||
These owners may contribute to the Commons to promote the ideal of a free
|
||||
culture and the further production of creative, cultural and scientific
|
||||
works, or to gain reputation or greater distribution for their Work in
|
||||
part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any
|
||||
expectation of additional consideration or compensation, the person
|
||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not
|
||||
limited to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display,
|
||||
communicate, and translate a Work;
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
iii. publicity and privacy rights pertaining to a person's image or
|
||||
likeness depicted in a Work;
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||
in a Work;
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation
|
||||
thereof, including any amended or successor version of such
|
||||
directive); and
|
||||
vii. other similar, equivalent or corresponding rights throughout the
|
||||
world based on applicable law or treaty, and any national
|
||||
implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||
of action, whether now known or unknown (including existing as well as
|
||||
future claims and causes of action), in the Work (i) in all territories
|
||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||
treaty (including future time extensions), (iii) in any current or future
|
||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||
including without limitation commercial, advertising or promotional
|
||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||
member of the public at large and to the detriment of Affirmer's heirs and
|
||||
successors, fully intending that such Waiver shall not be subject to
|
||||
revocation, rescission, cancellation, termination, or any other legal or
|
||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||
as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||
be judged legally invalid or ineffective under applicable law, then the
|
||||
Waiver shall be preserved to the maximum extent permitted taking into
|
||||
account Affirmer's express Statement of Purpose. In addition, to the
|
||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||
maximum duration provided by applicable law or treaty (including future
|
||||
time extensions), (iii) in any current or future medium and for any number
|
||||
of copies, and (iv) for any purpose whatsoever, including without
|
||||
limitation commercial, advertising or promotional purposes (the
|
||||
"License"). The License shall be deemed effective as of the date CC0 was
|
||||
applied by Affirmer to the Work. Should any part of the License for any
|
||||
reason be judged legally invalid or ineffective under applicable law, such
|
||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||
of the License, and in such case Affirmer hereby affirms that he or she
|
||||
will not (i) exercise any of his or her remaining Copyright and Related
|
||||
Rights in the Work or (ii) assert any associated claims and causes of
|
||||
action with respect to the Work, in either case contrary to Affirmer's
|
||||
express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
b. Affirmer offers the Work as-is and makes no representations or
|
||||
warranties of any kind concerning the Work, express, implied,
|
||||
statutory or otherwise, including without limitation warranties of
|
||||
title, merchantability, fitness for a particular purpose, non
|
||||
infringement, or the absence of latent or other defects, accuracy, or
|
||||
the present or absence of errors, whether or not discoverable, all to
|
||||
the greatest extent permissible under applicable law.
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without
|
||||
limitation any person's Copyright and Related Rights in the Work.
|
||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||
consents, permissions or other rights required for any use of the
|
||||
Work.
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to
|
||||
this CC0 or use of the Work.
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
microG GmsCore is a FLOSS (Free/Libre Open Source Software) framework to allow applications designed for Google Play Services to run on systems, where Play Services is not available.
|
||||
|
||||
This fork tweaks MicroG to be usable by applications that require Google authentication such as Youtube Vanced.
|
||||
This fork tweaks MicroG to be usable by applications that require Google authentication such as Vanced.
|
||||
|
||||
## Notable changes
|
||||
|
||||
|
|
40
build.gradle
40
build.gradle
|
@ -4,30 +4,9 @@
|
|||
*/
|
||||
|
||||
buildscript {
|
||||
ext.safeParcelVersion = '1.6.0'
|
||||
|
||||
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.navigationVersion = '2.3.0'
|
||||
ext.preferenceVersion = '1.1.1'
|
||||
ext.recyclerviewVersion = '1.1.0'
|
||||
|
||||
ext.supportLibraryVersion = "28.0.0"
|
||||
ext.wireVersion = '3.2.2'
|
||||
|
||||
ext.androidBuildGradleVersion = "4.0.1"
|
||||
|
||||
ext.androidBuildVersionTools = "29.0.3"
|
||||
|
||||
ext.androidMinSdk = 21
|
||||
ext.androidTargetSdk = 29
|
||||
ext.androidCompileSdk = 30
|
||||
ext.androidMinSdk = 23
|
||||
ext.androidTargetSdk = 30
|
||||
ext.androidCompileSdk = 31
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
@ -35,9 +14,9 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:4.1.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
||||
classpath "com.squareup.wire:wire-gradle-plugin:$wireVersion"
|
||||
classpath 'com.android.tools.build:gradle:7.1.2'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
|
||||
classpath "com.squareup.wire:wire-gradle-plugin:3.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -45,8 +24,8 @@ allprojects {
|
|||
apply plugin: 'idea'
|
||||
|
||||
group = 'org.microg.gms'
|
||||
version = "0.2.16.204713"
|
||||
ext.appVersionCode = 204713001
|
||||
version = "0.2.24.220220"
|
||||
ext.appVersionCode = 220220001
|
||||
ext.isReleaseVersion = false
|
||||
}
|
||||
|
||||
|
@ -55,5 +34,4 @@ subprojects {
|
|||
jcenter()
|
||||
google()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
#Sun Dec 27 23:11:46 GMT 2020
|
||||
#Wed Feb 09 22:14:11 CET 2022
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright 2015 the original author or authors.
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
@ -17,67 +18,101 @@
|
|||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# 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
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
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"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
@ -87,99 +122,112 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
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"
|
||||
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.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
case $i in
|
||||
0) set -- ;;
|
||||
1) set -- "$args0" ;;
|
||||
2) set -- "$args0" "$args1" ;;
|
||||
3) set -- "$args0" "$args1" "$args2" ;;
|
||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=`save "$@"`
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
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.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
"$@"
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
|
@ -18,10 +18,9 @@ apply plugin: 'com.android.library'
|
|||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
buildToolsVersion "$androidBuildVersionTools"
|
||||
buildToolsVersion "30.0.3"
|
||||
|
||||
defaultConfig {
|
||||
versionName version
|
||||
minSdkVersion androidMinSdk
|
||||
targetSdkVersion androidTargetSdk
|
||||
}
|
||||
|
@ -38,4 +37,4 @@ dependencies {
|
|||
api project(':play-services-cast-framework-api')
|
||||
api project(':play-services-iid-api')
|
||||
api project(':play-services-location-api')
|
||||
}
|
||||
}
|
|
@ -30,5 +30,4 @@ 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
|
||||
|
||||
POM_DEVELOPER_NAME=Marvin W
|
|
@ -9,6 +9,9 @@ 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;
|
||||
AccountChangeEventsResponse getChangeEvents(in AccountChangeEventsRequest request) = 2;
|
||||
Bundle getTokenWithAccount(in Account account, String scope, in Bundle extras) = 4;
|
||||
Bundle getAccounts(in Bundle extras) = 5;
|
||||
Bundle removeAccount(in Account account) = 6;
|
||||
Bundle requestGoogleAccountsAccess(String packageName) = 7;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package com.google.android.gms.auth.api.internal;
|
||||
|
||||
import com.google.android.gms.auth.api.proxy.ProxyResponse;
|
||||
|
||||
interface IAuthCallbacks {
|
||||
void onProxyResponse(in ProxyResponse response) = 0;
|
||||
void onSpatulaHeader(String spatulaHeader) = 1;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package com.google.android.gms.auth.api.internal;
|
||||
|
||||
import com.google.android.gms.auth.api.internal.IAuthCallbacks;
|
||||
//import com.google.android.gms.auth.api.proxy.ProxyGrpcRequest;
|
||||
import com.google.android.gms.auth.api.proxy.ProxyRequest;
|
||||
|
||||
interface IAuthService {
|
||||
void performProxyRequest(IAuthCallbacks callbacks, in ProxyRequest request) = 0;
|
||||
// void performProxyGrpcRequest(IAuthCallback callbacks, in ProxyGrpcRequest request) = 1;
|
||||
void getSpatulaHeader(IAuthCallbacks callbacks) = 2;
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.auth.api.proxy;
|
||||
|
||||
parcelable ProxyRequest;
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.auth.api.proxy;
|
||||
|
||||
parcelable ProxyResponse;
|
|
@ -0,0 +1,6 @@
|
|||
package com.google.android.gms.auth.appcert;
|
||||
|
||||
interface IAppCertService {
|
||||
boolean fetchDeviceKey() = 0;
|
||||
String getSpatulaHeader(String packageName) = 1;
|
||||
}
|
|
@ -2,4 +2,6 @@ package com.google.android.gms.checkin.internal;
|
|||
|
||||
interface ICheckinService {
|
||||
String getDeviceDataVersionInfo();
|
||||
long getLastCheckinSuccessTime();
|
||||
String getLastSimOperator();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
package com.google.android.gms.clearcut.internal;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.data.DataHolder;
|
||||
|
||||
interface IClearcutLoggerCallbacks {
|
||||
void onStatus(in Status status) = 0;
|
||||
oneway void onLogResult(in Status status) = 0;
|
||||
oneway void onForceUploadResult(in Status status) = 1;
|
||||
oneway void onStartCollectForDebugResult(in Status status, long l) = 2;
|
||||
oneway void onStopCollectForDebugResult(in Status status) = 3;
|
||||
oneway void onCollectForDebugExpiryTime(in Status status, long l) = 4;
|
||||
oneway void onLogEventParcelables(in DataHolder data) = 6;
|
||||
}
|
||||
|
|
|
@ -4,5 +4,11 @@ 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;
|
||||
oneway void log(IClearcutLoggerCallbacks callbacks, in LogEventParcelable event) = 0;
|
||||
oneway void forceUpload(IClearcutLoggerCallbacks callbacks) = 1;
|
||||
oneway void startCollectForDebug(IClearcutLoggerCallbacks callbacks) = 2;
|
||||
oneway void stopCollectForDebug(IClearcutLoggerCallbacks callbacks) = 3;
|
||||
oneway void getCollectForDebugExpiryTime(IClearcutLoggerCallbacks callbacks) = 4;
|
||||
oneway void getLogEventParcelablesLegacy(IClearcutLoggerCallbacks callbacks) = 5;
|
||||
oneway void getLogEventParcelables(IClearcutLoggerCallbacks callbacks) = 6;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.clearcut.internal;
|
||||
|
||||
parcelable PlayLoggerContext;
|
|
@ -3,8 +3,12 @@ package com.google.android.gms.dynamite;
|
|||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
interface IDynamiteLoader {
|
||||
int getModuleVersion(IObjectWrapper context, String moduleId) = 0;
|
||||
int getModuleVersion2(IObjectWrapper context, String moduleId, boolean updateConfigIfRequired) = 2;
|
||||
int getModuleVersion(IObjectWrapper wrappedContext, String moduleId) = 0;
|
||||
int getModuleVersion2(IObjectWrapper wrappedContext, String moduleId, boolean updateConfigIfRequired) = 2;
|
||||
int getModuleVersion2NoCrashUtils(IObjectWrapper wrappedContext, String moduleId, boolean updateConfigIfRequired) = 4;
|
||||
|
||||
IObjectWrapper createModuleContext(IObjectWrapper context, String moduleId, int minVersion) = 1;
|
||||
}
|
||||
IObjectWrapper createModuleContext(IObjectWrapper wrappedContext, String moduleId, int minVersion) = 1;
|
||||
IObjectWrapper createModuleContextNoCrashUtils(IObjectWrapper wrappedContext, String moduleId, int minVersion) = 3;
|
||||
|
||||
int getIDynamiteLoaderVersion() = 5;
|
||||
}
|
||||
|
|
3
play-services-api/src/main/aidl/com/google/android/gms/facs/cache/FacsCacheCallOptions.aidl
vendored
Normal file
3
play-services-api/src/main/aidl/com/google/android/gms/facs/cache/FacsCacheCallOptions.aidl
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.facs.cache;
|
||||
|
||||
parcelable FacsCacheCallOptions;
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.facs.cache;
|
||||
|
||||
parcelable ForceSettingsCacheRefreshResult;
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.facs.cache;
|
||||
|
||||
parcelable GetActivityControlsSettingsResult;
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.facs.cache;
|
||||
|
||||
parcelable ReadDeviceLevelSettingsResult;
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.facs.cache;
|
||||
|
||||
parcelable UpdateActivityControlsSettingsResult;
|
|
@ -0,0 +1,15 @@
|
|||
package com.google.android.gms.facs.cache.internal;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.facs.cache.ForceSettingsCacheRefreshResult;
|
||||
import com.google.android.gms.facs.cache.GetActivityControlsSettingsResult;
|
||||
import com.google.android.gms.facs.cache.ReadDeviceLevelSettingsResult;
|
||||
import com.google.android.gms.facs.cache.UpdateActivityControlsSettingsResult;
|
||||
|
||||
interface IFacsCacheCallbacks {
|
||||
void onForceSettingsCacheRefreshResult(in Status status, in ForceSettingsCacheRefreshResult result) = 0;
|
||||
void onUpdateActivityControlsSettingsResult(in Status status, in UpdateActivityControlsSettingsResult result) = 1;
|
||||
void onGetActivityControlsSettingsResult(in Status status, in GetActivityControlsSettingsResult result) = 2;
|
||||
void onWriteDeviceLevelSettingsResult(in Status status) = 3;
|
||||
void onReadDeviceLevelSettingsResult(in Status status, in ReadDeviceLevelSettingsResult result) = 4;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.google.android.gms.facs.cache.internal;
|
||||
|
||||
import com.google.android.gms.facs.cache.FacsCacheCallOptions;
|
||||
import com.google.android.gms.facs.cache.internal.IFacsCacheCallbacks;
|
||||
|
||||
interface IFacsCacheService {
|
||||
void forceSettingsCacheRefresh(IFacsCacheCallbacks callbacks, in FacsCacheCallOptions options) = 0;
|
||||
void updateActivityControlsSettings(IFacsCacheCallbacks callbacks, in byte[] bytes, in FacsCacheCallOptions options) = 1;
|
||||
void getActivityControlsSettings(IFacsCacheCallbacks callbacks, in FacsCacheCallOptions options) = 2;
|
||||
void readDeviceLevelSettings(IFacsCacheCallbacks callbacks) = 3;
|
||||
void writeDeviceLevelSettings(IFacsCacheCallbacks callbacks, in byte[] bytes) = 4;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
import com.google.android.gms.measurement.api.internal.IBundleReceiver;
|
||||
import com.google.android.gms.measurement.api.internal.IEventHandlerProxy;
|
||||
import com.google.android.gms.measurement.api.internal.IStringProvider;
|
||||
import com.google.android.gms.measurement.api.internal.InitializationParams;
|
||||
|
||||
interface IAppMeasurementDynamiteService {
|
||||
void initialize(in IObjectWrapper context, in InitializationParams params, long timestamp) = 0;
|
||||
void logEvent(String str, String str2, in Bundle bundle, boolean z, boolean z2, long timestamp) = 1;
|
||||
void logEventAndBundle(String str, String str2, in Bundle bundle, IBundleReceiver receiver, long j) = 2;
|
||||
void setUserProperty(String str, String str2, in IObjectWrapper obj, boolean z, long j) = 3;
|
||||
void getUserProperties(String str, String str2, boolean z, IBundleReceiver receiver) = 4;
|
||||
void getMaxUserProperties(String str, IBundleReceiver receiver) = 5;
|
||||
void setUserId(String str, long j) = 6;
|
||||
void setConditionalUserProperty(in Bundle bundle, long j) = 7;
|
||||
void clearConditionalUserProperty(String str, String str2, in Bundle bundle) = 8;
|
||||
void getConditionalUserProperties(String str, String str2, IBundleReceiver receiver) = 9;
|
||||
void setMeasurementEnabled(boolean z, long j) = 10;
|
||||
void resetAnalyticsData(long j) = 11;
|
||||
void setMinimumSessionDuration(long j) = 12;
|
||||
void setSessionTimeoutDuration(long j) = 13;
|
||||
void setCurrentScreen(in IObjectWrapper obj, String str, String str2, long j) = 14;
|
||||
void getCurrentScreenName(IBundleReceiver receiver) = 15;
|
||||
void getCurrentScreenClass(IBundleReceiver receiver) = 16;
|
||||
void setInstanceIdProvider(IStringProvider provider) = 17;
|
||||
void getCachedAppInstanceId(IBundleReceiver receiver) = 18;
|
||||
void getAppInstanceId(IBundleReceiver receiver) = 19;
|
||||
void getGmpAppId(IBundleReceiver receiver) = 20;
|
||||
void generateEventId(IBundleReceiver receiver) = 21;
|
||||
void beginAdUnitExposure(String str, long j) = 22;
|
||||
void endAdUnitExposure(String str, long j) = 23;
|
||||
void onActivityStarted(in IObjectWrapper activity, long j) = 24;
|
||||
void onActivityStopped(in IObjectWrapper activity, long j) = 25;
|
||||
void onActivityCreated(in IObjectWrapper activity, in Bundle bundle, long j) = 26;
|
||||
void onActivityDestroyed(in IObjectWrapper activity, long j) = 27;
|
||||
void onActivityPaused(in IObjectWrapper activity, long j) = 28;
|
||||
void onActivityResumed(in IObjectWrapper activity, long j) = 29;
|
||||
void onActivitySaveInstanceState(in IObjectWrapper activity, IBundleReceiver receiver, long j) = 30;
|
||||
void performAction(in Bundle bundle, IBundleReceiver receiver, long j) = 31;
|
||||
void logHealthData(int i, String str, in IObjectWrapper obj, in IObjectWrapper obj2, in IObjectWrapper obj3) = 32;
|
||||
void setEventInterceptor(IEventHandlerProxy proxy) = 33;
|
||||
void registerOnMeasurementEventListener(IEventHandlerProxy proxy) = 34;
|
||||
void unregisterOnMeasurementEventListener(IEventHandlerProxy proxy) = 35;
|
||||
void initForTests(in Map map) = 36;
|
||||
void getTestFlag(IBundleReceiver receiver, int i) = 37;
|
||||
void setDataCollectionEnabled(boolean z) = 38;
|
||||
void isDataCollectionEnabled(IBundleReceiver receiver) = 39;
|
||||
|
||||
void setDefaultEventParameters(in Bundle bundle) = 41;
|
||||
void setConsent(in Bundle bundle, long j) = 43;
|
||||
void setConsentThirdParty(in Bundle bundle, long j) = 44;
|
||||
void clearMeasurementEnabled(long j) = 42;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
interface IBundleReceiver {
|
||||
void onBundle(in Bundle bundle);
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
interface IEventHandlerProxy {
|
||||
void f1(String s1, String s2, in Bundle bundle, long j) = 0;
|
||||
int f2() = 1;
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
interface IStringProvider {
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
parcelable InitializationParams;
|
|
@ -3,23 +3,25 @@ package com.google.android.gms.measurement.internal;
|
|||
import com.google.android.gms.measurement.internal.AppMetadata;
|
||||
import com.google.android.gms.measurement.internal.ConditionalUserPropertyParcel;
|
||||
import com.google.android.gms.measurement.internal.EventParcel;
|
||||
import com.google.android.gms.measurement.internal.UserAttributeParcel;
|
||||
|
||||
interface IMeasurementService {
|
||||
void f1(in EventParcel p0, in AppMetadata p1) = 0;
|
||||
// void zza(UserAttributeParcel p0, AppMetadata p1) = 1;
|
||||
void f4(in AppMetadata p0) = 3;
|
||||
// void zza(EventParcel p0, String p1, String p2) = 4;
|
||||
// void zzb(AppMetadata p0) = 5;
|
||||
// List<UserAttributeParcel> zza(AppMetadata p0, boolean p1) = 6;
|
||||
// byte[] zza(EventParcel p0, String p1) = 8;
|
||||
void f1(in EventParcel event, in AppMetadata app) = 0;
|
||||
void f2(in UserAttributeParcel attribute, in AppMetadata app) = 1;
|
||||
void f4(in AppMetadata app) = 3;
|
||||
// void f5(in EventParcel p0, String p1, String p2) = 4;
|
||||
// void f6(in AppMetadata p0) = 5;
|
||||
// List<UserAttributeParcel> f7(in AppMetadata p0, boolean p1) = 6;
|
||||
// byte[] f9(in EventParcel p0, String p1) = 8;
|
||||
void f10(long p0, String p1, String p2, String p3) = 9;
|
||||
String f11(in AppMetadata p0) = 10;
|
||||
void f12(in ConditionalUserPropertyParcel p0, in AppMetadata p1) = 11;
|
||||
// void zza(ConditionalUserPropertyParcel p0) = 12;
|
||||
// List<UserAttributeParcelzkr> zza(String p0, String p1, boolean p2, AppMetadata p3) = 13;
|
||||
// List<UserAttributeParcel> zza(String p0, String p1, String p2, boolean p3) = 14;
|
||||
// List<ConditionalUserPropertyParcel> zza(String p0, String p1, AppMetadata p2) = 15;
|
||||
// List<ConditionalUserPropertyParcel> zza(String p0, String p1, String p2) = 16;
|
||||
// void zzd(AppMetadata p0) = 17;
|
||||
// void zza(Bundle p0, AppMetadata p1) = 18;
|
||||
String f11(in AppMetadata app) = 10;
|
||||
void f12(in ConditionalUserPropertyParcel property, in AppMetadata app) = 11;
|
||||
// void f13(ConditionalUserPropertyParcel p0) = 12;
|
||||
// List<UserAttributeParcel> getUserProperties(String p0, String p1, boolean p2, in AppMetadata p3) = 13;
|
||||
// List<UserAttributeParcel> getUserPropertiesAs(String p0, String p1, String p2, boolean p3) = 14;
|
||||
// List<ConditionalUserPropertyParcel> getConditionalUserProperties(String p0, String p1, in AppMetadata p2) = 15;
|
||||
// List<ConditionalUserPropertyParcel> getCondtionalUserPropertiesAs(String p0, String p1, String p2) = 16;
|
||||
// void f18(in AppMetadata p0) = 17;
|
||||
void setDefaultEventParameters(in Bundle params, in AppMetadata app) = 18;
|
||||
// void f20(in AppMetadata p0) = 19;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
package com.google.android.gms.playlog.internal;
|
||||
|
||||
import com.google.android.gms.clearcut.internal.PlayLoggerContext;
|
||||
import com.google.android.gms.playlog.internal.LogEvent;
|
||||
import com.google.android.gms.playlog.internal.PlayLoggerContext;
|
||||
|
||||
// Deprecated
|
||||
interface IPlayLogService {
|
||||
void onEvent(String packageName, in PlayLoggerContext context, in LogEvent event) = 1;
|
||||
void onMultiEvent(String packageName, in PlayLoggerContext context, in List<LogEvent> events) = 2;
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
package com.google.android.gms.playlog.internal;
|
||||
|
||||
parcelable PlayLoggerContext;
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.android.gms.usagereporting;
|
||||
|
||||
parcelable UsageReportingOptInOptions;
|
|
@ -0,0 +1,11 @@
|
|||
package com.google.android.gms.usagereporting.internal;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.usagereporting.UsageReportingOptInOptions;
|
||||
|
||||
interface IUsageReportingCallbacks {
|
||||
oneway void onOptInOptions(in Status status, in UsageReportingOptInOptions options) = 1;
|
||||
oneway void onOptInOptionsSet(in Status status) = 2;
|
||||
oneway void onOptInOptionsChangedListenerAdded(in Status status) = 3;
|
||||
oneway void onOptInOptionsChangedListenerRemoved(in Status status) = 4;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.android.gms.usagereporting.internal;
|
||||
|
||||
interface IUsageReportingOptInOptionsChangedListener {
|
||||
oneway void onOptionsChanged() = 1;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.google.android.gms.usagereporting.internal;
|
||||
|
||||
import com.google.android.gms.usagereporting.internal.IUsageReportingCallbacks;
|
||||
import com.google.android.gms.usagereporting.internal.IUsageReportingOptInOptionsChangedListener;
|
||||
import com.google.android.gms.usagereporting.UsageReportingOptInOptions;
|
||||
|
||||
interface IUsageReportingService {
|
||||
oneway void getOptInOptions(IUsageReportingCallbacks callbacks) = 1;
|
||||
oneway void setOptInOptions(in UsageReportingOptInOptions options, IUsageReportingCallbacks callbacks) = 2;
|
||||
oneway void addOptInOptionsChangedListener(IUsageReportingOptInOptionsChangedListener listener, IUsageReportingCallbacks callbacks) = 3;
|
||||
oneway void removeOptInOptionsChangedListener(IUsageReportingOptInOptionsChangedListener listener, IUsageReportingCallbacks callbacks) = 4;
|
||||
}
|
|
@ -4,6 +4,6 @@ import com.google.android.gms.common.api.Status;
|
|||
import com.mgoogle.android.gms.phenotype.Configurations;
|
||||
|
||||
interface IPhenotypeCallbacks {
|
||||
void onRegister(in Status status) = 0;
|
||||
void onConfigurations(in Status status, in Configurations configurations) = 3;
|
||||
oneway void onRegister(in Status status) = 0;
|
||||
oneway void onConfigurations(in Status status, in Configurations configurations) = 3;
|
||||
}
|
||||
|
|
|
@ -4,5 +4,6 @@ import com.mgoogle.android.gms.phenotype.internal.IPhenotypeCallbacks;
|
|||
|
||||
interface IPhenotypeService {
|
||||
void register(IPhenotypeCallbacks callbacks, String p1, int p2, in String[] p3, in byte[] p4) = 0;
|
||||
void register2(IPhenotypeCallbacks callbacks, String p1, int p2, in String[] p3, in int[] p4, in byte[] p5) = 1;
|
||||
void getConfigurationSnapshot(IPhenotypeCallbacks callbacks, String p1, String p2, String p3) = 10;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class CorpusStatus extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode;
|
||||
private final int versionCode;
|
||||
@SafeParceled(1)
|
||||
public boolean found;
|
||||
@SafeParceled(2)
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class PIMEUpdateResponse extends AutoSafeParcelable {
|
||||
@SafeParceled(1000)
|
||||
private int versionCode;
|
||||
private final int versionCode;
|
||||
|
||||
@SafeParceled(1)
|
||||
private String b;
|
||||
|
|
|
@ -24,7 +24,7 @@ import java.util.List;
|
|||
public class QuerySpecification extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 2;
|
||||
private final int versionCode = 2;
|
||||
@SafeParceled(1)
|
||||
public final boolean b;
|
||||
//@SafeParceled(value = 2, subType = "TODO")
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class SearchResults extends AutoSafeParcelable {
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 2;
|
||||
private final int versionCode = 2;
|
||||
|
||||
public static Creator<SearchResults> CREATOR = new AutoCreator<SearchResults>(SearchResults.class);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class SuggestSpecification extends AutoSafeParcelable {
|
||||
@SafeParceled(1000)
|
||||
private int versionCode;
|
||||
private final int versionCode;
|
||||
|
||||
public SuggestSpecification() {
|
||||
versionCode = 2;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class SuggestionResults extends AutoSafeParcelable {
|
||||
@SafeParceled(1000)
|
||||
private int versionCode;
|
||||
private final int versionCode;
|
||||
@SafeParceled(1)
|
||||
public final String errorMessage;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -21,12 +21,12 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class AccountChangeEventsRequest extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
@SafeParceled(2)
|
||||
private int i;
|
||||
@SafeParceled(3)
|
||||
private String s;
|
||||
|
||||
public static Creator<AccountChangeEventsRequest> CREATOR = new AutoCreator<>(AccountChangeEventsRequest.class);
|
||||
public static Creator<AccountChangeEventsRequest> CREATOR = new AutoCreator<AccountChangeEventsRequest>(AccountChangeEventsRequest.class);
|
||||
|
||||
}
|
||||
|
|
|
@ -24,13 +24,13 @@ import java.util.List;
|
|||
|
||||
public class AccountChangeEventsResponse extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
@SafeParceled(value = 2, subClass = AccountChangeEvent.class)
|
||||
private List<AccountChangeEvent> events;
|
||||
private final List<AccountChangeEvent> events;
|
||||
|
||||
public AccountChangeEventsResponse() {
|
||||
events = new ArrayList<>();
|
||||
events = new ArrayList<AccountChangeEvent>();
|
||||
}
|
||||
|
||||
public static Creator<AccountChangeEventsResponse> CREATOR = new AutoCreator<>(AccountChangeEventsResponse.class);
|
||||
public static Creator<AccountChangeEventsResponse> CREATOR = new AutoCreator<AccountChangeEventsResponse>(AccountChangeEventsResponse.class);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.List;
|
|||
|
||||
public class TokenData extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(2)
|
||||
public final String token;
|
||||
|
@ -60,5 +60,5 @@ public class TokenData extends AutoSafeParcelable {
|
|||
this.scopes = null;
|
||||
}
|
||||
|
||||
public static final Creator<TokenData> CREATOR = new AutoCreator<>(TokenData.class);
|
||||
public static final Creator<TokenData> CREATOR = new AutoCreator<TokenData>(TokenData.class);
|
||||
}
|
||||
|
|
|
@ -1,17 +1,9 @@
|
|||
/*
|
||||
* 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.
|
||||
* SPDX-FileCopyrightText: 2016, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Notice: Portions of this file are reproduced from work created and shared by Google and used
|
||||
* according to terms described in the Creative Commons 4.0 Attribution License.
|
||||
* See https://developers.google.com/readme/policies for details.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.credentials;
|
||||
|
@ -21,38 +13,30 @@ import android.text.TextUtils;
|
|||
|
||||
import org.microg.gms.common.PublicApi;
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
import org.microg.safeparcel.SafeParceled;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
@PublicApi
|
||||
public class Credential extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
@Field(1000)
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
@Field(1)
|
||||
private String id;
|
||||
|
||||
@SafeParceled(2)
|
||||
@Field(2)
|
||||
private String name;
|
||||
|
||||
@SafeParceled(3)
|
||||
@Field(3)
|
||||
private Uri profilePictureUri;
|
||||
|
||||
@SafeParceled(value = 4, subClass = IdToken.class)
|
||||
@Field(value = 4, subClass = IdToken.class)
|
||||
private List<IdToken> tokens;
|
||||
|
||||
@SafeParceled(5)
|
||||
@Field(5)
|
||||
private String password;
|
||||
|
||||
@SafeParceled(6)
|
||||
@Field(6)
|
||||
private String accountType;
|
||||
|
||||
@SafeParceled(7)
|
||||
@Field(7)
|
||||
private String generatedPassword;
|
||||
|
||||
private Credential() {
|
||||
|
@ -140,19 +124,19 @@ public class Credential extends AutoSafeParcelable {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (!(o instanceof Credential)) return false;
|
||||
if (o == null || !(o instanceof Credential)) return false;
|
||||
|
||||
Credential that = (Credential) o;
|
||||
|
||||
if (!Objects.equals(id, that.id)) return false;
|
||||
if (!Objects.equals(name, that.name)) return false;
|
||||
if (!Objects.equals(profilePictureUri, that.profilePictureUri))
|
||||
if (id != null ? !id.equals(that.id) : that.id != null) return false;
|
||||
if (name != null ? !name.equals(that.name) : that.name != null) return false;
|
||||
if (profilePictureUri != null ? !profilePictureUri.equals(that.profilePictureUri) : that.profilePictureUri != null)
|
||||
return false;
|
||||
if (!Objects.equals(password, that.password))
|
||||
if (password != null ? !password.equals(that.password) : that.password != null)
|
||||
return false;
|
||||
if (!Objects.equals(accountType, that.accountType))
|
||||
if (accountType != null ? !accountType.equals(that.accountType) : that.accountType != null)
|
||||
return false;
|
||||
return Objects.equals(generatedPassword, that.generatedPassword);
|
||||
return generatedPassword != null ? generatedPassword.equals(that.generatedPassword) : that.generatedPassword == null;
|
||||
|
||||
}
|
||||
|
||||
|
@ -162,7 +146,7 @@ public class Credential extends AutoSafeParcelable {
|
|||
}
|
||||
|
||||
public static class Builder {
|
||||
private String id;
|
||||
private final String id;
|
||||
private String name;
|
||||
private Uri profilePictureUri;
|
||||
private String password;
|
||||
|
@ -246,5 +230,5 @@ public class Credential extends AutoSafeParcelable {
|
|||
}
|
||||
}
|
||||
|
||||
public static final Creator<Credential> CREATOR = new AutoCreator<>(Credential.class);
|
||||
public static final Creator<Credential> CREATOR = new AutoCreator<Credential>(Credential.class);
|
||||
}
|
||||
|
|
|
@ -1,36 +1,27 @@
|
|||
/*
|
||||
* 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.
|
||||
* SPDX-FileCopyrightText: 2016, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Notice: Portions of this file are reproduced from work created and shared by Google and used
|
||||
* according to terms described in the Creative Commons 4.0 Attribution License.
|
||||
* See https://developers.google.com/readme/policies for details.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.credentials;
|
||||
|
||||
import org.microg.gms.common.PublicApi;
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
import org.microg.safeparcel.SafeParceled;
|
||||
|
||||
@PublicApi
|
||||
public class CredentialPickerConfig extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
@Field(1000)
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
@Field(1)
|
||||
private boolean showAddAccountButton;
|
||||
|
||||
@SafeParceled(2)
|
||||
@Field(2)
|
||||
private boolean showCancelButton;
|
||||
|
||||
@SafeParceled(3)
|
||||
@Field(3)
|
||||
private boolean forNewAccount;
|
||||
|
||||
private CredentialPickerConfig() {
|
||||
|
@ -42,6 +33,10 @@ public class CredentialPickerConfig extends AutoSafeParcelable {
|
|||
this.forNewAccount = forNewAccount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated It was determined that this method was not useful for developers.
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean isForNewAccount() {
|
||||
return forNewAccount;
|
||||
}
|
||||
|
@ -54,7 +49,15 @@ public class CredentialPickerConfig extends AutoSafeParcelable {
|
|||
return showCancelButton;
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CredentialPickerConfig{" +
|
||||
"showAddAccountButton=" + showAddAccountButton +
|
||||
", showCancelButton=" + showCancelButton +
|
||||
'}';
|
||||
}
|
||||
|
||||
public class Builder {
|
||||
private boolean showAddAccountButton;
|
||||
private boolean showCancelButton;
|
||||
private boolean forNewAccount;
|
||||
|
@ -88,5 +91,5 @@ public class CredentialPickerConfig extends AutoSafeParcelable {
|
|||
}
|
||||
}
|
||||
|
||||
public static final Creator<CredentialPickerConfig> CREATOR = new AutoCreator<>(CredentialPickerConfig.class);
|
||||
public static final Creator<CredentialPickerConfig> CREATOR = new AutoCreator<CredentialPickerConfig>(CredentialPickerConfig.class);
|
||||
}
|
||||
|
|
|
@ -1,23 +1,14 @@
|
|||
/*
|
||||
* 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.
|
||||
* SPDX-FileCopyrightText: 2016, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Notice: Portions of this file are reproduced from work created and shared by Google and used
|
||||
* according to terms described in the Creative Commons 4.0 Attribution License.
|
||||
* See https://developers.google.com/readme/policies for details.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.credentials;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
import org.microg.safeparcel.SafeParceled;
|
||||
|
||||
/**
|
||||
* Parameters for requesting a Credential, via Auth.CredentialsApi.request(). Instances can be
|
||||
|
@ -25,21 +16,20 @@ import org.microg.safeparcel.SafeParceled;
|
|||
*/
|
||||
public class CredentialRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
@Field(1000)
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
@Field(1)
|
||||
private boolean passwordLoginSupported;
|
||||
|
||||
@SafeParceled(2)
|
||||
@Field(2)
|
||||
private String[] accountTypes;
|
||||
|
||||
@SafeParceled(3)
|
||||
@Field(3)
|
||||
private CredentialPickerConfig credentialPickerConfig;
|
||||
|
||||
@SafeParceled(4)
|
||||
@Field(4)
|
||||
private CredentialPickerConfig credentialHintPickerConfig;
|
||||
|
||||
private CredentialRequest() { }
|
||||
|
||||
public CredentialRequest(boolean passwordLoginSupported, String[] accountTypes, CredentialPickerConfig credentialPickerConfig, CredentialPickerConfig credentialHintPickerConfig) {
|
||||
this.passwordLoginSupported = passwordLoginSupported;
|
||||
this.accountTypes = accountTypes;
|
||||
|
@ -71,5 +61,16 @@ public class CredentialRequest extends AutoSafeParcelable {
|
|||
return passwordLoginSupported;
|
||||
}
|
||||
|
||||
public static final Creator<CredentialRequest> CREATOR = new AutoCreator<>(CredentialRequest.class);
|
||||
public static final Creator<CredentialRequest> CREATOR = new AutoCreator<CredentialRequest>(CredentialRequest.class);
|
||||
|
||||
public static class Builder {
|
||||
private boolean passwordLoginSupported;
|
||||
private String[] accountTypes;
|
||||
private CredentialPickerConfig credentialPickerConfig;
|
||||
private CredentialPickerConfig credentialHintPickerConfig;
|
||||
|
||||
public void setAccountTypes(String... accountTypes) {
|
||||
this.accountTypes = accountTypes.clone();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,170 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Notice: Portions of this file are reproduced from work created and shared by Google and used
|
||||
* according to terms described in the Creative Commons 4.0 Attribution License.
|
||||
* See https://developers.google.com/readme/policies for details.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.credentials;
|
||||
|
||||
import org.microg.gms.common.PublicApi;
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Parameters for requesting the display of the hint picker, via {@link CredentalsApi#getHintPickerIntent()}.
|
||||
* Instances can be created using {@link HintRequest.Builder}.
|
||||
*/
|
||||
@PublicApi
|
||||
public class HintRequest extends AutoSafeParcelable {
|
||||
@Field(1000)
|
||||
private final int versionCode = 2;
|
||||
|
||||
@Field(1)
|
||||
private CredentialPickerConfig hintPickerConfig;
|
||||
@Field(2)
|
||||
private boolean emailAddressIdentifierSupported;
|
||||
@Field(3)
|
||||
private boolean phoneNumberIdentifierSupported;
|
||||
@Field(4)
|
||||
private String[] accountTypes;
|
||||
@Field(5)
|
||||
private boolean idTokenRequested = true;
|
||||
@Field(6)
|
||||
private String serverClientId;
|
||||
@Field(7)
|
||||
private String idTokenNonce;
|
||||
|
||||
private HintRequest() {
|
||||
}
|
||||
|
||||
public HintRequest(CredentialPickerConfig hintPickerConfig, boolean emailAddressIdentifierSupported, boolean phoneNumberIdentifierSupported, String[] accountTypes, boolean idTokenRequested, String serverClientId, String idTokenNonce) {
|
||||
this.hintPickerConfig = hintPickerConfig;
|
||||
this.emailAddressIdentifierSupported = emailAddressIdentifierSupported;
|
||||
this.phoneNumberIdentifierSupported = phoneNumberIdentifierSupported;
|
||||
this.accountTypes = accountTypes;
|
||||
this.idTokenRequested = idTokenRequested;
|
||||
this.serverClientId = serverClientId;
|
||||
this.idTokenNonce = idTokenNonce;
|
||||
}
|
||||
|
||||
public String[] getAccountTypes() {
|
||||
return accountTypes;
|
||||
}
|
||||
|
||||
public CredentialPickerConfig getHintPickerConfig() {
|
||||
return hintPickerConfig;
|
||||
}
|
||||
|
||||
public String getIdTokenNonce() {
|
||||
return idTokenNonce;
|
||||
}
|
||||
|
||||
public String getServerClientId() {
|
||||
return serverClientId;
|
||||
}
|
||||
|
||||
public boolean isEmailAddressIdentifierSupported() {
|
||||
return emailAddressIdentifierSupported;
|
||||
}
|
||||
|
||||
public boolean isPhoneNumberIdentifierSupported() {
|
||||
return phoneNumberIdentifierSupported;
|
||||
}
|
||||
|
||||
public boolean isIdTokenRequested() {
|
||||
return idTokenRequested;
|
||||
}
|
||||
|
||||
public static final Creator<HintRequest> CREATOR = new AutoCreator<>(HintRequest.class);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "HintRequest{" +
|
||||
"hintPickerConfig=" + hintPickerConfig +
|
||||
", emailAddressIdentifierSupported=" + emailAddressIdentifierSupported +
|
||||
", phoneNumberIdentifierSupported=" + phoneNumberIdentifierSupported +
|
||||
", accountTypes=" + Arrays.toString(accountTypes) +
|
||||
", idTokenRequested=" + idTokenRequested +
|
||||
", serverClientId='" + serverClientId + '\'' +
|
||||
", idTokenNonce='" + idTokenNonce + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
private CredentialPickerConfig hintPickerConfig;
|
||||
private boolean emailAddressIdentifierSupported;
|
||||
private boolean phoneNumberIdentifierSupported;
|
||||
private String[] accountTypes;
|
||||
private boolean idTokenRequested = true;
|
||||
private String serverClientId;
|
||||
private String idTokenNonce;
|
||||
|
||||
/**
|
||||
* Builds a {@link HintRequest}.
|
||||
*/
|
||||
public HintRequest build() {
|
||||
return new HintRequest(hintPickerConfig, emailAddressIdentifierSupported, phoneNumberIdentifierSupported, accountTypes, idTokenRequested, serverClientId, idTokenNonce);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the account types (identity providers) that are accepted by this application.
|
||||
* It is strongly recommended that the strings listed in {@link IdentityProviders} be used for the most common
|
||||
* identity providers, and strings representing the login domain of the identity provider be used for any
|
||||
* others which are not listed.
|
||||
*
|
||||
* @param accountTypes The list of account types (identity providers) supported by the app.
|
||||
* typically in the form of the associated login domain for each identity provider.
|
||||
*/
|
||||
public void setAccountTypes(String... accountTypes) {
|
||||
this.accountTypes = accountTypes.clone();
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables returning {@link Credential} hints where the identifier is an email address, intended for use with a password chosen by the user.
|
||||
*/
|
||||
public void setEmailAddressIdentifierSupported(boolean emailAddressIdentifierSupported) {
|
||||
this.emailAddressIdentifierSupported = emailAddressIdentifierSupported;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the configuration for the hint picker dialog.
|
||||
*/
|
||||
public void setHintPickerConfig(CredentialPickerConfig hintPickerConfig) {
|
||||
this.hintPickerConfig = hintPickerConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify a nonce value that should be included in any generated ID token for this request.
|
||||
*/
|
||||
public void setIdTokenNonce(String idTokenNonce) {
|
||||
this.idTokenNonce = idTokenNonce;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify whether an ID token should be acquired for hints, if available for the selected credential identifier.
|
||||
* This is enabled by default; disable this if your app does not use ID tokens as part of authentication to decrease latency in retrieving credentials and credential hints.
|
||||
*/
|
||||
public void setIdTokenRequested(boolean idTokenRequested) {
|
||||
this.idTokenRequested = idTokenRequested;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables returning {@link Credential} hints where the identifier is a phone number, intended for use with a password chosen by the user or SMS verification.
|
||||
*/
|
||||
public void setPhoneNumberIdentifierSupported(boolean phoneNumberIdentifierSupported) {
|
||||
this.phoneNumberIdentifierSupported = phoneNumberIdentifierSupported;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify the server client ID for the backend associated with this app.
|
||||
* If a Google ID token can be generated for a retrieved credential or hint, and the specified server client ID is correctly configured to be associated with the app, then it will be used as the audience of the generated token.
|
||||
* If a null value is specified, the default audience will be used for the generated ID token.
|
||||
*/
|
||||
public void setServerClientId(String serverClientId) {
|
||||
this.serverClientId = serverClientId;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,35 +1,26 @@
|
|||
/*
|
||||
* 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.
|
||||
* SPDX-FileCopyrightText: 2016, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Notice: Portions of this file are reproduced from work created and shared by Google and used
|
||||
* according to terms described in the Creative Commons 4.0 Attribution License.
|
||||
* See https://developers.google.com/readme/policies for details.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.credentials;
|
||||
|
||||
import org.microg.gms.common.PublicApi;
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
import org.microg.safeparcel.SafeParceled;
|
||||
|
||||
@PublicApi
|
||||
public class IdToken extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
@Field(1000)
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
@Field(1)
|
||||
private String accountType;
|
||||
|
||||
@SafeParceled(2)
|
||||
@Field(2)
|
||||
private String id;
|
||||
|
||||
private IdToken() {
|
||||
|
@ -54,5 +45,5 @@ public class IdToken extends AutoSafeParcelable {
|
|||
return id;
|
||||
}
|
||||
|
||||
public static final Creator<IdToken> CREATOR = new AutoCreator<>(IdToken.class);
|
||||
public static final Creator<IdToken> CREATOR = new AutoCreator<IdToken>(IdToken.class);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Notice: Portions of this file are reproduced from work created and shared by Google and used
|
||||
* according to terms described in the Creative Commons 4.0 Attribution License.
|
||||
* See https://developers.google.com/readme/policies for details.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.credentials;
|
||||
|
||||
import android.accounts.Account;
|
||||
|
||||
/**
|
||||
* Identity provider constants for use with {@link CredentialRequest.Builder#setAccountTypes(String...)}
|
||||
*/
|
||||
public final class IdentityProviders {
|
||||
public static final String FACEBOOK = "//www.facebook.com";
|
||||
public static final String GOOGLE = "//accounts.google.com";
|
||||
public static final String LINKEDIN = "//www.linkedin.com";
|
||||
public static final String MICROSOFT = "//login.live.com";
|
||||
public static final String PAYPAL = "//www.paypal.com";
|
||||
public static final String TWITTER = "//twitter.com";
|
||||
public static final String YAHOO = "//login.yahoo.com";
|
||||
|
||||
/**
|
||||
* Attempts to translate the account type in the provided account into the string that should be used in the credentials API.
|
||||
*
|
||||
* @param account an account on the device.
|
||||
* @return The identity provider string for use with the Credentials API, or {@code null} if the account type is unknown.
|
||||
*/
|
||||
public static String getIdentityProviderForAccount(Account account) {
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -19,5 +19,5 @@ package com.google.android.gms.auth.api.credentials.internal;
|
|||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class DeleteRequest extends AutoSafeParcelable {
|
||||
public static final Creator<DeleteRequest> CREATOR = new AutoCreator<>(DeleteRequest.class);
|
||||
public static final Creator<DeleteRequest> CREATOR = new AutoCreator<DeleteRequest>(DeleteRequest.class);
|
||||
}
|
||||
|
|
|
@ -19,5 +19,5 @@ package com.google.android.gms.auth.api.credentials.internal;
|
|||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class GeneratePasswordRequest extends AutoSafeParcelable {
|
||||
public static final Creator<GeneratePasswordRequest> CREATOR = new AutoCreator<>(GeneratePasswordRequest.class);
|
||||
public static final Creator<GeneratePasswordRequest> CREATOR = new AutoCreator<GeneratePasswordRequest>(GeneratePasswordRequest.class);
|
||||
}
|
||||
|
|
|
@ -19,5 +19,5 @@ package com.google.android.gms.auth.api.credentials.internal;
|
|||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class SaveRequest extends AutoSafeParcelable {
|
||||
public static final Creator<SaveRequest> CREATOR = new AutoCreator<>(SaveRequest.class);
|
||||
public static final Creator<SaveRequest> CREATOR = new AutoCreator<SaveRequest>(SaveRequest.class);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.proxy;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class ProxyRequest extends AutoSafeParcelable {
|
||||
public static final int HTTP_METHOD_GET = 0;
|
||||
public static final int HTTP_METHOD_POST = 1;
|
||||
public static final int HTTP_METHOD_PUT = 2;
|
||||
public static final int HTTP_METHOD_DELETE = 3;
|
||||
public static final int HTTP_METHOD_HEAD = 4;
|
||||
public static final int HTTP_METHOD_OPTIONS = 5;
|
||||
public static final int HTTP_METHOD_TRACE = 6;
|
||||
public static final int HTTP_METHOD_PATCH = 7;
|
||||
|
||||
@Field(1000)
|
||||
private final int versionCode = 2;
|
||||
@Field(1)
|
||||
public String url;
|
||||
@Field(2)
|
||||
public int httpMethod;
|
||||
@Field(3)
|
||||
public long timeoutMillis;
|
||||
@Field(4)
|
||||
public byte[] body;
|
||||
@Field(5)
|
||||
public Bundle headers;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public static final Creator<ProxyRequest> CREATOR = new AutoCreator<>(ProxyRequest.class);
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.auth.api.proxy;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class ProxyResponse extends AutoSafeParcelable {
|
||||
public static final int STATUS_CODE_NO_CONNECTION = -1;
|
||||
|
||||
@Field(1000)
|
||||
private final int versionCode = 1;
|
||||
@Field(1)
|
||||
public int gmsStatusCode;
|
||||
@Field(2)
|
||||
public PendingIntent recoveryAction;
|
||||
@Field(3)
|
||||
public int httpStatusCode;
|
||||
@Field(4)
|
||||
public Bundle headers;
|
||||
@Field(5)
|
||||
public byte[] body;
|
||||
|
||||
public static final Creator<ProxyResponse> CREATOR = new AutoCreator<>(ProxyResponse.class);
|
||||
}
|
|
@ -25,7 +25,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class AccountRecoveryGuidanceRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
@SafeParceled(2)
|
||||
@Deprecated
|
||||
public final String accountName;
|
||||
|
@ -42,5 +42,5 @@ public class AccountRecoveryGuidanceRequest extends AutoSafeParcelable {
|
|||
this.account = account;
|
||||
}
|
||||
|
||||
public static final Creator<AccountRecoveryGuidanceRequest> CREATOR = new AutoCreator<>(AccountRecoveryGuidanceRequest.class);
|
||||
public static final Creator<AccountRecoveryGuidanceRequest> CREATOR = new AutoCreator<AccountRecoveryGuidanceRequest>(AccountRecoveryGuidanceRequest.class);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class AccountRemovalRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
@SafeParceled(2)
|
||||
@Deprecated
|
||||
public final String accountName;
|
||||
|
@ -42,5 +42,5 @@ public class AccountRemovalRequest extends AutoSafeParcelable {
|
|||
this.account = account;
|
||||
}
|
||||
|
||||
public static final Creator<AccountRemovalRequest> CREATOR = new AutoCreator<>(AccountRemovalRequest.class);
|
||||
public static final Creator<AccountRemovalRequest> CREATOR = new AutoCreator<AccountRemovalRequest>(AccountRemovalRequest.class);
|
||||
}
|
||||
|
|
|
@ -24,11 +24,11 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class ConfirmCredentialsRequest extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
@SafeParceled(2)
|
||||
public AccountCredentials accountCredentials;
|
||||
@SafeParceled(3)
|
||||
public CaptchaSolution captchaSolution;
|
||||
|
||||
public static final Creator<ConfirmCredentialsRequest> CREATOR = new AutoCreator<>(ConfirmCredentialsRequest.class);
|
||||
public static final Creator<ConfirmCredentialsRequest> CREATOR = new AutoCreator<ConfirmCredentialsRequest>(ConfirmCredentialsRequest.class);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class TokenRequest extends AutoSafeParcelable{
|
||||
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 4;
|
||||
private final int versionCode = 4;
|
||||
@SafeParceled(3)
|
||||
public String accountName;
|
||||
@SafeParceled(4)
|
||||
|
@ -40,5 +40,5 @@ public class TokenRequest extends AutoSafeParcelable{
|
|||
return new Account(accountName, accountType);
|
||||
}
|
||||
|
||||
public static final Creator<TokenRequest> CREATOR = new AutoCreator<>(TokenRequest.class);
|
||||
public static final Creator<TokenRequest> CREATOR = new AutoCreator<TokenRequest>(TokenRequest.class);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class ConfirmCredentialsWorkflowRequest extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 3;
|
||||
private final int versionCode = 3;
|
||||
@SafeParceled(2)
|
||||
public String accountName;
|
||||
@SafeParceled(3)
|
||||
|
@ -39,5 +39,5 @@ public class ConfirmCredentialsWorkflowRequest extends AutoSafeParcelable {
|
|||
@SafeParceled(6)
|
||||
public AccountAuthenticatorResponse accountAuthenticatorResponse;
|
||||
|
||||
public static final Creator<ConfirmCredentialsWorkflowRequest> CREATOR = new AutoCreator<>(ConfirmCredentialsWorkflowRequest.class);
|
||||
public static final Creator<ConfirmCredentialsWorkflowRequest> CREATOR = new AutoCreator<ConfirmCredentialsWorkflowRequest>(ConfirmCredentialsWorkflowRequest.class);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
// TODO
|
||||
public class AccountCredentials extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 2;
|
||||
private final int versionCode = 2;
|
||||
@SafeParceled(3)
|
||||
public String accountName;
|
||||
@SafeParceled(9)
|
||||
|
@ -34,5 +34,5 @@ public class AccountCredentials extends AutoSafeParcelable {
|
|||
return new Account(accountName, accountType);
|
||||
}
|
||||
|
||||
public static final Creator<AccountCredentials> CREATOR = new AutoCreator<>(AccountCredentials.class);
|
||||
public static final Creator<AccountCredentials> CREATOR = new AutoCreator<AccountCredentials>(AccountCredentials.class);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class AppDescription extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
@SafeParceled(2)
|
||||
public int callingUid;
|
||||
@SafeParceled(3)
|
||||
|
@ -31,5 +31,5 @@ public class AppDescription extends AutoSafeParcelable {
|
|||
@SafeParceled(5)
|
||||
public String callingPkg;
|
||||
|
||||
public static final Creator<AppDescription> CREATOR = new AutoCreator<>(AppDescription.class);
|
||||
public static final Creator<AppDescription> CREATOR = new AutoCreator<AppDescription>(AppDescription.class);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class CaptchaSolution extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
public static final Creator<CaptchaSolution> CREATOR = new AutoCreator<>(CaptchaSolution.class);
|
||||
public static final Creator<CaptchaSolution> CREATOR = new AutoCreator<CaptchaSolution>(CaptchaSolution.class);
|
||||
}
|
||||
|
|
|
@ -18,10 +18,12 @@ package com.google.android.gms.clearcut;
|
|||
|
||||
import android.util.Base64;
|
||||
|
||||
import com.google.android.gms.playlog.internal.PlayLoggerContext;
|
||||
import com.google.android.gms.clearcut.internal.LogVerifierResultParcelable;
|
||||
import com.google.android.gms.clearcut.internal.PlayLoggerContext;
|
||||
import com.mgoogle.android.gms.phenotype.ExperimentToken;
|
||||
import com.mgoogle.android.gms.phenotype.GenericDimension;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
import org.microg.safeparcel.SafeParceled;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.CharBuffer;
|
||||
|
@ -30,30 +32,39 @@ import java.nio.charset.StandardCharsets;
|
|||
import java.util.Arrays;
|
||||
|
||||
public class LogEventParcelable extends AutoSafeParcelable {
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
@Field(1)
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(2)
|
||||
@Field(2)
|
||||
public final PlayLoggerContext context;
|
||||
|
||||
@SafeParceled(3)
|
||||
@Field(3)
|
||||
public final byte[] bytes;
|
||||
|
||||
@SafeParceled(4)
|
||||
@Field(4)
|
||||
public final int[] testCodes;
|
||||
|
||||
@SafeParceled(5)
|
||||
@Field(5)
|
||||
public final String[] mendelPackages;
|
||||
|
||||
@SafeParceled(6)
|
||||
@Field(6)
|
||||
public final int[] experimentIds;
|
||||
|
||||
@SafeParceled(7)
|
||||
@Field(7)
|
||||
public final byte[][] experimentTokens;
|
||||
|
||||
@SafeParceled(8)
|
||||
@Field(8)
|
||||
public final boolean addPhenotypeExperimentTokens;
|
||||
|
||||
@Field(9)
|
||||
public final ExperimentToken[] experimentTokenParcelables;
|
||||
|
||||
@Field(10)
|
||||
public final GenericDimension[] genericDimensions;
|
||||
|
||||
@Field(11)
|
||||
public final LogVerifierResultParcelable logVerifierResult;
|
||||
|
||||
private LogEventParcelable() {
|
||||
context = null;
|
||||
bytes = null;
|
||||
|
@ -61,6 +72,9 @@ public class LogEventParcelable extends AutoSafeParcelable {
|
|||
mendelPackages = null;
|
||||
experimentTokens = null;
|
||||
addPhenotypeExperimentTokens = false;
|
||||
experimentTokenParcelables = null;
|
||||
genericDimensions = null;
|
||||
logVerifierResult = null;
|
||||
}
|
||||
|
||||
public LogEventParcelable(PlayLoggerContext context, byte[] bytes, int[] testCodes, String[] mendelPackages, int[] experimentIds, byte[][] experimentTokens, boolean addPhenotypeExperimentTokens) {
|
||||
|
@ -71,6 +85,9 @@ public class LogEventParcelable extends AutoSafeParcelable {
|
|||
this.experimentIds = experimentIds;
|
||||
this.experimentTokens = experimentTokens;
|
||||
this.addPhenotypeExperimentTokens = addPhenotypeExperimentTokens;
|
||||
this.experimentTokenParcelables = null;
|
||||
this.genericDimensions = null;
|
||||
this.logVerifierResult = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -100,5 +117,5 @@ public class LogEventParcelable extends AutoSafeParcelable {
|
|||
}
|
||||
}
|
||||
|
||||
public static final Creator<LogEventParcelable> CREATOR = new AutoCreator<>(LogEventParcelable.class);
|
||||
public static final Creator<LogEventParcelable> CREATOR = new AutoCreator<LogEventParcelable>(LogEventParcelable.class);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.clearcut.internal;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class LogVerifierResultParcelable extends AutoSafeParcelable {
|
||||
@Field(1)
|
||||
public boolean b;
|
||||
|
||||
public static final Creator<LogVerifierResultParcelable> CREATOR = new AutoCreator<>(LogVerifierResultParcelable.class);
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.clearcut.internal;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class PlayLoggerContext extends AutoSafeParcelable {
|
||||
|
||||
@Field(1)
|
||||
private final int versionCode = 1;
|
||||
|
||||
@Field(2)
|
||||
public final String packageName;
|
||||
|
||||
@Field(3)
|
||||
public final int packageVersionCode;
|
||||
|
||||
@Field(4)
|
||||
public final int logSource;
|
||||
|
||||
@Field(5)
|
||||
public final String uploadAccount;
|
||||
|
||||
@Field(6)
|
||||
public final String loggingId;
|
||||
|
||||
@Field(7)
|
||||
public final boolean logAndroidId;
|
||||
|
||||
@Field(8)
|
||||
public final String logSourceName;
|
||||
|
||||
@Field(9)
|
||||
public final boolean isAnonymous;
|
||||
|
||||
@Field(10)
|
||||
public final int qosTier;
|
||||
|
||||
@Field(11)
|
||||
public final Integer appMobileSpecId;
|
||||
|
||||
@Field(12)
|
||||
public final boolean scrubMccMnc;
|
||||
|
||||
@Field(13)
|
||||
public final Integer piiLevelset;
|
||||
|
||||
private PlayLoggerContext() {
|
||||
packageName = uploadAccount = logSourceName = loggingId = null;
|
||||
qosTier = packageVersionCode = logSource = appMobileSpecId = piiLevelset = -1;
|
||||
isAnonymous = logAndroidId = scrubMccMnc = false;
|
||||
}
|
||||
|
||||
public PlayLoggerContext(String packageName, int packageVersionCode, int logSource, String logSourceName, String uploadAccount, String loggingId, boolean isAnonymous, int qosTier, boolean scrubMccMnc, int piiLevelset) {
|
||||
this.packageName = packageName;
|
||||
this.packageVersionCode = packageVersionCode;
|
||||
this.logSource = logSource;
|
||||
this.logSourceName = logSourceName;
|
||||
this.uploadAccount = uploadAccount;
|
||||
this.loggingId = loggingId;
|
||||
this.logAndroidId = !isAnonymous;
|
||||
this.isAnonymous = isAnonymous;
|
||||
this.qosTier = qosTier;
|
||||
this.appMobileSpecId = null;
|
||||
this.scrubMccMnc = scrubMccMnc;
|
||||
this.piiLevelset = piiLevelset;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder sb = new StringBuilder("PlayLoggerContext[").append(versionCode);
|
||||
sb.append(", package=").append(packageName);
|
||||
sb.append(", packageVersionCode=").append(packageVersionCode);
|
||||
sb.append(", logSource=").append(logSource);
|
||||
sb.append(", uploadAccount=").append(uploadAccount);
|
||||
sb.append(", loggingId=").append(loggingId);
|
||||
sb.append(", logAndroidId=").append(logAndroidId);
|
||||
sb.append(", logSourceName=").append(logSourceName);
|
||||
sb.append(", isAnonymous=").append(isAnonymous);
|
||||
sb.append(", qosTier=").append(qosTier);
|
||||
sb.append(", appMobileSpecId=").append(appMobileSpecId);
|
||||
sb.append(", scrubMccMnc=").append(scrubMccMnc);
|
||||
sb.append(", piiLevelset=").append(piiLevelset);
|
||||
sb.append(']');
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static Creator<PlayLoggerContext> CREATOR = new AutoCreator<PlayLoggerContext>(PlayLoggerContext.class);
|
||||
}
|
|
@ -71,5 +71,5 @@ public class GoogleCertificatesQuery extends AutoSafeParcelable {
|
|||
return certData;
|
||||
}
|
||||
|
||||
public static final Creator<GoogleCertificatesQuery> CREATOR = new AutoCreator<>(GoogleCertificatesQuery.class);
|
||||
public static final Creator<GoogleCertificatesQuery> CREATOR = new AutoCreator<GoogleCertificatesQuery>(GoogleCertificatesQuery.class);
|
||||
}
|
||||
|
|
|
@ -20,5 +20,5 @@ import org.microg.safeparcel.AutoSafeParcelable;
|
|||
|
||||
public class FavaDiagnosticsEntity extends AutoSafeParcelable {
|
||||
|
||||
public static final Creator<FavaDiagnosticsEntity> CREATOR = new AutoCreator<>(FavaDiagnosticsEntity.class);
|
||||
public static final Creator<FavaDiagnosticsEntity> CREATOR = new AutoCreator<FavaDiagnosticsEntity>(FavaDiagnosticsEntity.class);
|
||||
}
|
||||
|
|
17
play-services-api/src/main/java/com/google/android/gms/facs/cache/FacsCacheCallOptions.java
vendored
Normal file
17
play-services-api/src/main/java/com/google/android/gms/facs/cache/FacsCacheCallOptions.java
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.facs.cache;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class FacsCacheCallOptions extends AutoSafeParcelable {
|
||||
@Field(1)
|
||||
public String instanceId;
|
||||
@Field(2)
|
||||
public long version;
|
||||
|
||||
public static final Creator<FacsCacheCallOptions> CREATOR = new AutoCreator<>(FacsCacheCallOptions.class);
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.facs.cache;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class ForceSettingsCacheRefreshResult extends AutoSafeParcelable {
|
||||
|
||||
public static final Creator<ForceSettingsCacheRefreshResult> CREATOR = new AutoCreator<>(ForceSettingsCacheRefreshResult.class);
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.facs.cache;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class GetActivityControlsSettingsResult extends AutoSafeParcelable {
|
||||
|
||||
public static final Creator<GetActivityControlsSettingsResult> CREATOR = new AutoCreator<>(GetActivityControlsSettingsResult.class);
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.facs.cache;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class ReadDeviceLevelSettingsResult extends AutoSafeParcelable {
|
||||
|
||||
public static final Creator<ReadDeviceLevelSettingsResult> CREATOR = new AutoCreator<>(ReadDeviceLevelSettingsResult.class);
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.facs.cache;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class UpdateActivityControlsSettingsResult extends AutoSafeParcelable {
|
||||
|
||||
public static final Creator<UpdateActivityControlsSettingsResult> CREATOR = new AutoCreator<>(UpdateActivityControlsSettingsResult.class);
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.api.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class InitializationParams extends AutoSafeParcelable {
|
||||
@Field(1)
|
||||
public long field1;
|
||||
@Field(2)
|
||||
public long field2;
|
||||
@Field(3)
|
||||
public boolean field3;
|
||||
@Field(4)
|
||||
public String field4;
|
||||
@Field(5)
|
||||
public String field5;
|
||||
@Field(6)
|
||||
public String field6;
|
||||
@Field(7)
|
||||
public Bundle field7;
|
||||
@Field(8)
|
||||
public String field8;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InitializationParams{" +
|
||||
"field1=" + field1 +
|
||||
", field2=" + field2 +
|
||||
", field3=" + field3 +
|
||||
", field4='" + field4 + '\'' +
|
||||
", field5='" + field5 + '\'' +
|
||||
", field6='" + field6 + '\'' +
|
||||
", field7=" + field7 +
|
||||
", field8='" + field8 + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
public static final Creator<InitializationParams> CREATOR = new AutoCreator<>(InitializationParams.class);
|
||||
}
|
|
@ -25,7 +25,7 @@ public class AppMetadata extends AutoSafeParcelable {
|
|||
@Field(8)
|
||||
private String field8;
|
||||
@Field(9)
|
||||
private boolean field9 = true;
|
||||
private final boolean field9 = true;
|
||||
@Field(10)
|
||||
private boolean field10;
|
||||
@Field(11)
|
||||
|
@ -57,5 +57,9 @@ public class AppMetadata extends AutoSafeParcelable {
|
|||
@Field(25)
|
||||
private String field25;
|
||||
|
||||
public String toString() {
|
||||
return "AppMetadata[" + packageName + "]";
|
||||
}
|
||||
|
||||
public static final Creator<AppMetadata> CREATOR = new AutoCreator<>(AppMetadata.class);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class EventParams extends AutoSafeParcelable {
|
||||
@Field(2)
|
||||
public Bundle data;
|
||||
|
||||
public static final Creator<EventParams> CREATOR = new AutoCreator<>(EventParams.class);
|
||||
}
|
|
@ -8,5 +8,14 @@ package com.google.android.gms.measurement.internal;
|
|||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class EventParcel extends AutoSafeParcelable {
|
||||
@Field(2)
|
||||
public String name;
|
||||
@Field(3)
|
||||
public EventParams params;
|
||||
@Field(4)
|
||||
public String origin;
|
||||
@Field(5)
|
||||
public long timestamp;
|
||||
|
||||
public static final Creator<EventParcel> CREATOR = new AutoCreator<>(EventParcel.class);
|
||||
}
|
||||
|
|
|
@ -8,5 +8,20 @@ package com.google.android.gms.measurement.internal;
|
|||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class UserAttributeParcel extends AutoSafeParcelable {
|
||||
@Field(1)
|
||||
public int field1;
|
||||
@Field(2)
|
||||
public String name;
|
||||
@Field(3)
|
||||
public long timestamp;
|
||||
@Field(4)
|
||||
public Long field4;
|
||||
@Field(6)
|
||||
public String field6;
|
||||
@Field(7)
|
||||
public String field7;
|
||||
@Field(8)
|
||||
public Double field8;
|
||||
|
||||
public static final Creator<UserAttributeParcel> CREATOR = new AutoCreator<>(UserAttributeParcel.class);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
public class ParcelableLoadImageOptions extends AutoSafeParcelable {
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
public int imageSize;
|
||||
|
@ -32,5 +32,5 @@ public class ParcelableLoadImageOptions extends AutoSafeParcelable {
|
|||
@SafeParceled(3)
|
||||
public boolean useLargePictureForCp2Images;
|
||||
|
||||
public static final Creator<ParcelableLoadImageOptions> CREATOR = new AutoCreator<>(ParcelableLoadImageOptions.class);
|
||||
public static final Creator<ParcelableLoadImageOptions> CREATOR = new AutoCreator<ParcelableLoadImageOptions>(ParcelableLoadImageOptions.class);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class AccountMetadata extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 2;
|
||||
private final int versionCode = 2;
|
||||
|
||||
@SafeParceled(2)
|
||||
public boolean hasGooglePlus = true;
|
||||
|
@ -36,5 +36,5 @@ public class AccountMetadata extends AutoSafeParcelable {
|
|||
@SafeParceled(5)
|
||||
public boolean hasFeature4 = true;
|
||||
|
||||
public static Creator<AccountMetadata> CREATOR = new AutoCreator<>(AccountMetadata.class);
|
||||
public static Creator<AccountMetadata> CREATOR = new AutoCreator<AccountMetadata>(AccountMetadata.class);
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ public class AvatarReference extends AutoSafeParcelable {
|
|||
@SafeParceled(2)
|
||||
public String location;
|
||||
|
||||
public static final Creator<AvatarReference> CREATOR = new AutoCreator<>(AvatarReference.class);
|
||||
public static final Creator<AvatarReference> CREATOR = new AutoCreator<AvatarReference>(AvatarReference.class);
|
||||
}
|
||||
|
|
|
@ -21,10 +21,11 @@ import org.microg.safeparcel.SafeParceled;
|
|||
|
||||
import java.util.Date;
|
||||
|
||||
@Deprecated
|
||||
public class LogEvent extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(2)
|
||||
public final long eventTime;
|
||||
|
@ -50,5 +51,5 @@ public class LogEvent extends AutoSafeParcelable {
|
|||
'}';
|
||||
}
|
||||
|
||||
public static Creator<LogEvent> CREATOR = new AutoCreator<>(LogEvent.class);
|
||||
public static Creator<LogEvent> CREATOR = new AutoCreator<LogEvent>(LogEvent.class);
|
||||
}
|
||||
|
|
|
@ -1,100 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package com.google.android.gms.playlog.internal;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
import org.microg.safeparcel.SafeParceled;
|
||||
|
||||
public class PlayLoggerContext extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1)
|
||||
private int versionCode = 1;
|
||||
|
||||
@SafeParceled(2)
|
||||
public final String packageName;
|
||||
|
||||
@SafeParceled(3)
|
||||
public final int packageVersionCode;
|
||||
|
||||
@SafeParceled(4)
|
||||
public final int logSource;
|
||||
|
||||
@SafeParceled(5)
|
||||
public final String uploadAccount;
|
||||
|
||||
@SafeParceled(6)
|
||||
public final int loggingId;
|
||||
|
||||
@SafeParceled(7)
|
||||
public final boolean logAndroidId;
|
||||
|
||||
@SafeParceled(8)
|
||||
public final String logSourceName;
|
||||
|
||||
@SafeParceled(9)
|
||||
public final boolean isAnonymous;
|
||||
|
||||
@SafeParceled(10)
|
||||
public final int qosTier;
|
||||
|
||||
private PlayLoggerContext() {
|
||||
packageName = uploadAccount = logSourceName = null;
|
||||
qosTier = packageVersionCode = logSource = loggingId = -1;
|
||||
isAnonymous = logAndroidId = false;
|
||||
}
|
||||
|
||||
public PlayLoggerContext(String packageName, int packageVersionCode, int logSource, String uploadAccount, int loggingId, boolean logAndroidId) {
|
||||
this.packageName = packageName;
|
||||
this.packageVersionCode = packageVersionCode;
|
||||
this.logSource = logSource;
|
||||
this.logSourceName = null;
|
||||
this.uploadAccount = uploadAccount;
|
||||
this.loggingId = loggingId;
|
||||
this.logAndroidId = logAndroidId;
|
||||
this.isAnonymous = false;
|
||||
this.qosTier = 0;
|
||||
}
|
||||
|
||||
public PlayLoggerContext(String packageName, int packageVersionCode, int logSource, String logSourceName, String uploadAccount, int loggingId, boolean isAnonymous, int qosTier) {
|
||||
this.packageName = packageName;
|
||||
this.packageVersionCode = packageVersionCode;
|
||||
this.logSource = logSource;
|
||||
this.logSourceName = logSourceName;
|
||||
this.uploadAccount = uploadAccount;
|
||||
this.loggingId = loggingId;
|
||||
this.logAndroidId = !isAnonymous;
|
||||
this.isAnonymous = isAnonymous;
|
||||
this.qosTier = qosTier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PlayLoggerContext[" + versionCode +
|
||||
", package=" + packageName +
|
||||
", packageVersionCode=" + packageVersionCode +
|
||||
", logSource=" + logSource +
|
||||
", uploadAccount=" + uploadAccount +
|
||||
", loggingId=" + loggingId +
|
||||
", logAndroidId=" + logAndroidId +
|
||||
", logSourceName=" + logSourceName +
|
||||
", isAnonymous=" + isAnonymous +
|
||||
", qosTier=" + qosTier +
|
||||
']';
|
||||
}
|
||||
|
||||
public static Creator<PlayLoggerContext> CREATOR = new AutoCreator<>(PlayLoggerContext.class);
|
||||
}
|
|
@ -22,7 +22,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class GetCorpusStatusRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
public final String packageName;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class RequestIndexingRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
public final String packageName;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class GetCurrentExperimentIdsRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
public static final Creator<GetCurrentExperimentIdsRequest> CREATOR = new AutoCreator<GetCurrentExperimentIdsRequest>(GetCurrentExperimentIdsRequest.class);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ import java.util.Arrays;
|
|||
public class GetCurrentExperimentIdsResponse extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
public final Status status;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class GetGlobalSearchSourcesRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
public boolean bool;
|
||||
|
|
|
@ -28,7 +28,7 @@ import java.util.Arrays;
|
|||
public class GetGlobalSearchSourcesResponse extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
public final Status status;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.microg.safeparcel.SafeParceled;
|
|||
public class GetPendingExperimentIdsRequest extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
public static final Creator<GetPendingExperimentIdsRequest> CREATOR = new AutoCreator<GetPendingExperimentIdsRequest>(GetPendingExperimentIdsRequest.class);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ import java.util.Arrays;
|
|||
public class GetPendingExperimentIdsResponse extends AutoSafeParcelable {
|
||||
|
||||
@SafeParceled(1000)
|
||||
private int versionCode = 1;
|
||||
private final int versionCode = 1;
|
||||
|
||||
@SafeParceled(1)
|
||||
public final Status status;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue