History log of /system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
86e647c9f497afb2629a9c0885ab9584b498c283 28-Oct-2017 Andre Eisenbach <eisenbach@google.com> Use checksum to determine if config has been modified

Using a timestamp is not reliable as some partitions on Android reset
the modification timestamp in certain partitions on all files. This
leads to the NFC chip configuration not being loaded in some instances,
even so it has been modified.

This patch switches the file modification check from a timestamp to
calculate a simple CRC32 checksum instead.

Bug: 67959484
Test: manual; Verify configuration is loaded when modified
Change-Id: I57723dd5d2e10813806f492551d7ed502124a295
(cherry picked from commit 814446d7da4ebb3f3387d8d2b20cf14acdaf1e56)
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
387d192e2dabb35b38de29f04d89fe431ba01407 29-Mar-2017 Ruchi Kandoi <kandoiruchi@google.com> Restrict HAL implementation access to only /data/vendor/nfc

Changes the storage file location to /data/vendor/nfc.

Test: Nfc boots up without any SELinux denials
Bug: 36645109
Change-Id: I78ae5c9f66baebc72e3312b0d394da77b96c03f9
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
c76c21dd27b7bb9296f4bdef8c6e19ec9d19eef3 27-Feb-2017 Love Khanna <love.khanna@nxp.com> Apply clang-format

Only target c,cpp and header files.
find * | grep -E "\.(c|h|cpp)$" | xargs clang-format --style=file -i

Test: compiles

Change-Id: I3eddd2eb8f5076f5bd4e196cfdd5c102d5b4a1a5
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
264af28a9d10595ef0ece33463d93a592030a110 22-Feb-2017 Jaekyun Seok <jaekyun@google.com> Treblize nfc config file location

Treblization requires to locate partner-specific configs in its own
partition. So the nfc config file could be located in /odm/etc or
/vendor/etc.
This CL is to support those locations for the config.

Test: building succeeded and tested on sailfish.
Bug: 35369237
Change-Id: I22840654044e142433a1d828cb8e382c48cd699f
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
0c515ae1d2edf9202878a7ac7bcbf195333643e5 31-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Readability fix: if statement assignments

Coccinelle-assisted:
@@
variable i;
expression E;
statement S1, S2;
@@

+ i = E;
if (
(
- (i = E)
+ i
!= ...
|
- (i = E)
+ i
== ...
|
- (i = E)
+ i
< ...
|
- (i = E)
+ i
> ...
|
- (i = E)
+ i
<= ...
|
- (i = E)
+ i
>= ...
|
- (i = E)
+ i
)
) S1 else S2

spatch --sp-file if_assignment.cocci --in-place --dir .
find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: Compiles
Change-Id: Ifb9cde410ed84e0ab8012432ad0ec30df17d1786
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
6fca02d5010de7bd31d83b853c32138021da5f29 30-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Apply clang-format

find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: compiles
Change-Id: Id9b790d9685f7ba5ba1bcec1149619b63c2e679a
signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
552f2b745deddd35d9b75da9c9c09bd2f3f573a8 29-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Fix comments which aren't accurately fixed by clang-format

Test: compiles
Change-Id: Ia3e7a4007b096d57ae082f8474649b17144a2a86
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp
1ab8a755853d5118d6a504311d079bd5aa21a964 19-May-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Adding NXP NCI Hal implementation.

This patch includes Hal implementation
of NXP's NCI based NFC controller.

Change-Id: I6ee7fac309aebb52ae3d7c197685df729751ee52
(cherry picked from commit 121096a3511ea4ac559dea3ef7d39f0df00c97a6)
/system/nfc/halimpl/pn54x/utils/phNxpConfig.cpp