Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GmsCore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
e
apps
GmsCore
Commits
45d4dffb
Verified
Commit
45d4dffb
authored
Dec 22, 2020
by
Marvin W.
🐿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add service to list, fix unknown service behavior
parent
b7717e5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
play-services-basement/src/main/java/org/microg/gms/common/GmsService.java
...ement/src/main/java/org/microg/gms/common/GmsService.java
+1
-0
play-services-core/src/main/kotlin/org/microg/gms/chimera/ServiceProvider.kt
...src/main/kotlin/org/microg/gms/chimera/ServiceProvider.kt
+1
-1
No files found.
play-services-basement/src/main/java/org/microg/gms/common/GmsService.java
View file @
45d4dffb
...
...
@@ -101,6 +101,7 @@ public enum GmsService {
WORK_ACCOUNT
(
120
),
AD_CACHE
(
123
,
"com.google.android.gms.ads.service.CACHE"
),
DYNAMIC_LINKS
(
131
,
"com.google.firebase.dynamiclinks.service.START"
),
IDENTITY_SIGN_IN
(
212
,
"com.google.android.gms.auth.api.identity.service.signin.START"
),
NEARBY_EXPOSURE
(
236
,
"com.google.android.gms.nearby.exposurenotification.START"
),
;
...
...
play-services-core/src/main/kotlin/org/microg/gms/chimera/ServiceProvider.kt
View file @
45d4dffb
...
...
@@ -30,7 +30,7 @@ class ServiceProvider : ContentProvider() {
when
(
method
)
{
"serviceIntentCall"
->
{
val
serviceAction
=
extras
?.
getString
(
"serviceActionBundleKey"
)
?:
return
null
val
ourServiceAction
=
GmsService
.
byAction
(
serviceAction
)
?.
takeIf
{
it
.
SERVICE_ID
>
0
}
?.
ACTION
val
ourServiceAction
=
GmsService
.
byAction
(
serviceAction
)
?.
takeIf
{
it
.
SERVICE_ID
>
0
}
?.
ACTION
?:
serviceAction
val
context
=
context
!!
val
intent
=
Intent
(
ourServiceAction
).
apply
{
`package`
=
context
.
packageName
}
val
resolveInfo
=
context
.
packageManager
.
resolveService
(
intent
,
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment