broo2s / brut.apktool

A tool for reverse engineering Android apk files
http://code.google.com/p/android-apktool/
353 stars 118 forks source link

Building apktool #21

Open Revlin opened 12 years ago

Revlin commented 12 years ago

This issue has been on the google code website for 5 months now (http://code.google.com/p/android-apktool/issues/detail?id=284). There's a work around posted there, but the work around doesn't work, so maybe someone here has another one. I believe this is specific to nux-based development environments.

What steps will reproduce the problem?

  1. $ git clone git://github.com/brutall/brut.apktool.git apktool
  2. $ cd apktool
  3. $ mvn package

What is the expected output? What do you see instead? Expected a successful build but the following output is generated:

Downloading: http://android-apktool.googlecode.com/svn/m2-releases/brut/apktool/smali/smali-pom/1.0-SNAPSHOT/smali-pom-1.0-SNAPSHOT.pom [INFO] Unable to find resource 'brut.apktool.smali:smali-pom:pom:1.0-SNAPSHOT' in repository android-apktool.googlecode.com (http://android-apktool.googlecode.com/svn/m2-releases) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).

Project ID: brut.apktool.smali:smali:jar:${aversion}

Reason: Cannot find parent: brut.apktool.smali:smali-pom for project: brut.apktool.smali:smali:jar:${aversion} for project brut.apktool.smali:smali:jar:${aversion}

[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Mon Jun 11 21:20:37 PDT 2012 [INFO] Final Memory: 16M/39M [INFO] ------------------------------------------------------------------------

K, so here is the workaround that was posted in google code Issue 284:

  1. Open the subdirectory "repository\brut\apktool" in your local maven repository. It is usually located in you user home directory in a directory named ".m2".
  2. Edit the following files:

smali\baksmali\1.3.0-brut6\baksmali-1.3.0-brut6.pom smali\dexlib\1.3.0-brut6\dexlib-1.3.0-brut6.pom smali\smali\1.3.0-brut6\smali-1.3.0-brut6.pom smali\util\1.3.0-brut6\util-1.3.0-brut6.pom

in each of this files replace

"${aversion}" or "${version}" with "1.3.0-brut6"

and 4 lines below in the element replace

"1.0-SNAPSHOT" with "1.0-brut1"

Afterwards the "mvn package" command will succeed.

Except that the build does not succeed, I get the same output. Seems like some other file is responsible for the faulty version tag but I don't know which one. Anybody?

tomdebenning commented 12 years ago

Has anyone been able to resolve this issue?