product partition enforces PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE which disallows platform_apis. system_ext has no such restriction and is the correct home for ROM framework extensions.
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
// PawletOS Framework API Extensions
|
|
// Installed to product partition; visible to system apps and vendor subpackages.
|
|
|
|
java_library {
|
|
name: "pawlet-device",
|
|
srcs: ["core/java/pawletos/device/PawletDevice.java"],
|
|
platform_apis: true,
|
|
system_ext_specific: true,
|
|
installable: true,
|
|
visibility: [
|
|
"//packages/apps:__subpackages__",
|
|
"//vendor:__subpackages__",
|
|
],
|
|
}
|
|
|
|
java_library {
|
|
name: "pawlet-system",
|
|
srcs: [
|
|
"core/java/pawletos/device/system/PawletSystem.java",
|
|
"core/java/pawletos/device/system/PawletManager.java",
|
|
"core/java/pawletos/device/system/IPawletManager.aidl",
|
|
],
|
|
aidl: {
|
|
local_include_dirs: ["core/java"],
|
|
},
|
|
platform_apis: true,
|
|
system_ext_specific: true,
|
|
installable: true,
|
|
visibility: [
|
|
"//frameworks/base:__subpackages__",
|
|
"//packages/apps:__subpackages__",
|
|
"//vendor:__subpackages__",
|
|
],
|
|
}
|
|
|
|
// Service-side implementation — used by the privileged app that hosts the service.
|
|
java_library {
|
|
name: "pawlet-manager-service",
|
|
srcs: ["core/java/pawletos/device/system/PawletManagerService.java"],
|
|
libs: ["pawlet-system"],
|
|
platform_apis: true,
|
|
system_ext_specific: true,
|
|
visibility: [
|
|
"//packages/apps:__subpackages__",
|
|
"//vendor:__subpackages__",
|
|
],
|
|
}
|