summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add missing permission check to offerNetworkHEADt13.0Patrick Rohr2025-10-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | The missing permission check means that an unauthorized app could have registered a network offer to intercept all NetworkRequests (by trivially guessing an existing provider ID) which would have leaked information about other apps on the system. This adds a NETWORK_FACTORY or MAINLINE_NETWORK_STACK permission check to offerNetwork per the API annotations in ConnectivityManager. Test networks can be offered when holding the MANAGE_TEST_NETWORKS permission which is consistent with similar APIs in this class. There can be no legitimate use of this API a) offerNetwork is @hide and only exposed via NetworkProvider, and b) it requires getting a provider ID by calling registerNetworkProvider which correctly enforces permissions. unofferNetwork does not currently require any permissions. Again, this is consistent with the API annotations in ConnectivityManager. Test: TH (cherry picked from https://android-review.googlesource.com/q/commit:ff65257bd07c791a5bfef2f54bf96ae224c03273) Bug: 388828859 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1917a04ae0ebf221232f9f3bf80fe329a01c6ed2) Merged-In: If71ce012f927a34c647d36b5eaf3723de2c01879 Change-Id: If71ce012f927a34c647d36b5eaf3723de2c01879
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2024-07-082-2/+2
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/packages/modules/Connectivity into HEAD Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: I6c88e5ab28becf17abd31ba653e4231e293cd77d
| * Snap for 9727520 from 6639f54dd05d9083dc775b96ba194af6a74741e1 to ↵Android Build Coastguard Worker2023-03-111-1/+1
| |\ | | | | | | | | | | | | | | | tm-qpr3-release Change-Id: Ib7e56412f4749d57d5251cba99b307ec5a700fe0
| | * Update UiAutomator ConditionYichun Li2023-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | Test: presubmit, abtd: https://android-build.googleplex.com/builds/abtd/run/L61300000959012134?referrer=email Change-Id: I08524334046239917b3fa97216415cebdb496e02 (cherry picked from commit on android-review.googlesource.com host: 74d9dbe51680fa1bfbba95b909569c02021de2c0) Merged-In: I08524334046239917b3fa97216415cebdb496e02
| * | Snap for 9504598 from 2cb27d7216f588d86f6a70ffa2786b107f51d383 to ↵Android Build Coastguard Worker2023-01-191-1/+1
| |\| | | | | | | | | | | | | | | | tm-qpr3-release Change-Id: I55922c5d96a78ea9b3ac7bf12ea52d0edde6cb37
| | * Import translations. DO NOT MERGE ANYWHEREBill Yi2023-01-151-1/+1
| | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I752da69964f18dd3ec962948f3a854e8bb335a32
| * | Snap for 9470583 from cab533d0a0fc3c25dfa3841ba83954839ff45aca to ↵Android Build Coastguard Worker2023-01-1020-114/+117
| |\| | | | | | | | | | | | | | | | tm-qpr3-release Change-Id: I1167a909544233c2d10d0324774d402f8ed77bef
* | | Merge tag 'android-13.0.0_r35' into t13.0Semavi Ulusoy2023-03-256-11/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | Android 13.0.0 release 35 Change-Id: I97060c4982ed41a216386b3419503a02f7694910
| * \ \ Snap for 9447015 from cab533d0a0fc3c25dfa3841ba83954839ff45aca to ↵Android Build Coastguard Worker2023-01-012-25/+25
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | tm-qpr2-release Change-Id: I607c0e773ab884d71e53844c553a43b284a92e7f
| | * | Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-devTreeHugger Robot2022-12-311-16/+16
| | |\ \
| | | * | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-12-291-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I5b04f53ee50f2d374f940a8282e8365b787d4399
| | * | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-12-291-9/+9
| | |/ / | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I7a4e919a166dab624c839d395d9c7007e7f78410
| * | | Snap for 9416697 from 71ad23a8db2fcc41e904e45e56c74e230a8e41b7 to ↵Android Build Coastguard Worker2022-12-172-25/+25
| |\| | | | | | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: I897166cd644e20bb0fe1dad985ab4c6e89d60104
| | * | Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-devBill Yi2022-12-171-9/+9
| | |\ \
| | | * | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-12-161-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: Ic20289ff13d408bd2992f336bfc65c348909ae95
| | * | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-12-161-16/+16
| | |/ / | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: Ib4c1b20709263e9ee0b01e5c7550685396d92112
| * | | Snap for 9401607 from cd805c3a57c89ad3c49b2a2bd8ecde96d25aa884 to ↵Android Build Coastguard Worker2022-12-141-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: I7a3f1edd9179e0816caf1f4bc857b182b2391780
| | * | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: Ieb48c025254e4a73ed95277c088839ac0f6b8214
| * | | Snap for 9385690 from 613f3459ed7c895128233a4e9010247a9dbac7c7 to ↵Android Build Coastguard Worker2022-12-092-1/+11
| |\| | | | | | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: I9ebc8109a4fcc7133cc8279293f0804fe80a655e
| | * | [RESTRICT AUTOMERGE] Restrict halfsheet cancel broadcast am: be99ea27e2 am: ↵Brian Delwiche2022-12-082-1/+11
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 10ffacc07b Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19706348 Change-Id: I4de721cf12bba1e8db9486b74661650df3434272 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * \ [RESTRICT AUTOMERGE] Restrict halfsheet cancel broadcast am: be99ea27e2Brian Delwiche2022-12-072-1/+11
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19706348 Change-Id: Ie146db82061ea4778e6542f6261a9b092f7fcb1f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | | * | [RESTRICT AUTOMERGE] Restrict halfsheet cancel broadcastBrian Delwiche2022-12-032-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 234442700 Test: atest: NearbyUnitTest Tag: #security Ignore-AOSP-First: Security Change-Id: I7d7606e40928cb6cd2ed9c022b2375012baec1d6
| * | | | | Snap for 9305793 from 633deeefb66c3ca6e6ef50145c345db5c3096c42 to ↵Android Build Coastguard Worker2022-11-181-6/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: Ibe844d892d2bd0372266c7f17d93a562a5bacbc9
| | * | | | Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-devBill Yi2022-11-171-6/+6
| | |\ \ \ \
| | | * | | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-11-151-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I6e72554610c6a17b1a2c738060956d98db7de9aa
| * | | | | | Snap for 9301146 from 31919fab23c5b7c682fdafc192737c098f17fb66 to ↵Android Build Coastguard Worker2022-11-171-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: I25d63b0afb679c1ff66f39cdf97f67fc9d8c04b0
| | * | | | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-11-151-1/+1
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I73b95a03583ada454df76d05d3e99be91e5ec408
| * | | | | Snap for 9167942 from 44352af40b379572975dd356c73a32dfd7e90660 to ↵Android Build Coastguard Worker2022-10-121-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: Iaf237237a9ff0d1cbd8e953be21b5d70eba49b4c
| | * | | | Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-devTreeHugger Robot2022-10-121-1/+1
| | |\ \ \ \
| | | * | | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I991b7a9b066fd06ad0d7171e54a03fe058b5456f
| | * | | | | [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ↵Bill Yi2022-10-120-0/+0
| | |\ \ \ \ \ | | | |/ / / / | | |/| / / / | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dfb586f2ee -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20148895 Change-Id: I2e3bae309d27a64f9f5e1c2b5667ce30b9bad2e0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-10-092-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: If0dce3f42830b31bcf38b3e991fd27170c588c02
| * | | | | Snap for 9137459 from 61b581f1ffed15f7eb45a1091c029ef9db75f4bc to ↵Android Build Coastguard Worker2022-10-041-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: I1ddcf6bbcc25aab483d7113e7ae7d0b88862495e
| | * | | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I992095572efc96064f1d683d71aa30078489fae0
| * | | | | Snap for 9133013 from c75e356bc12fd9c31dbde8752b2129a2d5c4a28d to ↵Android Build Coastguard Worker2022-10-0315-103/+96
| |\| | | | | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | tm-qpr2-release Change-Id: I8f12b9bf4bd410c4085c0ccc4d1a5725b12df01c
* | | | | fixup! Connectivity: Add capability to allow tethering to use VPN upstreamsGeorge Zacharia2023-01-312-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Settings are not accessible to APEX packages, Change-Id: I84b1518de082e03eb3815fabb7e1ae285f9e6967
* | | | | Merge tag 'android-13.0.0_r16' into t13.0Semavi Ulusoy2022-12-1718-115/+188
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Change-Id: I11c23ee1f0766b6c32efe2df223c9615a30752d2
| * \ \ \ \ Snap for 9130001 from c75e356bc12fd9c31dbde8752b2129a2d5c4a28d to ↵Android Build Coastguard Worker2022-10-020-0/+0
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | tm-qpr1-release Change-Id: I207222e42889d06af859fc3000a61c50fef8dccd
| | * | | | [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ↵TreeHugger Robot2022-10-020-0/+0
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-d1-dev am: 5b08f777c6 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20084095 Change-Id: I211eaa5fd840478abb6d2a1ae2f35be2500a55b9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | | Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-d1-devTreeHugger Robot2022-10-021-1/+1
| | | |\ \ \
| | * | \ \ \ [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ↵Bill Yi2022-10-020-0/+0
| | |\ \ \ \ \ | | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 81469d92e6 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20084095 Change-Id: Ib719d20223c52a6d0821ddb2cae8c31d47542e0d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I3a13df36d3a3087a56d54a5366c146b2f4b934de
| * | | | | | Snap for 9127121 from 320bde8e8c66fd049585063d9d91f3f409697d03 to ↵Android Build Coastguard Worker2022-10-010-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-qpr1-release Change-Id: I2613c9a694bf9a9b1dac4fd54546687221b4331b
| | * | | | | [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ↵Bill Yi2022-09-300-0/+0
| | |\ \ \ \ \ | | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f6c067f1bf -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20083649 Change-Id: Ib8a9662c299d15a1246be0be12dc655bc55bebfc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-09-291-1/+1
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I6fefeedaa7ed3720673a8d7ceca0d3eb7fca4fa6
| * | | | | Snap for 9115816 from 9298d17d756ec6e23daf3649869b9c606328f103 to ↵Android Build Coastguard Worker2022-09-281-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-qpr1-release Change-Id: I96321b76ba40293186e454a438164f2e53944605
| | * | | | Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-devTreeHugger Robot2022-09-281-1/+1
| | |\ \ \ \
| | | * | | | Import translations. DO NOT MERGE ANYWHEREBill Yi2022-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: I4eab52fcf453221e9215fbad79c5d96d365c00ae
| | * | | | | [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ↵Bill Yi2022-09-270-0/+0
| | |\ \ \ \ \ | | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-dev am: cba60c2c47 -s ours am: 85ed1b60c1 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20037154 Change-Id: I2efa825a1d26b3d3cdbc1bc47231e56774fd2612 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | | | [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ↵Bill Yi2022-09-270-0/+0
| | | |\ \ \ \ | | | | | |_|/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-dev am: cba60c2c47 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20037154 Change-Id: Ia8a571e58249eeb7331764ecd00fb1dc1d993453 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>