Skip to content

DeviceConfig: make product overrides authoritative - #1371

Open
pbzin wants to merge 1040 commits into
crdroidandroid:16.0from
pbzin:crdroid16-deviceconfig-overrides-20261104
Open

pbzin wants to merge 1040 commits into
crdroidandroid:16.0from
pbzin:crdroid16-deviceconfig-overrides-20261104

Conversation

@pbzin

@pbzin pbzin commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Compare namespace and property names by value instead of Java object identity.
  • Allow the trusted default writer through its own write guard.
  • Restore only the affected override after namespace or property updates.
  • Ignore malformed override entries safely.

This replaces the earlier closed proposal with a patch rebased onto the current crDroid 16.0 implementation.

bijoyv9 and others added 30 commits October 25, 2026 08:30
Refactor and enhance charging information handling in the Dynamic Bar
keyguard chip to improve readability, stability, and UI behavior.

Key changes:
- Split extended charging metrics into a structured 2-line layout:
  primary (charging status) and secondary (current, wattage, voltage,
  temperature).
- Replace single-line text rendering with a Column-based layout to
  properly support multi-line content and visual hierarchy.
- Dynamically adjust chip height and use flexible width constraints
  with animateContentSize for smoother transitions.
- Normalize and sanitize charging strings using a centralized helper
  (rememberChargingParts), ensuring consistent parsing across all
  call sites.
- Harden parsing logic with trimming, filtering, and bounded splitting
  (limit = 3) to prevent malformed or unexpected upstream strings from
  breaking UI layout.
- Improve fallback handling to avoid empty or invalid text states.

This results in a cleaner, more readable charging UI while maintaining
backward compatibility and stable behavior under edge cases.

Change-Id: I7453d8658c8f488b58e277184e6551a644a2ac3d8
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ief617c2e09f6fd7dd6fcdd4fccad792994a89e8f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* This follows AOSP implementation.
* Shows animation only when playing.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Add and activate dismiss swipe lock when seekbar is dragged.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Log:

04-05 20:50:06.914  3367  3367 E AndroidRuntime: FATAL EXCEPTION: main
04-05 20:50:06.914  3367  3367 E AndroidRuntime: Process: com.android.systemui, PID: 3367
04-05 20:50:06.914  3367  3367 E AndroidRuntime: java.lang.IllegalArgumentException: Cannot coerce value to an empty range: maximum -1 is less than minimum 0.
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at kotlin.ranges.RangesKt.coerceIn(Unknown Source:4)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at com.android.systemui.axdynamicbar.data.source.MediaIslandManager.computeAccuratePosition(go/retraceme 61f176ec53da69ea03ac24bf6b1fe9234e01c1a6dba2adebc10fa8a4d739f574:98)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at com.android.systemui.axdynamicbar.data.source.MediaIslandManager$mediaListener$1.onPrimaryMetadataOrStateChanged(go/retraceme 61f176ec53da69ea03ac24bf6b1fe9234e01c1a6dba2adebc10fa8a4d739f574:147)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at com.android.systemui.media.NotificationMediaManager$$ExternalSyntheticLambda3.run(go/retraceme 61f176ec53da69ea03ac24bf6b1fe9234e01c1a6dba2adebc10fa8a4d739f574:35)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:1070)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:125)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at android.os.Looper.dispatchMessage(Looper.java:333)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:263)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:367)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9298)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:569)
04-05 20:50:06.914  3367  3367 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Id091a6747c1a95f22b95ec09880704c6971ed94e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Squashed:

SystemUI: DynamicBar: Stop charging bolt glow on lock screen when fully charged
SystemUI: DynamicBar: Draw the battery level in the charging bolt on lock screen
SystemUI: DynamicBar: Adjust charging bolt icon shape on lock screen

Signed-off-by: iusmac <iusico.maxim@libero.it>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: If07ddc65c7739f8e315c9d227d90686f3712536e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I69d644c877310fda83d78944b0236d0fa8992a22
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: iusmac <iusico.maxim@libero.it>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Allow the dynamic bar flashlight slider to include 0 so users can turn the torch off
without dismissing the controls. While the torch is off from the slider, keep the torch
event visible at 0% so sliding upward can re-enable the light.

Dismiss and stop actions now clear the retained event and only toggle the torch when it
is actually on, so pressing stop at 0% does not turn it back on.

When re-enabling from 0%, only call setEnabled(true) for the remembered-level no-op case;
otherwise let setLevel() or setTemporaryLevel() turn the torch on at the requested strength
to avoid racing back to the default level.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
with additional fixes to octet, key handling and certificate hacks

Co-authored-by: Dakkshesh <beakthoven@gmail.com>
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
Change-Id: I46d094ec85cf3646c37f6518093e79334a15fbaa
Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ica634c23dbd190b5dcadcd28b26826ffcf410b0d
Co-authored-by: reveny <113244907+reveny@users.noreply.github.com>
Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ie45cd7460ca8e6c3fa75e284e9727dc5e791782b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I87b7178847d680c411625a3eec08aee71e4d93e0
Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I11c1f9e2f51d999aaf451264c328d434f8e54602
Co-authored-by: osm0sis <osm0sis@outlook.com>
Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ib10372342d456f1929d65a674b0a291a35295923
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I26c849f219c6ce0fe7239c55e0ac9ad3356bb912
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
existing design was based on module structure and legacy prop hook spoofing. that design only works with hardcoded spoof values and code injection like lsposed or magisk. for proper aosp integration it falls apart, /data/adb exposes root detection signals and leaks identity to apps because the spoof logic runs under the calling process context instead of system_server.

old flow
process -> spoof runs inside process, uses process identity -> hits selinux denials and content provider denials if we tried to route through settings provider

new flow
process -> am binder -> am -> spoof runs in system_server -> no denials, no identity leak

Change-Id: Id892adfb32d95d9cc7e21baaf26fc2d8952b08f2
Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Arman-ATI and others added 29 commits October 25, 2026 12:17
…n GMS builds

Log:

08-31 01:15:02.839 E/AndroidRuntime( 3276): FATAL EXCEPTION: main
08-31 01:15:02.839 E/AndroidRuntime( 3276): Process: com.google.android.gms.persistent, PID: 3276
08-31 01:15:02.839 E/AndroidRuntime( 3276): java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder android.os.IInterface.asBinder()' on a null object reference
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.os.RemoteCallbackList.unregister(RemoteCallbackList.java:482)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.net.wifi.sharedconnectivity.service.SharedConnectivityService.onUnregisterCallback(SharedConnectivityService.java:284)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.net.wifi.sharedconnectivity.service.SharedConnectivityService.-$$Nest$monUnregisterCallback(Unknown Source:0)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.net.wifi.sharedconnectivity.service.SharedConnectivityService$1.lambda$unregisterCallback$1(SharedConnectivityService.java:111)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.net.wifi.sharedconnectivity.service.SharedConnectivityService$1.$r8$lambda$TC0y9NERF7C1eSEUW-oKVXCGeg8(Unknown Source:0)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.net.wifi.sharedconnectivity.service.SharedConnectivityService$1$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.os.Handler.handleCallback(Handler.java:995)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.os.Handler.dispatchMessage(Handler.java:103)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.os.Looper.loopOnce(Looper.java:248)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.os.Looper.loop(Looper.java:338)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at android.app.ActivityThread.main(ActivityThread.java:9063)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at java.lang.reflect.Method.invoke(Native Method)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596)
08-31 01:15:02.839 E/AndroidRuntime( 3276): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
…ilure

Parcel.readException() rethrows IllegalStateException from the remote
service in the caller's process. When GMS's shared connectivity service
is bound before its Chimera module is ready, it throws "Service without
Chimera impl", which escapes registerCallbackInternal() (it only catches
RemoteException) and takes down SystemUI on the main thread.

Log:

10-08 12:11:42.261  2216  2216 E AndroidRuntime: FATAL EXCEPTION: main
10-08 12:11:42.261  2216  2216 E AndroidRuntime: Process: com.android.systemui, PID: 2216
10-08 12:11:42.261  2216  2216 E AndroidRuntime: java.lang.IllegalStateException: Service without Chimera impl
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Parcel.createExceptionOrNull(Parcel.java:3400)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Parcel.createException(Parcel.java:3376)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:3359)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Parcel.readException(Parcel.java:3301)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.net.wifi.sharedconnectivity.service.ISharedConnectivityService$Stub$Proxy.registerCallback(ISharedConnectivityService.java:273)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.net.wifi.sharedconnectivity.app.SharedConnectivityManager.registerCallbackInternal(SharedConnectivityManager.java:435)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.net.wifi.sharedconnectivity.app.SharedConnectivityManager.-$$Nest$mregisterCallbackInternal(SharedConnectivityManager.java:0)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.net.wifi.sharedconnectivity.app.SharedConnectivityManager$1.lambda$onServiceConnected$0(SharedConnectivityManager.java:312)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.net.wifi.sharedconnectivity.app.SharedConnectivityManager$1.$r8$lambda$mlb7fWhC1Zt_3xRG12STYw0qiDg(SharedConnectivityManager.java:0)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.net.wifi.sharedconnectivity.app.SharedConnectivityManager$1$$ExternalSyntheticLambda0.accept(D8$$SyntheticClass:0)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at java.util.HashMap$KeySet.forEach(HashMap.java:1017)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.net.wifi.sharedconnectivity.app.SharedConnectivityManager$1.onServiceConnected(SharedConnectivityManager.java:311)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.content.ServiceConnection.onServiceConnected(ServiceConnection.java:75)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2453)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2489)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:1095)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Handler.dispatchMessageImpl(Handler.java:135)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:125)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:296)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:397)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9581)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
10-08 12:11:42.261  2216  2216 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:939)

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I7fce2943228b4c7790f539de822460525cd44255
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Resolve the three strings once in the constructor instead of on every
health update. They come from (vendor) overlay apks, so looking them up
per update can block on overlay I/O while mLock is held.

Signed-off-by: Quince <quinceroms@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Ensure vold creates Android/media/<pkg> alongside data and obb dirs
during user storage preparation, so proper ACLs are applied.

Change-Id: Ia684c007eda0c09fbc58cd426f33d43a
Signed-off-by: Quince <quinceroms@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I83cd3973ca486c35657520077308fb82c82c195a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Only root apps, core UIDs, system/privileged apps, SystemUI and the default launcher
can keep full visibility.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
- Singleton getInstance() with double-checked locking
- WeakReference<Context> to prevent memory leaks
- Private constructor
- getResourcesForPackage() helper to deduplicate android/package lookup
- Null-guard on currentPackageName in setOverlayEnabled() to prevent
  NPE when no overlay is currently enabled in the category
- Null-check mContext.get() in writeSettings() and createShapeDrawable()
  before dereferencing
- Remove stale overlayRes instance field; all resource lookups now go
  through the local helper

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Co-authored-by: Blaster4385 <TheTablaster@aospa.co>
Co-authored-by: Anierin Bliss <anierin.t.bliss@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* We can check loaded keybox to derive boot hash. For this, trickystore must be
  initialized. Hence, delay initBootHash() call in SystemServer.
* If boot hash is still not available, let's not leave it empty. Generate random
  bytes to keep detector apps happy.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
…ed font

Font overlays only override config_headlineFontFamily and
config_bodyFontFamily (and their Medium variants). Since Android 16
QPR1, most system text is styled with the Material 3 Expressive
variable-* families instead: SettingsLib expressive text (Settings
titles, for example), notifications and SettingsLib Spa all name them
directly. So a font picked in ThemePicker only showed up on text that
still goes through the config strings, like the launcher and preference
summaries, and with the default font that text didn't match the rest
of the system either.

Point the variable-* families of system apps at the selected font:
display, headline and title at the headline family, body and label at
the body family, keeping the weight each variable family defines.
ActivityThread passes the families from the app's resources, where the
font overlay applies, at bind time and after every application info
change. Third-party apps keep the variable-* families as defined.

Signed-off-by: sidharthify <wednisegit@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
FontController already passes variable-* families through untouched
when Google Sans Flex is the active font, so optical sizing and ROND
axis values from fonts_customization.xml are preserved. The variable
family remap in Typeface.getSystemDefaultTypeface() sits behind that
pass-through, so system apps would still have variable-* replaced by
the config headline/body family at the variable family's weight,
undoing what the pass-through preserves.

Skip the remap in ActivityThread.updateVariableFontFamilies() when the
body family is the default font, using a new
FontController.isDefaultFont() helper. FontController's own
pass-through check now uses the same helper, so the default font is
detected in one place.

handleApplicationInfoChanged() passed getApplication() straight into
updateVariableFontFamilies(), which dereferences the context. An app
info change delivered before the application is created would hit a
null there. Only update the families once the application exists.

Bug: System apps on the default font had variable-* remapped to the
config families, dropping optical sizing and ROND axis values.
Bug: handleApplicationInfoChanged() could throw a NullPointerException
if it ran before the application was created.
Test: Default font: Settings titles, notification text and SystemUI
keep the Google Sans Flex variable styling.
Test: Pick a custom font in ThemePicker: variable-* text in Settings,
SystemUI and notifications follows the selected font.

Assisted-by: Claude/sonnet-5
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Typeface.changeFont() replaces Typeface.DEFAULT with the typeface of
the selected font. FontController still treats a lookup that returns
Typeface.DEFAULT as a missing family, so resolveDefaultTypeface() and
resolveNamedVariant() now throw away the selected font itself. The
base typeface then falls back to google-sans-flex, and variable-*
families at weight 400 and below, such as variable-body-medium, are
built from it instead of the selected font.

Add Typeface.getSystemTypeface(), which returns null for an unknown
family instead of Typeface.DEFAULT, and use it in both lookups.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
[neobuddy89: Backported for Android 16]

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
The font updater treated a shipping API below Android 11 as missing fs-verity, which blocked custom fonts on kernels that actually support it.

Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
handleApplicationInfoChanged() read getApplication() twice to compare
the app's ResourcesImpl before and after applying the pending app info
updates, and only checked it for null before updating the variable font
families. A null application would have thrown at the first of those
reads, so the later check could never be reached. Read the application
once, treat a null application as having no ResourcesImpl, and skip the
asset change logging when either ResourcesImpl is missing. The pending
app info updates are still applied in that case.

TextView.onConfigurationChanged() passed mFontFamily straight into
Typeface.getOverrideTypeface() whenever the system font name changed.
mFontFamily is null for views without a fontFamily attribute, which
resolves to Typeface.DEFAULT, so setTypeface() replaced any typeface
those views had set in code. Only reapply the override when mFontFamily
is set; mLastResolvedSystemFont is still updated.

Assisted-by: Claude/sonnet-5
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* StatusBarHeaderMachine: run provider work on a background thread,
  re-register settings observer on reattach (was lost after detach),
  scope update broadcast to SystemUI (not exported), reload on user switch
* DaylightHeaderProvider: fix infinite parser loop on random packs with
  day/hour entries, reset header index on pack load (OOB on smaller pack),
  sort hour headers before matching, tolerate malformed attributes
* StaticHeaderProvider: cache drawable to avoid reloading and self
  crossfade on every screen-on, release it when disabled
* FileHeaderProvider: downsample to display size instead of decoding
  full-res images, copy atomically, track source URI so a URI written
  before provider switch isn't missed, store per user
* NotificationPanelViewController: apply shadow changes immediately,
  release header drawable and stop animation on disable

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Android 17 rejects attempts to replace Typeface.DEFAULT and related
public static final fields at runtime.

Update the default typeface map through changeDefaultFontForTest. This
safely updates the runtime default without aborting SystemUI.

Change-Id: Idf5d62a04f66e9edb2bd419a95c2fd42869b96d8
Signed-off-by: Sean Du <do4suki@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Apps like Play Store ship their own Google Sans in res/font or fetch it
from the GMS font provider. These paths all end in
Typeface.CustomFallbackBuilder.build() and never reach the name-based
override, so the provider fetch replaced the selected font a second or
two after launch.

* Redirect bundled/downloaded UI fonts to selected fonts.
* Publish "user-custom-font" marker family when using custom fonts.
* Drop SYS_OVERRIDE_FONTS and SYS_OVERRIDE_APPS.
* Re-apply the font on ApplicationInfo changes and add null guard.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Stop adding fontWeightAdjustment in the named-family
  override, since TextView and Compose already apply it.
* Harden static default retarget.
* Remove redundant null checks.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Harden keybox validation, parsing, and refresh handling.
* Improve certificate generation and legacy Keymaster compatibility.
* Fix Keystore certificate consistency and import handling.
* Prevent redundant certificate signing and improve error recovery.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
The leaf-hack path rebuilt RootOfTrust from AttestationUtils fallbacks
(prop -> keybox-derived -> random) instead of the boot key/hash the TEE
actually measured and placed in the original leaf. On a device with
working verified boot these are authoritative and self-consistent with
ro.boot.vbmeta.public_key_digest; substituting our own values is both
less correct and a fingerprint.

Lift verifiedBootKey (index 0) and verifiedBootHash (index 3) from the
original leaf's RootOfTrust via a new rootOfTrustOctet() helper, falling
back to AttestationUtils only when the original carries no usable value
(older 3-element Keymaster RoT). Software-only generation is unaffected.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
…tion fails

generateKeyPair() chose GENERATE vs HACK up front from a cached global
isTeeBroken() flag. On a HACK key, if the hardware generateKey() threw or
returned a null-certificate entry (transient RKP exhaustion, provisioning
hiccup), the whole request failed with a ProviderException and the key was
deleted -- a hard attestation failure where recovery was possible.

Keep isTeeBroken() as the fast-path hint but let the actual hardware
result decide: on a needHack key with no usable attested cert, drop the
stub entry and build a software keybox-signed key instead. Extract the
software path into buildSoftwareAttestedKey(). StrongBox requests
(needHack always false) keep their exact prior behavior.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.