client: pawlet-client-sdk, public-SDK-only, installable:false, built for external AAR/jar publishing. device: pawlet-device, platform_apis:true, product-partition device API. system: pawlet-system + pawlet-manager-service, platform_apis:true, shared AIDL now a filegroup so client can compile its own copy without a ".." path reference. Removed core/java/pawletos/device/system/PawletManager.java -- a ServiceManager-based accessor that was never actually wired up (nothing ever called ServiceManager.addService), so it always returned null. PawletClient already covers this without a privileged-only path.
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
// PawletOS system API — installed to product partition; visible to system
|
|
// apps and vendor subpackages.
|
|
|
|
// Shared AIDL, exported so pawlet-client-sdk (in ../client) can compile its
|
|
// own independent copy of the interface without a ".." path reference —
|
|
// Soong doesn't allow srcs/local_include_dirs to reach outside a module's
|
|
// own directory, so a same-package filegroup is the standard escape hatch
|
|
// for sharing a source file across Android.bp files in different dirs.
|
|
filegroup {
|
|
name: "pawlet-manager-aidl",
|
|
srcs: ["java/pawletos/device/system/IPawletManager.aidl"],
|
|
visibility: ["//visibility:public"],
|
|
}
|
|
|
|
java_library {
|
|
name: "pawlet-system",
|
|
srcs: [
|
|
":pawlet-manager-aidl",
|
|
"java/pawletos/device/system/PawletSystem.java",
|
|
],
|
|
aidl: {
|
|
local_include_dirs: ["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: ["java/pawletos/device/system/PawletManagerService.java"],
|
|
libs: ["pawlet-system"],
|
|
platform_apis: true,
|
|
system_ext_specific: true,
|
|
visibility: [
|
|
"//packages/apps:__subpackages__",
|
|
"//vendor:__subpackages__",
|
|
],
|
|
}
|