summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-03NetworkStack: Move to our connectivitycheck serviceHEADlineage-18.1alk3pInjection
Change-Id: I7d0bb621108740939735a7c7ffa8e19a3419f75c
2021-09-27NetworkStack: Optimize connectivitycheck for Chinese usersMartincz Gao
Signed-off-by: alk3pInjection <webmaster@raspii.tech> Change-Id: I9cd87b3143f7b82204b1b0af32b932b86cda8a82
2021-05-20Merge cherrypicks of [14651914, 14651880, 14651759, 14652210, 14651594, ↵android-build-team Robot
14651881, 14651915, 14651882, 14651883, 14651799, 14652154, 14651595, 14651760, 14652271, 14652272, 14652273, 14652056, 14651800, 14651801, 14651802, 14651884, 14651885, 14651886, 14652274, 14652275, 14652276, 14652277, 14652278, 14651894, 14651723, 14652211, 14651895, 14651916, 14651887, 14651888, 14651596, 14651889, 14652212, 14651761, 14652310, 14652311, 14651973, 14651974, 14652312, 14652313, 14651896, 14651803] into rvc-qpr3-release Change-Id: I5eb45cfc4643d3cd78242a48bb17fc1a6eb63d80
2021-05-20Fix the security issue that preloaded apps can get SSID & BSSIDlucaslin
NetworkMonitor sends "android.net.conn.NETWORK_CONDITIONS_MEASURED" broadcast with Wifi SSID & BSSID. The receiver of this broadcast is only required to have "android.permission.ACCESS_NETWORK_CONDITIONS" permission but not the "android.permission.ACCESS_FINE_LOCATION". It's incorrect because if the apps want to know the Wifi SSID and BSSID, they should get the run-time permission with user consent. Since this broadcast is not used anymore, delete it and the related code. Bug: 175213041 Test: atest NetworkStackNextTests NetworkStackTests Change-Id: I12050737291c7fa0ebff4e7411b91f4c6f57a413 Merged-In: I12050737291c7fa0ebff4e7411b91f4c6f57a413 Ignore-AOSP-First: This is a security patch which cannot submit in AOSP. (cherry picked from commit 0dc33442b74703f7700ba78b05d3c5ec30c07055)
2021-03-28Snap for 7240555 from 406d853f38957de85b0539e2c2c33c6ea6aa70ea to ↵android-build-team Robot
rvc-qpr3-release Change-Id: I7c0750221e9456eee317ef29d9ccd7a70cd07a7c
2021-03-28Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-devTreeHugger Robot
2021-03-27Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I4bd78d24a43e3c04084add3b5b0974fb0dcd6acb
2021-03-26Snap for 7238877 from a47e05ca2f7101ffed1b8e815bef2274987232f3 to ↵android-build-team Robot
rvc-qpr3-release Change-Id: Ia5155407a0118cc96caa88847ac802dd2dea2b4f
2021-03-26Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: Ia5d58aec7eb492619d5c2898cb937e525cbc10ed
2020-10-31[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ↵Bill Yi
50c3ff0661 -s ours am: f83fa82dd8 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12957020 Change-Id: Ic7586065ab85a5100270f04efdfae3a96556fd2d
2020-10-31[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ↵Bill Yi
50c3ff0661 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12957020 Change-Id: I5aa6ca5cf61549700b269ec54a3588abc1fb4471
2020-10-30Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I6efa700ba6d8b757a721938b8b6b6ef81ba71b16
2020-10-10Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I7ec5ec1b042a87821e3c1bd1f9a3746b05d7a0ee
2020-08-26Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I77d6e1c2eedcca92a11820ffbd6589e730ccd29c
2020-08-08[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ↵Bill Yi
7318eb74b3 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12338393 Change-Id: I47481255e77a52c78b0bf008fa330aa29d11fa82
2020-08-08Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I259b732aefcba603161dacf8aeeb19d50415f7ab
2020-07-25Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: If8f69dc4330d34994ec2f97bd1c9e38930a9d599
2020-07-08Merge "Use the R API statsd library on R NetworkStack" into rvc-dev am: ↵Remi NGUYEN VAN
333f3c1db9 am: 1e7abb1e90 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12084811 Change-Id: Iaa672e6e7c500fa4ba54df58875d67e3c57d8413
2020-07-08Merge "Use the R API statsd library on R NetworkStack" into rvc-dev am: ↵Remi NGUYEN VAN
333f3c1db9 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12084811 Change-Id: I13393653b55d8129dd14731d0db986f6299ce9c0
2020-07-08Merge "Use the R API statsd library on R NetworkStack" into rvc-devRemi NGUYEN VAN
2020-07-07Use the R API statsd library on R NetworkStackRemi NGUYEN VAN
Using the Q library causes parse errors for stats, as that library is not forward-compatible with R. The R library is backwards-compatible with Q and should be used on R builds. Bug: 160656765 Test: statsd_testdrive on device with an updated NetworkStack Change-Id: Idf3e654a679ab31d0d3c3d960f9745387edbbe4a
2020-07-06Merge "Refine validation metrics" into rvc-dev am: bf45240a2a am: 63e923abc2Remi NGUYEN VAN
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12004083 Change-Id: I91fcb23b9c1511b2c830899c9cbbd64bc2201ac3
2020-07-06Merge "Injecting network validation stats into statsd" into rvc-dev am: ↵Remi NGUYEN VAN
e1b31f1058 am: a0428bfc7c Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11952741 Change-Id: I717fd85f92ae722c201befba9a9825b76bd88ef5
2020-07-06Merge "Refine validation metrics" into rvc-dev am: bf45240a2aRemi NGUYEN VAN
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12004083 Change-Id: I72acf198cf58456294ac02ce340f406f73799bbb
2020-07-06Merge "Injecting network validation stats into statsd" into rvc-dev am: ↵Remi NGUYEN VAN
e1b31f1058 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11952741 Change-Id: I3f2d48f967d60236dd86e4c025bf017b5d066472
2020-07-06Merge "Refine validation metrics" into rvc-devRemi NGUYEN VAN
2020-07-06Merge "Injecting network validation stats into statsd" into rvc-devRemi NGUYEN VAN
2020-07-03Refine validation metricsRemi NGUYEN VAN
Rename members for a clearer API, and add try/catch blocks to each NetworkMonitor call to guarantee there will not be any crash. Add a flag allowing to disable all the metrics collection code. Bug: 151796056 Test: atest NetworkStackTests (see also test-only change) Change-Id: I06d6dccc57146b955b15cf36a2109c68a5355494
2020-07-03Merge "Update CapportData in CapportApiProbeResult to be nullable" into ↵Chiachang Wang
rvc-dev am: 442cffc176 am: 4412473e26 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11790986 Change-Id: I42d78cdd71b17b7ec3b3f833fa272955269e3e5f
2020-07-03Merge "Update CapportData in CapportApiProbeResult to be nullable" into ↵Chiachang Wang
rvc-dev am: 442cffc176 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11790986 Change-Id: I7c84f19f3e058503b38fd59b0116fdbb169709b1
2020-07-03Merge "Update CapportData in CapportApiProbeResult to be nullable" into rvc-devChiachang Wang
2020-07-03Injecting network validation stats into statsdFrank Li
1. Fill in each field of the NetworkValidationReported 2. Write the NetworkValidationReported into statsd This patch also refactors tryCapportApiProbe to return null when the capport data is incorrect, instead of doing the check after calling the method. This makes it easier to compile capport API probe metrics. Test: atest NetworkStackIntegrationTests NetworkStackTests Test: atest FrameworksNetTests Test: Manual test with statsd_testdrive Bug: 151796056 Original-Change: https://android-review.googlesource.com/1295496 Merged-In: Icf34402d6a293cc76c32d00835cbf358c99a87fa Change-Id: Icf34402d6a293cc76c32d00835cbf358c99a87fa
2020-07-03Update CapportData in CapportApiProbeResult to be nullableChiachang Wang
If capport API does not send any valid rely, the capportData could be null in CapportApiProbeResult. Thus, take null capportData for invalid case. Bug: 154196512 Bug: 139034276 Bug: 151796056 Test: atest NetworkStackTests Merged-In: I99cbff2eb1a9ab87a42011038d911fe15e7344a4 Change-Id: I99cbff2eb1a9ab87a42011038d911fe15e7344a4
2020-07-01Merge "Use FLAG_IMMUTABLE on NetworkStackNotifier intents" into rvc-dev am: ↵Remi NGUYEN VAN
c5c294b9da am: f492607ea8 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12040941 Change-Id: I4575f8a2a31823f25783de6430a9cd04c7344bf3
2020-07-01Merge "Fix jarjar rule for LocalLog" into rvc-dev am: 4e34267c2a am: 43c54b194eTreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12018738 Change-Id: I4a6ba5ea495d631c67075d8e0c1ca2528631b1d4
2020-07-01Merge "Use FLAG_IMMUTABLE on NetworkStackNotifier intents" into rvc-dev am: ↵Remi NGUYEN VAN
c5c294b9da Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12040941 Change-Id: I28bb07d2166a24a78fdc27ab51156cd71eadc69a
2020-07-01Merge "Fix jarjar rule for LocalLog" into rvc-dev am: 4e34267c2aTreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12018738 Change-Id: I146611e7ae6b8134b545ba3facfd1056b50e195b
2020-07-01Merge "Use FLAG_IMMUTABLE on NetworkStackNotifier intents" into rvc-devRemi NGUYEN VAN
2020-07-01Merge "Fix jarjar rule for LocalLog" into rvc-devTreeHugger Robot
2020-07-01Apply jarjar rules to NetworkStaticLibTests am: 35aa6f2e18 am: b8059b4e91Remi NGUYEN VAN
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12034943 Change-Id: Ia8f2c8f3ab701f8a5d18e439c2658b7e899de1c5
2020-07-01Apply jarjar rules to NetworkStaticLibTests am: 35aa6f2e18Remi NGUYEN VAN
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12034943 Change-Id: I8de9d4ad72f5e9305d96ee4d62e0f4028e1324f0
2020-07-01Apply jarjar rules to NetworkStaticLibTestsRemi NGUYEN VAN
Each test target in NetworkStackCoverageTests needs to have appropriate jarjar rules applied: this was not the case for NetworkStaticLibTests, even though jarjar rules are already applied in NetworkStackTests and NetworkStackIntegrationTests. NetworkStaticLib is used by multiple modules that are each supposed to jarjar it to their own package, so jarjar rules cannot be applied on the test target itself. Define an android library to apply the jarjar rules before including the tests into NetworkStaticLibTests. Bug: 152461494 Test: atest NetworkStackCoverageTests Change-Id: I2afebd0e0fbfde2ed8c9daa396077761db23409f
2020-06-30Use FLAG_IMMUTABLE on NetworkStackNotifier intentsRemi NGUYEN VAN
FLAG_UPDATE_CURRENT was not helpful because: - For the venue info notification, the only extra is the Network, and the intent uses the network handle as identifier; meaning that two matching intents would already have the same extra. - The ACTION_WIFI_SETTINGS intent does not have any extra, so there is nothing to update. Bug: 157475111 Test: atest NetworkStackTests; manual: connected to captive portals and used notifications Change-Id: Ifd9e6ff04f2d574f3e28d612c8ea6215a209069e
2020-06-30Fix jarjar rule for LocalLogRemi NGUYEN VAN
LocalLog is in android.util, not android.net. The previous code used to work because methods used by NetworkStack are @UnsupportedAppUsage, but this should be avoided because the symbols are not stable. Bug: 160113128 Test: m; atest NetworkStackTests; manual: wifi working (cherry-pick from AOSP with conflicts) Merged-In: I3864ce089c02d53dfc6d0f9c58ac4a84daaaf787 Change-Id: I3864ce089c02d53dfc6d0f9c58ac4a84daaaf787
2020-06-27[automerger skipped] Import translations. DO NOT MERGE am: b8ac953af4 -s ↵Bill Yi
ours am: 80b50a0304 -s ours am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12023106 Change-Id: Ic41f80304e66f8f26ba9ee478d996bdc56bad47f
2020-06-27[automerger skipped] Import translations. DO NOT MERGE am: b8ac953af4 -s oursBill Yi
am skip reason: subject contains skip directive Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/12023106 Change-Id: I9e631af50b48629fb3444c0dc30850e509a103bb
2020-06-27Import translations. DO NOT MERGEBill Yi
Auto-generated-cl: translation import Change-Id: If8dc0134cbdd7c6380bee53c94c4731cf44704c9
2020-06-25Merge "Get link state with same lock as LinkProperties" into rvc-dev am: ↵Remi NGUYEN VAN
2ad382e0e0 am: 1a69a4558f Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11970037 Change-Id: I4c6898acdb57a56f4b056da10446ecd49a0c79cf
2020-06-25Merge "Send normal termination metrics on wifi off" into rvc-dev am: ↵Remi NGUYEN VAN
9e9451f3b5 am: 53831f2b67 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11970035 Change-Id: I2a59ba7f55e5c9fbc73b6234b01c1c231fec73da
2020-06-25Merge "Get link state with same lock as LinkProperties" into rvc-dev am: ↵Remi NGUYEN VAN
2ad382e0e0 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11970037 Change-Id: I9e05fb277cd29da60849f28f0aecf990b83d7c61