History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c5585d6ea42a6ad9f6e7aa127f1987d7f1b23b5c 20-Jan-2018 Etan Cohen <etancohen@google.com> [AWARE] Remove ability to accept connections from ANYONE

Wi-Fi Aware data-path (NDP) setup requires an Initiator and a Responder.
Both Initiator and a Responder are set up with the MAC address of the
peer to which to connect to as well as a security configuration (Open,
PMK, Passphrase).

The original API (27) allowed a Responder to be configured to accept
a connection from anyone (e.g. using a null MAC address). This creates
ambiguous semantics when an NDP already exists. The second Responder
request could refer to the previously setup NDP or to a new one to be
created. We cannot tell the difference up-front.

Remove the "Accept request from ANYONE" API for newer APIs.

The service implementation retains the original code allowing (some API
levels) to specify the option.

Bug: 72175022
Test: unit tests and integration tests
Change-Id: Idc0ec67bb6481827340439e77463f6579a994104
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
a6caf4a303825a0f2c29d0912c8277f5763b5a49 19-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Check dynamic location permission

Add check for dynamic location permission.

Bug: 70499417
Test: unit tests, integration tests, CtsVerifier
Change-Id: I69ac0b46ecad27eca45853848cd17fc1f2ec9eef
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
9340e8f34b979b06bb90f92852353957120abf41 14-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Configure DBG vs. VDBG

Move some messages to normal DBG vs. VDBG to allow verbose run-time
debugging.

Bug: 69432628
Test: build, enable verbose & verify log
Change-Id: I7162dca0daf728657fb946b36299bede35fa8a3b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
d187886254382d86f6884f593d851594575acd0c 14-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Restructure debugging flags to enable dynamic updates

Restructure the debugging flags to allow dynamic updates of the debug
flag. Each class has a static VDBG and a dynamically updated mDbg.

Note: there are no (or minimal changes) to the actual debugging - all
of which is gated by VDBG. A subsequent CL will move some messages to
the lower-level mDbg.

Bug: 69432628
Test: builds, runs, toggle debug flag
Change-Id: I61df2a0bb790832c7136aa1ad67a745eb388b1da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
040c542b3313748f40a4135b6650eecff8ad4d62 14-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "[AWARE] Check for RTT feature presence for Aware discovery with ranging"
0c47d269c7802a2a83377797a779b7821a96633d 08-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Check for RTT feature presence for Aware discovery with ranging

When configuring Aware discovery with ranging validate that the RTT
feature is present on the device.

Bug: 63906015
Test: unit tests, integration tests
Change-Id: I74680c4dc83ae8ed16a3c457ec13cc2c40710166
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
ff8fac8dfe2e1aae899b0953eee7b4c9b905bd52 08-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Fix message length limit comparison

Bug: 70354311
Test: unit tests & integration tests
Change-Id: I997b89493fc2102c6a0b6f4ce7a918bed39fad58
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
65a853f556d382c358e026115333022b814d2fea 28-Sep-2017 Etan Cohen <etancohen@google.com> [AWARE] Add API to translate PeerHandle to MAC address

Add an internal only (protected) API which translates PeerHandle (id)
to the corresponding MAC address (if available). Useful for services
such as RTT whose public API accepts a PeerHandle, but whose backend
requires an actual MAC address.

Bug: 65015034
Test: unit tests + RTT integrated tests
Change-Id: I5e6f3fbc1d9aa67630024ed55326c9f11bd58395
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
6c5bee3546470fc31ff5bb40d67affe874fb3abd 20-Sep-2017 Etan Cohen <etancohen@google.com> [RTT2] Remove Aware RTT code

Original WIP Aware RTT API routed RTT through the Aware manager. This
will be replaced by direct usage of the WifiRttManager API. First step
is to remove the old code.

Bug: 65015034
Test: unit tests pass
Change-Id: I6774b94c5d5d729ffe36fcc91d46ccece3590447
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
159f2184beb39cfe0d786105cc69e54265747e56 01-Jun-2017 Etan Cohen <etancohen@google.com> [AWARE] Enforce permissions for Aware data-path PMK usage

The Aware data-path using PMK API is system-only. Add code to
actually enforce that restriction.

Add test coverage for PMK/Passphrase code path.

Bug: 62266163
Test: unit tests, integration tests
Change-Id: Id833cbf81518df67f0fec4c8d944767b8c46ab82
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
910fdc720f0bf62b5529cb37a5f001ae585a5c59 26-Apr-2017 Etan Cohen <etancohen@google.com> [AWARE] Metrics framework

Plug-in to the Wi-Fi metrics framework. Metrics proto and hooks
created but not populated.

Bug: 26565416
Test: builds + unit-tests
Change-Id: I4a8eb76342c140767279aa46753d604b37af613e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
c760a66378bbd844eb421658799b4d55c76b98fa 25-Apr-2017 Etan Cohen <etancohen@google.com> [AWARE] Initial power optimization framework - hooks & config

Create hooks in Wi-Fi Aware service to respond to power state
change events: interactive on/off (aka screen on/off) and
idle (doze).

Initial implementation transitions to higher latency (assumed
to be lower power) discovery duty cycles.

Bug: 35457252
Test: unit tests
Change-Id: I3a2a67db3e0b47ab982d7c67326e7fa20e429fad
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
dc929704e04d634eff04dfd55024b18578be9717 28-Apr-2017 Etan Cohen <etancohen@google.com> [AWARE] Add wifiaware shell command interface

Add support for 'adb shell cmd wifiaware ...'. No commands are
added - just the framework.

Bug: 37780855
Test: builds, able to execute command
Change-Id: I8cd66c3522ba97d96808dfadce389de942ef4063
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
93ed1748297b9bc66b28e25cd1cab8d41d3a712a 24-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Lock-down access to hidden sendMessage API

The sendMessage(..., retryCount) is removed (hidden).
Lock down the API on the server side.

Bug: 35755823
Test: unit-tests and integration (sl4a) tests
Change-Id: Id138d17fdeca5cede90671c9f15e871bcb6fa524
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
29a32ed26636892cecc262f4f373d24b1edc210c 23-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Lock-down startRanging Aware API

The WifiAwareManager.startRanging method is WIP. Lock
it down (internal use only) until productized/opened -
possibly through the RTT API.

Bug: 35676064
Test: unit tests and integration (sl4a) tests
Change-Id: I66db9985215a76a3e619dca28afefc262735c9a7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
9951fc4c87fe3ee06ca7889e3e98f55024d49d97 16-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Remove public enableUsage/disableUsage API

The APIs were provided to the manager to provide an indirect
mechanism to enable/disable Aware. No longer needed - removing
dead code.

Bug: 35435032
Test: unit tests and integration (sl4a) tests.
Change-Id: I7f4cca982b250ee4d270a57e9cfdf355719cf11b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
db3c9d35a7f08de03beec81e801d917a5375f63e 30-Jan-2017 Etan Cohen <etancohen@google.com> [AWARE] Wi-Fi Aware HAL: move to HIDL

Transition from JNI-based HAL to HIDL-based HAL.

Bug: 32315992
Test: unit tests + integration (sl4a) tests passing
Change-Id: I8deeaa501b90b1b2a92c3f57a7e0251f21cc40ff
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
66c17d08de5b28134f172317c87132d1818f30f0 20-Dec-2016 Etan Cohen <etancohen@google.com> [AWARE] Simplify Wi-Fi Aware API namespace

Simplify Wi-fi Aware API namespace. Rely on project and remove WifiAware
prefix from most classes.

(pure rename operation: no functional changes)

Bug: 31470256
Test: unit-tests + integration (sl4a) tests.
Change-Id: I2a3de693ba0945300f973ab66fec195077568d79
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
d45abba86c33bd93863fc9d8f7c84ca28deb17b2 14-Dec-2016 Etan Cohen <etancohen@google.com> [AWARE] Use WifiInjector in WifiAware library

Convert the WifiAware library to use the WifiInjector.
- Reduces use of reflection to configure unit tests
- Lays the ground work for merging all Wi-Fi handler threads

Bug: 27924886
Test: boots & unit tests passing
Change-Id: I43f1896182a64bc89249e49b6e2bbce238f68f82
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java
c29acea6ceda3aa4ee537c05ce7d05dac2655cf9 26-Oct-2016 Etan Cohen <etancohen@google.com> [NAN-AWARE] Rename NAN to Aware

Rename only (and any reformatting needed to pass lint) - no
functional changes!

(cherry-pick of commit a61b9fb569153917a650f1d48efa20ba8846a9f3)

Bug: 32263750
Test: All unit tests and integration (sl4a) tests pass.
Merged-In: Idd8d0ad8d1fa1058c1bcd0de169a02e1fad9d070
Change-Id: I761b8f5b588d74eea66d7150a2f9a1e1ac5c1dfd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareServiceImpl.java