platform_apis is incompatible with vendor:true under PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE. Revert to sdk_version current, read the hidden SystemProperties API via reflection instead (safe: this app is platform-signed, exempt from runtime hidden-API enforcement).
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
// Copyright (C) 2026 oxmc / PawletOS
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Board-specific device-info addon for the RPi family (rpi4/rpi5/cm4/cm5) --
|
|
// shared here because they use the same bootloader/EEPROM/VideoCore firmware
|
|
// model (same code path, different values), matching why this repo already
|
|
// exists shared between them. Read-only, no privileged permissions needed --
|
|
// see notes/axion-port-plan.md "Phase 2 selection" §1.
|
|
android_app {
|
|
name: "PawletRpiDeviceSettings",
|
|
srcs: ["src/**/*.kt"],
|
|
manifest: "AndroidManifest.xml",
|
|
resource_dirs: ["res"],
|
|
// sdk_version required here: platform_apis is incompatible with
|
|
// vendor:true under PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE (Treble
|
|
// forbids vendor apps depending on framework-internal APIs). The
|
|
// fragment reads SystemProperties via reflection instead, since it's a
|
|
// hidden API this sdk_version can't see at compile time.
|
|
sdk_version: "current",
|
|
vendor: true,
|
|
certificate: "platform",
|
|
static_libs: [
|
|
"androidx.appcompat_appcompat",
|
|
"androidx.preference_preference",
|
|
],
|
|
optimize: {
|
|
enabled: false,
|
|
},
|
|
dex_preopt: {
|
|
enabled: false,
|
|
},
|
|
}
|