Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Nfc
Commits
e1bc9bb0
Commit
e1bc9bb0
authored
8 years ago
by
Martijn Coenen
Committed by
The Android Automerger
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Allow system_server access to NFC reader mode API.
Bug: 29451566 Change-Id: I26b0a2e9b33854efd59b95ab230a6db3042f93c7
parent
9ea802b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/com/android/nfc/NfcService.java
src/com/android/nfc/NfcService.java
+3
-2
No files found.
src/com/android/nfc/NfcService.java
View file @
e1bc9bb0
...
...
@@ -938,8 +938,9 @@ public class NfcService implements DeviceHostListener {
@Override
public
void
setReaderMode
(
IBinder
binder
,
IAppCallback
callback
,
int
flags
,
Bundle
extras
)
throws
RemoteException
{
if
(!
mForegroundUtils
.
isInForeground
(
Binder
.
getCallingUid
()))
{
Log
.
e
(
TAG
,
"setReaderMode: Caller not in foreground."
);
int
callingUid
=
Binder
.
getCallingUid
();
if
(
callingUid
!=
Process
.
SYSTEM_UID
&&
!
mForegroundUtils
.
isInForeground
(
callingUid
))
{
Log
.
e
(
TAG
,
"setReaderMode: Caller is not in foreground and is not system process."
);
return
;
}
synchronized
(
NfcService
.
this
)
{
...
...
This diff is collapsed.
Click to expand it.
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