Repository navigation
Glide 5.0.10 & Compose / KTX 1.0.0-beta11 Release Notes
Includes all public changes since v5.0.9 (PR #5721, 2026-07-10).
Security
HttpUrlFetcher: Strip sensitive request headers (Authorization,Proxy-Authorization,Cookie,Cookie2) on cross-origin HTTP redirects by default when handling redirects manually. Can be configured viaGlideBuilder.experimentalSetStripSensitiveHeadersOnCrossOriginRedirects(boolean).
Bug Fixes
GlideException: Prevent aNullPointerException(rethrown asCallbackException) inGlideException.printStackTrace()when logging a failed load whose cause list containsnull.UriBitmapImageDecoderResourceDecoderMIME & OS guards:- Reject non-image URIs (such as videos and GIFs) in
UriBitmapImageDecoderResourceDecoder.handles()via a positiveimage/*MIME type check so non-image content URIs are not passed toImageDecoder. - Restrict
UriBitmapImageDecoderResourceDecoderto Android 15+ (API 35+) to avoid native container descriptor race conditions on older OS versions.
- Reject non-image URIs (such as videos and GIFs) in
ImageDecoderdecode fallback: CatchDecodeExceptionandIOExceptioninBitmapImageDecoderResourceDecoder.decode()and returnnullsoDecodePathfalls back cleanly toDownsamplerand other registered decoders instead of failing the load.- Active resource release race (#5782): Add
GlideBuilder.experimentalSetEnableActiveResourceReleaseRaceFix(boolean)soEngine.load()skips active resources whose reference count has already dropped to zero, preventingIllegalStateException: Cannot recycle a resource while it is still acquired. RGB_565allocation size (#4490, #4461): AddGlideBuilder.experimentalSetEnableRgb565DownsamplerFix(boolean)to fix allocating twice the required memory when downsamplingRGB_565bitmaps.- In-memory models passed via
load(Object): AddGlideBuilder.experimentalSetUseTypedLoadForInMemoryObjects(boolean)soRequestBuilder.load(Object)delegates to the typedload(Bitmap),load(Drawable), andload(byte[])overloads when the runtime model is one of those types, applying the expected default disk/memory cache strategies (e.g. from ComposeGlideImage).
Features & Performance
- Direct file-descriptor
ImageDecodersupport (Android 10+): AddParcelFileDescriptorBitmapImageDecoderResourceDecoderandAssetFileDescriptorBitmapImageDecoderResourceDecoderbehindGlideBuilder.setPrioritizeFileDescriptorOverInputStream(boolean)(used alongsidesetImageDecoderEnabledForBitmaps(true)), prioritizingParcelFileDescriptorandAssetFileDescriptorModelLoaders overInputStreamModelLoaders and decoding directly from file descriptors without buffering streams on the Java heap. Also allowsframe(0)requests on still images to useImageDecoder. - Stream fallback when
ImageDecoderis enabled: AddGlideBuilder.setUseBitmapFactoryForInputStreamsWithImageDecoder(boolean)soInputStreamsources decode incrementally viaBitmapFactory(StreamBitmapDecoder) instead of buffering the entire stream into a contiguousByteBuffer, avoidingOutOfMemoryErroron large images while keepingImageDecoderfor in-place sources (File,ParcelFileDescriptor,AssetFileDescriptor,Uri,ByteBuffer). - EXIF orientation & minimum target size in
ImageDecoder: AddGlideBuilder.setRespectExifOrientationInImageDecoder(boolean)to inspect EXIF orientation ahead of decode and selectALLOCATOR_SOFTWAREwhen rotation is required (avoiding hardware bitmap GPU readbacks), while clampingImageDecoder.setTargetSizedimensions to at least1pxon extreme aspect ratios. - Fast-path URI extension check: Check file extensions from URI path segments in
UriBitmapImageDecoderResourceDecoder.handles()before falling back toContentResolver.getType(uri), avoiding synchronous Binder IPC for standard image URIs. - Bypass transformations for
HARDWAREbitmaps: AddDownsampler.BYPASS_TRANSFORMATIONS_FOR_HARDWARE_BITMAPS(effective whenDownsampler.ALLOW_HARDWARE_CONFIGis enabled) so display-only layouts where the targetImageViewhandles scaling/cropping can skip software-canvas bitmap transformations when the decoded resource isBitmap.Config.HARDWARE. - Bypass resource disk cache for
HARDWAREbitmaps: AddGlideBuilder.setBypassResourceDiskCacheForHardwareBitmaps(boolean)to skip compressingBitmap.Config.HARDWAREresources into the resource disk cache, avoidingRenderThreadGPU readbacks and transient software bitmap copies on decode threads. - Disk cache path-name memoization disabled by default: Disable eager
Filepath-name memoization by default inDiskLruCacheWrapper/DiskLruCacheto reduce retained heap memory for large disk caches. - Background memory trimming on
TRIM_MEMORY_UI_HIDDEN: AddGlideBuilder.experimentalSetEnableTrimMemoryOnUiHidden(boolean)sosetMemoryCategoryInBackground(MemoryCategory)also applies when the app transitions toComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN. - Unlimited source executor configuration: Add
GlideBuilder.setSourceUnlimitedExecutor(GlideExecutor)andGlideExecutor.newUnlimitedSourceBuilder()to allow customizingUncaughtThrowableStrategyand thread pool parameters for unlimited source loads.
Integrations & Submodules
- Compose (
1.0.0-beta11):- Add
GlideBuilder.experimentalSetClearGlidePainterOnStop(boolean)soGlidePainterclears active requests and releasesBitmap/Drawablereferences when the hostLifecycleOwnermoves belowSTARTED(ON_STOP), automatically restarting onON_START. - Update required Java/JVM target version for
:integration:composeto Java 11.
- Add
- KTX (
1.0.0-beta11):- Bump version to
1.0.0-beta11alongside:integration:compose.
- Bump version to
- Cronet:
- Add opt-in
ChromiumUrlLoader.Options.Builder#setGuardActiveJobEviction(boolean)to verify job identity before evicting an active URL entry on asynchronous cancellation/completion callbacks. - Downgrade expected Cronet network request failure logs in
ChromiumRequestSerializerfromERRORtoWARN.
- Add opt-in
- Concurrent (
futures):- Replace restricted
CallbackToFutureAdapter/AbstractResolvableFutureusage inGlideFutureswith a customAbstractFutureimplementation, propagate synchronoussubmit()exceptions through the returnedListenableFuture, and drop the unusedandroidx.concurrent:concurrent-futuresdependency.
- Replace restricted
DiskLruCache:- Add single-value convenience overloads
DiskLruCache.open(directory, appVersion, maxSize)andValue.getFile(), and remove legacy multi-value entry complexity.
- Add single-value convenience overloads
Internal Cleanup & Build / Dependency Updates
- Narrow internal
Engine,ActiveResources,Jobs,EngineJob, andEngineResourcetracking keys fromKeytoEngineKey, standardize engine field ordering, remove unreachable pre-API 23 branches (minSdkVersionis 23), removeUtil.setSdkVersionInt, fix Javadoc compilation warnings, clean up redundant@SuppressWarnings, and annotate builder/registry mutators with@CanIgnoreReturnValue. - Configure Renovate
automergeTypetoprandrebaseWhentoconflicted. - Dependency updates: Kotlin
2.4.20, KSP2.3.14, Compose1.12.1,androidx.appcompat1.8.0,androidx.fragment1.9.1,androidx.lifecycle2.11.0,androidx.annotation1.11.0,dagger2.60.1,androidx.test:core1.7.0,androidx.junit1.3.0,androidx.espresso3.7.0,androidx.benchmark1.5.0-rc01, andcom.google.truth1.4.5.
Full Changelog: v5.0.9...v5.0.10