Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] crash after attempting to disable a non-disable package #921

Open
5 tasks done
unquote7083 opened this issue Dec 8, 2024 · 0 comments
Open
5 tasks done

[Bug] crash after attempting to disable a non-disable package #921

unquote7083 opened this issue Dec 8, 2024 · 0 comments

Comments

@unquote7083
Copy link

Guidelines

  • I have read the FAQ and it doesn't cover the issue.
  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I'm on the latest version.
  • I'm not using a test build (alpha/beta/release-candidate).
  • This issue contains only one bug.

Describe the bug

  1. attempt to disable a non-disable package
  2. watch app crash

Expected Behavior

No crash

Neo Backup's Version

8.3.8

Installation Source

Official F-Droid repo

Last Known Working Version

No response

Relevant information

  • Android Version: 13

Logcat:

D NeoBackup>ShellHandler$Companion:81::runAsRoot: Command(s) pm disable --user 0 com.package.name ended with 1
--------- beginning of crash
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.machiav3lli.backup, PID: 13994
E AndroidRuntime: com.machiav3lli.backup.handler.ShellCommands$ShellActionFailedException: Could not disable package com.package.name
E AndroidRuntime: 	at com.machiav3lli.backup.handler.LogsHandler.enableDisable(Unknown Source:99)
E AndroidRuntime: 	at com.machiav3lli.backup.viewmodels.AppSheetViewModel$enableDisable$2.invokeSuspend(Unknown Source:25)
E AndroidRuntime: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
E AndroidRuntime: 	at kotlinx.coroutines.DispatchedTask.run(Unknown Source:114)
E AndroidRuntime: 	at androidx.work.Worker$2.run(Unknown Source:10)
E AndroidRuntime: 	at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:95)
E AndroidRuntime: 	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [DeferredCoroutine{Cancelling}@cd2edf8, Dispatchers.Main.immediate]
E AndroidRuntime: Caused by: com.machiav3lli.backup.handler.ShellHandler$ShellCommandFailedException
E AndroidRuntime: 	at com.machiav3lli.backup.handler.ShellHandler$Companion.runAsRoot(Unknown Source:100)
E AndroidRuntime: 	at com.machiav3lli.backup.handler.LogsHandler.enableDisable(Unknown Source:74)
E AndroidRuntime: 	... 6 more

And when trying to disable manually returns the exit code 1 and a message: Failure: package is non-disable

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

No branches or pull requests

1 participant