Giter VIP home page Giter VIP logo

androidprojectcreator's People

Contributors

dependabot[bot] avatar thisislibra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidprojectcreator's Issues

Network problems

Hello, unfortunately, due to the national and regional network problems, '- install' can't pull the code normally. I hope you can completely package the folder 'Library' required by '- install' into a file, so that we can download it faster. Thank you!

Build failed with jadx

When built the decompiled apk, the error message shown

/media/Programming/Reverse_engineering/Android/Tools/Decompiler/AndroidProjectCreator/build/didi_src/app/src/main/res/drawable-v21/$avd_show_password__2.xml: Error: '$' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore
/media/Programming/Reverse_engineering/Android/Tools/Decompiler/AndroidProjectCreator/build/didi_src/app/src/main/res/assets/crashlytics-build.properties: Error: The file name must end with .xml
/media/Programming/Reverse_engineering/Android/Tools/Decompiler/AndroidProjectCreator/build/didi_src/app/src/main/res/drawable-v24/$ic_launcher_foreground__0.xml: Error: '$' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

Project view

image

NoSuchFileException on decompiling with fernflower

Script fails with NoSuchFileException on decompiling with fernflower

JAR download link: https://drive.google.com/file/d/1ZzRccZ-h7Kt-Zl7hlB8nksx6TtJ8Nu_O/view?usp=sharing
Java version: 1.8.0_102
Mac OS version: 10.14

Logs:

$ java -jar AndroidProjectCreator-1.3.jar -decompile fernflower uxcam.jar ./uxcam
[+]AndroidProjectCreator 1.3-stable [developed by Max 'Libra' Kersten <[email protected]> or @LibraAnalysis on Twitter]

[+]Decompiling the APK to a temporary location (/Users/vibinreddy/Documents/android/library/temp/8e9bcf38-857b-4c63-be44-fc6c0d050475)
[+]Calling APKTool to decompile the AndroidManifest.xml and the application resources
[+]Decompling JAR with APKTOOL
I: Using Apktool 2.4.2-0143dc-SNAPSHOT on uxcam.jar
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

[+]Decompilation finished
[+]Calling APKTool to obtain the SMALI code
[+]Decompling JAR with APKTOOL
I: Using Apktool 2.4.2-0143dc-SNAPSHOT on uxcam.jar
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

[+]Decompilation finished
[+]Decompling JAR with DEX2JAR
dex2jar /Users/vibinreddy/Documents/android/library/temp/8e9bcf38-857b-4c63-be44-fc6c0d050475/apktool/classes.dex -> /Users/vibinreddy/Documents/android/library/temp/8e9bcf38-857b-4c63-be44-fc6c0d050475/output.jar
java.nio.file.NoSuchFileException: /Users/vibinreddy/Documents/android/library/temp/8e9bcf38-857b-4c63-be44-fc6c0d050475/apktool/classes.dex
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.Files.newByteChannel(Files.java:361)
	at java.nio.file.Files.newByteChannel(Files.java:407)
	at java.nio.file.Files.readAllBytes(Files.java:3152)
	at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)
	at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:290)
	at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:33)

[+]Decompilation finished
[+]Decompling JAR with FERNFLOWER
warn: missing '/Users/vibinreddy/Documents/android/library/temp/8e9bcf38-857b-4c63-be44-fc6c0d050475/output.jar', ignored
error: no sources given




[+]An error has occurred, therefore AndroidProjectCreator has shut down. The error message is given below.

Something went wrong with the I/O during the decompilation. Check the permissions of the output directory and try again.

I have looked into library/temp folder and it is empty.

Check the permissions of the output directory and try again.

I tried as admin I have the same issue
This is mypath
java -jar AndroidProjectCreator-1.3-stable-jar-with-dependencies.jar -decompile fernflower decompile.apk "C:\Users\none none\Desktop\decompile"

After backsmaling apk it throws an error for the output file:\Desktop\library\apktool>
[+]Decompilation finished
[+]Decompling JAR with DEX2JAR

[+]An error has occurred, therefore AndroidProjectCreator has shut down. The error message is given below.

Something went wrong with the I/O during the decompilation. Check the permissions of the output directory and try again.

[+]For additional details, see the stack traces of the used tools above.

Multidex support

Add support for apks with multiple classes.dex inside.
Right now only first dex file is decompiled and added to the project.
Android Studio contains only files from classes.dex, but do not includes code for instance from classes2.dex etc.

Not work

Hi tried two commands. java -jar AndroidProjectCreator.jar -compactInstall and
java -jar AndroidProjectCreator.jar -Install

Error

D:\TEST4>java -jar AndroidProjectCreator.jar -compactInstall
[+]AndroidProjectCreator 1.5-stable [developed by Max 'Libra' Kersten [email protected] or @Libranalysis on Twitter]

[+]Starting the installation
[+]Starting cloning the repositories
[+]Started cloning CompactInstall version 1.1 (dated 11-05-2021)

[+]An error has occurred, therefore AndroidProjectCreator has shut down. The error message is given below.

[+]There was an error cloing CompactInstall version 1.1 (dated 11-05-2021). Verify your internet connection and the permissions of the folder!

[+]For additional details, see the stack traces of the used tools above.

D:\TEST4>

D:\TEST4>java -jar AndroidProjectCreator.jar -install
[+]AndroidProjectCreator 1.5-stable [developed by Max 'Libra' Kersten [email protected] or @Libranalysis on Twitter]

[+]Starting the installation
[+]Starting cloning the repositories
[+]Started cloning androidproject

[+]An error has occurred, therefore AndroidProjectCreator has shut down. The error message is given below.

[+]There was an error cloing androidproject. Verify your internet connection and the permissions of the folder!

[+]For additional details, see the stack traces of the used tools above.

D:\TEST4>
There are no problems with the Internet. Can you upload the full jar file?

No Java file only smali

Hello,
Is it normal that I don't have any java file in the android studio project created ?
I have just the smali files and the manifest but no decompiled java files .

error installing the tool

trying to install and got this error.
here is the code

>C:\Users\roon3\Desktop\workaspacefake>java -jar AndroidProjectCreator.jar -install
>[+]AndroidProjectCreator 1.3.1-stable [developed by Max 'Libra' Kersten <[email protected]> or >@LibraAnalysis on Twitter]

>[+]Starting the installation
>[+]Starting cloning the repositories
>[+]Started cloning androidproject
>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>SLF4J: Defaulting to no-operation (NOP) logger implementation
>SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>remote: Enumerating objects: 8
>Receiving objects:      100% (8/8)
>Updating references:    100% (1/1)
>Checking out files:     100% (1/1)
>[+]Finished cloning androidproject
>[+]Started cloning apktool
>remote: Enumerating objects: 21600
>Receiving objects:      100% (21600/21600)
>Resolving deltas:       100% (9859/9859)
>Checking out files:     100% (327/327)
>[+]Finished cloning apktool
>[+]Started cloning cfr
remote: Enumerating objects: 456
remote: Counting objects: 100% (456/456)
remote: Compressing objects: 100% (227/227)
Receiving objects:      100% (29181/29181)
Resolving deltas:       100% (18293/18293)
Checking out files:     100% (701/701)
[+]Finished cloning cfr
[+]Started cloning dex2jar
remote: Enumerating objects: 25
remote: Counting objects: 100% (25/25)
remote: Compressing objects: 100% (17/17)
Receiving objects:      100% (12805/12805)
Resolving deltas:       100% (1617/1617)
Checking out files:     100% (404/404)
[+]Finished cloning dex2jar
[+]Started cloning fernflower
remote: Enumerating objects: 46
remote: Counting objects: 100% (46/46)
remote: Compressing objects: 100% (23/23)
Receiving objects:      100% (9628/9628)
Resolving deltas:       100% (5621/5621)
Updating references:    100% (1/1)
Checking out files:     100% (666/666)
[+]Finished cloning fernflower
[+]Started cloning jadx
remote: Enumerating objects: 26390
Receiving objects:      100% (26390/26390)
Resolving deltas:       100% (15307/15307)
Checking out files:     100% (1025/1025)
[+]Finished cloning jadx
[+]Started cloning jdcmd
remote: Enumerating objects: 6
remote: Counting objects: 100% (6/6)
remote: Compressing objects: 100% (6/6)
Receiving objects:      100% (6/6)
Updating references:    100% (1/1)
Checking out files:     100% (4/4)
[+]Finished cloning jdcmd
[+]Started cloning jeb3
remote: Enumerating objects: 3
Receiving objects:      100% (3/3)
Updating references:    100% (1/1)
Checking out files:     100% (1/1)
[+]Finished cloning jeb3
[+]Started cloning procyon
remote: Enumerating objects: 9
Receiving objects:      100% (9/9)
Resolving deltas:       100% (1/1)
Checking out files:     100% (2/2)
[+]Finished cloning procyon
[+]Cloning finished
[+]Starting to build all repositories
[+]Starting to build apktool
Microsoft Windows [Versione 10.0.18363.778]
(c) 2019 Microsoft Corporation. Tutti i diritti sono riservati.
Impossibile trovare il percorso specificato.

C:\Users\roon3\Desktop\workaspacefake\library\repos\apktool>gradlew.bat build shadowJar
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details

> Configure project :
Building SNAPSHOT (master): 83a459

> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :jar
> Task :assemble
> Task :license
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :check
> Task :build
> Task :brut.apktool:compileJava NO-SOURCE
> Task :brut.apktool:processResources NO-SOURCE
> Task :brut.apktool:classes UP-TO-DATE
> Task :brut.apktool:jar
> Task :brut.apktool:assemble
> Task :brut.apktool:license
> Task :brut.apktool:compileTestJava NO-SOURCE
> Task :brut.apktool:processTestResources NO-SOURCE
> Task :brut.apktool:testClasses UP-TO-DATE
> Task :brut.apktool:test NO-SOURCE
> Task :brut.apktool:check
> Task :brut.apktool:build
> Task :brut.j.common:compileJava
> Task :brut.j.common:processResources NO-SOURCE
> Task :brut.j.common:classes
> Task :brut.j.common:jar
> Task :brut.j.common:assemble
> Task :brut.j.common:license
> Task :brut.j.common:compileTestJava NO-SOURCE
> Task :brut.j.common:processTestResources NO-SOURCE
> Task :brut.j.common:testClasses UP-TO-DATE
> Task :brut.j.common:test NO-SOURCE
> Task :brut.j.common:check
> Task :brut.j.common:build

Note: C:\Users\roon3\Desktop\workaspacefake\library\repos\apktool\brut.j.util\src\main\java\brut\util\Duo.java uses unchecked or unsafe operations.> Task :brut.j.util:compileJava

Note: Recompile with -Xlint:unchecked for details.

> Task :brut.j.util:processResources NO-SOURCE
> Task :brut.j.util:classes
> Task :brut.j.util:jar
> Task :brut.j.dir:compileJava
> Task :brut.j.dir:processResources NO-SOURCE
> Task :brut.j.dir:classes
> Task :brut.j.dir:jar
> Task :brut.j.dir:assemble
> Task :brut.j.dir:license
> Task :brut.j.dir:compileTestJava NO-SOURCE
> Task :brut.j.dir:processTestResources NO-SOURCE
> Task :brut.j.dir:testClasses UP-TO-DATE
> Task :brut.j.dir:test NO-SOURCE
> Task :brut.j.dir:check
> Task :brut.j.dir:build
> Task :brut.j.util:assemble
> Task :brut.j.util:license
> Task :brut.j.util:compileTestJava NO-SOURCE
> Task :brut.j.util:processTestResources NO-SOURCE
> Task :brut.j.util:testClasses UP-TO-DATE
> Task :brut.j.util:test NO-SOURCE
> Task :brut.j.util:check
> Task :brut.j.util:build

> Task :brut.apktool:apktool-lib:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :brut.apktool:apktool-lib:processResources
> Task :brut.apktool:apktool-lib:classes
> Task :brut.apktool:apktool-lib:jar
> Task :brut.apktool:apktool-cli:compileJava
> Task :brut.apktool:apktool-cli:processResources NO-SOURCE
> Task :brut.apktool:apktool-cli:classes
> Task :brut.apktool:apktool-cli:jar
> Task :brut.apktool:apktool-cli:assemble
> Task :brut.apktool:apktool-cli:license
> Task :brut.apktool:apktool-cli:compileTestJava NO-SOURCE
> Task :brut.apktool:apktool-cli:processTestResources NO-SOURCE
> Task :brut.apktool:apktool-cli:testClasses UP-TO-DATE
> Task :brut.apktool:apktool-cli:test NO-SOURCE
> Task :brut.apktool:apktool-cli:check
> Task :brut.apktool:apktool-cli:build
> Task :brut.apktool:apktool-lib:assemble
> Task :brut.apktool:apktool-lib:license
> Task :brut.apktool:apktool-lib:compileTestJava
> Task :brut.apktool:apktool-lib:processTestResources
> Task :brut.apktool:apktool-lib:testClasses
> Task :brut.apktool:apktool-lib:test
> Task :brut.apktool:apktool-lib:check
> Task :brut.apktool:apktool-lib:build
> Task :brut.apktool:apktool-cli:shadowJar

BUILD SUCCESSFUL in 1m 33s
18 actionable tasks: 18 executed
C:\Users\roon3\Desktop\workaspacefake\library\repos\apktool>
[+]Finished building apktool
[+]Starting to build cfr
Microsoft Windows [Versione 10.0.18363.778]
(c) 2019 Microsoft Corporation. Tutti i diritti sono riservati.
Impossibile trovare il percorso specificato.

C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------------< org.benf:cfr >----------------------------
[INFO] Building cfr 0.150-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cfr ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cfr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cfr ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 692 source files to C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr\target\classes
[INFO] /C:/Users/roon3/Desktop/workaspacefake/library/repos/cfr/src/org/benf/cfr/reader/bytecode/analysis/types/MethodPrototype.java: Some input files use unchecked or unsafe operations.
[INFO] /C:/Users/roon3/Desktop/workaspacefake/library/repos/cfr/src/org/benf/cfr/reader/bytecode/analysis/types/MethodPrototype.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cfr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ cfr ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ cfr ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cfr ---
[INFO] Building jar: C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr\target\cfr-0.150-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ cfr >>>
[INFO]
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ cfr <<<
[INFO]
[INFO]
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ cfr ---
[INFO] Building jar: C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr\target\cfr-0.150-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-javadoc-plugin:3.1.1:jar (attach-javadocs) @ cfr ---
[INFO] Building jar: C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr\target\cfr-0.150-SNAPSHOT-javadoc.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.710 s
[INFO] Finished at: 2020-05-03T17:03:07+02:00
[INFO] ------------------------------------------------------------------------
Impossibile trovare il percorso specificato.

C:\Users\roon3\Desktop\workaspacefake\library\repos\cfr>
[+]Finished building cfr
[+]Starting to build dex2jar
Microsoft Windows [Versione 10.0.18363.778]
(c) 2019 Microsoft Corporation. Tutti i diritti sono riservati.
Impossibile trovare il percorso specificato.

C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar>gradlew.bat clean distZip
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details
:clean UP-TO-DATE
:d2j-base-cmd:clean UP-TO-DATE
:d2j-j6:clean UP-TO-DATE
:d2j-jasmin:clean UP-TO-DATE
:d2j-smali:clean UP-TO-DATE
:dex-ir:clean UP-TO-DATE
:dex-reader:clean UP-TO-DATE
:dex-reader-api:clean UP-TO-DATE
:dex-tools:clean UP-TO-DATE
:dex-translator:clean UP-TO-DATE
:dex-writer:clean UP-TO-DATE
:d2j-base-cmd:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning

:d2j-base-cmd:processResources NO-SOURCE
:d2j-base-cmd:classes
:d2j-base-cmd:jar
:d2j-jasmin:generateGrammarSource
:d2j-jasmin:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning

:d2j-jasmin:processResources NO-SOURCE
:d2j-jasmin:classes
:d2j-jasmin:jar
:d2j-smali:generateGrammarSource
:dex-reader-api:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-reader-api\src\main\java\com\googlecode\d2j\node\analysis\DvmFrame.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

:dex-reader-api:processResources NO-SOURCE
:dex-reader-api:classes
:dex-reader-api:jar
:dex-reader:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning

:dex-reader:processResources NO-SOURCE
:dex-reader:classes
:dex-reader:jar
:dex-writer:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-writer\src\main\java\com\googlecode\d2j\dex\writer\item\ConstPool.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

:dex-writer:processResources NO-SOURCE
:dex-writer:classes
:dex-writer:jar
:d2j-smali:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

:d2j-smali:processResources NO-SOURCE
:d2j-smali:classes
:d2j-smali:jar
:dex-ir:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning

:dex-ir:processResources NO-SOURCE
:dex-ir:classes
:dex-ir:jar
:dex-translator:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

:dex-translator:processResources NO-SOURCE
:dex-translator:classes
:dex-translator:jar
:dex-tools:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:9: warning: ContentInfo is internal proprietary API and may be removed in a future release
import sun.security.pkcs.ContentInfo;
                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:10: warning: PKCS7 is internal proprietary API and may be removed in a future release
import sun.security.pkcs.PKCS7;
                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:11: warning: SignerInfo is internal proprietary API and may be removed in a future release
import sun.security.pkcs.SignerInfo;
                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:12: warning: AlgorithmId is internal proprietary API and may be removed in a future release
import sun.security.x509.AlgorithmId;
                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:13: warning: X500Name is internal proprietary API and may be removed in a future release
import sun.security.x509.X500Name;
                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:27: warning: SignerInfo is internal proprietary API and may be removed in a future release
            SignerInfo signerInfo = new SignerInfo(new X500Name(cert.getIssuerX500Principal().getName()),
            ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:27: warning: SignerInfo is internal proprietary API and may be removed in a future release
            SignerInfo signerInfo = new SignerInfo(new X500Name(cert.getIssuerX500Principal().getName()),
                                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:27: warning: X500Name is internal proprietary API and may be removed in a future release
            SignerInfo signerInfo = new SignerInfo(new X500Name(cert.getIssuerX500Principal().getName()),
                                                       ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:28: warning: AlgorithmId is internal proprietary API and may be removed in a future release
                    cert.getSerialNumber(), AlgorithmId.get(digestAlg), AlgorithmId.get("RSA"), signature);
                                            ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:28: warning: AlgorithmId is internal proprietary API and may be removed in a future release
                    cert.getSerialNumber(), AlgorithmId.get(digestAlg), AlgorithmId.get("RSA"), signature);
                                                                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:30: warning: PKCS7 is internal proprietary API and may be removed in a future release
            PKCS7 pkcs7 = new PKCS7(new AlgorithmId[] { AlgorithmId.get(digestAlg) }, new ContentInfo(
            ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:30: warning: PKCS7 is internal proprietary API and may be removed in a future release
            PKCS7 pkcs7 = new PKCS7(new AlgorithmId[] { AlgorithmId.get(digestAlg) }, new ContentInfo(
                              ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:30: warning: AlgorithmId is internal proprietary API and may be removed in a future release
            PKCS7 pkcs7 = new PKCS7(new AlgorithmId[] { AlgorithmId.get(digestAlg) }, new ContentInfo(
                                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:30: warning: AlgorithmId is internal proprietary API and may be removed in a future release
            PKCS7 pkcs7 = new PKCS7(new AlgorithmId[] { AlgorithmId.get(digestAlg) }, new ContentInfo(
                                                        ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:30: warning: ContentInfo is internal proprietary API and may be removed in a future release
            PKCS7 pkcs7 = new PKCS7(new AlgorithmId[] { AlgorithmId.get(digestAlg) }, new ContentInfo(
                                                                                          ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:31: warning: ContentInfo is internal proprietary API and may be removed in a future release
                    ContentInfo.DATA_OID, null), new X509Certificate[] { cert }, new SignerInfo[] { signerInfo });
                    ^
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\src\main\java\com\googlecode\d2j\signapk\SunJarSignImpl.java:31: warning: SignerInfo is internal proprietary API and may be removed in a future release
                    ContentInfo.DATA_OID, null), new X509Certificate[] { cert }, new SignerInfo[] { signerInfo });
                                                                                     ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
18 warnings

:dex-tools:processResources
:dex-tools:classes
:dex-tools:jar
:dex-tools:bin_gen
:dex-tools:startScripts
:dex-tools:distZip

BUILD SUCCESSFUL in 18s
35 actionable tasks: 24 executed, 11 up-to-date
C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar>
[+]Finished building dex2jar
[+]Starting to build jadx
Microsoft Windows [Versione 10.0.18363.778]
(c) 2019 Microsoft Corporation. Tutti i diritti sono riservati.
Impossibile trovare il percorso specificato.

C:\Users\roon3\Desktop\workaspacefake\library\repos\jadx>gradlew.bat dist
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :
jadx version: dev

> Task :jadx-core:compileJava
> Task :jadx-core:processResources
> Task :jadx-core:classes
> Task :jadx-core:jar
> Task :jadx-cli:compileJava
> Task :jadx-cli:processResources
> Task :jadx-cli:classes
> Task :jadx-cli:jar

C:\Users\roon3\Desktop\workaspacefake\library\repos\jadx\jadx-gui\src\main\java\jadx\gui\settings\JadxSettingsWindow.java:135: warning: [serial] serializable class <anonymous jadx.gui.settings.JadxSettingsWindow$1> has no definition of serialVersionUID> Task :jadx-gui:compileJava

                getRootPane().getActionMap().put("ESCAPE", new AbstractAction() {
                                                                                ^
1 warning

> Task :jadx-gui:processResources
> Task :jadx-gui:classes
> Task :jadx-gui:shadowJar

Security framework of XStream not initialized, XStream is probably vulnerable.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jadx-gui:createExe'.
> Task :jadx-gui:createExe FAILED
> net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: Exec failed (1): C:\Users\roon3\Desktop\workaspacefake\library\repos\jadx\jadx-gui\build\tmp\launch4j\bin-launch4j-3.12\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\roon3\AppData\Local\Temp\launch4j6049722823040873017rc C:\Users\roon3\AppData\Local\Temp\launch4j7651639901543528481o

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 19s

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings
10 actionable tasks: 10 executed

C:\Users\roon3\Desktop\workaspacefake\library\repos\jadx>
[+]Finished building jadx
[+]Starting to build fernflower
Microsoft Windows [Versione 10.0.18363.778]
(c) 2019 Microsoft Corporation. Tutti i diritti sono riservati.
Impossibile trovare il percorso specificato.

C:\Users\roon3\Desktop\workaspacefake\library\repos\fernflower>gradlew.bat jar
:compileJavaNote: C:\Users\roon3\Desktop\workaspacefake\library\repos\fernflower\src\org\jetbrains\java\decompiler\struct\StructMember.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:processResources NO-SOURCE
:classes
:jar

BUILD SUCCESSFUL in 4s
2 actionable tasks: 2 executed
C:\Users\roon3\Desktop\workaspacefake\library\repos\fernflower>
[+]Finished building fernflower
[+]All projects have been built
[+]Starting to extract the builds to the library
[+]Extracting apktool
[+]Finished extracting apktool
[+]Extracting dex2jar
[+]Extracting to C:\Users\roon3\Desktop\workaspacefake\library\repos\dex2jar\dex-tools\build\distributions\buildOutput
[+]Finished extracting dex2jar
[+]Extracting jadx


[+]An error has occurred, therefore AndroidProjectCreator has shut down. The error message is given below.

null

[+]For additional details, see the stack traces of the used tools above.

Fernflower build fails with openjdk 11

I tried to install it under linux mint 19.1 which comes with openjdk 11 installed by default.

During the installation it fails to compile fernflower due to the java version check, the error is:

[+]Starting to build fernflower
Downloading https://services.gradle.org/distributions/gradle-4.0-all.zip
.....................................................................................
Unzipping /home/user/.gradle/wrapper/dists/gradle-4.0-all/ac27o8rbd0ic8ih41or9l32mv/gradle-4.0-all.zip to /home/user/.gradle/wrapper/dists/gradle-4.0-all/ac27o8rbd0ic8ih41or9l32mv
Set executable permissions for: /home/user/.gradle/wrapper/dists/gradle-4.0-all/ac27o8rbd0ic8ih41or9l32mv/gradle-4.0/bin/gradle
FAILURE: Build failed with an exception.
What went wrong:
Could not determine java version from '10.0.2'.

It works with openjdk 8

Something went wrong with the I/O during the decompilation

Hi, I tried to decompile an apk in my home folder. But whatever output I have given, it gives the same error:

ismail@localhost:~> java -jar AndroidProjectCreator.jar -decompile fernflower base.apk ./himtec-apc
[+]AndroidProjectCreator 1.5.2-stable [developed by Max 'Libra' Kersten [email protected] or @Libranalysis on Twitter]
[+]Decompiling the APK to a temporary location (/home/ismail/library/temp/c6369f3e-512c-45d8-9c00-8143a3a9d42f)
[+]Calling APKTool to decompile the AndroidManifest.xml and the application resources
[+]Decompling JAR with APKTOOL
[+]An error has occurred, therefore AndroidProjectCreator has shut down. The error message is given below.
Something went wrong with the I/O during the decompilation. Check the permissions of the output directory and try again.
[+]For additional details, see the stack traces of the used tools above.

After giving that error, the the output directory himtec-apc is deleted everytime. The apk and the output directory is in the same directory as AndroidProjectCreator.jar. AndroidProjectCreator version is 1.5.2-stable. Am I doing something wrong?

i m not able to run properly androidpoject crestor

warn: missing 'PROJECT/library/temp/984733b0-5b5b-445b-a784-949ac2f2ce3c/output.jar', ignored
error: destination 'PROJECT/library/temp/984733b0-5b5b-445b-a784-949ac2f2ce3c/sources' is not a directory

JADX decompilation using DEX2JAR

Hi, you did a good job on this project, I really like to use it.
I noticed one small thing -- when you run the program with -decompile JADX, you can see the following in the output:

...

[+]Decompling JAR with DEX2JAR
dex2jar /opt/AndroidProjectCreator/target/library/temp/8a9550a5-7498-4d34-a1d8-86375119c668/apktool/classes.dex -> /opt/AndroidProjectCreator/target/library/temp/8a9550a5-7498-4d34-a1d8-86375119c668/output.jar

[+]Decompilation finished
[+]Decompling JAR with JADX
INFO  - loading ...
INFO  - processing ...

...

But JADX is a DEX -> Java decompiler and it does not need a JAR. In fact, when you give JADX a JAR file, JADX will convert it to DEX first:

$ jadx -d $(pwd) $(pwd)/classes-dex2jar.jar
INFO  - loading ...
INFO  - converting to dex: classes-dex2jar.jar ...

...

AndroidProjectCreator works well even now, going DEX -> JAR -> (DEX) -> Java, and this issue has a low severity. But if it decompiled to Java straight from DEX, it might save some execution time. Also, the results might be a little more accurate, as I can imagine that the DEX -> JAR -> DEX conversion can lead to some kind of loss of information or precision, especially with obfuscated APKs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.