github Kilowatch/ultimate-file-manager-pro v2.2.7

one hour ago

Added

  • Connection Protocol Badging (FavoritesManager, StorageAdapter, ManageFavoritesAdapter, FavoriteIconComposer):
    1. Storage & Manage Favorites Badging: Subtitles for favorites across the main Storage screen and Manage Favorites list now display {Protocol} • {Type} (e.g., WebDAV • Folder, WebDAV • File, SMB • Folder, Local • Folder), clearly distinguishing identically named folders across different network servers or cloud storage providers.
    2. Launcher Icon Protocol Pill: Pinned home screen shortcut icons now render a compact, high-contrast protocol badge (WDAV, SMB, NFS, FTP, GDRV, 1DRV, etc.) on the bottom quadrant of the icon.
  • UFMStandard Home Screen Shortcut Removal Dialog (ManageFavoritesActivity, StorageBrowserActivity):
    • Added mobile glass dialog (dialog_remove_home_shortcut.xml) and TV dialog (dialog_remove_home_shortcut_tv.xml) informing users that due to Android OS platform security restrictions, pinned shortcuts can only be disabled by the application and must be dragged to "Remove" on the home screen launcher grid.
  • Remote TV Download Manager (Mobile, Windows & Linux Companions): Full remote control and monitoring of Download Manager on paired Android TVs from Android Mobile, Windows Companion, and Linux Companion over secure LAN HTTPS:
    1. TV Root Action & Dedicated Activity: Added "Download Manager" to the paired TV root screen in NetworkBrowserActivity, launching RemoteDownloadManagerActivity with live transfer %, download speeds, ETAs, and peer/seed metrics.
    2. Remote Storage Directory Picker: Added interactive TV storage drive and folder explorer allowing users to inspect TV mounts and select any internal or external USB folder as the TV download location.
    3. Remote Download Dispatching: Direct HTTP/HTTPS downloads, Magnet link pasting, and .torrent file dispatching with client-side sub-file selection checklist before starting on TV.
    4. Deletion Options: Clear confirmation prompts to either "Remove from List Only" (preserving TV disk files) or "Remove & Delete Files from TV Storage".
    5. Desktop Companion Console: Integrated DownloadManagerModal in Windows and Linux desktop companion applications for desktop-to-TV download management.
  • Storage Analyzer Large Files Action Menu & Auto-Reindex: Added a contextual glass action menu accessible via long-press (or remote D-pad Center hold / Menu on Android TV) on any item in the Large Files tab:
    1. Open File & Open Folder Location: Quick actions to directly view the file via built-in viewers or open its containing directory in FileBrowserActivity with the file focused.
    2. Relocate / Move: Launches the UFM Folder Picker (All-Drives initial view) to move files across any storage volume, featuring same-folder validation and TransferConflictHelper collision detection (Overwrite, Skip, Keep Both / auto-rename, Cancel).
    3. Delete with Glass Confirmation: Prompts with a UFMStandard glass delete confirmation dialog detailing file name, formatted size, and permanent deletion warning.
    4. Zero-Latency Auto-Reindexing & Live UI Refresh: Instantly removes/updates items in the list, synchronizes the index database, runs background folder reindexing, and refreshes analyzer metrics in real time.

Fixed

  • Remote WebDAV & Online Storage Favorite Resolution (NetworkBrowserActivity, StorageBrowserActivity, FavoriteShortcutActivity):
    1. Bidirectional Fallback: Fixed an issue where opening in-app favorites or pinned home screen shortcuts to WebDAV folders or files (such as those hosted via rclone, Nextcloud, or ownCloud) hung on "Opening..." or redirected to the main Storage screen with a "Previous storage location is unavailable" error.
    2. Repository Fallback Engine: Implemented bidirectional repository fallback between NetworkShareRepository and OnlineStorageRepository in NetworkBrowserActivity.initNetworkClient() to prevent false negative storage lookups.
    3. Provider Metadata Preservation: Ensured isOnlineStorage = true and EXTRA_STORAGE_LABEL are consistently attached for all cloud and WebDAV providers when launching remote file and folder favorites.
  • Universal TV Home Screen Shortcuts across Custom Launchers (FavoriteHomeScreenManager, TvPreviewManager, DeviceUtils): Fixed an issue where home screen shortcuts created on Android TV for drives, storage volumes, and favorite folders did not appear on third-party custom TV launchers (such as ATV Launcher Pro, Projectivy Launcher, Monet TV Launcher, Wolf Launcher, and FLauncher):
    1. Active Launcher Detection: Added DeviceUtils.getActiveLauncherPackage and DeviceUtils.isStockTvLauncher to detect whether the active launcher is the stock Android TV / Google TV home screen (com.google.android.tvlauncher, com.google.android.apps.tv.launcherx, com.android.tv).
    2. Tier 1 (Stock Launcher): Continues publishing preview channel program cards via TvPreviewManager and androidx.tvprovider for native Google TV / Android TV home channel rows.
    3. Tier 2 (Custom TV Launchers): Falls back to ShortcutManagerCompat.requestPinShortcut with TV-optimized icons to pin shortcuts directly onto custom launcher home screen grids, marking isPinnedTv = true (with tvProgramUri = null).
    4. Dynamic URI Permissions: Automatically grants content URI read permissions (FLAG_GRANT_READ_URI_PERMISSION) for poster artwork to the active launcher package as well as known custom TV launcher packages (ca.dstudio.atvlauncher.pro, com.spocky.projengmenu, com.klevico.monet, com.wolf.firelauncher, me.efesser.flauncher).
    5. Reconciliation & Removal Handling: Updated TvPreviewManager.reconcileTv to preserve isPinnedTv state for custom launcher shortcuts, and updated FavoriteHomeScreenManager.onFavoriteRemoved to disable pinned shortcuts via ShortcutManagerCompat when removed.
  • ANR Watchdog Activity Destroy OnBackInvokedCallback Teardown Filter (CrashReportManager): Fixed a false-positive ANR (App Freeze) report on Android devices (reported on motorola moto g play - 2026, Android SDK 36, app 2.1.5-FOSS) during activity destruction and back callback teardown (ActivityThread.handleDestroyActivity -> performDestroyActivity -> Instrumentation.callActivityOnDestroy -> Activity.performDestroy -> Activity.onDestroy -> ProxyOnBackInvokedDispatcher.unregisterOnBackInvokedCallback -> WindowOnBackInvokedDispatcher.unregisterOnBackInvokedCallback -> WindowOnBackInvokedDispatcher.removeCallbackInternal -> TreeMap.get -> TreeMap.getEntry), thread state RUNNABLE. On Android 13+ (API 33+) and modern Android 15/16 (SDK 35-36), Predictive Back Navigation registers and unregisters back callbacks with WindowOnBackInvokedDispatcher. When an Activity is destroyed, framework Activity.onDestroy() unregisters the activity's default back invoked callback from an in-memory TreeMap / PriorityQueue inside WindowOnBackInvokedDispatcher. This is pure in-memory framework callback removal taking nanoseconds with no loops, locks, file/network I/O, database access, or IPC. In release builds, the Activity class is obfuscated by R8 to short names (e.g. mm.onDestroy, mm.s), and CrashReportManager's ActivityThread.mH hook callback sits on ActivityThread$H.handleMessage (obfuscated as n31.handleMessage), causing isPureFrameworkStack to evaluate to false. Filter 89 (isActivityDestroyViewDetachStall) did not match because view hierarchy detachment (ViewRootImpl.die) occurs separately from Activity.onDestroy(). Added filter 92 (isActivityDestroyBackCallbackStall) to detect when the main thread is executing in-memory OnBackInvokedDispatcher back callback unregistration during Activity.onDestroy() with zero application business logic and no framework blocking primitives held, resetting the watchdog heartbeat rather than reporting a spurious freeze when concurrent background worker threads delay the watchdog timer.
  • File Viewer & Open-With Choice Main Thread Blocked ANR (FileViewerRouter, SlideShowActivity, UFMPlayerActivity): Fixed an ANR (App Freeze) report ("Main thread blocked >5000ms" in FileViewerRouter.showOpenWithDialog -> File.listFiles -> UnixFileSystem.list0, reported on Samsung SM-A556E, Android SDK 37, app 2.2.6-FOSS) when tapping an image or media file in the file browser. When opening an image with default open action set to Ask, showOpenWithDialog previously executed synchronous directory listings and filesystem stats (parentDir?.listFiles()?.filter { it.isFile && !it.name.startsWith(".") }) on the main looper during dialog view construction to determine whether to display the "UFM Slide Show" choice button. On folders with thousands of media files or under concurrent disk I/O, this blocked the main looper in kernel stat/list0 calls for >5 seconds. Resolved by removing synchronous directory scans from showOpenWithDialog (as the selected file is already known to be an image), removing main-thread listFiles() from openFile under Action.SLIDESHOW, updating openInSlideShow and openInPlayer to pass the selected file directly without UI-thread filesystem queries, and implementing asynchronous background sibling media discovery (discoverSiblingMedia / discoverSiblingVideos) on Dispatchers.IO in SlideShowActivity and UFMPlayerActivity across both local and SAF storage.
  • ANR Watchdog Activity Constructor Reflection Instantiation Filter (CrashReportManager): Fixed a false-positive ANR (App Freeze) report on Android TV devices (reported on skyworth SWTV-22AE, Android 11 / SDK 30, app 2.2.4-GOOGLE) during activity launch and reflection-based constructor instantiation (ActivityThread.performLaunchActivity -> Instrumentation.newActivity -> AppComponentFactory.instantiateActivity -> Class.newInstance -> SafPickerActivity.<init> -> AppCompatActivity.<init> -> FragmentActivity.<init> -> ComponentActivity.<init>), thread state RUNNABLE. In Dalvik/ART bytecode, the Activity's <init> constructor invokes super.<init>() up the hierarchy before any subclass constructor body or field initializers run, and AndroidX ComponentActivity.<init> initializes in-memory architecture components (SavedStateRegistry, LifecycleRegistry, ContextAwareHelper). On low-end Android TV hardware under heavy background CPU contention (concurrent SSH server, DLNA/SSDP discovery, and background workers), the watchdog timer expired while the main thread was executing this in-memory constructor chain. Because the stack contains the Activity's <init> and R8-obfuscated AndroidX superclasses, isPureFrameworkStack evaluated to false, and Filter 26 (isActivityConstructorLifecycleStall) only matched when topFrame?.methodName == "getLifecycle". Added filter 91 (isActivityConstructorInstantiationStall) to detect when the main thread is executing in-memory Activity and AndroidX superclass constructors under framework reflection launch with zero application business logic and no framework blocking primitives held, resetting the watchdog heartbeat rather than reporting a spurious freeze.
  • Root Directory Enumeration in /data/data & /data/user/0 on Android 14+ / 16: Fixed an issue where accessing /data/data with root privileges only displayed com.google.android.gms and za.kilowatch.ultimatefilemanager on devices with per-app mount namespace isolation (such as Nothing Phone 2a running Android 16). Elevated root sessions now attach to the global master mount namespace (Shell.FLAG_MOUNT_MASTER), ensuring all installed application packages and system directories are fully visible.
  • SMB Server Favorite Breadcrumb Navigation (NetworkBrowserActivity): Fixed an issue where tapping an ancestor or favorite folder segment in the breadcrumb navigation bar dropped back to the SMB server root (SMB://server/) instead of opening the tapped favorite folder when browsing an SMB share configured in server mode (isServerMode).

Don't miss a new ultimate-file-manager-pro release

NewReleases is sending notifications on new releases.