Commit graph android_packages_modules_Co.../Tethering/apex
Message SHA1
Enable tethering to perform its own hidden API processing
Previously, the hidden API encoding of the tethering boot dex jars,
i.e. those dex jars that tethering contributes to the bootclasspath
were done as part of the monolithic hidden API processing. This change
causes the encoding to be done by the tethering's
bootclasspath_fragment.

This change involves the following:
* Addition of the fragments property to the tethering's
  bootclasspath_fragment module to list all the other
  bootclasspath_fragment modules on which this depends.
* Addition of the additional_stubs property to add stubs for APIs that
  are not provided by another bootclasspath_fragment.

The build automatically checks that the hidden API flags which are
computed by tethering and encoded into its boot dex jars match those
that are generated by the monolithic processing so this is guaranteed
to be safe.

Bug: 179354495
Test: m com.android.tethering
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
(cherry picked from b28cb44e4b)

Merged-In: I4d9621325c7fcea5043cbca4c577ba2ac6125c0c
Change-Id: I4d9621325c7fcea5043cbca4c577ba2ac6125c0c

Paul Duffin   commited 2021-06-30 00:00:41 +01:00
f9a0c868c4
Include sdk versioning proto in tethering apex
Allows SdkExtensions to inspect its version to decide what the extension
sdk version is on-device.

Bug: 188787081
Test: m com.android.tethering and inspect
Merged-In: If2d28b02be871594fed1fbb40b7aad284b553afb
Change-Id: If2d28b02be871594fed1fbb40b7aad284b553afb

Anton Hansson   commited 2021-05-27 07:35:31 +00:00
db3b06959f
Merge "Mark tethering apex as compressible"
Nikita Ioffe   authored and   Gerrit Code Review   commited 2021-05-26 10:29:16 +00:00
d2d0d82a1d
Add bootclasspath_fragment.
Note that the contents of the bootclasspath_fragment are added as
dependencies to an apex, so there is no need to duplicate them in
java_libs.

Bug: 180105615
Test: atest CtsClasspathsTestCases
Change-Id: Ia19ed0d5e13676882239dd5a1456c97549119994
Merged-In: Ia19ed0d5e13676882239dd5a1456c97549119994

satayev   commited 2021-05-12 16:08:11 +01:00
5ba2950bfb
Add ServiceConnectivityResources to in-process APEX
The APK was added to the standard APEX, but is missing in the
in-process APEX.

Bug: 182557971
Merged-In: Ic2491f04880ff66abc3b2d3aaee6168e18f6d68a
Merged-In: Ibf982ceb5f0fd61c822399e3eeeb1ef5e500604d

Change-Id: Ibf982ceb5f0fd61c822399e3eeeb1ef5e500604d
Test: m

Remi NGUYEN VAN   commited 2021-03-14 12:33:30 +09:00
2fb22c2a2b
Add ServiceConnectivityResources to tethering
The resource package is used by service-connectivity to load its own
resources.

Bug: 182125649
Test: atest FrameworksNetTests

Merged-In: I3c7fc6285f10318ecef05a64e1179054bb831d99
Merged-In: Ic2491f04880ff66abc3b2d3aaee6168e18f6d68a

Change-Id: I3c7fc6285f10318ecef05a64e1179054bb831d99

Remi NGUYEN VAN   commited 2021-03-12 17:50:41 +09:00
60f4c2f425
Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Connectivity"
Bob Badour   authored and   Gerrit Code Review   commited 2021-02-19 06:23:22 +00:00
f5b346ed1d
Set updateable:false explicitly in apex rules.
Currently, this is the default so this is a no-op,
But the default is changing to true.

Bug: 180375550
Test: Treehugger
Change-Id: Ib841e474ab2b2ff2b54c160bb06c3bbbeea92675

Mathew Inwood   commited 2021-02-16 14:58:27 +00:00
adfc933979
[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Connectivity
Added SPDX-license-identifier-Apache-2.0 to:
  Tethering/Android.bp
  Tethering/apex/Android.bp
  Tethering/bpf_progs/Android.bp
  Tethering/common/TetheringLib/Android.bp
  Tethering/tests/Android.bp
  Tethering/tests/integration/Android.bp
  Tethering/tests/mts/Android.bp
  Tethering/tests/privileged/Android.bp
  Tethering/tests/unit/Android.bp
  tests/cts/hostside/Android.bp
  tests/cts/hostside/aidl/Android.bp
  tests/cts/hostside/app/Android.bp
  tests/cts/hostside/app2/Android.bp
  tests/cts/hostside/certs/Android.bp
  tests/cts/net/Android.bp
  tests/cts/net/api23Test/Android.bp
  tests/cts/net/appForApi23/Android.bp
  tests/cts/net/jni/Android.bp
  tests/cts/net/native/dns/Android.bp
  tests/cts/net/native/qtaguid/Android.bp
  tests/cts/net/util/Android.bp
  tests/cts/tethering/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I8534c580f0e2a17be146300b67b3604817b64507

Bob Badour   commited 2021-02-16 04:09:58 -08:00
97e6be27f6
Mark tethering apex as compressible
Bug: 178713634
Test: presubmit
Change-Id: I621305e47b5b86408a72c622b1e367cd0e75f82c

Nikita Ioffe   commited 2021-02-04 01:42:45 +00:00
31cef5ebe2
move bpf test map into a separate file
This allows for better separation of test vs production code:
we will add more test maps and programs here later.

Test: builds
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I7b22e3e148ebf43fdf43dc68d0dea354f7627688

Maciej Å»enczykowski   commited 2021-01-18 18:36:00 -08:00
e9810ffef1
Revert^2 "Add service-connectivity to tethering APEX"
Add the connectivity service JAR to the tethering APEX.
This change should not be released in monthly updates until the
modularization work is done, so will be reverted in module release
branches.

This rolls forward the change. The original topic was reverted because
of a bad merged-in clause; this is fixed and re-verified in this topic.

Test: Boot, wifi connects and has internet access
Bug: 171540887

Change-Id: Ib0ac49609e444a53a6fee4575f5078e15f364eef

Remi NGUYEN VAN   commited 2021-01-08 01:24:36 +00:00
2812f607a0
Revert "Add service-connectivity to tethering APEX"
Revert "Set setCurrentProxyScriptUrl as public"

Revert submission 1532910-connectivity_jar_in_apex

Reason for revert: Breaks boot tests: b/176969905
Reverted Changes:
Ie41a5b569:Set setCurrentProxyScriptUrl as public
Id7b6a4664:Move service-connectivity to the tethering APEX
Ia7cb83834:Add service-connectivity to tethering APEX

Change-Id: I9f31d4810a92e620f02cc8d24bdf18fe28001a2b

Pete Bentley   commited 2021-01-07 13:51:18 +00:00
850ca6f6b4
Add service-connectivity to tethering APEX
Add the connectivity service JAR to the tethering APEX.
This change should not be released in monthly updates until the
modularization work is done, so will be reverted in module release
branches.

Test: Boot, wifi connects and has internet access
Bug: 171540887
Merged-In: Ic496cd62be8c90928ccc619519ebe517beea78f0

Change-Id: Ia7cb83834b854e8c495c4ef17ec69ad032509208

Remi NGUYEN VAN   commited 2021-01-07 06:17:33 +00:00
bd5cc4231d
com.android.tethering: set min_sdk_version 30
Tethering is updatable apex module that was launched in R, hence it and
all it dependencies should specify min_sdk_version <= 30.

Test: m
Bug: 171668006
Bug: 171330443
Change-Id: Ic91cf96dda6419d1038b0329b920f9cd24482aef
Merged-In: Ic91cf96dda6419d1038b0329b920f9cd24482aef
(cherry picked from commit bee20e84f8)
(cherry picked from commit 1fe1e539e1)

Nikita Ioffe   commited 2020-11-05 20:30:40 +00:00
583e35a12e
Merge "Move BPF offload program from netd to mainline" am: c26848e7bd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1424189

Change-Id: Ia0b8a185f44dac7db365fcb9fc865a82bd552d62

Nucca Chen   authored and   Automerger Merge Worker   commited 2020-09-18 04:27:28 +00:00
a0d6f9712b
Move BPF offload program from netd to mainline
Test: as the follows.
$ adb shell ls sys/fs/bpf | grep offload
map_offload_tether_ingress_map
map_offload_tether_limit_map
map_offload_tether_stats_map
prog_offload_schedcls_ingress_tether_ether
prog_offload_schedcls_ingress_tether_rawip

$ adb shell dumpsys netd --short
  TetherController
    BPF ingress map: iif(iface) v6addr -> oif(iface) srcmac ..
      13(rmnet_data3) 2401:e180:8842:6e3:bc6a:2e45:c30:f418 -> ..
    BPF stats (downlink): iif(iface) -> packets bytes errors
      13(rmnet_data3) -> 7 488 0
    BPF limit: iif(iface) -> bytes
      13(rmnet_data3) -> 9223372036854775807

Log:
bpfloader: Loaded object: /apex/com.android.tethering/etc/bpf/offload.o

Change-Id: I71b7efb1f4bd6eb1cd469a0e1e4a56342dc6e579

Hungming Chen   commited 2020-09-16 20:38:14 +08:00
56c632caed
Make change and version bump to r_aml_300900700 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ieed62e845451de7c90a0f71a21289003e5ea8b72

android-build-team Robot   commited 2020-07-09 03:16:41 +00:00
8e291dea63
Make change and version bump to r_aml_300900600 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Idac701bf872c3e7d5b854c6a19ca0da5d01d6699

android-build-team Robot   commited 2020-07-08 03:17:08 +00:00
0076305369
Make change and version bump to r_aml_300900500 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I7daf3a7b2989105022a05e6b3c7d3fdbe165baed

android-build-team Robot   commited 2020-07-07 03:16:56 +00:00
ce11e33b62
Make change and version bump to r_aml_300900400 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I538efbc8e379b929f50ad1762bdf759ca31cdbb8

android-build-team Robot   commited 2020-07-06 03:16:59 +00:00
37718b7db0
Make change and version bump to r_aml_300900300 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ic95844fa021e178f665d3cc74e795e510cee29db

android-build-team Robot   commited 2020-07-04 03:16:40 +00:00
806c971702
Make change and version bump to r_aml_300900200 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ic32f7f6c83b8bc61d3ef93c03857ea205c6b0dbe

android-build-team Robot   commited 2020-07-03 03:17:10 +00:00
5761320c2f
Make change and version bump to r_aml_300900100 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I182d7ddf35e0684e7b6cb54fed43662a26a9d3dd

android-build-team Robot   commited 2020-07-02 03:16:45 +00:00
1a727e2525
Make change and version bump to r_aml_300900000 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: If7bac499f32dabcb20f7482ac9e40bb73cd785db

android-build-team Robot   commited 2020-07-01 03:16:47 +00:00
82a04d4597
Make change and version bump to r_aml_309999900 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I0a80cda2e4a62ccd87e4fbbe1faa6d6fdb23f014
Exempt-From-Owner-Approval: Version bump only

Akshay Thakker   commited 2020-06-30 05:26:30 +00:00
e0e3176269
Make change and version bump to r_aml_300803100 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ic3a9e3a3345dac2b176f71c81b9a274ae650289b

android-build-team Robot   commited 2020-06-30 03:16:48 +00:00
413f0d0164
Make change and version bump to r_aml_300803000 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I7a94ebf72bee6df80732d20b68e16cfbf1b65018

android-build-team Robot   commited 2020-06-29 03:17:28 +00:00
03b503b7b5
Make change and version bump to r_aml_300802900 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Iff018565791817468a1103fbaee0ba638b89fb65

android-build-team Robot   commited 2020-06-27 03:31:45 +00:00
72e8ef38f7
Make change and version bump to r_aml_300802800 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I6198d9fb4577b6355f746e9a7ede6d07469a1556

android-build-team Robot   commited 2020-06-26 03:16:35 +00:00
5abec93060
Make change and version bump to r_aml_300802700 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I7670710e4da2f340a3fb02c3b3b3373c36adf3e7

android-build-team Robot   commited 2020-06-25 03:21:35 +00:00
c7d753e3e2
Make change and version bump to r_aml_300802600 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I1fec7c5e3e3222df6ccd9b3c00d03b59178388b5

android-build-team Robot   commited 2020-06-24 16:55:08 +00:00
7bb96e0987
Make change and version bump to r_aml_300802500 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I679f091959d2cc72015bde3fa0bb2f6b7bd5d074

android-build-team Robot   commited 2020-06-24 03:17:28 +00:00
8625f51f83
Make change and version bump to r_aml_300802400 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: If743b76583bc895f11674e468792c0da1b958121

android-build-team Robot   commited 2020-06-23 03:17:14 +00:00
67d9d012b6
Make change and version bump to r_aml_300802300 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ie54721e710eda02bda97af622520078fca01d632

android-build-team Robot   commited 2020-06-22 03:17:06 +00:00
75c7ca2283
Make change and version bump to r_aml_300802200 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ibddfd670698e66c42797c61e7020c1382fecb2bf

android-build-team Robot   commited 2020-06-20 03:22:10 +00:00
8997b6c8e1
Make change and version bump to r_aml_300802100 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I7af1c3a55b61516884940432f9146eb26c169668

android-build-team Robot   commited 2020-06-19 07:17:59 +00:00
1a09018e55
Make change and version bump to r_aml_300802000 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I6601ad32346eec33bef7dde00ae7d744c86aa8e4

android-build-team Robot   commited 2020-06-18 07:17:34 +00:00
2f8db2964d
Make change and version bump to r_aml_300801900 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I357be5bdb76f6276711e39743d88974b7d1cf248

android-build-team Robot   commited 2020-06-17 19:58:05 +00:00
fad40ff9e9
Make change and version bump to r_aml_300801800 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I86d41b911e1b337ff794f3f2d636661ce7427985

android-build-team Robot   commited 2020-06-17 07:19:12 +00:00
51fc9bad09
Make change and version bump to r_aml_300801700 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ie3a0a9efb7b092ee585abb28e50502077e44ee3e

android-build-team Robot   commited 2020-06-16 07:16:41 +00:00
f90328dd70
Make change and version bump to r_aml_300801600 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ia1f7a301c15fddbaa0009e2106b95e4b0a76b329

android-build-team Robot   commited 2020-06-15 07:16:48 +00:00
3a24b176e7
Make change and version bump to r_aml_300801500 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I75d67291909ddeb356f2927c4e11c2981ebeff37

android-build-team Robot   commited 2020-06-14 07:21:49 +00:00
c77a1e9e52
Make change and version bump to r_aml_300801400 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I9c9f527416459b38c32ccf5b65f4054cea5b586f

android-build-team Robot   commited 2020-06-12 07:21:50 +00:00
0b741e482c
Make change and version bump to r_aml_300801300 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ia261164ce399e211f9136fa36b6d28f9aea918d1

android-build-team Robot   commited 2020-06-11 07:16:12 +00:00
54bb5f39ae
Make change and version bump to r_aml_300801200 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: Ib12acc94b460b14aa189a97511df0f1138e47484

android-build-team Robot   commited 2020-06-10 07:17:04 +00:00
1fbd32ecd5
Make change and version bump to r_aml_300801100 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I06126d269aa431f5c9f6cd38f403ddfd3f12d489

android-build-team Robot   commited 2020-06-09 07:17:51 +00:00
14adb0af6b
Make change and version bump to r_aml_300801000 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: If733150c77381e8c826f701ef4d27f78673db9f6

android-build-team Robot   commited 2020-06-08 07:16:52 +00:00
d32a0a526c
Make change and version bump to r_aml_300800800 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I828035d23d7d91026b9e62fb735b0f17683c7ee5

android-build-team Robot   commited 2020-06-07 07:17:43 +00:00
827fe24443
Make change and version bump to r_aml_300800500 for mainline module file: packages/Tethering/apex/manifest.json
Change-Id: I3fa94cc97b8b3403942d23433da6583e355fba34

android-build-team Robot   commited 2020-06-05 16:31:31 +00:00
af09da3163