Package Details: android-backup-extractor-git r147.g70730dd-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
Last Packager: ruahcra
Votes: 17
Popularity: 0.030837
First Submitted: 2015-05-31 12:05 (UTC)
Last Updated: 2024-09-28 05:11 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

ruahcra commented on 2024-09-28 05:11 (UTC)

Not sure why but my previous attempt at a fix works now...

ruahcra commented on 2024-07-28 08:26 (UTC) (edited on 2024-07-28 08:26 (UTC) by ruahcra)

@LA-MJ Thanks for letting me know about the broken build. I tried to fix it the other day but have not quite figured it out yet...

qtol commented on 2022-09-13 18:58 (UTC)

android-backup-extractor is good but you should provide also the improved version android-backup-processor

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