Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
48a3126d
Commit
48a3126d
authored
9 months ago
by
Ioannis Ilkos
Committed by
Gerrit Code Review
9 months ago
Browse files
Options
Downloads
Plain Diff
Merge "Publish TracingServiceProxy after storage has been unlocked" into main
parents
41e38545
5a104f2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/core/java/com/android/server/tracing/TracingServiceProxy.java
+6
-2
6 additions, 2 deletions
.../java/com/android/server/tracing/TracingServiceProxy.java
with
6 additions
and
2 deletions
services/core/java/com/android/server/tracing/TracingServiceProxy.java
+
6
−
2
View file @
48a3126d
...
...
@@ -93,6 +93,7 @@ public class TracingServiceProxy extends SystemService {
private
final
Context
mContext
;
private
final
PackageManager
mPackageManager
;
private
final
LruCache
<
ComponentName
,
ServiceConnector
<
IMessenger
>>
mCachedReporterServices
;
private
boolean
mServicePublished
=
false
;
private
final
ITracingServiceProxy
.
Stub
mTracingServiceProxy
=
new
ITracingServiceProxy
.
Stub
()
{
/**
...
...
@@ -122,9 +123,12 @@ public class TracingServiceProxy extends SystemService {
public
void
onStart
()
{}
@Override
public
void
onBootPhase
(
int
phase
)
{
if
(
phase
==
SystemService
.
PHASE_THIRD_PARTY_APPS_CAN_START
)
{
public
void
onUserUnlocking
(
@NonNull
TargetUser
user
)
{
// We need the device storage to be unlocked before we can accept and forward
// requests.
if
(!
mServicePublished
)
{
publishBinderService
(
TRACING_SERVICE_PROXY_BINDER_NAME
,
mTracingServiceProxy
);
mServicePublished
=
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment