Fix stuff
This commit is contained in:
parent
897762774a
commit
93ef5b3a21
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
|||
|
||||
# Download dex2jar and procyon and build the last
|
||||
RUN cd ~/; wget https://sourceforge.net/projects/dex2jar/files/dex2jar-2.0.zip/download -O dex2jar.zip; unzip dex2jar.zip; rm dex2jar.zip; chmod 755 /root/dex2jar-2.0/; ln -s /root/dex2jar-2.0/d2j-dex2jar.sh /usr/local/bin/dex2jar; chmod +x /root/dex2jar-2.0/d2j-dex2jar.sh /root/dex2jar-2.0/d2j_invoke.sh
|
||||
RUN cd ~/; hg clone https://bitbucket.org/mstrobel/procyon
|
||||
RUN cd ~/; hg clone https://bitbucket.org/mstrobel/procyon; cd procyon; hg up v0.5.32; cd -
|
||||
ADD build.gradle.patch /root/procyon/
|
||||
|
||||
# Add a patch that takes out gradle signing and build
|
||||
|
|
|
@ -6,17 +6,18 @@ then
|
|||
exit
|
||||
fi
|
||||
|
||||
mkdir -p ~/tmp/"$1"
|
||||
cp "$1" ~/tmp/"$1"/"$1".zip
|
||||
cd ~/tmp/"$1"/
|
||||
path=/tmp/automatic-decompiler
|
||||
mkdir -p $path
|
||||
cp "$1" $path/app.zip
|
||||
cd $path
|
||||
|
||||
echo "Unziping apk..."
|
||||
unzip "$1".zip > /dev/null
|
||||
unzip app.zip > /dev/null
|
||||
|
||||
echo "Executing dex2jar..."
|
||||
dex2jar classes.dex 2> /dev/null
|
||||
|
||||
echo "Decompiling jar..."
|
||||
mkdir -p ~/src/"$1"
|
||||
decompiler classes-dex2jar.jar ~/src/"$1" > /dev/null
|
||||
echo "Done. The source code is under ~/src/$1/. You can delete ~/tmp."
|
||||
mkdir -p ~/src/automatic-decompiler
|
||||
decompiler classes-dex2jar.jar ~/src/automatic-decompiler > /dev/null
|
||||
echo "Done. The source code is under ~/src/automatic-decompiler/."
|
||||
|
|
Loading…
Reference in New Issue