661209 Commits

Author SHA1 Message Date
Maciej Żenczykowski
10120266d6 remove libbpf_android from libandroid_runtime
since it's not actually ever used at runtime,
it's only meant to be part of the bpfloader boot time one shot binary.

(all non-bpfloader bpf implementation is in .h files only)

Test: TreeHugger, m libandroid_runtime
Bug: 218882781
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8d3b8ac80ffdbe293221150f7272f7def80fc1c4
Merged-In: I8d3b8ac80ffdbe293221150f7272f7def80fc1c4
2022-02-11 16:53:03 +00:00
Treehugger Robot
da6c7062c6 Merge "tracing: add instrumentation for tracing service reports" 2022-02-11 14:38:36 +00:00
William Escande
f185c9bcd9 API Changes needed for Blueooth apex to build
Bug: 216476895
Test: Compile
Tag: #refactor
Merged-In: Ia7741309719e1f46c8c18c81b65c8862bca814e1
Change-Id: Ia7741309719e1f46c8c18c81b65c8862bca814e1
2022-02-11 13:49:15 +01:00
ot903107
011e10f275 Fix StageCoordinator unexpected onDisplayAreaVanished
Seems already call Binder unlinkToDeath while registerOrganizer
but still received binderDied in DAOC, dead organizer already
been replaced by newer organizer with same featureId and will
remove the newer organizer.

Add a judge to make sure same organizer obecjt and old organizer
binder isn't alive while DAOC received binderDied.

Bug: 208552581
Test: run autotest pass

Change-Id: I555d2fdedb7be7b7d0e5b10fbc617a9cce66c4b5
2022-02-11 18:07:25 +08:00
Lorenzo Colitti
b94381c5a8 Fix grammar nit in comment.
Test: None
Change-Id: I60cb2478615efce13f1904092abe5c21bdf0dc9a
2022-02-11 18:50:04 +09:00
Xiao Ma
147f287169 Expose EthernetManager state and control APIs.
This CL exposes EthernetManager APIs that settings and other
system components can use to modify and monitor Ethernet state.
The new APIs are similar to the existing @hide methods but
pass on more information and meet API guidelines:

1. Add an InterfaceStateListener interface, and
   addInterfaceStateListener and removeInterfaceStateListener
   methods that meet API guidelines (e.g., take Executor, take
   SAM parameter last, etc.) This new listener passes interface
   state (absent, up, down), role (client or server) and IP
   configuration.
2. Implement the legacy Listener type as a subinterface of the
   new interface. Hopefully existing callers should be able to
   use it unchanged.
3. Expose setIncludeTestInterfaces as module-lib api instead of
   TestApi, since modules cannot expose TestApi methods.

Bug: 210586283
Test: m
Test: atest EthernetServiceTests
Test: atest EthernetTetheringTest
Change-Id: I88240a546ab51d128ed83775499f2bcabab74db0
Merged-In: I88240a546ab51d128ed83775499f2bcabab74db0
2022-02-11 18:50:04 +09:00
Treehugger Robot
4ff7b1d723 Merge "Expand javadoc for Build.VERSION.KNOWN_CODENAMES." 2022-02-11 09:29:41 +00:00
Ahaan Ugale
8301da241b OWNERS for ViewStructure
Change-Id: I135bfa1a5e15d3b9658028b4e430c847280d7654
Test: n/a
Fix: 218966221
2022-02-11 05:49:36 +00:00
Treehugger Robot
c4a8259f78 Merge "Fix potential exception while pressing volume up and volume down" 2022-02-11 02:06:44 +00:00
Hyundo Moon
b5996b0b46 Merge "Show volume bar when BLE device's volume is changed" 2022-02-11 01:59:27 +00:00
Rahul Sabnis
c38e51f6f2 Update path to Bluetooth OWNERS file after repo migration
Bug: 218339548
Test: Manual
Change-Id: I6906c398a657a2bc155126d74b55885063f422c2
2022-02-10 17:47:41 -08:00
Treehugger Robot
5aba7d9d19 Merge "convert StreamingProtoTest to stream proto type" 2022-02-11 01:19:31 +00:00
Bob Badour
11f3b36c61 Merge "Add support for library names." 2022-02-10 23:44:51 +00:00
Robert Horvath
2e0cba87dd Explicitly mark receivers as RECEIVER_NOT_EXPORTED
The intent actions registered for here are only marked as protected
broadcasts if the telephony package is present. In its absence,
receivers *must* specify either RECEIVER_EXPORTED or
RECEIVER_NOT_EXPORTED.

Since these Intents are sent from Telephony, which runs with a system
UID less than the first application UID (10000), the system_server can
receive these broadcasts without exporting the receivers.

Bug: 218831939
Test: build & run on ATV device
Test: atest TelephonySubscriptionTrackerTest
Change-Id: I3fed2a1772fccea611f68e9425755b0c9aa9051e
2022-02-10 22:57:32 +00:00
Joonhun Shin
88f4093982 Merge "Correct Typo in CarrierConfigManager introduced in b/197992603" 2022-02-10 22:48:15 +00:00
Treehugger Robot
5650969402 Merge "Add OWNERS for SyncFence JNI" 2022-02-10 22:43:38 +00:00
James Mattis
d13094cef4 Merge "Making EthernetNetworkSpecifier public" 2022-02-10 22:26:06 +00:00
Treehugger Robot
dae8e486bf Merge "BootReceiver: drop code processing dmesg, employ dmesgd" 2022-02-10 21:00:56 +00:00
Treehugger Robot
f2d6b0a31d Merge "Added a VTS test to validate the schema of uuid config xml" 2022-02-10 20:19:30 +00:00
Tony Mak
cfa26a0ae7 Fix the empty selection issue when onCreateActionMode returns false
One of the optimizations ag/12911059 did was calling
SelectionModifierCursorController.show() before
startActionModeInternal(). The rationale was that if we start the action
mode first, SelectionModifierCursorController.show() would end up
invalidating the action mode twice unnecessarily, once for each handle.

However, with this optimization, we are calling
SelectionModifierCursorController.show() even when onCreateActionMode
returns false.

Reverted this particular optimization to fix the issue.

Added a test which was failing without this fix but passing with it.

Fixes: 199380016
Fixes: 214341747
Test: atest TextViewActivityTest

Merged-In: I793f76a23978cbbbbde2d16e8a522615174bcdd5
Change-Id: I793f76a23978cbbbbde2d16e8a522615174bcdd5
(cherry picked from commit 11bd64482249c9257ee22390de15f69f9c834247)
2022-02-10 20:09:46 +00:00
Treehugger Robot
027b7e9604 Merge "Remove @hide usage and fix NetworkPolicy backup" 2022-02-10 19:37:14 +00:00
John Reck
5aad4e47a0 Add OWNERS for SyncFence JNI
Test: N/A
Change-Id: Iebf27d5ed614d91d8b6a885bc87396307c9ddd0f
2022-02-10 14:36:53 -05:00
James Mattis
4e9686f9d8 Making EthernetNetworkSpecifier public
Bug: 210485380
Test: atest EthernetServiceTests
atest CtsNetTestCasesLatestSdk

Change-Id: Ic0b7a3360745632eb024a97692e49f6c8dafa3ee
Merged-In: Ic0b7a3360745632eb024a97692e49f6c8dafa3ee
2022-02-10 11:25:18 -08:00
Kevin Jeon
adab5c6662 Merge "Remove unnecessary permissions from Traceur" 2022-02-10 19:09:46 +00:00
Treehugger Robot
8fb341c41f Merge "Don't suggest top-level owners for changes in apex/." 2022-02-10 18:13:58 +00:00
Lalit Maganti
b05e382d00 Merge "base: add perfetto owners to tracing directory in base" 2022-02-10 18:08:26 +00:00
Treehugger Robot
8bbb5be10e Merge "[MS70] Have BatteryStatsImpl use the public NetworkStats API" 2022-02-10 18:04:39 +00:00
Lalit Maganti
0e02392d09 base: add perfetto owners to tracing directory in base
Change-Id: Id7d8e602c62dd72f3ac09d7a398bcc59ea0bf0ff
2022-02-10 18:01:38 +00:00
Kevin Jeon
eabd21201e Remove unnecessary permissions from Traceur
This change removes the privapp allowlist from Traceur, which had
previously explicitly granted the DUMP, QUERY_ALL_PACKAGES,
START_FOREGROUND_SERVICES_FROM_BACKGROUND, and STATUS_BAR permissions.
These permissions no longer need to be granted because Traceur is now a
platform app.

Bug: 209476712
Test: - Checked that Traceur can still take normal and long traces on
        AOSP userdebug and internal user/userdebug.
      - Checked that bugreports will stop ongoing traces.
      - Checked that the quick settings tile still stops/starts traces.
Change-Id: I33cd317f9fe00e2e08ae205a832237bfe0df044a
Merged-In: I33cd317f9fe00e2e08ae205a832237bfe0df044a
2022-02-10 17:51:10 +00:00
Alexander Potapenko
7176306861 BootReceiver: drop code processing dmesg, employ dmesgd
To remove the need of giving system_server the syslog_read permission,
we are introducing dmesgd, a service that will be launched by init and
perform dmesg output parsing and collection of kernel error reports.

In order to trigger the service, BootReceiver just needs to set the
dmesgd.start property to 1.

Bug: 215095687
Test: run on a user device with injected KFENCE bugs
Change-Id: Ifcfe83ad559633558bba623fb514d7b27d97f6af
2022-02-10 17:41:41 +00:00
Lalit Maganti
788b5b8c08 tracing: add instrumentation for tracing service reports
This allows us to monitor any failed reports using
go/perfetto-monitoring.

Bug: 205892741
Test: New CTS test PerfettoTests#testSkipReportAtoms and
      PerfettoTest#testReportAtoms
Change-Id: Idf72bc693c1730fcb522b7a9ecfdf3c9db8b0777
2022-02-10 17:41:37 +00:00
satayev
c5dafe7ea4 Expand javadoc for Build.VERSION.KNOWN_CODENAMES.
Bug: 211747008
Test: N/A
Change-Id: I030076caae7b76a09a43aa5cd5fdf5671c09a832
2022-02-10 17:11:50 +00:00
Treehugger Robot
d8f74421fb Merge "Adjust base/native/android OWNERs" 2022-02-10 16:48:22 +00:00
satayev
a4f2700eba Don't suggest top-level owners for changes in apex/.
Individual folders have their own specific OWNERS already.

Bug: N/A
Test: presubmit
Change-Id: I23d77901245c187c9f6a8642755b6137a6051389
2022-02-10 15:56:01 +00:00
Treehugger Robot
e82d94fde0 Merge "Expose VpnManager events API" 2022-02-10 12:36:37 +00:00
Treehugger Robot
5edd77be5c Merge "Split out the ipsec API surface and use framework-connectivity-tiramisu" 2022-02-10 11:45:21 +00:00
Robert Horvath
932104e096 Merge "Add Low Power Standby firewall chain" 2022-02-10 11:17:44 +00:00
Aaron Huang
794d210854 Split out the ipsec API surface and use framework-connectivity-tiramisu
(cherry picked from commit 1dad7aa006492035293e68080aeaf606df02618a)
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
Merged-In: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-10 19:01:00 +09:00
Paul Duffin
e04ce88a46 Merge "Remove repackaged.android.test... libraries" 2022-02-10 09:36:01 +00:00
Junyu Lai
fd3fc5ff82 Merge "Allow core tests to use hidden connectivity API" 2022-02-10 09:23:57 +00:00
Hakjun Choi
6f55afd4e7 Correct Typo in CarrierConfigManager introduced in b/197992603
1) Keyname should not be including key_
2) This is bundle type not to be used as int array

Bug: b/216365058
Test: atest
Change-Id: Ia2db386e7394fd09194477e529fc6e8c752623c2
Merged-In: Ia2db386e7394fd09194477e529fc6e8c752623c2
2022-02-10 07:39:03 +00:00
Treehugger Robot
4033b9b412 Merge "Refine system-server Proguard config for shrinking" 2022-02-10 06:48:28 +00:00
Chalard Jean
b76721bb52 Expose VpnManager events API
Test: atest FrameworksNetTests:VpnTest
Change-Id: I66ed1ca69777ff8d8b0d2438e580282cfd30c9d6
2022-02-10 14:29:36 +09:00
Treehugger Robot
192941ea6b Merge "[MS55.1] Move NetworkStateSnapshot into module folder" 2022-02-10 05:02:45 +00:00
subrahmanyaman
6ed8558bdb Added a VTS test to validate the schema of uuid config xml
A new VTS test is added to the OMAPI VTS to validate the schema of the
hal_uuid_map_config.xml file.

Bug: b/180640274
Test: atest --rebuild-module-info VtsHalOmapiSeServiceV1_TargetTest
Change-Id: Ib1ae39c0c33c066973ddc3fcb0b0c37535fa515e
2022-02-10 04:36:12 +00:00
Charles Chen
f690faccf0 Merge "Add OWNERS file for ContextWrapperTest" 2022-02-10 03:28:59 +00:00
Remi NGUYEN VAN
2f37fabe8c Remove @hide usage and fix NetworkPolicy backup
Remove usage of hidden symbols for network stats APIs, replacing them
with public API alternatives.

Also fix backup of NetworkPolicy when the set of subscriber IDs is
empty. This as not caught because the test used a hidden API builder
that creates a non-empty set containing null.

Bug: 197717846
Test: atest FrameworksCoreTests
  (cherry-picked and fixed merged conflict from ag/16781267)
Change-Id: I45a98795c571ac97bd6025988da156bd06d57e45
Merged-In: I45a98795c571ac97bd6025988da156bd06d57e45
2022-02-10 10:11:35 +08:00
Yan Yan
59f6394516 Merge "Un-finalize IpSecManager" 2022-02-10 01:37:09 +00:00
Chiachang Wang
4123af09c9 Merge "Address API review feedback" 2022-02-10 00:50:30 +00:00
Rambo Wang
861c7e5da8 Protect SID and NID in ServiceState with coarse location permission
While SystemId/NetworkId in 3gpp2 network are not a one to one match
of MCC/MNC in 3gpp network, they servie the similar purpose and
should have same level of privacy protection.

To have a consistent privacy protection policy, SID/NID are also
redacted when calling app has no location permission.

Bug: 188061647
Test: atest ServiceStateTest ServiceStateProviderTest
Change-Id: Ibf068f950c82270f59aa40e8bb6721f8b9c989bf
2022-02-09 16:20:18 -08:00