Donate to
e Foundation
|
Murena
handsets with /e/OS | Own a part of Murena!
Learn more
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
android_frameworks_base
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository 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
e
os
android_frameworks_base
Commits
7b3e6823
Commit
7b3e6823
authored
7 years ago
by
Kevin Chyn
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Log before stopping/removing the current client" into pi-dev
parents
da80202b
a792fa64
Branches
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/fingerprint/FingerprintService.java
+5
-4
5 additions, 4 deletions
...va/com/android/server/fingerprint/FingerprintService.java
with
5 additions
and
4 deletions
services/core/java/com/android/server/fingerprint/FingerprintService.java
+
5
−
4
View file @
7b3e6823
...
@@ -225,16 +225,17 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
...
@@ -225,16 +225,17 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
if
(!(
mCurrentClient
instanceof
AuthenticationClient
))
{
if
(!(
mCurrentClient
instanceof
AuthenticationClient
))
{
return
;
return
;
}
}
if
(
isKeyguard
(
mCurrentClient
.
getOwnerString
()))
{
final
String
currentClient
=
mCurrentClient
.
getOwnerString
();
if
(
isKeyguard
(
currentClient
))
{
return
;
// Keyguard is always allowed
return
;
// Keyguard is always allowed
}
}
List
<
ActivityManager
.
RunningTaskInfo
>
runningTasks
=
mActivityManager
.
getTasks
(
1
);
List
<
ActivityManager
.
RunningTaskInfo
>
runningTasks
=
mActivityManager
.
getTasks
(
1
);
if
(!
runningTasks
.
isEmpty
())
{
if
(!
runningTasks
.
isEmpty
())
{
final
String
topPackage
=
runningTasks
.
get
(
0
).
topActivity
.
getPackageName
();
final
String
topPackage
=
runningTasks
.
get
(
0
).
topActivity
.
getPackageName
();
if
(!
topPackage
.
contentEquals
(
mCurrentClient
.
getOwnerString
()))
{
if
(!
topPackage
.
contentEquals
(
currentClient
))
{
mCurrentClient
.
stop
(
false
/* initiatedByClient */
);
Slog
.
e
(
TAG
,
"Stopping background authentication, top: "
+
topPackage
Slog
.
e
(
TAG
,
"Stopping background authentication, top: "
+
topPackage
+
" currentClient: "
+
mCurrentClient
.
getOwnerString
());
+
" currentClient: "
+
currentClient
);
mCurrentClient
.
stop
(
false
/* initiatedByClient */
);
}
}
}
}
}
catch
(
RemoteException
e
)
{
}
catch
(
RemoteException
e
)
{
...
...
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