Commit graph android_packages_modules_Co.../Tethering/res/values
Message SHA1
Add config_p2p_leases_subnet_prefix_length configuration
Add new rro configuration which can be used to make the p2p dhcp
prefix length larger to reserve the address range outside of leases
subnet prefix length for EAPOL-Key feature. This configuration only
valid if its value larger than dhcp server address prefix length and
config_tether_enable_legacy_wifi_p2p_dedicated_ip is true.
E.g.:leaseSubnetPrefixLength = 25, p2p static address = 192.168.49.1/24
dhcp range: 192.168.49.0 ~ 192.168.49.127 (192.168.49.1/25), reserved
192.168.49.128 ~ 192.168.49.255 for EAPOL-Key feature.

Bug: 170056953
Test: atest TetheringTests

Change-Id: I1319efd871796da7234383a29ab64a1623101ae7

markchien   commited 2022-03-31 16:32:55 +08:00
fb65dfeb8d
Allow to use ncm function for usb tethering
Adding the configuration to decide using rndis or ncm for usb tethering.
If ncm is configured for TETHEIRNG_USB, then TETHERING_NCM is not
available.

Bug: 162920185
Test: atest TetheringTests
      manul testing usb tethering
Change-Id: Ifc7eee2457a950a0e2d1c3cc89a3373a7ad23c9c

markchien   commited 2021-06-18 11:20:26 +08:00
cab01b7ebc
wifi: Add bridged pre-fix for tethering interface
In bridged mode, the tethered interface will include the prefix ap_br_

Bug: 162686273
Test: Manual Test - bridged AP enabled success
and client can connected it and get the IP address
Test: atest -c NetworkStackTests
Test: atest -c FrameworksNetTests
Test: atest -c CtsNetTestCasesLatestSdk
Change-Id: I89ae178c658a42f902199afaed89ec798de54643

lesl   authored and   Les Lee   commited 2021-01-18 01:21:32 +00:00
6a953ef4d3
Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2

Xin Li   commited 2020-08-31 21:21:38 -07:00
82a71b8f72
Allow wifi p2p to use legacy dedicated address
Some exsting applications may expect wifi p2p use legacy
"192.168.49.1/24" address. Have a configuration for wifi p2p to
decide whether to use legacy dedicated address or random address.

Bug: 161520826
Test: atest TetheringTests
Change-Id: If79973416a6780ee19ee785c65772b1a2dc1fbf7

markchien   commited 2020-08-05 11:03:46 +08:00
eb8fec2111
Merge "Tethering: Add WiGig support" am: 65fadfc134 am: 6c5b5b0803
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1177323

Change-Id: Ib48182d51cc6e4586cb43f8ca51ea673ee14d1d7

Mark Chien   authored and   Automerger Merge Worker   commited 2020-06-22 23:43:43 +00:00
fdf89ee7fb
Tethering: Add WiGig support
This change is a combination of following changes:

1) Tethering: add TETHERING_WIGIG type
   Currently both WIFI and WIGIG use the same tethering type,
   TETHERING_WIFI. This causes conflicts between the frameworks,
   when both WIFI and WIGIG SoftAPs are started, one or both will
   not work.
   Fix this by using a seperate tethering type for WIGIG.

2) Tethering: remove TETHERING_WIGIG state machine on interface down
   The wigig state machine relies on a TETHERING_STATE_CHANGED broadcast
   that is sent when the tethering state machine is first created, during
   interface up. Currently the tethering state machine is not removed
   on interface down except for TETHERING_BLUETOOTH, and as a result
   wigig tethering only works the first time SoftAP is started.
   In order to fix this, remove the tethering state machine on interface
   down for TETHERING_WIGIG as well.

Bug: 143356416
Test: TetheringCoverageTests

Change-Id: Ic4d3aca0ed69234093af7f0206dab3335938c52a

Dedy Lansky   authored and   markchien   commited 2020-06-22 21:17:46 +08:00
6896f6193f
Merge "A minor followup change for BPF offload device option stuff" am: 88536883e2 am: 03c8d55456
Change-Id: Ia148434de4f497e2e90b207845ee037a65c98a02

Maciej Żenczykowski   authored and   Automerger Merge Worker   commited 2020-05-12 19:04:39 +00:00
f243a65531
Merge changes I2d6f80f0,I9c26852d am: 50522024a1 am: 6151bb7aed
Change-Id: I52c3ba5b46dc6e52307f68c9201fc19b0a368a09

Nucca Chen   authored and   Automerger Merge Worker   commited 2020-05-12 11:34:28 +00:00
2cc2f3b424
A minor followup change for BPF offload device option stuff
- Correct description and spelling in the code and xml files.
- Add a TODO for refactoring the IpServer constructor.
- Refine the if-statement for starting IP neighbor monitor.

Test: atest IpServerTest
Change-Id: If9c8bc6f785fa80575db56de4e223292e9807ace

Hungming Chen   commited 2020-05-12 19:15:24 +08:00
5bc3af9a57
Add tether BPF offload config to device config and resource
The tether bpf offload can be enabled by resource config and
device config. The device config has higher priority and it
could override this config which is set by resource config.

Bug: 149997301
Test: -build, flash, boot
      -atest TetheringConfigurationTest
Change-Id: I9c26852d2c926786e141ece6da53df3801c049b2

Hungming Chen   commited 2020-05-05 17:37:32 +08:00
8bf2e7e05b
Merge changes from topic "sp18-TestableNetworkStatsProviderCbBinder" am: 80ab95927b am: c44a1ba581
Change-Id: Iceb250d8ba0d31a39538dd59e687ea2d80f4aaba

Junyu Lai   authored and   Automerger Merge Worker   commited 2020-05-05 03:50:52 +00:00
f8cd65936d
[SP18.5] Create offload controller poll interval to resource
Test: atest TetheringConfigurationTest
Bug: 149467454
Change-Id: I8b4ad920a4945504914d3741a9fba5c096fbf452

junyulai   commited 2020-05-04 14:56:37 +08:00
9606a22037
Merge "[TNU08] Remove the "tethering is on" notification" am: 3680357420 am: 6296583f61
Change-Id: Ie49b39eaf0170ecb74043dfba2cdc5b115a1477d

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-22 06:05:12 +00:00
2026b5addb
Merge "[TNU07] Remove unused resources" am: 967bced940 am: 9591b7f9b6
Change-Id: Ia658f8bdb13f882e7d09f477efdd24f49fc50e68

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-22 03:13:30 +00:00
eca31b587a
[TNU08] Remove the "tethering is on" notification
All carriers discarded the requirement to put up a standing
notification when tethering is on. Thus, remove the "tethering
is on" notification.

Bug: 154438388
Test: atest TetheringTests
Change-Id: Ife3915837b6b7b83d3eaaa84b71b6409ff37b71c

paulhu   commited 2020-04-20 16:10:08 +08:00
57f26333a8
[TNU07] Remove unused resources
Some strings are not used, so just remove them.

Bug: 154445061
Test: atest TetheringTests
Change-Id: Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60

paulhu   commited 2020-04-20 15:52:11 +08:00
01a9451cb4
Merge "[TNU06] Add roaming notification" am: 565160c302 am: 8f365b0b13
Change-Id: Ia02ca67be0a103e980be6a4c7a0ed66836716d51

Chalard Jean   authored and   Automerger Merge Worker   commited 2020-04-17 16:28:53 +00:00
bc380e0215
[TNU06] Add roaming notification
Warn user of potential data charges if the backhaul is
cellular and user is roaming.

Bug: 145629001
Test: atest TetheringTests
Change-Id: I74b4f87c2f6aad09e05d3f2a779f880396885953

paulhu   commited 2020-04-17 21:25:54 +08:00
1f66261a3c
Merge "[TNU05] Add no upstream notification" am: b353c7eac3 am: 7cda806393
Change-Id: Ib65eeed784189e669cc5c22537671deb8d35a9e5

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-16 01:59:03 +00:00
7c789f41eb
[TNU05] Add no upstream notification
Reminder user of unavailable tethering status if there is no
internet access.

Bug: 147818698
Test: atest TetheringTests
Change-Id: Ic6557f9f7703337596100cd6a477fd7239217166

paulhu   commited 2020-04-15 01:25:37 +08:00
648fc2c8ea
Change tethering file structure to respect its package name
Bug: 145099347
Test: atest TetheringTests
      atest CtsTetheringTest
Change-Id: I544ab9480bbaa5e18e030d21a28ab4c4a7265795

markchien   authored and   Mark Chien   commited 2020-04-14 12:25:03 +00:00
1acfb0125c
Merge "Update tethering notification strings" am: 6f6527e2d7 am: 26b3b4e0de
Change-Id: If9d8e5945160b6def527e7f3ee372dfe533140e9

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-14 09:20:54 +00:00
caf808e0eb
Merge "Update tethering notification strings"
Paul Hu   authored and   Gerrit Code Review   commited 2020-04-14 07:15:16 +00:00
6f6527e2d7
Change tethering file structure to respect its package name
Bug: 145099347
Test: atest TetheringTests
      atest CtsTetheringTest
Change-Id: I7401c550fbafd17a5ed2d925b5d0e17e358af467

markchien   authored and   Mark Chien   commited 2020-04-14 02:09:51 +00:00
d995566700
Update tethering notification strings
Update strings after converged with carrier.

Bug: 145629001
Bug: 147818698
Test: atests TetheringTests
Change-Id: I8ad34e8c93ba1547aa397a8e9c0ecc15286a2b0b

paulhu   authored and   Paul Hu   commited 2020-04-13 13:36:52 +00:00
735047bf6e
Merge "[TNU1.1] Update tethering notification strings" am: 7f69e09d79 am: cb2d2f984c
Change-Id: Ia0584cab00f0ca5e76f6cde337630153c86524c7

Paul Hu   authored and   Automerger Merge Worker   commited 2020-03-20 09:04:40 +00:00
42cfc3f5aa
[TNU1.1] Update tethering notification strings
Update string for no upstream and cellular roaming notification.

Bug: 145629001
Bug: 147818698
Test: atest TetheringTests
Change-Id: I7302cf351b0a9a42ad5a543f61ab084de189f282

Kumar Anand   commited 2020-03-19 15:57:33 -07:00
74165f0b29
Merge "[TNU1.2] Add string for client number notification" am: 2435a6539d am: fea464b4ef
Change-Id: Ia03a708c7f23d5b41be2b165fc48f20f92090c37

Paul Hu   authored and   Automerger Merge Worker   commited 2020-03-19 10:59:21 +00:00
6450a662da
[TNU1.2] Add string for client number notification
Add string for client number notification

Bug: 122085773
Test: atest TetheringTests
Change-Id: Icc4e59ce3b2d8d4c1c7883c2f9d040d3ce563f09

paulhu   commited 2020-03-19 15:48:23 +08:00
1957e6a0fb
Merge "[TNU1.1]Add tethering notification strings" am: 09bc9bf0b9 am: 7afa946477
Change-Id: I8f2e406c8abb7c2cf0443198b78fb739018993ab

Paul Hu   authored and   Automerger Merge Worker   commited 2020-03-19 01:45:42 +00:00
9cff3fb9f3
[TNU1.1]Add tethering notification strings
Add string for no upstream and cellular roaming notification.

Bug: 145629001
Bug: 147818698
Test: atest TetheringTests
Change-Id: I30f68d83344f66fb3ef77abf3f8748c3eb1276f0

paulhu   commited 2020-03-18 09:49:51 +08:00
3355cc4f06
Merge "[TNU01] Add Tethering notification updater" am: ccf6239513 am: 40631d6989
Change-Id: I71070e0e18a752a25ac94b97901bbed0aedf4a7e

Automerger Merge Worker   commited 2020-03-09 08:24:39 +00:00
dc7df56395
[TNU01] Add Tethering notification updater
There are lots of Carrier/OEM requests for tethering
notification customization. So add a new tethering notification
updater class which can let OEM customize the behavior they
wanted.

Bug: 122085773
Test: atest TetheringTests
Change-Id: I7faacde7ac84e93ea0dfe03dd33d2cc41c589225

paulhu   commited 2020-03-09 09:20:19 +08:00
08294f9c09
Tethering: add p2p regex for shared p2p group interface
For the device does not support separate group interface,
there is only one interface, ex. p2p0, for both device and group interface.

Fixes: 141382930
Bug: 141382930
Test: atest TetheringTests
      launch GO on walleye
Change-Id: I064dd8d5dc372411ee771496813ae7c43ed037bc

Jimmy Chen   commited 2020-02-04 14:42:39 +08:00
d2ab0eeb13
Local Tethering with ncm interface
Bug: 130840842
Test: build, boot
      atest TetheringTest
      manual test (call startTethering(TETHERING_NCM))

Merged-In: Icc6c4d6be39e787503cecf3a5835b40d4be12a57
Change-Id: Icc6c4d6be39e787503cecf3a5835b40d4be12a57
(clean cherry-pick)

Milim Lee   authored and   Remi NGUYEN VAN   commited 2020-01-28 17:52:06 +09:00
45a971bd8c
Local Tethering with ncm interface
Bug: 130840842
Test: build, boot
      atest TetheringTest
      manual test (call startTethering(TETHERING_NCM))

Change-Id: Icc6c4d6be39e787503cecf3a5835b40d4be12a57

Milim Lee   authored and   Remi NGUYEN VAN   commited 2020-01-24 19:18:04 +09:00
97c36bc8c3
Merge "Tethering: add p2p regex for tethering modes"
Mark Chien   authored and   Android (Google) Code Review   commited 2020-01-15 10:12:28 +00:00
c3bd773863
Tethering: add p2p regex for tethering modes
Bug: 147399354
Test: build
Change-Id: Iec666cc302ee749ddb57379f42f1e540ed813e48

markchien   commited 2020-01-15 14:50:59 +08:00
1a4b23585a
Tethering: switch to use tethering package resources
Bug: 147399354
Test: build
Change-Id: I482788cdc8be3d34c9a922bfa7eb053f0aa87c96

markchien   authored and   Mark Chien   commited 2020-01-14 09:48:02 +00:00
873c64ab8f
Migrate legacy dhcp server config to DeviceConfig
Legacy dhcp server can also be enabled by resource config.

Bug: 144814607
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: I8ae5fa3d5bbd88129bd0890f71be6f8a1bfec0eb

markchien   authored and   Mark Chien   commited 2020-01-13 15:07:03 +00:00
9a0b95d294
Add config_tether_* and entitlement resources
Copies config_tether_* and entitlement resources from
framework/base/core/res to tethering package. Will have
follow up changes to move overlay and switch tethering to
use this internal resource. duplicated resource in framework
will be removed after fixing all of users(e.g. test, TetherUtil,
Settings, ....).

Bug: 147399354
Test: build

Change-Id: I2a77e5070d53566d5ec3697358a6dbbebb4ff59f

markchien   authored and   Mark Chien   commited 2020-01-13 15:03:11 +00:00
6fbbdff5bc
Replace SystemNotificationChannels on Tethering
Tethering used SystemNotificationChannels for showing
notification before. But SystemNotificationChannels is used for
system package only, tethering package is not able to use it now.
Thus, replace it with tethering own notification channel.

Bug: 122085773
Test: atest TetheringTests
Change-Id: I854a102795c19351a4137360414926c461cc604c

paulhu   commited 2020-01-13 15:28:18 +08:00
8ee55d43de
Migrate tethering notification resources
Migrate the resources which are only used by tethering notification
from framework/base/core/res to tethering package resource
folder.

Bug: 122085773
Bug: 139763854
Test: build pass
Change-Id: I832103090d500fd8e2e2efb9dc7151426da3f88d
Merged-In: I832103090d500fd8e2e2efb9dc7151426da3f88d

paulhu   commited 2019-12-04 14:29:38 +08:00
8224d9f2af
[Tether01] Add Tethering App
This is initial patch that don't contain any service for now.

Bug: 136040414
Test: -build, flash, boot
Change-Id: I0b49d7e9c3fcba5af3025163f9cc9eafb0778116

markchien   commited 2019-10-24 13:35:41 +08:00
932da868a5