Commit Graph

15567 Commits

Author SHA1 Message Date
junyulai
2960b501d7 [automerger skipped] [FUI27] Fix internal naming of notifyNetworkStatus am: eb91ec2684 am: e7ed46dea4 -s ours am: 39e35ca0ce -s ours
am skip reason: Merged-In I970ee365ca221956ee85788005d331374b5fa71a with SHA-1 5eb5fbfce3 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14562499

Change-Id: Idfb939d171c9c1570564b1482ec1c7fa67acf35a
2021-05-20 01:07:54 +00:00
Junyu Lai
8f585ed854 [automerger skipped] Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" into sc-dev am: 7290bf7e2e -s ours am: 0b2fd00acc -s ours am: 3536b973ad -s ours
am skip reason: Merged-In I98dd3f4652dc067eb5c4666e952db6c854bcbb10 with SHA-1 1ebade181e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550548

Change-Id: If8b2ebd6a023387e0433d60f2acd7b7c88eeec55
2021-05-20 00:39:13 +00:00
Junyu Lai
1608320755 [automerger skipped] Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" into sc-dev am: 7290bf7e2e am: 4a133d34d9 -s ours am: a4a0aa8165 -s ours
am skip reason: Merged-In I98dd3f4652dc067eb5c4666e952db6c854bcbb10 with SHA-1 59177af317 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550548

Change-Id: Iff9a9e4ea239f8f55ea5260e80397835d7aaa7c4
2021-05-20 00:39:00 +00:00
Remi NGUYEN VAN
26cb8a3814 [automerger skipped] Merge "Move config_apf* resources to NetworkStack" into sc-dev am: 66b0a0361b -s ours am: 498261b15c -s ours am: 82892621e5 -s ours
am skip reason: Merged-In I7a15ddcad5af11fa307d9dbe3a77b31a1179e5b3 with SHA-1 e9836cc431 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14622500

Change-Id: Ib637a385aa6f47a9f9b7c7d2f0541c248c49f6a9
2021-05-20 00:34:52 +00:00
Remi NGUYEN VAN
f9e039ed44 Merge "Move config_apf* resources to NetworkStack" am: c52f4eb2c6 am: 8f0380f066 am: 159c362b21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684656

Change-Id: Id21289779ef74f33e818e25117bf7a21bb3ecb7a
2021-05-20 00:30:27 +00:00
Nikita Iashchenko
d3d97669f3 Merge "Move IoUtils#deleteContents from CorePlatformApi set to framework" am: a8eb4abf4d am: a5b968f7ca am: ecf93ebf39
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686657

Change-Id: I9656070d315baffca99c1c545868f66d0c2d54b8
2021-05-20 00:23:09 +00:00
Les Lee
866a2c7398 Merge "Support to query TYPE_WIFI usage with subscriberId" am: 0c461a4252 am: c890b3cfb5 am: b986c2352b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608057

Change-Id: I8779286b51f34af06d9aad6258f080a12e29088d
2021-05-20 00:04:15 +00:00
Les Lee
c0fd0bc89f Merge "Add metered filter for API: buildTemplateCarrier" am: bc5af1fa71 am: 71349734b7 am: 727b2eac5b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699687

Change-Id: I9ed05f9477768acaa0374e5b40da280fdafbbcde
2021-05-20 00:03:58 +00:00
Chiachang Wang
cadb1218dd [automerger skipped] Merge "Dump only NORMAL priority information if no priority assigned" into sc-dev am: ad4e3bbd5b -s ours am: 69c73252a6 -s ours
am skip reason: Merged-In I6825c5038e48e3060c0c3ad1512bd584ef6d10a7 with SHA-1 987b73fbe0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14580814

Change-Id: Ic52360d64332fce752ec3e25f9cda88920463eb5
2021-05-20 00:02:49 +00:00
Treehugger Robot
6a75e6c7fe Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" am: d5fbc078d1 am: 1587b248cd am: 9493879b31
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705390

Change-Id: I01bed3aa6da1c65f84098339a29bba1f4a09d15b
2021-05-20 00:01:31 +00:00
Lorenzo Colitti
66d8c7028c Merge "Allow unprivileged NetworkCallbacks to see other UIDs' networks." into sc-dev am: 846ae25be5 am: 30a5c3cca5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14597477

Change-Id: Icf9516c8f236d6e53f4816c7be67686498d25e4b
2021-05-19 23:49:05 +00:00
Chiachang Wang
c460137ac2 Merge "Dump only NORMAL priority information if no priority assigned" am: f93d99deae am: 7eaaaf6f1c am: c5b866e672
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1708333

Change-Id: Ie16efa923aeae623e36bb900cded04a87699d15e
2021-05-19 23:47:43 +00:00
Aaron Huang
847eeb12b1 Merge "Add ConnectivityAnnotations class" into sc-dev am: 3610ac6ad1 am: ddf42f822b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186142

Change-Id: I45df58f58e096f27fa6bb2e1b359c514e68206fe
2021-05-19 22:51:15 +00:00
Paul Hu
de804f11da Merge "Register APPS_ALLOWED_ON_RESTRICTED_NETWORKS setting observer" am: accfb247b2 am: 993aaedf1e am: 21860ce119
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689573

Change-Id: Ie76502bc49a20ceafc9ab9a6a448a0b1a178b37a
2021-05-19 22:49:34 +00:00
Paul Hu
9bea12fcda Merge "Read APPS_ALLOWED_ON_RESTRICTED_NETWORKS setting from PermissionMonitor" am: dec7232c75 am: 6d8b78770a am: 70c7639228
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689572

Change-Id: I6bfca3977345a57da6dc7938911fa3e26ea543e8
2021-05-19 22:48:36 +00:00
Chiachang Wang
2749ade0e0 [automerger skipped] Merge "Replace clearAll with withoutDefaultCapabilities" am: 98546082cc am: d19bda6e8c -s ours am: 420d77919d -s ours
am skip reason: Merged-In Ida8d25d57504864f046e3403f593cc606fbfe982 with SHA-1 c5c3bfb20e is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1708330

Change-Id: I4af87b18428e5b063e06e3ae9e5ed70696159f0c
2021-05-19 22:47:41 +00:00
Junyu Lai
de07af947a Merge changes I3ba50cbd,I970ee365 am: 260b398281 am: c3fde912c6 am: ae76c2c199
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1620859

Change-Id: I9ce9369b30bc568a63321de8764bd49c263b9ea6
2021-05-19 22:47:04 +00:00
Jayachandran Chinnakkannu
30e200c808 Merge "QOS filter matching support based on remote address and port number for connected sockets" am: fd92919d9d am: 61736254b7 am: cea0264ef0 am: 2e83d431f0 am: db9428d005
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687813

Change-Id: Ia548f7e27aedcaaae684568fce8762813c4cfcc3
2021-05-19 22:43:39 +00:00
Jayachandran Chinnakkannu
978e40ec79 Merge "QOS filter matching support based on remote address and port number for connected sockets" am: fd92919d9d am: 61736254b7 am: cf6df117e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687813

Change-Id: I1e20ec6047dda2accc8565a8a2034bd535eb607c
2021-05-19 22:34:55 +00:00
Nikita Iashchenko
1cc81ac920 Move IoUtils#deleteContents from CorePlatformApi set to framework
As a part of internal core libraries cleanup move usages of
IoUtils#deleteContents from CorePlatformApi set to framework.

Bug: 154796679
Test: m update-api
Change-Id: If7037029026b6753ab64be09aa52c40e04d5c7b1
(cherry picked from commit 09b5e4a00f)
2021-05-19 14:40:05 -07:00
junyulai
39e35ca0ce [automerger skipped] [FUI27] Fix internal naming of notifyNetworkStatus am: eb91ec2684 am: e7ed46dea4 -s ours
am skip reason: Merged-In I970ee365ca221956ee85788005d331374b5fa71a with SHA-1 5eb5fbfce3 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14562499

Change-Id: I79bc3a6cea4d9828f8ea1208756091bab461b72d
2021-05-19 12:49:02 +00:00
junyulai
e7ed46dea4 [FUI27] Fix internal naming of notifyNetworkStatus am: eb91ec2684
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14562499

Change-Id: I4671975978f6f07b32a7e7b4507f82600d454739
2021-05-19 12:41:40 +00:00
Junyu Lai
3536b973ad [automerger skipped] Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" into sc-dev am: 7290bf7e2e -s ours am: 0b2fd00acc -s ours
am skip reason: Merged-In I98dd3f4652dc067eb5c4666e952db6c854bcbb10 with SHA-1 1ebade181e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550548

Change-Id: I9ba67d909b9d76dc30c2ac9b24b697f23dc4899d
2021-05-19 12:23:17 +00:00
Junyu Lai
a4a0aa8165 [automerger skipped] Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" into sc-dev am: 7290bf7e2e am: 4a133d34d9 -s ours
am skip reason: Merged-In I98dd3f4652dc067eb5c4666e952db6c854bcbb10 with SHA-1 59177af317 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550548

Change-Id: I5d5cee3870f8e40c7c77563548b21a8731082974
2021-05-19 12:21:12 +00:00
Junyu Lai
0b2fd00acc [automerger skipped] Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" into sc-dev am: 7290bf7e2e -s ours
am skip reason: Merged-In I98dd3f4652dc067eb5c4666e952db6c854bcbb10 with SHA-1 59177af317 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550548

Change-Id: I4bd31102915e420296d0e3566c07239cab2e0c3b
2021-05-19 12:03:01 +00:00
Junyu Lai
7290bf7e2e Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" into sc-dev 2021-05-19 11:31:39 +00:00
junyulai
1ebade181e [VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present
Test: atest NetworkRequestTest#testBypassingVcn
Fix: 176939355
Fix: 188597540
Merged-In: I98dd3f4652dc067eb5c4666e952db6c854bcbb10
Change-Id: I98dd3f4652dc067eb5c4666e952db6c854bcbb10
  (cherry-picked from aosp/1705390)
2021-05-19 09:52:03 +00:00
Remi NGUYEN VAN
498261b15c [automerger skipped] Merge "Move config_apf* resources to NetworkStack" into sc-dev am: 66b0a0361b -s ours
am skip reason: Merged-In I7a15ddcad5af11fa307d9dbe3a77b31a1179e5b3 with SHA-1 e9836cc431 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14622500

Change-Id: Ic8d42beef91705149641db3f63bc1a3c0ee162f4
2021-05-19 08:11:23 +00:00
Remi NGUYEN VAN
66b0a0361b Merge "Move config_apf* resources to NetworkStack" into sc-dev 2021-05-19 07:54:19 +00:00
Remi NGUYEN VAN
159c362b21 Merge "Move config_apf* resources to NetworkStack" am: c52f4eb2c6 am: 8f0380f066
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684656

Change-Id: I93f5fd10f6c365365ff0e89ca4221d58d420c5ac
2021-05-19 03:11:41 +00:00
Remi NGUYEN VAN
8f0380f066 Merge "Move config_apf* resources to NetworkStack" am: c52f4eb2c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684656

Change-Id: Ie51eae491092389fbc7321491da6129c24c3de00
2021-05-19 02:37:01 +00:00
Remi NGUYEN VAN
3aee5b63e6 Move config_apf* resources to NetworkStack
The resources are only read by NetworkStack through their respective
ApfCapabilities SystemApi methods.
As the resources are being migrated out of frameworks/base resources
anyway, move them directly to NetworkStack instead of moving them to
ServiceConnectivityResources.

Also test that the framework resources are not overlaid or modified.
This should avoid OEM integration errors where the overlays are kept as
in R, without overlaying the resource in the NetworkStack package.

Bug: 185850634
Test: atest CtsNetTestCases
BYPASS_INCLUSIVE_LANGUAGE_REASON=Need to mention legacy APIs

Merged-In: I7a15ddcad5af11fa307d9dbe3a77b31a1179e5b3
(clean cherry-pick)

Change-Id: I7a15ddcad5af11fa307d9dbe3a77b31a1179e5b3
2021-05-19 11:00:58 +09:00
Remi NGUYEN VAN
c52f4eb2c6 Merge "Move config_apf* resources to NetworkStack" 2021-05-19 00:58:52 +00:00
Nikita Iashchenko
ecf93ebf39 Merge "Move IoUtils#deleteContents from CorePlatformApi set to framework" am: a8eb4abf4d am: a5b968f7ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686657

Change-Id: I08b1d281a3b71556d783b1d4f352bc7a4ba8e879
2021-05-18 23:27:10 +00:00
Nikita Iashchenko
a5b968f7ca Merge "Move IoUtils#deleteContents from CorePlatformApi set to framework" am: a8eb4abf4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686657

Change-Id: I2aced35532a572f7912abde832cfdce66c34a3d0
2021-05-18 23:07:28 +00:00
Nikita Iashchenko
a8eb4abf4d Merge "Move IoUtils#deleteContents from CorePlatformApi set to framework" 2021-05-18 22:13:56 +00:00
Les Lee
b986c2352b Merge "Support to query TYPE_WIFI usage with subscriberId" am: 0c461a4252 am: c890b3cfb5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608057

Change-Id: Ifeaab15fbf20b318bb7b35aa6b4604f21e2c98a1
2021-05-18 13:57:43 +00:00
Les Lee
727b2eac5b Merge "Add metered filter for API: buildTemplateCarrier" am: bc5af1fa71 am: 71349734b7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699687

Change-Id: I46d8d8f0d9b83fb0a817a3455cbbc28d558b871c
2021-05-18 13:57:06 +00:00
Les Lee
c890b3cfb5 Merge "Support to query TYPE_WIFI usage with subscriberId" am: 0c461a4252
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608057

Change-Id: I753603201bd935af055cf25135e4f8faf436bf2a
2021-05-18 13:35:08 +00:00
Les Lee
71349734b7 Merge "Add metered filter for API: buildTemplateCarrier" am: bc5af1fa71
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699687

Change-Id: Iac42f02079de5c0507209741e648b13da667fb94
2021-05-18 13:26:24 +00:00
Les Lee
0c461a4252 Merge "Support to query TYPE_WIFI usage with subscriberId" 2021-05-18 13:02:07 +00:00
Les Lee
bc5af1fa71 Merge "Add metered filter for API: buildTemplateCarrier" 2021-05-18 13:01:38 +00:00
Chiachang Wang
69c73252a6 [automerger skipped] Merge "Dump only NORMAL priority information if no priority assigned" into sc-dev am: ad4e3bbd5b -s ours
am skip reason: Merged-In I6825c5038e48e3060c0c3ad1512bd584ef6d10a7 with SHA-1 987b73fbe0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14580814

Change-Id: I5f08130dfd3434960bbda59ef98784873437882a
2021-05-18 12:12:54 +00:00
Chiachang Wang
ad4e3bbd5b Merge "Dump only NORMAL priority information if no priority assigned" into sc-dev 2021-05-18 11:57:53 +00:00
Treehugger Robot
9493879b31 Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" am: d5fbc078d1 am: 1587b248cd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705390

Change-Id: I6a009ce0b78fb684fe75cedb7fedb96a0ca9bdca
2021-05-18 09:57:20 +00:00
Treehugger Robot
1587b248cd Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" am: d5fbc078d1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705390

Change-Id: I0d8dd61da97e675ba70fd7dd5f1e889d8a2e54f7
2021-05-18 09:36:15 +00:00
Treehugger Robot
d5fbc078d1 Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" 2021-05-18 08:35:06 +00:00
Lorenzo Colitti
30a5c3cca5 Merge "Allow unprivileged NetworkCallbacks to see other UIDs' networks." into sc-dev am: 846ae25be5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14597477

Change-Id: I83b704af8a5ee4a132030e973d301539c2e57fc3
2021-05-18 07:12:50 +00:00
Lorenzo Colitti
d82c1ec110 Allow unprivileged NetworkCallbacks to see other UIDs' networks.
Currently, unprivileged apps can call getAllNetworks() to see
all networks on the system, even networks that do not apply to
them. Allow them to do this via NetworkCallbacks as well.

This is the last piece of information that was only available
through getAllNetworks, so this CL deprecates that API.

Bug: 187921303
Test: new unit tests
Test: CTS test in other CL in topic
Change-Id: I30f1021927d3c8eae6525116c61ff4a4acecff6d
2021-05-18 12:24:07 +09:00
Chiachang Wang
c5b866e672 Merge "Dump only NORMAL priority information if no priority assigned" am: f93d99deae am: 7eaaaf6f1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1708333

Change-Id: Id1564d19efab63fbcfe161442fc85ba64a481160
2021-05-18 03:07:26 +00:00