Commit Graph

2107 Commits

Author SHA1 Message Date
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
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
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
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
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 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
Thiébaud Weksteen
7e1864a364 Enforce permission annotations
Define an exception list which contains all the current AIDL
definitions. Through the transition, AIDL interfaces will be
progressively removed from the list.

Bug: 220214993
Test: m
Change-Id: Ifa341d18e8e51a046e58722d1b011032d4002b1c
2022-02-28 15:26:27 +11:00
William Escande
c01e552e6f Use the specific export aidl folder of Bluetooth
Bug: 219528787
Test: build + start bt
Tag: #refactor

Change-Id: Ie0468a8d2933f9866fba2bec59b433446fab1938
2022-02-25 12:33:21 +01:00
Roopa Sattiraju
82c71dd74d Merge "Enabling Apex in BT" into tm-dev 2022-02-25 06:30:19 +00:00
Roopa Sattiraju
293ed88b2f Enabling Apex in BT
Bug: 217736913
Test: Compile, bringup and test user journeys
Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
2022-02-24 20:42:33 +00:00
Alexander Dorokhine
5173a59c17 Remove an unused AppSearch-related target.
Bug: 146218515
Test: Builds
Change-Id: Ie5da42f7fdc2c8ccc4d5b81723a9bc7ac0fb1753
2022-02-23 23:14:57 -08:00
Paul Hu
2e835186e0 Merge "Rename framework-connectivity-tiramisu to framework-connectivity-t" into tm-dev 2022-02-22 15:52:11 +00:00
Anton Hansson
46aa492ded Merge "Sort metalava_framework_docs_args" am: c741f70ac2 am: 02d396c043 am: b3623468ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991972

Change-Id: Iac3836a24e691b3c49fc26a05e2e084387afc56f
2022-02-21 15:29:41 +00:00
Anton Hansson
02d396c043 Merge "Sort metalava_framework_docs_args" am: c741f70ac2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991972

Change-Id: I89bb418c378b5bda820ba8fcbdcbbf4db4726661
2022-02-21 14:44:45 +00:00
paulhu
e074dd2e34 Rename framework-connectivity-tiramisu to framework-connectivity-t
Bug: 215434166
Test: build, flash, device boot to home.
Merged-In: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
Change-Id: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
2022-02-20 15:10:27 +00:00
Anton Hansson
f67ce74fe6 Sort metalava_framework_docs_args
It was difficult to read.

Test: m nothing
Change-Id: I4af28967c146d6b1a27daea4f297e33b258bccfe
2022-02-18 19:27:16 +00:00
Baligh Uddin
15d4890f9c Merge "Remove apex/media - migrated to packages/modules/Media" am: 8aa8ce4f91
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987167

Change-Id: I13e1c0f75834c11957aaf5ed7e94da85ab325329
2022-02-18 01:34:37 +00:00
Baligh Uddin
8aa8ce4f91 Merge "Remove apex/media - migrated to packages/modules/Media" 2022-02-17 18:59:06 +00:00
Baligh Uddin
235f9b1078 Remove apex/media - migrated to packages/modules/Media
Fix references for local_include_dirs for aidl support.

BUG: 171106157
Test: Local build and TH
Merged-In: Ice516a0ab0819c4a076c394c05be1643461d4309
Change-Id: I3625bf1e262a031263d500b2c6129bf3c18cdeb2
2022-02-17 16:01:56 +00:00
Baligh Uddin
fba1cbe1cd Merge "Remove apex/media - migrated to packages/modules/Media" 2022-02-16 22:36:25 +00:00
Baligh Uddin
b8b46fde2a Remove apex/media - migrated to packages/modules/Media
Fix references for local_include_dirs for aidl support.

BUG: 171106157
Test: Local build and TH
Change-Id: Ice516a0ab0819c4a076c394c05be1643461d4309
2022-02-16 16:00:58 +00:00
Eran Messeri
ce0a0909de Merge "Upgrade KeyMint version" am: b2f12f933a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1988166

Change-Id: Ic3f772f99448cf501d97c2ef84a9051668fabf26
2022-02-16 15:49:55 +00:00
Eran Messeri
6c41bcee6f Upgrade KeyMint version
This is a cherry-pick of a change to internal master to upgrade the
KeyMint version.

The cherry-pick is necessary because the changes to support Curve
25519 will land in AOSP and there are currently merge conflicts for
Android.bp with internal master.

Bug: 194359292
Test: That it compiles.
Merged-In: I95191fd09b138bf3ba1cbb50534fdbdcf36d1596
Change-Id: Ibbd2f1ddd71ad855e26d59f72633c47351320ce6
2022-02-16 11:16:15 +00:00
Eran Messeri
4be1392293 Upgrade KeyMint version
Upgrade the KeyMint version the framework depends on to V2 (from V1).

This is necessary for the new constants related to Curve 25519.

Bug: 194359292
Test: That it compiles.
Change-Id: I95191fd09b138bf3ba1cbb50534fdbdcf36d1596
2022-02-15 11:12:59 +00:00
Xin Li
5ad6db7742 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5
Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
2022-02-11 07:25:43 +00:00
Leon Scroggins III
73e0689d8a getDisplayDecorationSupport: return more detailed info
Call the updated native version of getDisplayDecorationSupport (added in
I961051c0a660b596039ac04b546040764ee20d34), and convert the NDK struct
into a Java class. Depend on the graphics AIDLs, which now have Java
backends. A future CL will update SysUI to call the new API.

Add a PixelFormat for R_8 to correspond to the native version. This will
allow SysUI to use COLOR_MODE_A8 when the HAL reports R_8.

If64fd6924960f592b7a211371bc2ca6536ae34f7 demonstrates using this.

Bug: 216644902
Test: manual
Change-Id: I0e34c6d6e369fda0a96231ab38c3bd5f3bfe3e06
2022-02-09 17:30:29 -05:00
Junyu Lai
66760b299b [MS53] Add connectivity aidl exports to stubs
This is needed to solve the dependencies where platform
code such as ITelephony.aidl needs aidl definitions.

Test: TH
Bug: 204830222
Change-Id: Ie19a258c2e8a724dc087bc5ad5f8f522e29feca5
Merged-In: Ie19a258c2e8a724dc087bc5ad5f8f522e29feca5
2022-02-08 10:21:53 +00:00
Anton Hansson
9a4e4e9156 Merge "Auto-generate list of module impl jars" 2022-02-07 11:51:11 +00:00
Remi NGUYEN VAN
8f497e5c43 Merge changes from topic "ms52-movenetstats"
* changes:
  Expose MATCH_PROXY as a module-lib API.
  Add setPollForce to module API
  Move networkstats JNI to connectivity module
  [MS54.1] Move NetworkStats to updatable sources
  [MS62.1] Start NetworkStatsService from the module
2022-02-07 10:27:37 +00:00
Lorenzo Colitti
b5e914a343 Delete DhcpResults from frameworks/base.
This class is only used by NetworkStack, so move it to the
NetworkStack project.

Test: m
Change-Id: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
Merged-In: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
2022-02-07 06:03:11 +00:00
TreeHugger Robot
d44f10236a Merge changes from topic "no-dhcpresults"
* changes:
  [automerge] Delete DhcpResults from frameworks/base. 2p: a2ea37e61e
  Delete DhcpResults from frameworks/base.
2022-02-07 05:53:10 +00:00
Junyu Lai
a8f1f762eb [MS54.1] Move NetworkStats to updatable sources
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
2022-02-07 11:45:17 +09:00
Anton Hansson
95e89a8cb9 Auto-generate list of module impl jars
Eliminate another duplicated list of all modules. This one has a couple
of workarounds due to different naming of impl libs, and bluetooth not
being ready.

Bug: 169103987
Test: m framework-all and diff intermediates (no diffs)
Merged-In: Ia8627c6e3977cd271e389ec482388ff73661881d
Change-Id: Ia8627c6e3977cd271e389ec482388ff73661881d
2022-02-04 16:36:21 +00:00
Anton Hansson
23274eeff5 Auto-generate list of module impl jars
Eliminate another duplicated list of all modules. This one has a couple
of workarounds due to different naming of impl libs, and bluetooth not
being ready.

Bug: 169103987
Test: m framework-all and diff intermediates (no diffs)
Change-Id: Ia8627c6e3977cd271e389ec482388ff73661881d
2022-02-04 11:51:19 +00:00
Anton Hansson
add6d2edd7 Merge "Remove framework-appsearch.impl from framework" 2022-02-04 10:04:26 +00:00
Presubmit Automerger Backend
d316c590ab [automerge] Delete DhcpResults from frameworks/base. 2p: a2ea37e61e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16781268

Change-Id: I7c98eeef9b2a92dbce1014ce51eaca19d19e40d8
2022-02-03 15:52:01 +00:00
Lorenzo Colitti
a2ea37e61e Delete DhcpResults from frameworks/base.
This class is only used by NetworkStack, so move it to the
NetworkStack project.

Test: m
Change-Id: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
2022-02-04 00:51:11 +09:00
Junyu Lai
5bf2712005 [MS53] Add connectivity aidl exports to stubs
This is needed to solve the dependencies where platform
code such as ITelephony.aidl needs aidl definitions.

Test: TH
Bug: 204830222
Change-Id: Ie19a258c2e8a724dc087bc5ad5f8f522e29feca5
2022-02-03 00:27:59 +00:00
Anton Hansson
a73c19efda Remove framework-appsearch.impl from framework
Was only meant to be temporary. No longer needed, I hope.

Test: m
Change-Id: I1b31eb617026d48f9ba64e07ee0b1c0ae3597437
2022-01-28 17:01:31 +00:00
Remi NGUYEN VAN
0b692d5b50 Remove nearby API surface
It is being merged into the tethering/connectivity API surface, under
the existing framework-connectivity-t API.

Bug: 189355156
Test: m
Change-Id: I5878ffc1449f0eb19abdccd34d5c8ca1f711fbc8
2022-01-28 11:25:09 +09:00
Frank Wang
07861f70d3 Revert "Revert "Add SupplementalProcess stubs and bootclasspath ..."
Revert^2 "Add bootclasspath config in Auxiliary."

ba33413304d140c02bd8d2477576fb19889af031

Change-Id: I2e8f05406c90565b517f5d7d05aae0dc6d8a4200
2022-01-27 07:52:21 +00:00
Roopa Sattiraju
86058b62d8 Moving over core/api/*txt files
Bug: 196026708
Test: Compile
Merged-In: I636f00132a13467e63b08f21d9cc9dcaab250b8a
Change-Id: I636f00132a13467e63b08f21d9cc9dcaab250b8a
2022-01-26 14:21:29 -08:00
Roopa Sattiraju
8e30577d04 Moving over core/api/*txt files
Bug: 196026708
Test: Compile
Change-Id: I636f00132a13467e63b08f21d9cc9dcaab250b8a
2022-01-25 14:46:30 -08:00