Repository navigation
Conversation
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>
…tead of consuming all taps like before
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>
Change-Id: Ie444b3f36d320e3b56b7e757a228516a147b84c5 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>
Contributor
Author
|
This is one part of the coordinated AxSandbox series rebased after the SDK/service migration:
The controls are opt-in per app and preserve normal USB ADB and unrelated IPC. |
This was referenced Nov 4, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scope
This is the frameworks/base part of a coordinated multi-repository AxSandbox series. It is rebased onto the current crDroid 16.0 source after the service migration to vendor/addons.
Validation
The resulting series was runtime-tested on Android 16 QPR2 on Xiaomi sapphire. The patch applies cleanly to the current 16.0 tip.