diff options
Diffstat (limited to 'Android.bp')
| -rw-r--r-- | Android.bp | 87 |
1 files changed, 80 insertions, 7 deletions
diff --git a/Android.bp b/Android.bp index 55d9c4bb2972..4e7eba26c6f1 100644 --- a/Android.bp +++ b/Android.bp @@ -95,8 +95,11 @@ filegroup { ":platform-compat-native-aidl", // AIDL sources from external directories + ":android.hardware.biometrics.common-V3-java-source", + ":android.hardware.biometrics.fingerprint-V3-java-source", ":android.hardware.gnss-V2-java-source", ":android.hardware.graphics.common-V3-java-source", + ":android.hardware.keymaster-V4-java-source", ":android.hardware.security.keymint-V2-java-source", ":android.hardware.security.secureclock-V1-java-source", ":android.hardware.tv.tuner-V1-java-source", @@ -213,12 +216,13 @@ java_library { "android.hardware.radio-V1.4-java", "android.hardware.radio-V1.5-java", "android.hardware.radio-V1.6-java", - "android.hardware.radio.data-V1-java", - "android.hardware.radio.messaging-V1-java", - "android.hardware.radio.modem-V1-java", - "android.hardware.radio.network-V1-java", - "android.hardware.radio.sim-V1-java", - "android.hardware.radio.voice-V1-java", + "android.hardware.radio.data-V2-java", + "android.hardware.radio.ims-V1-java", + "android.hardware.radio.messaging-V2-java", + "android.hardware.radio.modem-V2-java", + "android.hardware.radio.network-V2-java", + "android.hardware.radio.sim-V2-java", + "android.hardware.radio.voice-V2-java", "android.hardware.thermal-V1.0-java-constants", "android.hardware.thermal-V1.0-java", "android.hardware.thermal-V1.1-java", @@ -269,6 +273,59 @@ java_defaults { ], aidl: { generate_get_transaction_name: true, + enforce_permissions: true, + enforce_permissions_exceptions: [ + // Do not add entries to this list. + ":framework-annotations", + ":framework-blobstore-sources", + ":framework-core-sources", + ":framework-drm-sources", + ":framework-graphics-nonupdatable-sources", + ":framework-jobscheduler-sources", + ":framework-keystore-sources", + ":framework-identity-sources", + ":framework-location-sources", + ":framework-mca-effect-sources", + ":framework-mca-filterfw-sources", + ":framework-mca-filterpacks-sources", + ":framework-media-non-updatable-sources", + ":framework-mms-sources", + ":framework-omapi-sources", + ":framework-opengl-sources", + ":framework-rs-sources", + ":framework-sax-sources", + ":framework-telecomm-sources", + ":framework-telephony-common-sources", + ":framework-telephony-sources", + ":framework-vcn-util-sources", + ":framework-wifi-annotations", + ":framework-wifi-non-updatable-sources", + ":PacProcessor-aidl-sources", + ":ProxyHandler-aidl-sources", + ":net-utils-framework-common-srcs", + ":platform-compat-native-aidl", + ":credstore_aidl", + ":dumpstate_aidl", + ":framework_native_aidl", + ":gatekeeper_aidl", + ":gsiservice_aidl", + ":idmap2_aidl", + ":idmap2_core_aidl", + ":incidentcompanion_aidl", + ":inputconstants_aidl", + ":installd_aidl", + ":libaudioclient_aidl", + ":libbinder_aidl", + ":libbluetooth-binder-aidl", + ":libcamera_client_aidl", + ":libcamera_client_framework_aidl", + ":libupdate_engine_aidl", + ":logd_aidl", + ":resourcemanager_aidl", + ":storaged_aidl", + ":vold_aidl", + ":deviceproductinfoconstants_aidl", + ], local_include_dirs: [ "media/aidl", ], @@ -278,7 +335,10 @@ java_defaults { "packages/modules/Bluetooth/framework/aidl-export", "packages/modules/Connectivity/framework/aidl-export", "packages/modules/Media/apex/aidl/stable", + "hardware/interfaces/biometrics/common/aidl", + "hardware/interfaces/biometrics/fingerprint/aidl", "hardware/interfaces/graphics/common/aidl", + "hardware/interfaces/keymaster/aidl", ], }, dxflags: [ @@ -334,6 +394,7 @@ java_defaults { "av-types-aidl-java", "tv_tuner_resource_manager_aidl_interface-java", "soundtrigger_middleware-aidl-java", + "modules-utils-binary-xml", "modules-utils-build", "modules-utils-preconditions", "modules-utils-statemachine", @@ -363,10 +424,19 @@ java_library { ], lint: { extra_check_modules: ["AndroidFrameworkLintChecker"], + disabled_checks: ["ApiMightLeakAppVisibility"], + error_checks: [ + "ClearIdentityCallNotFollowedByTryFinally", + "NestedClearCallingIdentityCalls", + "NonFinalTokenOfOriginalCallingIdentity", + "RestoreIdentityCallNotInFinallyBlock", + "ResultOfClearIdentityCallNotStoredInVariable", + "UnusedTokenOfOriginalCallingIdentity", + "UseOfCallerAwareMethodsWithClearedIdentity", + ], }, errorprone: { javacflags: [ - "-Xep:AndroidFrameworkBinderIdentity:ERROR", "-Xep:AndroidFrameworkCompatChange:ERROR", "-Xep:AndroidFrameworkUid:ERROR", ], @@ -553,7 +623,10 @@ stubs_defaults { "packages/modules/Bluetooth/framework/aidl-export", "packages/modules/Connectivity/framework/aidl-export", "packages/modules/Media/apex/aidl/stable", + "hardware/interfaces/biometrics/common/aidl", + "hardware/interfaces/biometrics/fingerprint/aidl", "hardware/interfaces/graphics/common/aidl", + "hardware/interfaces/keymaster/aidl", ], }, // These are libs from framework-internal-utils that are required (i.e. being referenced) |