Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 1 | java_library_static { |
Colin Cross | 4c0b06b | 2017-12-12 19:43:04 -0800 | [diff] [blame] | 2 | name: "services.core.unboosted", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 3 | |
| 4 | aidl: { |
| 5 | include_dirs: [ |
Mårten Kongstad | 06a1ac8 | 2018-09-20 13:09:47 +0200 | [diff] [blame] | 6 | "frameworks/base/cmds/idmap2/idmap2d/aidl", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 7 | "frameworks/native/aidl/binder", |
Nandana Dutt | b3f7168 | 2018-10-03 10:01:25 +0100 | [diff] [blame] | 8 | "frameworks/native/cmds/dumpstate/binder", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 9 | "system/core/storaged/binder", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 10 | "system/vold/binder", |
Howard Chen | 0a94764 | 2019-01-07 14:10:44 +0800 | [diff] [blame] | 11 | "system/gsid/aidl", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 12 | ], |
| 13 | }, |
| 14 | srcs: [ |
| 15 | "java/**/*.java", |
Nandana Dutt | b3f7168 | 2018-10-03 10:01:25 +0100 | [diff] [blame] | 16 | ":dumpstate_aidl", |
Mårten Kongstad | 06a1ac8 | 2018-09-20 13:09:47 +0200 | [diff] [blame] | 17 | ":idmap2_aidl", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 18 | ":installd_aidl", |
| 19 | ":storaged_aidl", |
| 20 | ":vold_aidl", |
Howard Chen | 0a94764 | 2019-01-07 14:10:44 +0800 | [diff] [blame] | 21 | ":gsiservice_aidl", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 22 | "java/com/android/server/EventLogTags.logtags", |
| 23 | "java/com/android/server/am/EventLogTags.logtags", |
| 24 | ], |
| 25 | |
| 26 | libs: [ |
| 27 | "services.net", |
| 28 | "android.hardware.light-V2.0-java", |
| 29 | "android.hardware.power-V1.0-java", |
| 30 | "android.hardware.tv.cec-V1.0-java", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 31 | ], |
| 32 | |
Anton Hansson | 11905c6 | 2018-11-27 12:10:30 +0000 | [diff] [blame] | 33 | required: [ |
| 34 | "gps_debug.conf", |
| 35 | ], |
| 36 | |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 37 | static_libs: [ |
| 38 | "time_zone_distro", |
| 39 | "time_zone_distro_installer", |
Andrew Scull | e6527c1 | 2018-01-05 18:33:58 +0000 | [diff] [blame] | 40 | "android.hardware.authsecret-V1.0-java", |
Tomasz Wasilczyk | d65b3ca | 2017-12-13 08:26:25 -0800 | [diff] [blame] | 41 | "android.hardware.broadcastradio-V2.0-java", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 42 | "android.hardware.health-V1.0-java", |
| 43 | "android.hardware.health-V2.0-java", |
| 44 | "android.hardware.weaver-V1.0-java", |
Kevin Chyn | 55a5b59 | 2018-06-15 12:12:18 -0700 | [diff] [blame] | 45 | "android.hardware.biometrics.face-V1.0-java", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 46 | "android.hardware.biometrics.fingerprint-V2.1-java", |
| 47 | "android.hardware.oemlock-V1.0-java", |
| 48 | "android.hardware.tetheroffload.control-V1.0-java", |
| 49 | "android.hardware.vibrator-V1.0-java", |
| 50 | "android.hardware.configstore-V1.0-java", |
| 51 | "android.hardware.contexthub-V1.0-java", |
Peter Kalauskas | 65589e9 | 2019-01-22 15:41:59 -0800 | [diff] [blame] | 52 | "android.hidl.manager-V1.2-java", |
Luke Huang | 13b79e8 | 2018-09-26 14:53:42 +0800 | [diff] [blame] | 53 | "netd_aidl_interface-java", |
Lorenzo Colitti | 31324cb | 2018-12-11 13:45:14 +0900 | [diff] [blame] | 54 | "netd_event_listener_interface-java", |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 55 | ], |
| 56 | } |
| 57 | |
| 58 | java_genrule { |
| 59 | name: "services.core.priorityboosted", |
Colin Cross | 4c0b06b | 2017-12-12 19:43:04 -0800 | [diff] [blame] | 60 | srcs: [":services.core.unboosted"], |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 61 | tools: ["lockedregioncodeinjection"], |
| 62 | cmd: "$(location lockedregioncodeinjection) " + |
Wale Ogunwale | db485de | 2018-10-29 09:47:07 -0700 | [diff] [blame] | 63 | " --targets \"Lcom/android/server/am/ActivityManagerService;,Lcom/android/server/wm/WindowManagerGlobalLock;\" " + |
Colin Cross | e0b2ee5 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 64 | " --pre \"com/android/server/am/ActivityManagerService.boostPriorityForLockedSection,com/android/server/wm/WindowManagerService.boostPriorityForLockedSection\" " + |
| 65 | " --post \"com/android/server/am/ActivityManagerService.resetPriorityAfterLockedSection,com/android/server/wm/WindowManagerService.resetPriorityAfterLockedSection\" " + |
| 66 | " -o $(out) " + |
| 67 | " -i $(in)", |
| 68 | out: ["services.core.priorityboosted.jar"], |
| 69 | } |
Colin Cross | 4c0b06b | 2017-12-12 19:43:04 -0800 | [diff] [blame] | 70 | |
| 71 | java_library { |
| 72 | name: "services.core", |
| 73 | static_libs: ["services.core.priorityboosted"], |
| 74 | } |
Anton Hansson | 11905c6 | 2018-11-27 12:10:30 +0000 | [diff] [blame] | 75 | |
| 76 | |
| 77 | prebuilt_etc { |
| 78 | name: "gps_debug.conf", |
| 79 | src: "java/com/android/server/location/gps_debug.conf", |
| 80 | } |