ec3e75de5d7981ba926acfb1a7c6a8249a3d2b68
Add IPawletManager AIDL interface, PawletManager client wrapper, and PawletManagerService implementation. The service is hosted by a privileged system app which calls: ServiceManager.addService(PawletManager.SERVICE_NAME, new PawletManagerService(this)); API surface: - Build info: getPawletVersion, getDisplayVersion, getReleaseType, getBuildDate - Device info: getDeviceCodename, getDeviceModel, getHardwarePlatform, getSerialNumber - Provisioning: isDeviceProvisioned, isUserSetupComplete - Feature flags: isFeatureEnabled / setFeatureEnabled (persist.pawlet.feature.*) - SDK version: getPawletSdkVersion PawletDevice: remove broken resource lookup, use system props directly; add isPawletDevice, getBuildVersion, getDisplayVersion, getReleaseType, getHardwarePlatform, getSerialNumber, getBuildDate. PawletSystem: remove dead SDK<24 branches; improve isRooted to check su binary paths and Magisk; keep isEmulator with same logic. sepolicy: vendor_internal_prop for persist.* and vendor.* props, dontaudit for system domains; fix file_contexts JAR labels. Android.bp: add aidl block, pawlet-manager-service java_library. AndroidManifest: minSdk 26, targetSdk 36.
PawletOS Framework API
This repository contains the PawletOS framework APIs, providing both system-level and device-level functionality for apps running on PawletOS builds.
Modules
1. System API (pawletos.device.system)
Intended for system apps.
Provides access to:
- Emulator detection
- Root status checks
- PawletOS detection
- Pawlet SDK version
- Locale information
Example usage in a system app:
import pawletos.device.system.PawletSystem;
boolean isEmulator = PawletSystem.isEmulator();
double sdkVersion = PawletSystem.getPawletSDKVersion();
2. Device API (pawletos.device)
Intended for user apps.
Provides access to device-specific information:
- Brand and codename
- Custom build properties (
ro.pawlet.build.*) - Manufacture date, series, warranty info
Example usage in a user app:
import pawletos.device.PawletDevice;
String brand = PawletDevice.getBrandName(context);
String series = PawletDevice.getSeries();
Languages
Java
85.9%
AIDL
14.1%