To audit data access and verify the uid and package are consistent,
use noteOpNoThrow instead of checkOpNoThrow.
Bug: 187439908
Test: atest AssistDataRequesterTest
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsAssistTestCases
Change-Id: Ib48040b5b55be09958da4398f4d663908573568c
There has somehow been the following AIDL-generaged method
IInputMethodSession IInputMethodSession.Stub#asInterface(IBinder)
in hiddenapi-unsupported. This is strange because A) there is no way
for IME client apps to obtain an IBinder object of IInputMethodSession
and B) even if IME client apps somehow get a raw IBinder object of
IInputMethodSession its IPC methods are not accessible due to
restrictions on non-SDK interfaces. Therefore, the risk of
accidentally breaking apps by removing this entry is supposed to be
very low.
To make future refactoring possible, let's remove this entry from
hiddenapi-unsupported.txt.
Fix: 235267988
Test: presubmit
Change-Id: If3b0737854038e39c2bfe4f7811c5d7d7bdc18a7
To fix cross user package visibility leakage, this CL filters out
packages that aren't installed in the calling user before the API
returns results to the caller.
Also adding a user id parameter to the API for the system modules to
specify the correct user id when querying the appop permission packages.
NoNonSdkCheck: Keep @UnsupportedAppUsage for new signature api
Bug: 229684723
Test: atest CrossUserPackageVisibilityTests
Change-Id: I9d3de91b0195d3396d2737673cb23ef899e23467
The "byteShort" is still kept because ICU's version is too long for this
use case.
This commit is separated to unblock the previous commit which removed
the usage of these strings.
Bug: 36994779
Bug: 71580745
Bug: 217592956
Test: m droid
Change-Id: I1833bd357860841037aa323cdf6acf9366b6ca1e
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:
1. Split out ethernet module-lib APIs to Connectivity module.
Add the ethernet resource filegroup to tiramisu-updatable-sources
filegroup as well, build them together. Also update the module-lib
and system api txt to reflect the APIs change. Remove the hidden
APIs which are moved to Connectivity module. This removal fixes the
api inconsistent issue with Tethering/apex/hidden/.
2. Remove EthernetService from SystemServer which will be registered
from ConnectivityServiceInitializer.
3. Replace the BackgroundThread class(imported from f/b/core/java)
with the one in the modules-utils-backgroundthread lib, which is
visible to Connectivity module.
Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I3e13cb9c0e348333af295c2537d459aa6700ff17
Merged-In: I1956848d3248cc56e9841d221e5e4c160bed65a4
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:
1. Split out ethernet module-lib APIs to Connectivity module.
Add the ethernet resource filegroup to tiramisu-updatable-sources
filegroup as well, build them together. Also update the module-lib
and system api txt to reflect the APIs change. Remove the hidden
APIs which are moved to Connectivity module. This removal fixes the
api inconsistent issue with Tethering/apex/hidden/.
2. Remove EthernetService from SystemServer which will be registered
from ConnectivityServiceInitializer.
3. Replace the BackgroundThread class(imported from f/b/core/java)
with the one in the modules-utils-backgroundthread lib, which is
visible to Connectivity module.
Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I1956848d3248cc56e9841d221e5e4c160bed65a4
This CL builds NetworkStats related code with the
connectivity module instead of platform.
This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
to it. Modify callers accordingly.
Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
Merged-In: I244693aebe1782d9e67502638ff8145c51462e1e
This CL builds NetworkStats related code with the
connectivity module instead of platform.
This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
to it. Modify callers accordingly.
Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
framework-connectivity-tiramisu library on p/m/Connectivity.
Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
ConnectivityServiceInitializer
Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Merged-In: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
framework-connectivity-tiramisu library on p/m/Connectivity.
Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
ConnectivityServiceInitializer
Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
Changes IPackageManager.aidl methods to use long flags instead of int.
Public API change to be followed.
BUG: 204432643
BUG: 204433659
Test: manual
Change-Id: Ib5c42fef998f0116e312c71d620e1a15329e26e0
Bug: 179354495
Test: m com.android.media
- 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.
Change-Id: I0dea4284723835c0592ce9aaf7382e344ae959f7
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.
Change-Id: I805f6f8553fb17f4c0aa78c3314786a8351ca1f4
Bug: 179354495
Test: m com.android.os.statsd
- 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.
Merged-In: Iaa3d98ced5f3b67f891e5d648a5004acdf7a075c
Change-Id: Iaa3d98ced5f3b67f891e5d648a5004acdf7a075c
(cherry picked from commit 48736cdd37)
Bug: 179354495
Test: m com.android.wifi
- 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.
Change-Id: I45f46f9aebb90ca9ff0a60c37068b94238354578
Bug: 179354495
Test: m com.android.mediaprovider
- 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.
Change-Id: I0615b68715de2bb953da27b60d29d37b2750d86b
Moves the conscrypt related contents of the hidden API flag files to
external/conscrypt.
Bug: 179354495
Test: m com.android.conscrypt out/soong/hiddenapi/hiddenapi-flags.csv
- verify that this does not change the contents of the apex files
or the contents of the monolithic hidden API files.
Merged-In: I8dcc23b8123087cada42646f181d5409fba9eb35
Change-Id: I8dcc23b8123087cada42646f181d5409fba9eb35
(cherry picked from commit 6db4fc9e3b)
As part of the work to modularize the hiddenapi this change moves the
hiddenapi configuration files into the frameworks/base/boot directory
which is where the platform_bootclasspath module that will end up
using it resides.
Bug: 179354495
Test: verified that the out/soong/hiddenapi/... files are unchanged
by this change
Change-Id: Ic1c3ac9b717c34fa8ff36f349a75fb397101a077
Adds OWNERS files for frameworks/base/boot and its new subdirectory
hiddenapi to include the Soong team and the compat team as they will be
the ones responsible for maintaining the contents of those directories.
A follow up change will move the frameworks/base/config/hiddenapi-*
into the new hiddenapi directory but that change will require separate
changes downstream. Separating this change out avoids having general
frameworks/base reviewers from having to review multiple different
changes for which they have little context.
Bug: 179354495
Test: m nothing
Change-Id: Ia57d69c5b6031ecab9fa3a27e293ce8166ef50d3