NeoApplications / Neo-Backup

backup manager for android
GNU Affero General Public License v3.0
2.5k stars 123 forks source link

Could not restore a file due to a failed root command #500

Open x011 opened 2 years ago

x011 commented 2 years ago

I cannot restore any app, example of the error:

image

Android 11 - Rooted Samsung S21

machiav3lli commented 2 years ago

Did you try restoring apk alone at first then data alone secondly?

x011 commented 2 years ago

I can restore the apk alone, but when I try to restore the data, I get the same error. This error also defeats the purpose of batch restoring backups.

machiav3lli commented 2 years ago

It's already fixed in the v8(still in alphas will take some time to be stable), but it should've worked when you restore data only. Note that this we couldn't identify any direct variable causing this issue specifically on some systems.

Taknok commented 1 year ago

Issue still present on 8.2.5 for firefox on android 13 :/

Pillendreher commented 1 year ago

Issue still present on 8.2.5 for firefox on android 13 :/

Can confirm. Restoring Mull, which is kind of a fork of Firefox, results in the "failed root command"-error.

2011 commented 6 months ago

Also getting this in 8.36 (Android 9). Maybe half of my apps will restore, and half won't. A typical message:

com.wireguard.android
RestoreAppAction$RestoreFailedException: Could not restore a file due to a failed root command

The logs during the relevant period:

[03-04 02:17:01.203 3409:3871 W/SurfaceFlinger]
Attempting to set client state on removed layer: thumbnail anim: AppWindowToken{3d23214 token=Token{ad1c467 ActivityRecord{f3b026 u0 com.machiav3lli.backup/.activities.MainActivityX t344}}}#0

[03-04 02:17:01.203 3409:3871 W/SurfaceFlinger]
Attempting to destroy on removed layer: thumbnail anim: AppWindowToken{3d23214 token=Token{ad1c467 ActivityRecord{f3b026 u0 com.machiav3lli.backup/.activities.MainActivityX t344}}}#0

[03-04 02:17:04.241 3409:3409 D/SurfaceFlinger]
duplicate layer name: changing com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX to com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#1

[03-04 02:17:06.496 3409:3630 E/BufferQueueProducer]
[com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#1] disconnect: not connected (req=1)

[03-04 02:17:06.585 3409:3478 W/SurfaceFlinger]
Attempting to set client state on removed layer: com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#1

[03-04 02:17:06.585 3409:3478 W/SurfaceFlinger]
Attempting to destroy on removed layer: com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#1

[03-04 02:17:06.680 5426:5426 I/WM-SystemFgDispatcher]
Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=com.machiav3lli.backup/androidx.work.impl.foreground.SystemForegroundService (has extras) }

[03-04 02:17:11.605 3409:4195 E/BufferQueueProducer]
[com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#0] disconnect: not connected (req=1)

[03-04 02:17:11.892 3409:3871 W/SurfaceFlinger]
Attempting to set client state on removed layer: thumbnail anim: AppWindowToken{3d23214 token=Token{ad1c467 ActivityRecord{f3b026 u0 com.machiav3lli.backup/.activities.MainActivityX t344}}}#0

[03-04 02:17:11.892 3409:3871 W/SurfaceFlinger]
Attempting to set client state on removed layer: com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#0

[03-04 02:17:11.892 3409:3871 W/SurfaceFlinger]
Attempting to destroy on removed layer: thumbnail anim: AppWindowToken{3d23214 token=Token{ad1c467 ActivityRecord{f3b026 u0 com.machiav3lli.backup/.activities.MainActivityX t344}}}#0

[03-04 02:17:11.892 3409:3871 W/SurfaceFlinger]
Attempting to destroy on removed layer: com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#0

[03-04 02:17:16.714 3761:3761 D/NewAvrcpMediaPlayerList]
Name of package changed: com.machiav3lli.backup

[03-04 02:17:18.790 5426:5510 I/WM-WorkerWrapper]
Worker result RETRY for Work [ id=cff36a77-1aee-4dba-ad25-11b673ba7b40, tags={ com.machiav3lli.backup.tasks.AppActionWork, name:Restore @ Mon 02:17:06, package:com.wireguard.android } ]

[03-04 02:17:48.889 5426:5426 I/WM-SystemFgDispatcher]
Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=com.machiav3lli.backup/androidx.work.impl.foreground.SystemForegroundService (has extras) }

[03-04 02:17:58.853 5426:5476 I/WM-WorkerWrapper]
Worker result FAILURE for Work [ id=cff36a77-1aee-4dba-ad25-11b673ba7b40, tags={ com.machiav3lli.backup.tasks.AppActionWork, name:Restore @ Mon 02:17:06, package:com.wireguard.android } ]

[03-04 02:18:08.942 3761:3761 D/NewAvrcpMediaPlayerList]
Name of package changed: com.machiav3lli.backup

[03-04 02:18:50.908 3636:3919 I/ActivityManager]
START u0 {cmp=com.machiav3lli.backup/.activities.MainActivityX} from uid 10071

[03-04 02:18:50.909 3636:3919 W/ActivityManager]
startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { cmp=com.machiav3lli.backup/.activities.MainActivityX }

[03-04 02:18:51.026 3636:3694 W/WindowManager]
TaskSnapshotSurface.create: Failed to find main window for token=AppWindowToken{f3a1ffe token=Token{c526fb9 ActivityRecord{724fa03 u0 com.machiav3lli.backup/.activities.MainActivityX t344}}}

[03-04 02:18:51.845 3636:3661 I/ActivityManager]
Displayed com.machiav3lli.backup/.activities.MainActivityX: +733ms

[03-04 02:21:51.040 3787:3787 W/NotificationEntryMgr]
removeNotification for unknown key: 0|com.machiav3lli.backup|247350843|null|10071

[03-04 02:21:51.044 3787:3787 W/NotificationEntryMgr]
removeNotification for unknown key: 0|com.machiav3lli.backup|-1955375384|null|10071

[03-04 02:21:54.423 3409:3478 E/BufferQueueProducer]
[com.machiav3lli.backup/com.machiav3lli.backup.activities.MainActivityX#0] disconnect: not connected (req=1)

Aside from the number of warnings, the main error message "not connected" appears three times.