OSDN Git Service

nfc: Make NDEF validation stricter
authorRuchi Kandoi <kandoiruchi@google.com>
Wed, 25 Jan 2017 02:32:01 +0000 (18:32 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 25 Jan 2017 18:21:28 +0000 (18:21 +0000)
commit2ed0b48abb1fbc81dd16ec8ef0f6de8da590e86b
tree422d636d140001cdfc495b8d5041115c8f8e430c
parent35c715332f9c5ea6bd91f4b26c954ef89026e814
nfc: Make NDEF validation stricter

- Check if the MB is not set for any record apart from the first one.
- If the record is chunked, first record must contain the type

Bug: 20722275
Test: Manual; write raw NDEF messages to a tag
Change-Id: I3e73fc5163bbcd8a1f23417e98f57b665f4f1fad
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
core/java/android/nfc/NdefRecord.java