Skip to content

bug: Base app get uninstalled while mounting patched app #562

@fuji97

Description

@fuji97

Bug description

I'm trying to update the patched Reddit app, but when I try to mount it I get the error "Failed to install stock app" and the app has been uninstalled from my device.
If I try to reinstall the app and try to mount the patched app again, it still fails with the same error and the app is again removed from the device.

Is it possible that the logic for the non-mounting update flow is mistakenly used in the mounting flow?

Version of Morphe (Manager) and the app you are patching

v1.18.0-dev.5

Morphe logs

=== Morphe Manager Debug Log ===
Date       : 2026-05-18T15:46:38.414261
Version    : 1.18.0-dev.5

--- Device ---
Model      : Google Pixel 6 Pro
Android    : 16 (SDK 36)
ABI        : arm64-v8a, armeabi-v7a, armeabi
Locale     : it-IT

--- Memory ---
RAM avail  : 1340 MB / 11550 MB
Low memory : false
Low mem thr: 216 MB

--- Storage ---
Internal   : 20593 MB free / 112912 MB total
External   : 20593 MB free / 112912 MB total

--- Environment ---
Root access: true

=== Logcat ===

--------- beginning of system
05-18 15:44:26.326 30081 30081 V Configuration: Updating configuration, locales updated from [] to [it_IT,en_US]
05-18 15:44:26.330 30081 30081 W PackageParsing: No actions in intent-filter at /data/user/0/app.morphe.manager/app_ui_ephemeral/installer/output.apk Binary XML file line #262
05-18 15:44:26.377 30081  5742 V Configuration: Updating configuration, locales updated from [] to [it_IT,en_US]
05-18 15:44:26.380 30081  5742 W PackageParsing: No actions in intent-filter at /data/user/0/app.morphe.manager/app_ui_ephemeral/installer/output.apk Binary XML file line #262
--------- beginning of main
05-18 15:44:27.307 30081 30081 E Morphe Install: Mount install failed
05-18 15:44:27.307 30081 30081 E Morphe Install: java.lang.Exception: Failed to install stock app
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at app.morphe.manager.domain.installer.RootInstaller$Companion.assertSuccess(SourceFile:245)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at app.morphe.manager.domain.installer.RootInstaller$Companion.access$assertSuccess(SourceFile:241)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at app.morphe.manager.domain.installer.RootInstaller$install$2.invokeSuspend(SourceFile:164)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:34)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlinx.coroutines.DispatchedTask.run(SourceFile:100)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(SourceFile:124)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:89)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(SourceFile:586)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(SourceFile:820)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(SourceFile:717)
05-18 15:44:27.307 30081 30081 E Morphe Install: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:704)
05-18 15:46:10.933 30081 30124 D WM-Processor: Processor cancelling a0b51f8a-cfed-4674-9dd1-8b599041a512
05-18 15:46:10.933 30081 30124 D WM-Processor: WorkerWrapper could not be found for a0b51f8a-cfed-4674-9dd1-8b599041a512
05-18 15:46:10.934 30081 30124 D WM-GreedyScheduler: Cancelling work ID a0b51f8a-cfed-4674-9dd1-8b599041a512
05-18 15:46:11.815 30081 30081 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
05-18 15:46:11.815 30081 30081 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
05-18 15:46:11.882 30081 30081 I Morphe Manager: HttpService.request: Connecting to URL: https://raw.githubusercontent.com/MorpheApp/morphe-manager/refs/heads/dev/app-release.json
05-18 15:46:12.025 30081 30081 D Morphe Manager: Manager JSON (dev): v1.18.0-dev.6 → https://github.com/MorpheApp/morphe-manager/releases/download/v1.18.0-dev.6/morphe-manager-1.18.0-dev.6.apk
05-18 15:46:12.028 30081 30081 D Morphe Manager: fetchChangelog: https://raw.githubusercontent.com/MorpheApp/morphe-manager/dev/CHANGELOG.md
05-18 15:46:12.029 30081 30081 I Morphe Manager: HttpService.request: Connecting to URL: https://raw.githubusercontent.com/MorpheApp/morphe-manager/dev/CHANGELOG.md
05-18 15:46:24.034 30081 30081 D Morphe InstallerManager: parseToken(:auto_saved:) -> AutoSaved
05-18 15:46:35.478 30081 30081 D VRI[MainActivity_Default]: visibilityChanged oldVisibility=true newVisibility=false
05-18 15:46:35.492 30081 30122 D HWUI    : endAllActiveAnimators on 0xb40000720b477c50 (UnprojectedRipple) with handle 0xb40000728b4a75c0
05-18 15:46:38.389 30081 30081 D ViewRootImpl: Skipping stats log for color mode
05-18 15:46:38.396 30081 30081 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
05-18 15:46:38.396 30081 30081 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
05-18 15:46:38.445 30081 30081 D InsetsController: hide(ime())
05-18 15:46:38.445 30081 30081 I ImeTracker: app.morphe.manager:2ef8a1c9: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN

Acknowledgements

  • I have checked all open and closed bug reports and this is not a duplicate.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • The bug only affects using Morphe (Manager)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions