History log of /packages/apps/Nfc/src/com/android/nfc/NfcService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e4d9ddebb676325c6abfe3b0d4c0aefa8a17d952 29-Jun-2011 Nick Pelly <npelly@google.com> Do not change NFC on/off preference while executing SE reset.

Bug: 4967769
Change-Id: I7a72cbe831d4b3f44bed7feeea8abaf468cdc19b
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
95b352ec03226adf812d63e6fee568b1a4581021 17-Jun-2011 Daniel Tomas <dtomas.nxp@gmail.com> Set the transceive timeout to 10s when executeSeReset() is called

Change-Id: Id89207194a87e918aee2493c8c0fa93a97a1ff4a
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
2edb3ee5e28ab719a3bb17b8d76b2b588405be9a 13-Jun-2011 Nick Pelly <npelly@google.com> Fix NFC service wake-lock, again.

1) Put a watchdog on the NFC Service disable path.
All the bug-reports show we were stuck in _disable(), watch-dog
this path (10 seconds).

2) Only attempt a SE reset once, even if it fails the first time.
All the bugs reports should the _disable() was due to SE reset
on first boot.

3) Grab the NFC service lock before the wake-lock.
So even if someone has NFC service lock, at least we don't
hold a wake-lock waiting for it.

Bug: 4581084
Change-Id: Ic9829dddde8d0c67cf0e8e4912357fa2902faa11
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
dfac80d25dd2816ad5af74cc4131b74134cc81b7 02-Jun-2011 Nick Pelly <npelly@google.com> Fix regression in NFC-EE close() cleanup path for dead applications.

The regression occured when we switched to certificate based checking
for NFC-EE access control (this switch was only fully completed a few days
ago).

Change-Id: I43d7adfad020446af8e863e876c59caf3b852920
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
aa122139d77645149c09c9815fd45e7b87ce7170 01-Jun-2011 Nick Pelly <npelly@google.com> Make sure NFC stack is initialized before attempting SE reset.

This fixes a regression at about GRJ46 where phones that had NFC
turned off would fail to perform SE reset on first boot of GRJ46
and later. This would prevent NFC from being turned on, and caused
NFC service to eat battery.

Change-Id: I4714f06e8a3c92a5974851dd1be90b797e3058ac
Bug: 4504474
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
b8318ada928026f1d118ec918260796106b83dd2 25-May-2011 Jeff Hamilton <jham@android.com> Merge "Fix a bug with absolute URI processing." into gingerbread
5223d6aafa38c8dbbe684f1f8611ee0f46e7ef02 25-May-2011 Jeff Hamilton <jham@android.com> Fix a bug with absolute URI processing.

Change-Id: Ic9dc3f981e6abe52d7732eab35d6cc2c535a2dad
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
d30c5d615023201735d251ae14324105b220fe04 25-May-2011 Nick Pelly <npelly@google.com> Merge "Use a hardcoded SE reset script." into gingerbread
a8b7cca914e4a17f5c432f7bbeed0f1b236c55b4 25-May-2011 Nick Pelly <npelly@google.com> Use a hardcoded SE reset script.

Remove per-package support for tear-down. It just complicates things.

Change-Id: I9ab413df339b2d5407084b2b83c0c2a8feabc0e4
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
21ee4b2e782188cbc8e8b7752dd992844a904615 24-May-2011 Jeff Hamilton <jham@android.com> Add support for TNF_EXTERNAL in NDEF_DISCOVERED intents.

The URN is converted to a URL in the form:

vnd.android.nfc://ext/<domain_name>:<service_name>

so that it can be processed by IntentFilter. For example to
catch all TNF_EXTERNAL entries for example.com you would use
the following in your manifest:

<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="vnd.android.nfc"
android:host="ext"
android:pathPrefix="/example.com:" />
</intent-filter>

Change-Id: I5f5b121aa217364611923113985261a5c9a2171e
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
7a7f8f8fd82936f0ee005ccfa7ac5c36760ed902 20-Apr-2011 Jeff Hamilton <jham@android.com> Only execute the teardown APDUs when a package is being fully removed.

Bug: 4316508
Change-Id: I498eb09cfb48b3b14268c649936186000f360c16
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
5e7b58d9c95a9074a42c3e4820e2467dfa85af10 04-Apr-2011 Jeff Hamilton <jham@android.com> Don't crash when an unregistered package is removed.

Bug: 4205311
Change-Id: I116e7c2e12c7e160d81154d22589b1bdefe93e44
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
613fcd914b6ff4fc50ccb9500db952d2fab5ff88 01-Apr-2011 Jason parks <jparks@google.com> Merge "Implement tear down scripts." into gingerbread
bcd6a9954c5abafc6b14aabcc7768d0f03cc956c 31-Mar-2011 Jason parks <jparks@google.com> Implement tear down scripts.

Change-Id: Ie6d491b4bf1a735d4119f78f252aa14a95536149
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
8afd14d3b23d3124c48ee275ba2845aede6542a1 01-Apr-2011 Jeff Hamilton <jham@android.com> Make the NFC UID forward compatible.

Change-Id: Idebe263500839a0238fd5b0cf732e5ecc477698e
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
37179222029075f316d43db89555699c978c79f8 30-Mar-2011 Nick Pelly <npelly@google.com> Merge "Increase wired mode timeout to 10 seconds." into gingerbread
ba6401757f8017faeb77423f2d08fd51be1d1051 30-Mar-2011 Nick Pelly <npelly@google.com> Increase wired mode timeout to 10 seconds.

Change-Id: I496a74f2fbad55cb8f04a434a386d6d86e7d3636
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
93d8a69ccadfa01b0a5ec3d7edeb921a1da4bce8 25-Mar-2011 Jeff Hamilton <jham@android.com> Add com.android.nfc.permission.NFCEE_ADMIN.

It controls permissions for NFCEE administration
and is checked based on the signature of Nfc.apk
and the caller.

The NFCEE admin permission checking is currently
set to check the stock NFC permission.

Change-Id: I164511d8f6850034ca0fc1f6f7f75c5ef212fbc2
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
cd46a585f77bdfca3e04f61957fe292cf2b40d63 24-Mar-2011 Jeff Hamilton <jham@android.com> Change the package name to allow using a new cert.

Change-Id: I89243027b25a3904df0e50414b64387d172c181b
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
49d53329a0c720a7e430220d77805bc1763545b1 08-Mar-2011 Nick Pelly <npelly@google.com> Implement new NFC-EE API's (Nfc.apk).

Change-Id: Id16b91a9cde25a4f4a746492921250c0834199f1
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
10389c11abdae4c794082f6c51f11b28b422eddb 03-Feb-2011 Martijn Coenen <martijn.coenen@nxp.com> Fix race in NFC tag registry/dispatch.

The tag handle was only registered after the dispatch; with the "normal"
dispatch the activity would take a while to start and this problem would not be
seen. With foreground dispatch however, if you'd immediately try to connect to a tag,
sometimes the tag handle is not registered yet, causing the connect() to fail.

Change-Id: I92b5e36a5d8f08e410a656d364e88bce2d25c854
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
221b4d6ee301fbfe19402798f7d3c11e6878c888 15-Feb-2011 daniel_tomas <dtomas.nxp@gmail.com> Patch to manage the Screen ON/OFF during the wired mode

Change-Id: I019ad3fc62f49280031320c2c32532e64097d3f9
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
99a1a5cd0824585da3b3fa4a3f43a7491342a99e 15-Feb-2011 daniel_tomas <dtomas.nxp@gmail.com> Patch to support CE On/Off with Screen On/Off

Change-Id: Ic7046ea686b1cf3eb232f6125122dea5d919ac2d
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
bd555ee64250126b60b24814120a2049943920ca 09-Feb-2011 Nick Pelly <npelly@google.com> Fix SE permissions.

Change-Id: I83f79bc7a5f3227ef4a8222dc879beda53a8ab31
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
8d69f5205e3c4a7c2eb869bbf4983d3d9fe45ab0 01-Feb-2011 Nick Pelly <npelly@google.com> Update Nfc.apk for final GB MR API changes.

Change-Id: I0b709084992e8022deacd67e1b8c24f33e8d73fc
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
ab2b44b97936d2c5dbf6eda1245ca793e840713f 28-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> INfcTag isPresent() should not block and not cause RF activity.

Use a cached value instead, which is based on the presence check that is running
anyway.

Change-Id: Ifa50ff38e884fa865bb7ba95dde45da39bebf7e8
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
3ca2b3f925d434559300ee2fb10bfcdd365a0fb6 27-Jan-2011 Jeff Hamilton <jham@android.com> Don't show the same activity multiple times.

Bug: 3398076
Change-Id: Ib1a0ac03299f713b00bc93de2e8bb7a3b531711c
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
e260fc52ed2b4e6e1b7394d6f841d01c98888327 25-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> Stop tag watchdog before disabling NFC.

Change-Id: I0a62d1ee539aa6bf9147bed56055a460b9804aea
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
663c0153d74ddbe8e8ec1f9f55780beafa2543fa 25-Jan-2011 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Ensure disconnection from remote peer before sleeping, in P2P mode.

Change-Id: I0d8fce569f2e6431fe62a299278a0106c86cda9a
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
434bb34457422a9cad664b73ed0d425db4a3093d 25-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> Reconnect() after checking for NdefFormatable().

Some tags may be left in an inconsistent or "non-responding" state after we
do NdefFormatable checks. For example, tags that identify as DESfire
but don't support the getVersion() command. To make sure the stack can continue
to work with them, we reconnect().

Change-Id: I2890d3c70cc7cf7d15fb98090a031686d434168d
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
24dbea55709219e42aa3b6b6578f29ffd447a786 24-Jan-2011 Jeff Hamilton <jham@android.com> Stop using URIs for ACTION_TECHNOLOGY_DISCOVERED

The pattern matching wasn't sufficient with the
move to identifying technologies with their class
names so now we use a custom dispatching mechanism.

Change-Id: I3e6379d454458bbb65730ade32cdaa1680c5e339
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
7f5487be0414b1f92b41cc5f7b0b7db846d9b1c9 19-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> Do not disconnect P2P target if connect failed.

If the P2P target connect failed, the P2P target disconnect cannot be done.
However the polling loop must be restarted. This is already done in JNI layer
by the failing connect itself.

Change-Id: I1c3323e4c038c8133e7b6e16b3a238c050427cfc
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
2436ffe91853535fad87b7a8e03d8883bae20f20 24-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> Fix tag disconnect.

This patch fixes the tag disconnect sequence in 2 cases:

1.
When the NFC service disconnects a tag because it is not needed anymore, the
disconnection should be effective immediately and not delayed until the tag is
removed from the field. The NFC service is responsible for discovering again
the same tag if the polling loop is restarted.
The looping "presence check" in native code is then removed.

2.
Before the screen is turned off, the polling loop configuration and - if any
tag is present - the tag disconnection must be done accordingly to the "normal"
tag management. In particular the watchdog must be stopped properly.

Change-Id: I58ee27cede110c419052b4eef07f1e4bd35ae208
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
e08c8939be916c393a62b995b2dee438cb8cec2f 24-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> Don't throw NdefFormattable technology when Ndef found.

libNFC doesn't support formatting tags that are already NDEF formatted. This
needs to be fixed in libNFC, but as a temporary work-around we will only
throw the NdefFormattable technology if no NDEF has been found on the tag.

Change-Id: I487b875de5fd66fdfec2d1b9c30fa886d8ca1477
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
adb527a9ce286d019d766a3b207a2251dea89bd1 24-Jan-2011 Jeff Hamilton <jham@android.com> Make the NDEF intent creation more robust.

There are lots of ways things could go
wrong when faced with invalid NDEF data
so just got for the catch-all and handle
it properly.

Change-Id: Ia762c8e337aef8fed867beab8159e6ed05bbacea
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
a1935861ea244b45e29b0ec9b6f263de3c08a2d6 23-Jan-2011 Jeff Hamilton <jham@android.com> Tweak dispatching a bit.

Foreground dispatch overrides now interpret
null for the filters as "catch all".

Foreground NDEF push disables standard dispatch
and only honors foreground dispatching so that
two NDEF push apps don't end up just swapping
between each other when the push happens.

Change-Id: Ic305d4a3a593fff732b8d88ae72e09b4a03d6286
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
0c322dc2d942285bfcd9fe5c0bba1a5f36a967f5 21-Jan-2011 Jeff Hamilton <jham@android.com> Update to the new APIs.

Change-Id: Ic30625a81e1e0a8f01955cd82b2e75ac2571c6d0
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
1a9eca5f84036d7dd3e28000290caa2f641856de 21-Jan-2011 Nick Pelly <npelly@google.com> Fix 4 second latency starting Tag application when recently using home.

The home screen and other system apps call stopAppSwitches() to prevent
malicious applications from starting their activity again when the user exits.
The startActivity() call is delayed by 4 seconds.

We can override this in NFC service because we are a system service, using
resumeAppSwitches(). If a tag comes into the field we really want to show it
immediately. It feels really laggy otherwise.

Change-Id: I5394647f352e3f49f821b5346cd4c9af103137ca
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
9d5511f2640903a79d24578a12a93e50a96f0c0e 17-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> Support for TagLostException (NFC service).

libNFC has a distinct return code indicating it can no longer communicate
with the tag - usually because it is no longer in the RF field.
Propagating this to the API allows applications to react to this
specific event and provide more detailed feedback to the user.

Change-Id: I9d82c749f56c5aee8e5baef84c17d28e326842f4
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
bfb74ec41fe9d2d1ce72467888432f0b3296425f 19-Jan-2011 Nick Pelly <npelly@google.com> Don't catch ClassCastException and NullPointerException.

Change-Id: I2ae2884d78af8268852c8812a4ff7cfbece6c53a
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
f5d6f3253dca74631ba78c715f224cfa80e61d29 05-Jan-2011 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Handle error when accessing a closed socket handle.

When an application tries to access a closed socket, the NFC
service will fail to find it in its internal socket table,
returning a null object which is impossible to cast to a
LLCP socket class, generating a ClassCastException.

This patch handle the exception catching, avoiding a service
crash.

Change-Id: I236652b83a51b78fcfe8258402888a74f3144a7f
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
6efda9f3970382554437be037aed863be9889499 21-Dec-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Moved LLCP link parameters configuration to NFC service initialization.

With the latest libnfc-nxp library, the LLCP socket internals are
initialized when configuring the LLCP link parameters because it
must be the first LLCP function called.

Due to this, these parameters are now set only once at the NFC
service startup instead of each peer discovery.

As a consequence, the NFC Manager initialization now use the
application properties (which contains link parameters) so these
properties are loaded before initialization.

Change-Id: I8e04c3135646a12a48c392d47cb47d09cd234ea1
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
1878c7b6e2cef1e52138ee3a5588913cc165faa5 17-Dec-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Removed workaround for native socket creation limitation.

Until now, the NFC native library (libnfc-nxp) had some limitations
on the socket life cycle that made impossible to ensure the local server
socket was listening before the remote client was trying to connect.

The RegisteredSocket class was created to workaround this by enabling
socket creation at the Java layer prior to link establishment. This
solution was not fully satisfactory since there were still some race
conditions.

A fix for these limitations has been submitted in the library project
in a commit named "Allow LLCP socket creation before link establishment"
and this patch takes advantage of it to remove the RegisteredSocket
class and all the associated code.

As a consequence, the socket creation methods have been simplified, the
link activation processes is lighter (no need to recreate native sockets
on link activation).

This patch also includes some cleaning (removed unused variables).

Change-Id: I643509d620105ae7d3ba24ea68eae37f05bc6ef3
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
0c8bb6d59be8f44c53c02febcbfe570a891f33a4 18-Jan-2011 Nick Pelly <npelly@google.com> Merge "Implement IsoDep timeout handling (NFC service)." into gingerbread
1b61f1dee91101e249b9be65d95366fa745b3b78 12-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> Implement IsoDep timeout handling (NFC service).

Added interface to the NFC service for (re-)setting the IsoDep transaction
timeout. Internally, this is mapped to both the ISO XCHG timer and
the HCI watchdog timer in libnfc (see comments in code).

The timers are reset when the application closes the IsoDep technology.
But they must also be reset if the application crashes (and cannot close
the technology). To cover these cases, whenever discovery is (re)started or
whenever a tag is disconnected, the timeouts are reset to the default values.

Change-Id: I596ef311c3c3b21666b487d16a08642e8a6fc4af
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
ca1a86ecb8edce740a232c3439355e8d5b706e7a 11-Dec-2010 Jeff Hamilton <jham@android.com> NDEF Push Protocol implementation.

The protocol allows pushing NDEF messages
over LLCP in order to simulate a card read
wihtout having to use card emulation. This
also allows for 2 way transfer of meesages.

The protocol allows for a single immediate
message, to be dispatched upon arrival as if
it were read from a tag, and any number of
deferred dispatch messages. The handling of
deferred dispatch messages is up to the
receiver and not implemented in this patch.

Change-Id: Ib99e4fc01532cc741debab370a417f94669b62ac
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
eb488e0b323ec2d4fe03528e2b9f3a73e66ae17d 10-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> Improved accuracy of NDEF_FORMATABLE technology detection.

Previously, any ISO14443-4 tag would get the NDEF_FORMATABLE technology,
indicating that a format on these tags is possible. In fact libNFC only
supports formatting the DESFire subset of -4, and MF UL / Classic. These
changes do a check for DESFire before adding the FORMATABLE technology.

Change-Id: Ife15a0bd42e1b024bf262788859c88e4ac1dcabe
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
98eb4249dcec63009b1839c005f0cf9048e1f7be 07-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> Fixed presence checking in watchdog.

The presence check timer is not supposed to run during "other" operations
such as transceive. Previously, the presence check timer was simply reset.
If an operation would take longer than the presence check time to complete,
the presence check would run immediately after the operation has released
the concurrency lock. This is undesirable and not necessary - the app may
want to do a long series of transceives, in which case the presence check
gets in the way and delays the app.

This fix will pause() the watchdog completely, and only resume() when the
presence checking is done.

Change-Id: I06b1ab10c015861415cd91d6d5536d27145a885f
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
05973d55daf68a286c932ee4e7ffbd6bb53789e0 09-Jan-2011 Jeff Hamilton <jham@android.com> Implementation of foreground dispatch overriding.

Change-Id: I1f20036dd45cd6af8f0e2a5199427f403272ee8a
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
c9a2ae7cb238e4c72818d084cba0b05e76cba1ef 07-Jan-2011 daniel_tomas <daniel.tomas@nxp.com> RF 0N/OFF events management added in the NFC Service

Change-Id: Ie32d36949c3520f9ece9bcb3c6f7bab2f9b24023
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
f34ea55002a5f7fbe8486c6ab6f4a17481a9558f 22-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Added getType() to NDEF technology class (NFC service part).

Change-Id: I2ac67f2a947704722328e7b2e576b8561e726fa2
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
03ee488afaa982ce934c5de399db9f9fa88c7d1e 16-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Implement NDEF makeReadonly().

Change-Id: I2681d7408bfc5b5388eb22dd620ba24a5e26c286
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
0a58617a63e32d2f43e3aabc705fb7b9de464482 15-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Store the libnfc tag type inside the tag object.

Some functionality in libnfc is different for some technologies
(e.g. reconnect(), transceive()). For these cases, we'll use the libnfc
tag type to deal with them. We don't want to distinguish these cases based on the
Java API technology types, since they may be changed and even mapped to different
libnfc types. Ideally libnfc should abstract this away for us, but that is not
the case now.

Change-Id: I33ea04ca48d16ccf186e3f0882cafdd38a8adb34
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
ae7d8d800ba73502d21e54d1deef16be0f061866 15-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Multi-tag and multi-protocol clean-up and fixes.

- The MULTIPLE_TAGS return value from libnfc is now handled:
in case of multiple tags, we just pick and report the first.
- Removed all obsolete calls to nfc_jni_get_nfc_tag_handle;
- Added some safety to CRC checking;
- NfcService interface now allows connecting to a (different) technology;

Still todo:
- Get rid of global reference to connected handle;
- Remove dependency on tech list ordering.

Change-Id: I7176c3c0edf369a8f33f64280dace1c7b1f2b598
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
232eabb7c6f04506dbf272e06b115178311a57b9 13-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Check ndef on both protocols of multi-proto if needed.

Change-Id: I04d01ce0c597baaa14d30bb022890e69722e1c87
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
1b147b40e00cb6224d07f9185b19e6262c387ed6 13-Dec-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Mark link as deactivated before doing anything else.

Change-Id: I27a2b8742726b7ea49129270afe264248626af55
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
bb78d3749bd0cc3801fdd9d5df06b0f6ee7a400f 13-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Added support for (re)-connecting to tag technologies.

- Connect() now takes a technology as an argument.
- NativeNfcTag now knows to which technology it is connected.

The default connected handle is for now always the first in the
tech list; also, NDEF is only checked on the first tech.

Still to be done:
- Check ndef on other techs if not found on first
- Expose the connect(technology) API to the framework
- Fix some calls that still use nfc_jni_get_tag_handle and need to work
on the selected technology instead.
- Get rid of mHandle and the globals for keeping tag handles

Change-Id: If76d4d458565ab0be7ca986c080a59ed8fd0668f
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
3fb30ae5bf51d9ffe6271a345d55905dade8040d 02-Dec-2010 Jeff Hamilton <jham@android.com> First pass at advanced NFC tag dispatching APIs and other cleanup.

Change-Id: I8469af074325fc8731aace1c9681bbddfa55dc89
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
aae427142dc22e7e419c146bc7748d9daff518e8 10-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Implemented interface to reconnect to the same tag handle.

This allows applications to reset the "tag" state when they call close().

Change-Id: Iae78d5d0b714b53d52db9a0c21ad084d7a2010ba
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
97c6942c7c7f9df3bb8dbcc01cf7bb6e2e090005 10-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Implemented API and calls into libnfc for raw transceive.

Change-Id: Iefd7ddfe2a9e2d32fe48a4c7fc03f2b48fb4b928
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
3ba3b10867c36bff57b72ff99c7b56d63d418f3f 09-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Store NDEF r/w flags from the capability container in NDEF extras.

Change-Id: Ib0e16961b376a1d796dc8dc394be80b967119ff2
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
41368d81f3076ac903693951f1d5cdba756f33fc 07-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Piped through max supported ndef size in NDEF technology extra's.

Change-Id: I74d3197754c7eb769992285e0c9e520c009386a0
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
0aac9419555e69512a886a6b7fa6ce2d1947c72f 08-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Support for NDEF formatting in the JNI.

Change-Id: I96ef383d18392dccd2fc765bc48941a43eea4420
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
bea54e32a10b917cf0589f1bf413c21e8a4ad57e 07-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Add collapsed ndef technology to the techlist.

Store the ndef message read in the tech extras. This can be
easily extended to support multiple ndef entries in the techlist.

Change-Id: I6d9a25d1d69e6c90296075b7ed50b40e37d7fd40
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
28f72bd9880d0b00c486603489d3862733eb638f 30-Nov-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Fixed error reporting in LLCP receive method.

In this method, reporting that zero bytes have been read means
that an error occured. There is no need for error codes.

Change-Id: I14912effe74375a4bda73c20fa8a42cef7c3ef07
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
206090d29789d1232bb706408ce71e75b68d587d 30-Nov-2010 Martijn Coenen <martijn.coenen@nxp.com> Revert "Deliver tag in clean state to user app"

This fix has some unexpected side effects; reconnecting to ISO15693 tags fails,
and on NfcA tags the first present check after the second connect fails. Until
those issues are fixed, revert this change.
This reverts commit 75e511b45b7c236d32cbb8179ae1ccb7a21e3d21.
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
75e511b45b7c236d32cbb8179ae1ccb7a21e3d21 24-Nov-2010 Jan Brands <jan.r.brands@nxp.com> Deliver tag in clean state to user app

Don't leave behind any selected AIDs and files on ISO7816-4 tags, authenticated
sectors on MIFARE tags, etc.

Change-Id: I18c93a4b50213fc9ed6798a18fa93ab1c7dba042
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
4c631cd2aa3ab422d4f9f3404d6f1fabce7bdf4d 19-Nov-2010 daniel_Tomas <daniel.tomas@trusted-logic.com> Fix to restart the polling loop when a connect failed in P2P

Change-Id: Icaeb2ed76d87da64c88b496ba76295aadeb12a7e
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
0bd11735e8a28db1692f28abcc3e065abae0e8dd 17-Nov-2010 Daniel Tomas <daniel.tomas@trusted-logic.com> Secure Element Access implementation

Change-Id: Ia1c006c52aaf312408ef2fba96715b1b6c382ea9
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
b74200f40f9d4f536b8782974d444f1f9178076f 10-Nov-2010 Jeff Hamilton <jham@android.com> Update to API changes.

Change-Id: I8f52bf20f493581aef80201b4b112af28cf3b5fa
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
a989351c7383aa6b3a6086b10f32c39c1d28fa5d 18-Nov-2010 Jeff Hamilton <jham@android.com> Revert "Fix to disable P2P feature in the NFC Service and JNI"

This reverts commit ae66f8e306a46a24e4121b72b30d8beb5e1c08f9.
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
57d376f1ee1a3939977b95759525585abb9601fb 18-Nov-2010 Jeff Hamilton <jham@android.com> Revert "Remove My Tag support."

This reverts commit 825f01522a1d68cadb634c88101e96f842478926.

Change-Id: I75e027c066ba7bddaab87f910083707d8eb380b0
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
d65348455ae09a467f288d65dbf924fc60c8d290 11-Nov-2010 Jeff Hamilton <jham@android.com> Revert "Remove the My Tag feature."

This reverts commit 1fc06b8d4dfd7e92c43cbd4c5aacf8fa66d181d1.
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
ef92efa7fd86d75cc35465b84e8740f941ff0f0a 04-Nov-2010 Jeff Hamilton <jham@android.com> Quiet most logs in NFC by default.

Bug: 3124915
Change-Id: If5a3e6b21fe43d9ce2ff82ee65751baaa1c0e0a2
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
52028e699e43e6322021098bbefd761fe6596747 04-Nov-2010 Nick Pelly <npelly@google.com> Don't turn on polling loop at NFC service init if screen is off.

NFC service can be restarted with screen off, and we will be put in
polling loop, or worse constant RF, if this happens with a card in field.

Change-Id: I0b8d2ba04f3af47908586cccf7210d9a7abb5d54
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
ae66f8e306a46a24e4121b72b30d8beb5e1c08f9 04-Nov-2010 Daniel Tomas <daniel.tomas@trusted-logic.com> Fix to disable P2P feature in the NFC Service and JNI

Change-Id: Ie288273526d9e947545dde134ac1d23399a716c4
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
533043d1003de2f6a20a29201100d94c3c7bc9ca 04-Nov-2010 Nick Pelly <npelly@google.com> Add wakelock around the disable discovery path during SCREEN_OFF.

We're about to also disconnect from tags during SCREEN_OFF, which can take
some time, so we need to make sure to hold the CPU on.

Change-Id: Ie551c028cecfb49faddc95a45ecd8eac07671968
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
1fc06b8d4dfd7e92c43cbd4c5aacf8fa66d181d1 03-Nov-2010 Jeff Hamilton <jham@android.com> Remove the My Tag feature.

Change-Id: I4f839d20d2be8c816fffedc9f64292008751a7c1
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
363e40d2df0d838076a68370467c0e3b9a68d4bf 03-Nov-2010 Martijn Coenen <martijn.coenen@nxp.com> Implementation of poll bytes / activation bytes API

Change-Id: I92776225eafd39e0c4dad15b46d5e0ce63f7a991
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
825f01522a1d68cadb634c88101e96f842478926 03-Nov-2010 Jeff Hamilton <jham@android.com> Remove My Tag support.

Change-Id: Ic8f962879dc8c226b0ac10d2a1d4e41ede5d9326
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
73c77aa23abd50752e450a4cf09a867c2571fbe8 03-Nov-2010 Jason parks <jparks@google.com> Don't show the icon if nfc is disabled and someone sets a tag.

Change-Id: I613e5755dea46e6920ab98621d0f8ffb2feeb358
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
e1fac398523a97e3bcf513393a91478d79a8763f 03-Nov-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Changed LLCP symmetry timeout back to 1.5s (LTO=150).

The LTO was previously set to 250 as a workaround for performance
issues. This is not needed any more with the current RF speed.

Change-Id: Id236b142d3150203781d00434b93387d925abda5
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
8a16166fdec082ab162bf539be0e3163d4e23af0 03-Nov-2010 Jason parks <jparks@google.com> Hide/show the MyTag icon when NFC is enabled/disabled.

Change-Id: I3ca5e6f90d85fdef262874bd9223ca5f49468af4
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
f63da5f0887eba86d877faaee41dc5dfb8fccd50 03-Nov-2010 Jeff Hamilton <jham@android.com> Don't unregister service sockets when they're created.

This allows services to accept multiple times in
a row.

Change-Id: Ifef474cd753d0481f3a9befce91d2fec869d34ad
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
7fa45a3567dabab6125279ea4566780f04d57a4f 02-Nov-2010 Jeff Hamilton <jham@android.com> Enable My Tag server.

Change-Id: I597e4be9051cc30c4432f90bd8399ae4bdd84b83
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
cdab1112486288ee6ccc9eb5c55456f9618f6b9c 03-Nov-2010 Jeff Hamilton <jham@android.com> Don't disconnect when the peer is the initiator.

Change-Id: Ie56036441ea41d9290d33915e3616e9379f6ea98
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
88f552a4ac37af91db1e0c848df347267fcfb26a 03-Nov-2010 Jason parks <jparks@google.com> Log a warning if the bytes to mytag is 0.

Change-Id: I5cddb343bf0cad13768fb4d6d3d00f82f4205afa
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
15151d5453f9b9b3680cb254ccea42458cc51f33 02-Nov-2010 Jeff Hamilton <jham@android.com> Fixes for My Tag server.

- Record the socket parameters for registered
LLCP service sockets since they're used when
accept() is called before a connection is
active.

- Add a missing break when handling mock NDEF
messages to avoid a crash when a My Tag is
scanned.

- Fix up the accept and read loops in My Tag
server.

Change-Id: Ia994c9dacb5e6770ac5c0f1b5b9e0156eea6e5cb
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
93915e1c6fe6d5d16fcebeda610782bf5812c9b4 02-Nov-2010 Nick Pelly <npelly@google.com> Remove timeout support - it was guaranteed to cause deadlock.

sem_timedwait() was unbalanced.

Also remove more dead code, and reduce watchdog timeout from 10 to 5 seconds.

Change-Id: Ica776e4a27905071c1453b2db02f9ffadf6f9461
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
d3c57c0c2419d595b8de940254814b5935932b28 01-Nov-2010 Martijn Coenen <martijn.coenen@nxp.com> Fix empty or incorrect ndef message not sending Intent.

Will now send an intent with an empty NDEF message array attached

Change-Id: I58d86c9b5cfff127581824ca6af410a503059cbb
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
21545af22f9b913ec9cb124287aab2fcb0cf2b3b 02-Nov-2010 Nick Pelly <npelly@google.com> CONCURRENCY_LOCK() cleanup.

Rename functions that need to be called with lock held to _locked().
Remove dead code.
Replace asyncDisconnect() with disconnect() - its broken.

Change-Id: I04feb449394750954e202223366a0fa5ea425924
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
fa746bcc16d57ff12d373b9139558f5bc7164b30 01-Nov-2010 Jason parks <jparks@google.com> Persist mytag in the service.

Change-Id: Ibd553a01f8790d1f38673bd08f90e3c1a847f727
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
2407a9d01fdc8e48f778d2ef070e75a74d3863c4 28-Oct-2010 Nick Pelly <npelly@google.com> Update NFC for modified API's.

Change-Id: Ibd50e30c7f340eed7c84785d2060a8a237f9cd5b
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
6f7fd8dbda9092e36e58273e843ae3e4a200e2ff 28-Oct-2010 Jeff Hamilton <jham@android.com> Add more logging of LLCP socket actions.

Change-Id: Ib6e8c642a97abab6592200023c1bb0993d0bfdc0
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
b3cdb6612a057373a61521171d99ce4f24b84e1f 28-Oct-2010 Jeff Hamilton <jham@android.com> Track the LLCP link state as it changes.

Change-Id: I6d7756739489b240e2e27c91a1afd8c5bd534342
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
eead88c5e2bdd34eb33fdf2c76717f9edb9e0396 27-Oct-2010 Jeff Hamilton <jham@android.com> Patch from NXP. Avoid overrun when setting timer.

Change-Id: I9f46908d99d05804cd325024fc60da762f5beb1d
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
4acf84356e35861f7df6d07a2b9ff84842a9f221 27-Oct-2010 Nick Pelly <npelly@google.com> Force NFC service to abort() during emergency_recovery().

emergency_recovery() was not able to kill libnfc threads blocked in mutex,
and was just wedging everything. So instead kill the entire NFC service
process. The framework will immediately restart it, and the NFC API's will
rebind to the new service handle.

Also I cleaned up the code to handle boot complete. This is necessary to clean
up because during recovery restart we do not receive a boot complete event.
It turns out we can use FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT on intent
broadcasts, and avoid having to track boot complete at all.

Change-Id: I41c885b441128fd447d6b8c63bb50a13a1d4cdfd
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
161f84b5487ce4c1ebef9fe24ba4de00f6f756ea 27-Oct-2010 Nick Pelly <npelly@google.com> Another attempt to mitigate loads-of-ANR-when-NFC-wedges.

Do not even take a mutex in SCREEN_ON/OFF receiver. Just schedule the thread.

Bug: 3131975
Change-Id: Ic8763315c815aff63299f77590e61d668d13031b
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
1be4eb6d61c4b6e02c5a5cb7ac3b3a68cae7d7a2 26-Oct-2010 Jeff Hamilton <jham@android.com> More work on My Tag.

Change-Id: Iba652af8efdec58d04d5e8e5ecc6af8281f57279
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
db7d865e53c4db049bab20a0bcc7cb596e450d9a 26-Oct-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Fix bug preventing RawTagConnection and NdefTagConnection clases from working.

Added missing native tag registration in NFC service.

Change-Id: Id470fc93fc83a4b9bde6d0bd78500f50635efb48
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
df4e65b5dacb313e7d68bad797a843a175febbed 26-Oct-2010 Nick Pelly <npelly@google.com> Fix bug in async-screen-on-off.

Use a boxed boolean, not a primitive boolean.
Use the correct array index.

Change-Id: Id3cd16c8d21b9dacd6d167b0458b6583d7fba89f
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
7c034a7fe7d36b1ab039af2c44717812ea02657e 26-Oct-2010 Nick Pelly <npelly@google.com> Move NFC adapter configuration off the main thread during SCREEN_ON/OFF events.

These should be safe on the main thread, because they involve configuration of
the local NFC adapter, so it should be very quick. However the NFC stack is
currently wedging frequently, and the resulting ANR's during screen on/screen
off are very disruptive.

Bug: 3131975
Change-Id: I06d3ee17a991a95676666300942054797c6adf00
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
d0ec3981792e38afd119fc1c995f111f6182f6c8 26-Oct-2010 Jeff Hamilton <jham@android.com> Checkpoint work on My Tag.

The tag server has some problems when being
stopped and the client never gets notified
about the LLCP connection.

Change-Id: Ifdfc60d48ed85a9916f8abb085afcf01dd5a0155
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
3ca6ffff72f4599e80f85de5ae8e7f55012f38d6 25-Oct-2010 Jeff Hamilton <jham@android.com> Show an icon in the status bar when the NfcAdapter is in card emulation mode.

Change-Id: Ia54094291726fa4fac152a49b1b182d73ff9958f
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
65945ad77cadb7a3bdf171497877d2325b23def5 25-Oct-2010 Nick Pelly <npelly@google.com> Turn NFC discovery off when screen is off.

Change-Id: Ib122c9a952f7f41798f7e6b2b8e9884b53e67723
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
2f8ac1e6cdeb32569bc6477d53a2d0d5608758b1 23-Oct-2010 Nick Pelly <npelly@google.com> Start NFC service at Application load time.

- starting at app onCreate() is about 6 seconds before BOOT_COMPLETE
- enable hardware immediately, but do not send any intents until
BOOT_COMPLETE (using mBootComplete to guard).
- add mutex's around some fields that needed it

The fields that are still not thread-safe were non-trivial to fix.

Change-Id: Id1c2bf535610ac594a33d84fe9a32d01d698a321
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
f348bf5b21c5c39d7b3627327db1e61007d07539 23-Oct-2010 Nick Pelly <npelly@google.com> Don't catch generic Exception.

The diff might look huge but it's just re-tabbing.

Change-Id: I5a69a2410e7cd29b3e274896eec28f2e1824ebc6
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
1cf8ba9546ba5204af08b8de2c542b6a1bf8f8a0 22-Oct-2010 Nick Pelly <npelly@google.com> Push Tag/NdefTag implementation details into the service.

Tag/NdefTag objects should just be simple data objects. Push the mapping of
internal tag type to public rawTarget/ndefTarget into Nfc Service.

Change-Id: Ic20da465fb22a4250aa28c4bc14636ccb8d82889
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
d6fdd3fbb880f1503d56616608e6823b51320dc3 22-Oct-2010 Nick Pelly <npelly@google.com> Don't derefence null pointers.

Also added a comment as per feedback on my TBR last night with jham.

Change-Id: I9472f23acc8e8405c59d095cc17db585711f47ef
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
2f386c612159a48933c12dbcaf6735bd9ad1c660 21-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> NFC: commit -> apply for shared prefs.

Change-Id: I0c559c584a832cfcbda3d89d61b3622f48b26176
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
f5280191c0e422a730504eebeced4acbcfc1bd9f 21-Oct-2010 Nick Pelly <npelly@google.com> Fix regression where TAG discovery always fails.

I forgot to apply the preferences to the Native Manager.

Change-Id: Idaa09758af45df0b6253d8ad185e29445fbc9e96
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
b230214bcb557184cb54174889cbede53b92d54f 20-Oct-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Enable NFC tag presence checking and implement background presence checking.

The background presence checking enables to restart the polling loop if
the application do not release the tag (e.g.: coding or runtime error).
The tag presence will be checked if there is no activity on it during 1s.

The message handler has been moved to the NfcService.java file. It was
previously located in NativeNfcManager,java file for historical reasons.

Change-Id: I3ab5c15c75eb81d2814187b47729859064cf011a
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
0e6a0a0f50132e14d5ecad61c46e07c67fbb26fb 21-Oct-2010 Nick Pelly <npelly@google.com> NFC Settings cleanup.

Move all NFC settings into shared preferences in NFC service.

Service / Binder / BroadcastReceiver cleanup. Re-enable receivers
for internal intents.

misc cleanup.

Change-Id: I73480faea496f6bede2dfdb6fc682c7e84360326
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
74180bda362a8bc9d2f701d2c17bec0f63c20bbf 18-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> NFC: send a broadcast on adapater state change

Depends on constants in Ie5dc05e3

This change is necessary for the improved Settings UI, in

Bug: 3097279
Change-Id: Iec9596a6f8c8c6551ea8b5a70ec300c9b50789c5
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
bebaa6cc1a1eb2ce0656e17b0e09ed4747878d8e 18-Oct-2010 Nick Pelly <npelly@google.com> Enforce NFC permission model.

Requires no permissions:
- Viewing UID, type of discovered tags and cards.
- Viewing the NDEF message contents of NDEF formatted tags and cards.

Requires android.permission.NFC
- Get/Set the local tag "MyTag"
- Creating or using a RawTagConnection (transceive())
- Creating or using a NdefTagConnection (write()/read())

Change-Id: I31f2336a81a7151063969f9019da9aaf08092d65
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
13d8819d9d716c8f0ba03288d058f0bd462d70a7 14-Oct-2010 Nick Pelly <npelly@google.com> Enable NFC service as an application service.

Uses ServiceManager.addService() to register the service.

Uses BOOT_COMPLETE to start the service.

Uses sharedUserId com.android.nfc so that it has a fixed uid.

Uses android:persistant so that the process is not killed.

Change-Id: If4264baf5dc457ee0a3ad5788c5945e84173b1ea
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java
f067256d9556b1e01143f9ae2fd824fa5dc03138 14-Oct-2010 Nick Pelly <npelly@google.com> NFC application.

NFC application contains the NFC service code that implements NFC API and
talks to NFC hardware.

This is the first cut at moving NFC service code out of frameworks/base into
application service. Android.mk are renamed to Android.mk.hide at this commit
because it does not work yet.

Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcService.java