52 Commits

Author SHA1 Message Date
oxmc
b5109e8712 build: move pawlet libraries to system_ext partition
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.
2026-06-15 01:03:45 -07:00
oxmc
6c2d35f7c8 build: use platform_apis for pawlet libraries
ServiceManager and other @hide APIs are not in system_current stubs.
These are ROM-internal libraries; platform_apis gives full access.
2026-06-15 01:01:45 -07:00
oxmc
fb32881008 build: convert java_sdk_library to java_library
java_sdk_library metalava from-text stub compilation fails with
@RecentlyNonNull not public in stub-annotations turbine jar — a
build system limitation for non-framework sdk libraries. java_library
provides identical runtime functionality without the stub machinery.

Dependents reference pawlet-system directly instead of .stubs.system.
2026-06-15 00:55:09 -07:00
de2cd5b1b5 api: use platform type (String!) for SERVICE_NAME field
Bare String in format 4.0 generates @RecentlyNonNull in from-text stubs
which is not public in stub-annotations and causes a javac error.
2026-06-15 07:50:02 +00:00
f75dfa2660 api: update system/current.txt to match actual API surface
PawletManager and updated PawletSystem methods added; generated by
m pawlet-system.stubs.source-update-current-api.
2026-06-15 07:46:17 +00:00
oxmc
359bc53e37 api: normalise all signature files to format 4.0
Metalava rejects a mix of format 2.0 and 4.0 files within the same
sdk_library because they have different kotlin-style-nulls settings.
All placeholder files were on 2.0; bump them to match current.txt.
2026-06-15 00:35:36 -07:00
oxmc
ca279062f0 Android.bp: depend on pawlet-system.impl in pawlet-manager-service
java_library cannot depend on a java_sdk_library directly; use the .impl
variant which exposes the full implementation including AIDL-generated stubs.
2026-06-12 20:36:10 -07:00
oxmc
ec3e75de5d frameworks_pawlet: add PawletManager service + clean up APIs
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.
2026-06-12 20:02:46 -07:00
51a93970d9 Gen api info 2025-11-29 19:16:24 +00:00
21f0cd7f31 Update Android.bp 2025-09-09 12:59:48 -07:00
6c1abc1fef Update core/java/pawletos/device/system/PawletSystem.java 2025-09-09 12:58:45 -07:00
139351d30c Add api/system/current.txt 2025-09-09 12:52:55 -07:00
83782cf37d Update api/device/current.txt 2025-09-09 12:50:22 -07:00
c293c0d6ae Update Android.bp 2025-09-09 12:49:44 -07:00
3908f1ff1a Update Android.bp 2025-09-09 12:43:13 -07:00
693b119579 Update Android.bp 2025-09-09 12:31:27 -07:00
aaf7859d6d Update api/current.txt 2025-09-09 12:31:16 -07:00
1592a072c6 Update Android.bp 2025-09-09 12:30:53 -07:00
2aa17a9a03 Update README.md 2025-09-09 05:52:49 -07:00
c8b54ba315 Add core/java/pawletos/device/PawletSystem.java 2025-09-09 05:33:48 -07:00
458b27eda2 Update core/java/pawletos/device/PawletDevice.java 2025-09-09 05:33:28 -07:00
feb7c126db Update Android.bp 2025-09-09 05:29:14 -07:00
a5ad479170 Update sepolicy/pawlet_device.te 2025-08-19 18:33:31 -07:00
3d47277ba4 Update sepolicy/property_contexts 2025-08-19 18:33:12 -07:00
0ca2b66a01 Update sepolicy/property_contexts 2025-08-19 15:45:26 -07:00
684e69d5bd Update sepolicy/file_contexts 2025-08-19 15:45:03 -07:00
2aef82416e Update sepolicy/pawlet_device.te 2025-08-19 15:44:37 -07:00
82121f7641 Update sepolicy/pawlet_device.te 2025-08-19 15:31:40 -07:00
423e1f468b Update sepolicy/pawlet_device.te 2025-08-19 12:58:48 -07:00
91e088d936 Update sepolicy/pawlet_device.te 2025-08-19 12:52:20 -07:00
f48e987043 Update sepolicy/pawlet_device.te 2025-08-19 12:35:06 -07:00
c7b42efb04 Update sepolicy/property_contexts 2025-08-19 12:25:18 -07:00
e7bb6cadb7 Update sepolicy/pawlet_device.te 2025-08-19 12:24:49 -07:00
e422827eba Update Android.bp 2025-08-19 00:48:12 -07:00
31eacf9667 Add AndroidManifest.xml 2025-08-19 00:45:22 -07:00
2f3da02e6e Update Android.bp 2025-08-19 00:44:30 -07:00
52ef3eb7e6 Update Android.bp 2025-08-19 00:24:36 -07:00
d71a907c7c Update sepolicy/property_contexts 2025-08-19 00:21:41 -07:00
3fceb41cef Update Android.bp 2025-08-19 00:19:55 -07:00
oxmc
5fb77a4e15 merge libs, lol 2025-08-19 00:08:57 -07:00
oxmc
38f972c8b3 did i need that? 2025-08-19 00:07:49 -07:00
oxmc
1ca1201d25 idk 2025-08-19 00:05:46 -07:00
oxmc
cb236ba24b ignore warnings for now 2025-08-19 00:01:44 -07:00
oxmc
1f4bf7f8f1 fix 2025-08-18 23:57:55 -07:00
oxmc
62d375d885 now? 2025-08-18 23:51:26 -07:00
oxmc
d7e1d8e500 Maybe? 2025-08-18 23:48:51 -07:00
oxmc
522b53ac22 Fix comments 2025-08-18 23:46:42 -07:00
oxmc
9d96f458a8 Read docs lol 2025-08-18 23:43:02 -07:00
oxmc
752e05ce4c Change a few things 2025-08-18 21:34:17 -07:00
oxmc
da25fa7bbc Modify files 2025-08-18 19:50:49 -07:00