Navigation Menu

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

backup fails on cm14.1 #146

Closed
fajabird opened this issue Jan 8, 2017 · 11 comments
Closed

backup fails on cm14.1 #146

fajabird opened this issue Jan 8, 2017 · 11 comments

Comments

@fajabird
Copy link

fajabird commented Jan 8, 2017

on cm14.1 (nougat) oandbackup does not work anymore and I can see the following two lines in logcat:

01-08 10:57:33.465 14466 14485 E oandbackup: customlist0: error while reading logfile: org.json.JSONException: Value java.io.FileNotFoundException of type java.lang.String cannot be converted to JSONObject
01-08 10:57:33.465 14466 14485 E oandbackup: oandbackup.log: error while reading logfile: org.json.JSONException: Value java.io.FileNotFoundException of type java.lang.String cannot be converted to JSONObject

Steps to reproduce:
Install cm14.1 and oandbackup
Setup toybox (/system/bin/toybox)
Try to backup something (does not matter what and if APP or DATA or both)
-> In my case backup starts and never ends (waited 30 minutes for a small app with no DATA) - no error message

@fajabird
Copy link
Author

fajabird commented Jan 8, 2017

already tried with "setenforce 0" to no avail

@fajabird
Copy link
Author

fajabird commented Jan 8, 2017

Could be a compatibility iissue with CM14.1 root daemon?

01-08 11:08:25.898 18068 18068 D su : su invoked.
01-08 11:08:25.898 18068 18068 D su : starting daemon client 10086 10086
01-08 11:08:25.900 18070 18070 D su : remote pid: 18068
01-08 11:08:25.900 18070 18070 D su : remote pts_slave:
01-08 11:08:25.901 18070 18070 D su : waiting for child exit
01-08 11:08:25.901 18072 18072 D su : su invoked.
01-08 11:08:25.902 18072 18072 E su : SU from: u0_a86
01-08 11:08:25.902 18072 18072 D su : Checking whether app [uid:10086, pkgName: dk.jens.backup] is allowed to be root
01-08 11:08:25.909 1431 1588 I ActivityManager: Displayed dk.jens.backup/.OAndBackup: +85ms
01-08 11:08:25.912 18072 18072 D su : Privilege elevation allowed by appops
01-08 11:08:25.912 18072 18072 D su : Allowing via appops.
01-08 11:08:25.912 18072 18072 D su : 10086 /system/bin/app_process32 executing 0 /system/bin/sh using binary /system/bin/sh : sh
01-08 11:08:25.912 18072 18072 D su : Waiting for pid 18076.

and later on:

01-08 11:08:26.852 18070 18070 D su : sending code
01-08 11:08:26.852 18070 18070 D su : child exited
01-08 11:08:26.853 18068 18068 D su : client exited 0
01-08 11:08:26.874 18098 18098 D su : su invoked.
01-08 11:08:26.874 18098 18098 D su : starting daemon client 10086 10086
01-08 11:08:26.880 18100 18100 D su : remote pid: 18098
01-08 11:08:26.880 18100 18100 D su : remote pts_slave:
01-08 11:08:26.880 18100 18100 D su : waiting for child exit
01-08 11:08:26.880 18102 18102 D su : su invoked.
01-08 11:08:26.881 18102 18102 E su : SU from: u0_a86
01-08 11:08:26.881 18102 18102 D su : Checking whether app [uid:10086, pkgName: dk.jens.backup] is allowed to be root
01-08 11:08:26.883 18102 18102 D su : Privilege elevation allowed by appops
01-08 11:08:26.883 18102 18102 D su : Allowing via appops.
01-08 11:08:26.883 18102 18102 D su : 10086 /system/bin/app_process32 executing 0 /system/bin/sh using binary /system/bin/sh : sh
01-08 11:08:26.883 2403 2403 I SuControllerImpl: Got change
01-08 11:08:26.883 18102 18102 D su : Waiting for pid 18103.
01-08 11:08:26.908 18102 18102 D su : Finishing su operation for app [uid:10086, pkgName: dk.jens.backup]
01-08 11:08:26.909 2403 2403 I SuControllerImpl: Got change
01-08 11:08:26.909 18102 18102 W IPCThreadState: Calling IPCThreadState::self() during shutdown is dangerous, expect a crash.
01-08 11:08:26.909 18102 18102 W IPCThreadState: Calling IPCThreadState::self() during shutdown is dangerous, expect a crash.
01-08 11:08:26.910 18100 18100 D su : sending code
01-08 11:08:26.910 18100 18100 D su : child exited
01-08 11:08:26.911 18098 18098 D su : client exited 0

@Schroedingers-Cat
Copy link

I am on Linage OS (which is CM 14.1) and have the same problem. I updated from CM13 where oandbackup worked. However, I dont geht any log files written.

@alexbarcelo
Copy link

Maybe this is related to #141? I am not sure if the release that @jensstein was talking about has been done yet.

@takiainen
Copy link

Yeah, it think it is the same bug: try this https://drive.google.com/file/d/0B0bNUNWd2wPPTjJ3T25KaEVQd2c/view

He said earlier that he will publish this on F-Droid. Maybe he is busy with life?

@Schroedingers-Cat
Copy link

Yes, this build works. Thank you!

@takiainen
Copy link

takiainen commented Jan 19, 2017

No prob. It's a wonderful app, isn't it! Once you get used to using it is hard to live without.

@jensstein
Copy link
Owner

yes, unfortunately i don't have that much time at the moment.
but i did have time to make another release just now, so please see if the version which ends up on fdroid also have this issue fixed :)

@DocSniper
Copy link

Working again for me with one exception, backing up "Android System" crashes the app.

01-20 21:00:37.468 I/oandbackup(27933): backup: Android System
01-20 21:00:37.492 E/AndroidRuntime(27933): at dk.jens.backup.OAndBackup$1.run(OAndBackup.java:152)
01-20 21:00:37.504 W/ActivityManager(1494): Force finishing activity dk.jens.backup/.OAndBackup
01-20 21:00:38.076 E/WindowManager(27933): android.view.WindowLeaked: Activity dk.jens.backup.OAndBackup has leaked window DecorView@ef65c03[Android System] that was originally added here

jensstein added a commit that referenced this issue Jan 22, 2017
As reported here:
#146 (comment)
backing up the android system package causes a NullPointerException
because its dataDir is null.
This doesn't seem to have happened before api 24 / android 7, and
doesn't seem to be documented. Proper sanity checking is needed either
on Application.dataDir or AppInfo.packageData.
@jensstein
Copy link
Owner

@sniperle thanks for reporting :) could i get you to open a separate issue and tell me if this works for you: https://drive.google.com/open?id=0B0bNUNWd2wPPTjJ3T25KaEVQd2c

@DocSniper
Copy link

opened #147

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

6 participants