Age | Commit message (Collapse) | Author |
|
4133428 snap-temp-L95800000077479875
Change-Id: Ib5dbbfdb95a5fb58ac8ba1b07d7141aa0c989ae0
|
|
am: 230c0aae03
am: 56241dc8ef
Change-Id: I3d917339c80f0ff6a90813b598399f3cc415bbf4
|
|
am: 5101348405
am: 20a9390fda
Change-Id: I061c5f6e6c738035d57d999ae91c07d0d3ea0924
|
|
am: 230c0aae03
Change-Id: I4957474a965553a03874f73dd1649d78646872ad
|
|
am: 5101348405
Change-Id: I34a4314b5d2e2a9ea591a64ac5dcc3fd9ef677c6
|
|
am: ee47a2bdd3
Change-Id: If202c458162b6b89d5bef07a5bdc31a7ffea2d17
|
|
am: ee47a2bdd3
Change-Id: Icd22bf44b00acc2f94ee916c2e2a43c6b5962c6f
|
|
am: e65566d619 am: 93a05c2104
am: c31012bfc3
Change-Id: I832ce1a318425617aed7f684bf2d5ed8905b8960
|
|
am: e65566d619
am: 93a05c2104
Change-Id: I80d20a76367a03e4990a0b59bda81c2d21d90d20
|
|
am: e65566d619
Change-Id: Ib35b0a5c3e7bcd44c8033ae53ce0fbb5c7d86bec
|
|
If the interface disappears between interfaceAdded() and
setInterfaceUp, we'll crash with an IllegalStateException in
NetworkManagementService#setInterfaceConfig.
Ignore the error instead. This should be safe because we don't
modify any state unless our calls succeed.
(cherry picked from commit 264bef96c82961029702fcf8e12b0fddfa0d09ab)
Bug: 62870779
Test: builds aosp_bullhead-eng
Test: builds marlin-eng
Test: exception is logged and device doesn't crash when unplugging USB ethernet adapter while it's being initialized
Change-Id: If8c2375f7fffe25a9fa79dc4f1981c745384a276
|
|
am: 264bef96c8
Change-Id: I9f591c6d3136ebdab13051c30f02888320e2b309
|
|
If the interface disappears between interfaceAdded() and
setInterfaceUp, we'll crash with an IllegalStateException in
NetworkManagementService#setInterfaceConfig.
Ignore the error instead. This should be safe because we don't
modify any state unless our calls succeed.
Bug: 62870779
Test: builds aosp_bullhead-eng
Change-Id: If8c2375f7fffe25a9fa79dc4f1981c745384a276
|
|
am: 7785681001
Change-Id: I05e3f094afaa45e282b0433eba8190088ae198b0
|
|
am: a41622360d
Change-Id: I5b41e68577950ba16557427e552e6d03d983dba0
|
|
am: ef4db71609
Change-Id: I134d6c7d9769eca8bb157d9833181df09e8e8e38
|
|
am: 5646c5243f
Change-Id: I290626b64fa6009b7365a2f7957ddb0776777683
|
|
1. Remove the IP provisioning thread and just attempt
provisioning indefinitely whenever we have an interface.
2. Make all methods run on the passed-in handler thread. This
makes it easier to verify correctness by code inspection.
3. Remove the code that changes the factory score depending on
whether we're tracking an interface and have link. This is
unnecessary complexity, as there is no penalty to accepting a
request even if we don't have an interface.
4. Remove code duplication and only have one codepath for
stopping layer 3.
Tested the following are tested with this CL:
- Booting with an interface connected.
- Disconnecting/reconnecting the Ethernet cable repeatedly,
particularly at inconvenient times (e.g., during provisioning).
- Similarly, disconnecting/reconnecting USB Ethernet interfaces.
- Falling back to another Ethernet interface if the currently
tracked Ethernet interface is unplugged.
- Disconnecting and restarting provisioning when provisioning is
lost (e.g., if the default route is deleted).
- Crashing the system server causes Ethernet to reconnect on
restart.
- The above while running watch -n 0.1 adb shell dumpsys ethernet
(cherry picked from commit 3c1204c1f3f0ee4e4e530772053f4003b7d58e99)
Bug: 62308954
Test: tested on marlin with USB ethernet adapters, as described
Test: smoketested on aosp_bullhead
Change-Id: Ie3041f1d453d15c81eee81adfc8593269c499d79
|
|
4090244 snap-temp-L07700000073092334
Change-Id: Id58cc849af0eaaa99d5c6d7f0fc1d95549d5b426
|
|
oc-dr1-dev-plus-aosp
am: 849d7961df
Change-Id: I5e05dd306ae651aa75735d887c2a74e5f2fe4f6d
|
|
am: ce25445517
Change-Id: I9cf638511ada7a0672d0b9a268d3ea082f162961
|
|
oc-dr1-dev-plus-aosp
|
|
am: 3b31ff1943
Change-Id: I4dd010c8e49ac2d603f7ed617209bdc3759680fd
|
|
am: 3b31ff1943
Change-Id: I03f9b28561e0fb1fd1c5e388820e02748c8580b3
|
|
am: 3c1204c1f3
Change-Id: I1c531a142706d3cbe0da3adf810887cc221944ed
|
|
1. Remove the IP provisioning thread and just attempt
provisioning indefinitely whenever we have an interface.
2. Make all methods run on the passed-in handler thread. This
makes it easier to verify correctness by code inspection.
3. Remove the code that changes the factory score depending on
whether we're tracking an interface and have link. This is
unnecessary complexity, as there is no penalty to accepting a
request even if we don't have an interface.
4. Remove code duplication and only have one codepath for
stopping layer 3.
Tested the following are tested with this CL:
- Booting with an interface connected.
- Disconnecting/reconnecting the Ethernet cable repeatedly,
particularly at inconvenient times (e.g., during provisioning).
- Similarly, disconnecting/reconnecting USB Ethernet interfaces.
- Falling back to another Ethernet interface if the currently
tracked Ethernet interface is unplugged.
- Disconnecting and restarting provisioning when provisioning is
lost (e.g., if the default route is deleted).
- Crashing the system server causes Ethernet to reconnect on
restart.
- The above while running watch -n 0.1 adb shell dumpsys ethernet
Bug: 62308954
Test: tested on marlin with USB ethernet adapters, as described
Change-Id: Iad12a52a903bfaccf7e245dfe499652c752c31e9
|
|
8060ae0aee" into nyc-mr1-dev-plus-aosp
am: fbba127303
* commit 'fbba1273031483f336fa6f7127114bbff5b88e77':
Change-Id: Ib7fbcd926f1a128d86e7710e7e1f7f800afa695a
|
|
am: 9c095e1871
* commit '9c095e1871432ded244a6ade462d82d2e1a8648e':
Disable the IpManager timeout on Ethernet.
Change-Id: Idcc944d0edeedf648349e5268fddd724fe9d65bd
|
|
8060ae0aee" into nyc-mr1-dev-plus-aosp
|
|
am: 57aea849a9
* commit '57aea849a9b02433b459f4f6f1c3d72d8cc430ca':
Disable the IpManager timeout on Ethernet.
Change-Id: I46ab6959dce02c5f5da3324d7c4ed59303dcd1cb
|
|
am: 8060ae0aee
* commit '8060ae0aeeea47c8fbe2896b0af3b1dd69f923a3':
Disable the IpManager timeout on Ethernet.
Change-Id: I698a59f0b897422b88c4f09f8116a6eab3c14701
|
|
am: c84dd94998
* commit 'c84dd9499807fcf281e846e46d451e677d8cbef2':
Disable the IpManager timeout on Ethernet.
Change-Id: I33e0c1243534db348a0b6a8f8ce1a71b68d0ff91
|
|
am: c84dd94998
* commit 'c84dd9499807fcf281e846e46d451e677d8cbef2':
Disable the IpManager timeout on Ethernet.
Change-Id: Ic578ba62b3900060e75da19c1dd29a0a69abfdbf
|
|
This fixes a longstanding bug where after a DHCP timeout, we
would never restart the DHCP client and get an IP address until
the link bounced.
Also, two minor improvements:
1. Dump IpManager info when dump() is called.
2. When onLinkPropertiesChange is called, also update
mLinkProperties. We were already sending the updated
LinkProperties to the NetworkAgent, so this is really only
useful for dump(), but it's just one line and safe because
onLinkPropertiesChange already grabs the lock.
Bug: 17733693
Change-Id: I42c3319cb4bc151c547ed721baf5e83f97e23862
|
|
- WaitForProvisioningCallback
- setHttpProxy
- setTcpBufferSizes
Bug: 26991160
Change-Id: I5e02039a35006f0466fb40c43805f0443cd758c2
|
|
Bug: 17733693
Bug: 26991160
Change-Id: Idaee8c64bf452e58b93031d8d7ad666edb0c82ae
|
|
Requiring CHANGE_NETWORK_STATE is pointless, since immediately
after doing that we require CONNECTIVITY_INTERNAL, which is
a system-only permission.
Bug: 23597341
Change-Id: If4c8ecbb319e547c2c81d2dcc3c7bbb63e0bc2af
|
|
The intent of the code was to catch exceptions, but it wasn't
actually doing that because when a netd command fails we get an
IllegalStateException, not a RemoteException.
Bug: 23581852
Change-Id: I66c7c33bdc7b0d0de4fa5cd92dff054797cf860f
|
|
Replaced the method where we used to enforce static permission
CHANGE_NETWORK_STATE to method calls that also check for WRITE_SETTINGS.
This is due to the merging of CHANGE_NETWORK_STATE permission with
WRITE_SETTINGS in M.
Change-Id: I104ac41733663b4f6b5cd30e7314574ec4acdc07
|
|
This was not necessary in L, but it is necessary after
https://partner-android-review.googlesource.com/#/c/205415/ .
Bug: 22936203
Change-Id: I24a96c33e5bb375f36217a1c2cec2076eb5ac8b4
|
|
\'a3d7e61812f8d68ca109280c4e7589e4f968723a\' into HEAD
* commit '23518c13828ff82d5284f9df2e8f8b0690e76c46':
|
|
* commit 'd08728aa5050ca03b6954ddb708146e16c1fb53a':
|
|
|
|
interface.
* commit '52334a190a36d6fdbfcf0a38526925183f396fb2':
eth: make sure dhcp is stopped before bringing up interface.
|
|
* commit 'ef8e0b9491467cf8d49fa3af7d43f12e3bd524e4':
eth: make sure dhcp is stopped before bringing up interface.
|
|
Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
Signed-off-by: Blair Prescott <blairp@broadcom.com>
|
|
* commit 'a3d7e61812f8d68ca109280c4e7589e4f968723a':
Add an API to check availability of Ethernet interface.
|
|
Bug: 18045481
Change-Id: I3fb517c3e7fa807e2937fda92026301e312be986
|
|
* commit '74d270d167ed6c3a6fa28e426da80d51a44a2af0':
Clear all Ethernet state when our interface goes away.
|
|
Previously we did not stop DHCP or try to force a disconnect.
This made it impossible to reconnect by unplugging and
replugging an USB Ethernet adapter.
Bug: 17736828
Change-Id: Idd8576a96b063b5ca726ee9149800bdcb0f62bd1
|