oandbackup icon indicating copy to clipboard operation
oandbackup copied to clipboard

couldn't find oab-utils - running in legacy mode, please report this to the developer

Open vi opened this issue 6 years ago • 29 comments

Meizu 15 Plus, Android 7.0 (Flyme 7.0.3.1A)

vi avatar Oct 29 '18 22:10 vi

I had this error when F-Droid upgraded 0.3.0 to 0.3.2-x86 instead to 0.3.2-arm (Huawei P7, Android 5.1)

timur-g avatar Oct 30 '18 16:10 timur-g

Yes, it's version 0.3.2-x86 [suggested] [installed] on aarch64 device.

Pressing 0.3.2-arm [DOWNGRADE]...

x > a?

vi avatar Oct 30 '18 18:10 vi

that seems like a bug on fdroid's side if they suggest an x86 version for your arm device. at the same time there is a bug in the build configuration which affects arm64 so even if you get the right version from fdroid it's not going to work until the next version (0.3.3). (also, you need arm64, not arm) https://gitlab.com/fdroid/fdroiddata/issues/1366

jensstein avatar Oct 30 '18 20:10 jensstein

Installed 0.3.2-arm.

Still getting the same error.

Also:

10-31 00:22:59.565 21344 21344 E oandbackup: error during AssetHandlerTask.onPostExecute: dk.jens.backup.AssetsHandler$AssetsHandlerException: error copying asset arm64-v8a/oab-utils

vi avatar Oct 30 '18 21:10 vi

Just upgraded to 0.3.3 via F-Droid, still the same . Message "couldn't find oab-utilities - running in legacy mode ..."

My setup: Nexus 5x, LOS 15.1 with microg, no Gapps etc.

meijkl avatar Nov 03 '18 08:11 meijkl

@vi just verifying: are you running 0.3.2-arm, not 0.3.3-arm64? 0.3.3 is the latest release and your device needs the arm64 or the universal version. but looking at the fdroid page there seems to be a problem with which versions they offer because the latest are 0.3.3-x86_64 0.3.2-x86 0.3.3-arm64 i'll contact them to find out if it's a problem i or they or we both have to fix.

if you can't get it from fdroid, there are packages on my gitlab repo: https://gitlab.com/jensstein/oandbackup/-/jobs/116043498/artifacts/browse

@meijkl which abi version of the apk are you running? your nexus is 64bit as far as i know so you also need either 0.3.3-arm64 or 0.3.3-universal

jensstein avatar Nov 03 '18 08:11 jensstein

Sorry, I didn't see the x86 problem.

My case is special - I installed oandbackup via Nanodroid and the x86 version was automatically chosen (don't know why). Now I've reinstalled Nanodroid without oandbackup and installed it manually afterwards via F-Droid. But I had to choose the arm64 version manually, F-Droid automatically selected the x86-64 version.

My problem is solved - thanks for your efforts!

meijkl avatar Nov 03 '18 09:11 meijkl

Same here. F-Droid still recommends the x86 architecture on arm devices. I had to uninstall 0.3.2-x86 and manually install 0.3.3-arm64. The correct version shows no errors after launching it. Thanks.

Kelvino9 avatar Nov 03 '18 09:11 Kelvino9

I have a One+ 1 (bacon) and just installed 0.3.3-arm64 manually. I get 2 errors:

  • error copying asset (same as https://gitlab.com/fdroid/fdroiddata/issues/1366#note_112428585), and
  • couldn't find oab-utils

DamienCassou avatar Nov 03 '18 10:11 DamienCassou

My mistake: my architecture is arm, not arm64. I have no more problems, thank you.

DamienCassou avatar Nov 03 '18 10:11 DamienCassou

and for us with arm64?

roizcorp avatar Nov 03 '18 11:11 roizcorp

@roizcorp pick the arm64 version manually in F-Droid like all of us with arm64 Phones. F-Droid has problems detecting the correct architecture for oandbackup.

Kelvino9 avatar Nov 03 '18 11:11 Kelvino9

yep it works...thanks

roizcorp avatar Nov 03 '18 11:11 roizcorp

Yes, reinstalling the arm64 build solved the issue. However F-droid still recommends x86_64.

mase76 avatar Nov 03 '18 14:11 mase76

there is an issue on fdroid's gitlab repo where i mention this problem: https://gitlab.com/fdroid/fdroiddata/issues/1366

jensstein avatar Nov 03 '18 15:11 jensstein

the packagers at fdroid are reporting that the universal apk flavour doesn't work. it works for me but i can only test on armv7 devices so could i get some of you to try this apk and report if it works or not and which abi (arm, arm64, x86, or x86_64) your device has? https://gitlab.com/jensstein/oandbackup/-/jobs/116206298/artifacts/file/apks/oandbackup-universal-debug.apk

and it seems like they rely on the output of the aapt command to determine which abi the built apk targets - this causes some difficulty since rust isn't supported in an splits.abi block in the gradle build configuration (as far as i can tell) and therefore the aapt output doesn't contain a native-code field. i can probably make a work-around but suggestions are welcome :)

jensstein avatar Nov 04 '18 11:11 jensstein

@jensstein: Your universal apk works without any issues here (Oneplus One/arm)!

zzzardoz avatar Nov 04 '18 15:11 zzzardoz

Just tried to install on my Nexus 6p/AICP Nougat/arm64. Failed with message "package seems to be corrupt".

On a Nexus 5x with LOS Pie prerelease the installation fails too with message "App not installed".

meijkl avatar Nov 04 '18 15:11 meijkl

Debug apk works fine on Redmi Note 4/ AICP Oreo/ arm64

@meijkl try to re-download with a different browser.

Kelvino9 avatar Nov 04 '18 15:11 Kelvino9

Had to uninstall oandbackup, afterwards the installation worked.

meijkl avatar Nov 04 '18 16:11 meijkl

Same as Issue 212

timur-g avatar Nov 20 '18 08:11 timur-g

Please close this issue if resolved.

timur-g avatar Nov 20 '18 17:11 timur-g

After manually picking arm64 version of oandbackup it works.

Shall F-Droid behaviour of picking the wrong version or misusing version string as architecture variant specifier be in scope of this issue?

vi avatar Nov 20 '18 17:11 vi

I still have this issue on a rooted Sofia 3GR intel unit. No matter whether I use the universal 0.34 from F-droid, or the universal, signed-x86.apk or signed-x86_64.apk from https://gitlab.com/jensstein/oandbackup/-/jobs/125132334/artifacts/browse.

Therefore my restores do not work on this Intel unit.

Edit: The oab-utils are in /data/data/dk.jens.backup/files. When running them from a rooted terminal I get a "Segmentation fault"

hvdwolf avatar Dec 16 '18 16:12 hvdwolf

Is this fixed?

tristan-k avatar Jan 02 '19 12:01 tristan-k

Maybe the error message should be extended with a hint that user may be using the wrong version of oandbackup?

vi avatar Jan 02 '19 12:01 vi

I am still getting this message when opening the app. When I try to update the app through F-Droid I get this message: F-Droid thinks that I want to downgrade. What are my options here other than reinstalling and losing all configurations?

chilliger avatar May 11 '19 15:05 chilliger

I have the same issue.

DamienCassou avatar Aug 03 '19 09:08 DamienCassou

@chilliger same here. 0.3.3-x86_64 has internal version code 4303 while 0.3.5-universal has 305, therefore F-Droid thinks you are downgrading when in fact you are upgrading. Seems to be an issue specific to F-Droid, as I can’t find any hint at such a version code in the source here; however that particular version does not seem to be on the regular repo any longer.

Downgrade via F-Droid did not work for me as the Android package manager rejected the replacement package.

You could try downloading the 0.3.5-universal APK to a PC from F-Droid, then installing it via adb:

adb install -r -d dk.jens.backup_305.apk

This requires ADB installed on your PC and enabled on your device. The command line options tell ADB to replace the existing package and force a downgrade.

Alternatively, if you have a local terminal app and su on your device, you could download the APK to your device, then open a terminal, run su and do:

pm install -r -d dk.jens.backup_305.apk

mvglasow avatar Oct 09 '19 11:10 mvglasow