First slice of the app_Settings fork (PawletOS/axion-port-plan.md, design rule 6 explicitly waived for this app): folds in what used to be a patch against stock AOSP Settings (pawletos-about-device-cards.patch, now retired in the patches repo) as direct fork edits, then extends it. Card-grid header (device icon, OS-version card, device-model card, summary line) is the same content the retired patch added, now native rather than patched in. New "Hardware" preference category adds only the stats stock Settings doesn't already surface anywhere on this screen: total RAM, screen resolution, camera megapixel summary, battery design capacity. Model, hardware revision, serial, manufactured year, kernel version, security patch, build number, and storage used/total are NOT duplicated here -- HardwareInfoFragment, FirmwareVersionSettings, and StorageUsageProgressBarPreferenceController already provide them. PawletDeviceInfoProvider (reimplemented with AxionOS's ax_deviceinfo as a design reference only, no code copied -- that repo ships no LICENSE file) backs the four new rows, matching BasePreferenceController's getAvailabilityStatus()/getSummary() pattern already used throughout this codebase (see SerialNumberPreferenceController). Each row checks a persist.pawlet.hw.* SystemProperties override first, then falls back to live detection (MemInfoReader, DisplayManager, Camera2 CameraCharacteristics, BatteryManager+PowerProfile); a row hides itself (UNSUPPORTED_ON_DEVICE) if neither an override nor a queryable value exists, so a board without a battery or camera just shows fewer rows. Not yet done: AndroidDeviceInfo library integration, WebView-provider picker migration from the retired app_PawletSettings, general-toggle screens, manifest wiring to actually build this fork. Not built/tested -- no AOSP tree pointed at this fork yet to validate against.
7 lines
239 B
XML
7 lines
239 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:shape="rectangle">
|
|
<corners android:radius="16dp" />
|
|
<solid android:color="?attr/colorSurfaceVariant" />
|
|
</shape>
|