1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_native_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_native_license"], 8} 9 10aidl_interface { 11 name: "framework-permission-aidl", 12 unstable: true, 13 local_include_dir: "aidl", 14 host_supported: true, 15 vendor_available: true, 16 double_loadable: true, 17 srcs: [ 18 "aidl/android/content/AttributionSourceState.aidl", 19 "aidl/com/android/internal/app/IAppOpsCallback.aidl", 20 "aidl/android/permission/IPermissionChecker.aidl", 21 ], 22} 23 24cc_library { 25 name: "libpermission", 26 host_supported: true, 27 double_loadable: true, 28 target: { 29 darwin: { 30 enabled: false, 31 }, 32 }, 33 cflags: [ 34 "-Wall", 35 "-Wextra", 36 "-Werror", 37 ], 38 srcs: [ 39 "AppOpsManager.cpp", 40 "IAppOpsService.cpp", 41 "android/permission/PermissionChecker.cpp", 42 ], 43 export_include_dirs: ["include"], 44 shared_libs: [ 45 "libutils", 46 "libbinder", 47 "libcutils", 48 "liblog", 49 ], 50 static_libs: [ 51 "framework-permission-aidl-cpp", 52 ], 53 export_static_lib_headers: [ 54 "framework-permission-aidl-cpp" 55 ], 56} 57