Package Details: android-backup-extractor-git r115.g33a2f6c-2

Git Clone URL: https://aur.archlinux.org/android-backup-extractor-git.git (read-only, click to copy)
Package Base: android-backup-extractor-git
Description: Utility to extract and repack Android backups created with adb backup
Upstream URL: https://github.com/nelenkov/android-backup-extractor
Licenses: custom:APACHE
Conflicts: abe, android-backup-extractor
Provides: abe.jar, android-backup-extractor
Submitter: richq
Maintainer: ruahcra (MarsSeed)
Last Packager: MarsSeed
Votes: 16
Popularity: 0.020000
First Submitted: 2015-05-31 12:05 (UTC)
Last Updated: 2022-05-31 20:50 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

MarsSeed commented on 2022-04-06 08:34 (UTC) (edited on 2022-04-06 08:39 (UTC) by MarsSeed)

Thanks, I've managed to fix this package!

Seems like Arch has moved the location of bcprov.jar in v1.71 and that's what has caused the build error again.

ruahcra commented on 2022-04-05 21:53 (UTC)

@MarsSeed Added you as a co-maintainer

MarsSeed commented on 2022-04-05 08:34 (UTC)

The correct path of 'bcprov.jar' is as follows (note the extra /bcprov/ dir):

/usr/share/java/bcprov/bcprov.jar

MarsSeed commented on 2022-04-05 08:24 (UTC)

Build still fails:

==> Making package: android-backup-extractor-git r113.07bb660-1 (2022-04-05 10:03:18 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
Buildfile: /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/build.xml

build:
    [mkdir] Created dir: /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/build
    [javac] Compiling 2 source files to /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/build
    [javac] warning: [options] system modules path not set in conjunction with -source 11
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:29: error: package org.bouncycastle.crypto does not exist
    [javac] import org.bouncycastle.crypto.PBEParametersGenerator;
    [javac]                               ^
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:30: error: package org.bouncycastle.crypto.generators does not exist
    [javac] import org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator;
    [javac]                                          ^
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:31: error: package org.bouncycastle.crypto.params does not exist
    [javac] import org.bouncycastle.crypto.params.KeyParameter;
    [javac]                                      ^
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/Main.java:5: error: package org.bouncycastle.jce.provider does not exist
    [javac] import org.bouncycastle.jce.provider.BouncyCastleProvider;
    [javac]                                     ^
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:478: error: cannot find symbol
    [javac]         PBEParametersGenerator generator = new PKCS5S2ParametersGenerator();
    [javac]         ^
    [javac]   symbol:   class PBEParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:478: error: cannot find symbol
    [javac]         PBEParametersGenerator generator = new PKCS5S2ParametersGenerator();
    [javac]                                                ^
    [javac]   symbol:   class PKCS5S2ParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:485: error: cannot find symbol
    [javac]         byte[] pwBytes = useUtf8 ? PBEParametersGenerator.PKCS5PasswordToUTF8Bytes(pwArray)
    [javac]                                    ^
    [javac]   symbol:   variable PBEParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:486: error: cannot find symbol
    [javac]                 : PBEParametersGenerator.PKCS5PasswordToBytes(pwArray);
    [javac]                   ^
    [javac]   symbol:   variable PBEParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:488: error: cannot find symbol
    [javac]         KeyParameter params = (KeyParameter) generator
    [javac]         ^
    [javac]   symbol:   class KeyParameter
    [javac]   location: class AndroidBackup
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:488: error: cannot find symbol
    [javac]         KeyParameter params = (KeyParameter) generator
    [javac]                                ^
    [javac]   symbol:   class KeyParameter
    [javac]   location: class AndroidBackup
    [javac] /home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/Main.java:11: error: cannot find symbol
    [javac]         Security.addProvider(new BouncyCastleProvider());
    [javac]                                  ^
    [javac]   symbol:   class BouncyCastleProvider
    [javac]   location: class Main
    [javac] 11 errors
    [javac] 1 warning

BUILD FAILED
/home/user/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/build.xml:16: Compile failed; see the compiler error output for details.

Total time: 1 second
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'android-backup-extractor-git-r111.47bb1dd-3'

flipmess commented on 2022-02-07 01:36 (UTC)

build fails:

==> Starting build()...
Buildfile: /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/build.xml

build:
    [mkdir] Created dir: /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/build
    [javac] Compiling 2 source files to /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/build
    [javac] warning: [options] system modules path not set in conjunction with -source 11
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:29: error: package org.bouncycastle.crypto does not exist
    [javac] import org.bouncycastle.crypto.PBEParametersGenerator;
    [javac]                               ^
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:30: error: package org.bouncycastle.crypto.generators does not exist
    [javac] import org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator;
    [javac]                                          ^
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:31: error: package org.bouncycastle.crypto.params does not exist
    [javac] import org.bouncycastle.crypto.params.KeyParameter;
    [javac]                                      ^
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/Main.java:5: error: package org.bouncycastle.jce.provider does not exist
    [javac] import org.bouncycastle.jce.provider.BouncyCastleProvider;
    [javac]                                     ^
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:478: error: cannot find symbol
    [javac]         PBEParametersGenerator generator = new PKCS5S2ParametersGenerator();
    [javac]         ^
    [javac]   symbol:   class PBEParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:478: error: cannot find symbol
    [javac]         PBEParametersGenerator generator = new PKCS5S2ParametersGenerator();
    [javac]                                                ^
    [javac]   symbol:   class PKCS5S2ParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:485: error: cannot find symbol
    [javac]         byte[] pwBytes = useUtf8 ? PBEParametersGenerator.PKCS5PasswordToUTF8Bytes(pwArray)
    [javac]                                    ^
    [javac]   symbol:   variable PBEParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:486: error: cannot find symbol
    [javac]                 : PBEParametersGenerator.PKCS5PasswordToBytes(pwArray);
    [javac]                   ^
    [javac]   symbol:   variable PBEParametersGenerator
    [javac]   location: class AndroidBackup
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:488: error: cannot find symbol
    [javac]         KeyParameter params = (KeyParameter) generator
    [javac]         ^
    [javac]   symbol:   class KeyParameter
    [javac]   location: class AndroidBackup
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/AndroidBackup.java:488: error: cannot find symbol
    [javac]         KeyParameter params = (KeyParameter) generator
    [javac]                                ^
    [javac]   symbol:   class KeyParameter
    [javac]   location: class AndroidBackup
    [javac] /home/flipmess/.cache/yay/android-backup-extractor-git/src/android-backup-extractor-git/src/org/nick/abe/Main.java:11: error: cannot find symbol
    [javac]         Security.addProvider(new BouncyCastleProvider());
    [javac]                                  ^
    [javac]   symbol:   class BouncyCastleProvider
    [javac]   location: class Main
    [javac] 11 errors
    [javac] 1 warning

BUILD FAILED

ruahcra's patch helps.

ruahcra commented on 2022-02-01 12:43 (UTC)

Upstream now requires Java 11. Patch for the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index d801b74..8dbaf3a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
 pkgname=android-backup-extractor-git
-pkgver=r54.fcb4ee5
+pkgver=r98.ef67572
 pkgrel=1
 pkgdesc="Utility to extract and repack Android backups created with adb backup"
 arch=('any')
@@ -22,7 +22,7 @@ prepare() {
   cd ${srcdir}/${pkgname}
   # 1. set correct path to system bcprov
   # 2. do not include bcprov classes in the final abe.jar file
-  sed -e 's@lib/bcprov-jdk15on-150.jar@/usr/share/java/bcprov.jar@g' \
+  sed -e 's@lib/bcprov-jdk15on-1.70.jar@/usr/share/java/bcprov.jar@g' \
     -e 's@<zipfileset.*@@g' \
     -i build.xml || return 1

@@ -35,7 +35,7 @@ prepare() {

 build() {
   cd "${srcdir}/${pkgname}"
-  ant
+  JAVA_HOME="/usr/lib/jvm/java-11-openjdk" ant
 }

 package() { 
-- 
2.35.1

Zack-Clark commented on 2020-04-24 00:01 (UTC)

To address the problem identified by cameel, I shamefully did:

sudo mkdir /usr/lib/jvm/java-8-openjdk/lib
sudo ln /usr/lib/jvm/java-7-openjdk/lib/tools.jar /usr/lib/jvm/java-8-openjdk/lib

works fine.

cameel commented on 2018-01-04 21:12 (UTC)

I'm getting an error if I try to build this package without jdk8-openjdk installed. Perhaps it should be added as a build dependency?

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk/lib/tools.jar

BUILD FAILED /tmp/android-backup-extractor-git/src/android-backup-extractor-git/build.xml:16: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-8-openjdk/jre"

richq commented on 2015-09-24 18:29 (UTC)

Thanks, I've fixed it now. I copied the original PKGBUILD from aha and neglected to update the description.

gdamjan commented on 2015-09-22 18:57 (UTC)

What's with the description of the package?