Commit Graph

2147 Commits

Author SHA1 Message Date
Hunsuk Choi
f4d3d69e02 Merge "Add RIL requests and unsol for IRadioIms hal" 2022-10-31 14:34:43 +00:00
Hai Zhang
a0667ba5f8 Merge "Move binary XML into modules-utils." 2022-10-25 19:04:00 +00:00
Rex Hoffman
661f4aafba Merge "Enable new_robolectric" am: cb75f3e3f9 am: 3243afcfc9 am: 1c3c1f7790
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2210001

Change-Id: If21585eefcd4d07ac619b2811f043a10482243db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 23:15:47 +00:00
Hai Zhang
f0960b3893 Move binary XML into modules-utils.
Bug: 243194720
Test: presubmit
Change-Id: I5252cf235cedc85aadebbecc078e753b7b54dcdd
2022-10-21 04:28:37 -07:00
Hunsuk Choi
b2c8f0173e Add RIL requests and unsol for IRadioIms hal
Bug: 216387835
Test: build & flash
Change-Id: I7a8afdef592881146699472051b9b6cdfde1b457
Merged-In: I7a8afdef592881146699472051b9b6cdfde1b457
2022-10-21 02:44:46 +00:00
Rex Hoffman
3561be7d30 Enable new_robolectric
Test: mma in /external/robolectric
Bug: 244627502

Change-Id: I025df6e25a9126ec5392cd35f7b5c663efca2469
2022-10-15 16:15:23 +00:00
Hunsuk Choi
b765796dc8 Add RIL requests for Emergency Call domain selection HAL API changes.
Add the following:
- RIL_REQUEST_SET_EMERGENCY_MODE
- RIL_REQUEST_TRIGGER_EMERGENCY_NETWORK_SCAN
- RIL_REQUEST_CANCEL_EMERGENCY_NETWORK_SCAN
- RIL_REQUEST_EXIT_EMERGENCY_MODE

- RIL_UNSOL_EMERGENCY_NETWORK_SCAN_RESULT

Test: Build
Bug: 243344927
Change-Id: I62b8f26460858d1b608075466c4ad26114c69b8a
2022-09-29 10:50:34 +00:00
Sorin Basca
7617023560 Merge "Unpin staledataclass-annotation-processor from Java 8" am: 818cc23210 am: 7ef2a66679 am: 78f8f9af2e am: 8b6aaf9081 am: 91b2223d19
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2234390

Change-Id: I46f2ac2dd51d71ce7d4f1064c1519efe4aa9d512
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-28 21:25:02 +00:00
Sorin Basca
73cb9bdb19 Unpin staledataclass-annotation-processor from Java 8
Test: m
Fixes: 139342589
Change-Id: Ie4791425a4fcdf551ffa70b2c02ab3ed13e57eaa
2022-09-27 18:02:06 +01:00
Lorena Torres-Huerta
4cd3884564 Add AudioAttributes and AudioFlag for use in HAL interface for engine configuration.
This requires a version bump to android.media.audio.common.types.

cc_defaults and java_defaults are used in order to avoid explicitly updating version references in several Android.bp files when we do future version bumps.

Test: m
Merged-In: I481d4b4e7b4f1302d508ab6eb2c7ed4336a8f801
Change-Id: I481d4b4e7b4f1302d508ab6eb2c7ed4336a8f801
(cherry picked from commit 6088f4b7bb)
2022-09-06 21:28:19 +00:00
Cole Faust
9acf46f66f [conflict] Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567 am: 9b3a5fc03b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I5e59b8549df348c181cd3b72311798a5d7602a67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 21:03:54 +00:00
Cole Faust
a1eb8cf128 Merge "Fix array-related errorprone warnings" 2022-08-30 18:03:01 +00:00
Cole Faust
584140c83a Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ia6f216cc36ad0a5758f39fd9b34962cd4adf9d8e
2022-08-25 10:57:12 -07:00
Lorena Torres-Huerta
6088f4b7bb Add AudioAttributes and AudioFlag for use in HAL interface for engine configuration.
This requires a version bump to android.media.audio.common.types.

cc_defaults and java_defaults are used in order to avoid explicitly updating version references in several Android.bp files when we do future version bumps.

Test: m
Change-Id: I481d4b4e7b4f1302d508ab6eb2c7ed4336a8f801
2022-08-25 17:14:18 +00:00
Thiébaud Weksteen
231574ce34 Remove lowpan internal API
This API is not used: marked as @hide with a commented out @SystemApi;
the AIDL server is not implemented in AOSP nor internally. There is one
extra client from the SEPolicy: wpantund; but there is no build rule for
this binary, and no reference for it in AOSP. This API appears be an
artifact from the initial import of Android Things back in 2017.

I confirmed with the previous owners that there is no intention to use
this API in the future (see bug).

This changes reduces the size of framework.jar by 77kb on
bramble-userdebug.

Bug: 235018188
Test: TH
Change-Id: Id66f5ed23ed26c7185f36454f168e34997be3f8f
Merged-In: Id66f5ed23ed26c7185f36454f168e34997be3f8f
(cherry picked from commit 7640656825)
2022-08-23 12:49:59 +10:00
Austin Borger
57b6c21a33 Merge "Revert "Add pids to AttributionSource."" 2022-08-22 17:22:01 +00:00
Austin Borger
7a8d805c63 Revert "Add pids to AttributionSource."
This reverts commit 20bcb3c4b8.

Reason for revert: Broken test (bug 243187237)

Change-Id: I2eb033ed06e2c0c56155e4848de1b399b69ffc6d
2022-08-22 00:56:14 +00:00
Austin Borger
caa20c20e6 Merge "Add pids to AttributionSource." 2022-08-19 20:32:17 +00:00
Austin Borger
20bcb3c4b8 Add pids to AttributionSource.
The cameraserver has a need for attributing connect calls to particular
processes. This patch introduces pids as a property of an
AttributionSource.

Test: Smoke test on cuttlefish
Bug: 190657833
Bug: 199526514
Change-Id: I6cdffed62447bbb741290dd9c2e5937254d02e3c
2022-08-15 16:59:53 -07:00
Thiébaud Weksteen
7640656825 Remove lowpan internal API
This API is not used: marked as @hide with a commented out @SystemApi;
the AIDL server is not implemented in AOSP nor internally. There is one
extra client from the SEPolicy: wpantund; but there is no build rule for
this binary, and no reference for it in AOSP. This API appears be an
artifact from the initial import of Android Things back in 2017.

I confirmed with the previous owners that there is no intention to use
this API in the future (see bug).

This changes reduces the size of framework.jar by 77kb on
bramble-userdebug.

Bug: 235018188
Test: TH
Change-Id: Id66f5ed23ed26c7185f36454f168e34997be3f8f
2022-08-15 10:13:16 +10:00
Treehugger Robot
b8426673b2 Merge "Set min_sdk_version" am: 8fe47dd0b8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2138336

Change-Id: Ib7f25d4224e481fa12162c3acd920c771a070cd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-04 14:29:59 +00:00
Jooyung Han
907d7169f0 Set min_sdk_version
This was done via the hard-coded list in build/soong.

Bug: 158059172
Test: m
Merged-In: Ie6dc1f59b459ec01605d796a4d81be04bc1d07da
Change-Id: Ie6dc1f59b459ec01605d796a4d81be04bc1d07da
2022-06-29 06:42:02 +09:00
Jooyung Han
41528cd84a Set min_sdk_version
This was done via the hard-coded list in build/soong.

Bug: 158059172
Test: m
Change-Id: Ie6dc1f59b459ec01605d796a4d81be04bc1d07da
2022-06-24 19:09:05 +09:00
Treehugger Robot
4ecafadd7b Merge "statemachine migration from base to modules-utils" am: 51e6e8a0e1 am: 8cc1782ba5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893671

Change-Id: I5ba9d65a7223fbf9d1f371e672491f09b05c1940
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 01:25:27 +00:00
William Escande
0a85c4b800 Merge "statemachine migration from base to modules-utils" into tm-mainline-prod am: 47e8097666
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18799173

Change-Id: I797ea1afbe48f53bed5904759296a80f7e95f84c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 21:57:06 +00:00
William Escande
358a664344 statemachine migration from base to modules-utils
Bug: 198418216
Tag: #refactor
Test: atest ModulesUtilsTests
Test: atest FrameworksUtilTests
Merged-In: I65303c131f6e867f6c44d14baa537560fa8bf857
Change-Id: I65303c131f6e867f6c44d14baa537560fa8bf857
2022-06-08 21:15:14 +00:00
William Escande
ee59c1ee46 statemachine migration from base to modules-utils
Bug: 198418216
Tag: #refactor
Test: atest ModulesUtilsTests
Test: atest FrameworksUtilTests
Change-Id: I65303c131f6e867f6c44d14baa537560fa8bf857
2022-06-08 11:25:36 -07:00
Azhara Assanova
020ccc4160 Remove errorprone BinderIdentityTokenChecker
The checks in BinderIdentityTokenChecker are implemented in
AndroidFrameworkLintChecker in frameworks/base/tools/lint.

Bug: 157626959
Test: atest error_prone_android_framework_test
Test: m framework-minus-apex
Change-Id: Iac9128dbc7e915a12080e41a66d19f9390e4b58a
2022-05-31 10:55:16 +00:00
Rhed Jao
25a44805ef A lint checker to detect potential package visibility issues
APIs working in the system_server and taking the package name as a
parameter may have chance to reveal package existence status on the
device, and break the package visibility we introduced in Android 11.

Take an example of the API: `boolean setFoo(String packageName)`, a
malicious app may have chance to detect package existence state on the
device from the result of the API, if there is no package visibility
filtering rule or uid identify checks applying to the parameter of the
package name.

To resolve the lint warning, you could apply package visibility
filtering rules to the package name via
PackageManagerInternal.filterAppAccess API, before starting to use the
package name. If the parameter is a calling package name, using the
PackageManager API such as PackageManager.getPackagesForUid to verify
the calling identify.

Bug: 228274845
Test: atest AndroidFrameworkLintCheckerTest --host

Change-Id: I30ef6a184545d4704de8d26c7b1b62abb543c9d1
2022-04-19 21:44:50 +08:00
Treehugger Robot
36b1820a69 Merge "Remove unused empty filegroups from frameworks/base." am: 5ee9c55130 am: 76e9b955c5 am: 735d0192f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2026205

Change-Id: I044909e335b0b1786f8248c3d8d865eda75e6705
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-06 03:45:34 +00:00
Pedro Loureiro
e748d40d2b Merge "Allow unknown codenames in target sdk version for APK-in-apexes" into tm-dev 2022-04-05 12:46:45 +00:00
Pedro Loureiro
5ef7d7b777 Allow unknown codenames in target sdk version for APK-in-apexes
This is currently a recurring issue every new Android release as a few of
our apps will be targeting new platforms and they also get installed on
devices running older SDKs.

This change only changes behaviour for APK in apexes.

Test: atest com.android.server.pm.parsing.PackageParserLegacyCoreTest

Bug: 208239394

Merged-In: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
Change-Id: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
2022-04-01 11:51:06 +00:00
Pedro Loureiro
2444f9f27d Merge "Allow unknown codenames in target sdk version for APK-in-apexes" 2022-04-01 10:42:25 +00:00
Pedro Loureiro
99d045227c Allow unknown codenames in target sdk version for APK-in-apexes
This is currently a recurring issue every new Android release as a few of
our apps will be targeting new platforms and they also get installed on
devices running older SDKs.

This change only changes behaviour for APK in apexes.

Test: atest com.android.server.pm.parsing.PackageParserLegacyCoreTest

Bug: 208239394

Change-Id: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
2022-03-31 18:58:07 +00:00
Xiao Ma
892ba98a72 Remove unused empty filegroups from frameworks/base.
connectivity-tiramisu-sources filegroup in the framework-t and service
folder is useless after moving all source files to updatable-sources
filegroup, delete them from f/b.

Bug: 210586283
Test: m
Merged-In: I2209df4b6f0b4daddc640fc4126ba89601df2c2b
Change-Id: If304e989c668cd816483647a9291968f2f15435d
2022-03-31 02:44:48 +00:00
Xiao Ma
4e7bf0415f Remove unused empty filegroups from frameworks/base.
connectivity-tiramisu-sources filegroup in the framework-t and service
folder is useless after moving all source files to updatable-sources
filegroup, delete them from f/b.

Bug: 210586283
Test: m
Change-Id: I2209df4b6f0b4daddc640fc4126ba89601df2c2b
2022-03-28 03:24:30 +00:00
Remi NGUYEN VAN
d386543a34 Remove stale aidl-export references
As per the TODO, the aidl-export directory was moved to
packages/modules/Connectivity/framework.

Bug: 222234190
Test: TH
Merged-In: I399d2bb259d50916c575e59621ddfaf798affc5c
Change-Id: I5d77a9b0acf8e47c3bed144c735440b5593d7ae1
2022-03-25 11:07:31 +00:00
Remi NGUYEN VAN
7c2b259435 Remove stale aidl-export references
As per the TODO, the aidl-export directory was moved to
packages/modules/Connectivity/framework.

Bug: 222234190
Test: TH
Merged-In: I4c8f84b5b7df057b30ce334a99ce4ce975080020
Change-Id: Ie05f6ffec77e5f2eb7f68a21a33fac6936fe3018
2022-03-24 14:22:40 +00:00
Remi NGUYEN VAN
cb106302db Remove stale aidl-export references
As per the TODO, the aidl-export directory was moved to
packages/modules/Connectivity/framework.

Bug: 222234190
Test: TH
Merged-In: I4c8f84b5b7df057b30ce334a99ce4ce975080020
Change-Id: Ie05f6ffec77e5f2eb7f68a21a33fac6936fe3018
2022-03-24 13:56:49 +00:00
Corina Grigoras
2907ec82ab Merge "Move UiEventLogger interface to modules-utils." into tm-dev 2022-03-18 14:19:43 +00:00
Yu-Han Yang
6e5d475c23 Merge "Add GnssExcessPathInfo (frameworks/base)" into tm-dev am: 1257c4108a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17125474

Change-Id: Iad1cf548c6906f471a0e3e97ce6a01eea6eaad0d
2022-03-17 17:03:28 +00:00
Yu-Han Yang
97f3b91c53 Add GnssExcessPathInfo (frameworks/base)
Also add combinedAttenuationDb in GnssSingleSatCorrection

Bug: 201253590
Test: atest GnssExcessPathInfoTest
      atest GnssSingleSatCorrectionTest
Change-Id: I7f629f2fbca563a36d1b4543f768b8fabd5d91fd
2022-03-16 12:11:22 -07:00
Corina
cbc4d681e7 Move UiEventLogger interface to modules-utils.
This is so the soures can be accessed both fom framework and modules.
The implementation needs the local StatsLog, so cannot be reused.

Test: m
Test: atest SystemUITests
Test: make statsd_testdrive $ANDROID_HOST_OUT/bin/statsd_testdrive 90
Bug: 218862369
Change-Id: I27ebffa6817575f1377beb80f4092287d9b12c49
Merged-In: I27ebffa6817575f1377beb80f4092287d9b12c49
2022-03-16 18:41:11 +00:00
Corina Grigoras
adf8b23505 Merge "Move UiEventLogger interface to modules-utils." 2022-03-16 18:38:11 +00:00
Corina
6116503243 Move UiEventLogger interface to modules-utils.
This is so the soures can be accessed both fom framework and modules.
The implementation needs the local StatsLog, so cannot be reused.

Test: m
Test: atest SystemUITests
Test: make statsd_testdrive $ANDROID_HOST_OUT/bin/statsd_testdrive 90
Bug: 218862369
Change-Id: I27ebffa6817575f1377beb80f4092287d9b12c49
2022-03-16 18:32:49 +00:00
Thiébaud Weksteen
b3284679e6 Merge "Enforce permission annotations" 2022-03-04 00:30:45 +00:00
Neha Pattan
0469e1ae46 Merge "Remove *nonpublic_deps which was added pre-Rb announcement." into tm-dev 2022-03-02 20:32:35 +00:00
Neha Pattan
2edfc48cb6 Remove *nonpublic_deps which was added pre-Rb announcement.
Bug: 221855066
     21090328
Test: build
      mmm -j packages/modules/Auxiliary
      mmm -j packages/modules/SupplementalApi
Change-Id: If84b882f8bdaee62cfb107c6a079fbc55a012876
2022-03-02 17:40:52 +00:00
Paul Hu
1843e673d7 Merge "Rename framework-connectivity-tiramisu to framework-connectivity-t" am: 1d30d5d92e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976826

Change-Id: I8c273f9dbb49511b825982ade9a28e233eed00c9
2022-03-02 07:27:23 +00:00
paulhu
2a8c2c3601 Rename framework-connectivity-tiramisu to framework-connectivity-t
Bug: 215434166
Test: build, flash, device boot to home.
Merged-In: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
Change-Id: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
2022-03-01 09:41:12 +08:00