Simple configuration of The Decompilation tool and its development environment in Ubuntu

Source: Internet
Author: User
0x0: Preface


I have changed my PC system and ubuntu14.04. I just need to configure the android decompilation environment. Here I will record it for your reference.

In fact, the simplest thing is that you only need apktool. However, if you have the encoding capability, you must want to use your own visual interface tool to operate it. So we will start to configure it, in addition, it is convenient to continue to develop and improve tools later.


0x01: Download related software


SIG package
Http://www.riverbankcomputing.co.uk/software/sip/download

Pyqt package
Http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.2/

Ubuntu comes with python2.7, which is also updated in a simple way. You can refer to the following steps to see if it meets our development requirements and then decide whether to reinstall it.


0x02: install the software



After the download is complete, some initialization work is completed:
First:

Apt-Get update

# Install the Python version. The Dev package must be installed. Many Pip installation packages must be compiled.
Sudo apt-Get install python2.7 python2.7-dev python3.2 python3.2-Dev
# Many Pip installation packages require libssl and libevent compiling Environments
Sudo apt-Get install build-essential libssl-dev libevent-dev libjpeg-dev libxml2-dev libxslt-Dev

# Installing Pip
Sudo apt-Get install Python-pip

A simple method is found:


Sudo apt-Get install libxext6 libxext-dev libqt4-dev libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designer qt4-qtconfig-* python-qt4


However, I tried the following methods to download the latest packages from the official website.

Operate the SIG file:

1. Install sip

Http://www.riverbankcomputing.co.uk/software/sip/download download compressed package unzip
Sudo Python Configure. py
Make
Sudo make install

2. Install the dependent Library

Sudo apt-Get install libxext6 libxext-dev libqt4-dev libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designer

Note: In this version of the software package, the qt4-dev-tools contains tools such as QT assistant and QT linguist, so you do not need to install them separately. Others, qt4-doc is a help document that contains detailed descriptions of various class libraries in QT and a wide range of example programs that can be opened using QT Assistant tools. The qt4-qtconfig is a dialog box for configuring the QT environment, which is usually the default and is rarely necessary to change. The qt4-demos contains many executable files and source code that can run. A qt4-designer is a designer used to design a GUI.


3. Install pyqt4

Download package extract from http://www.riverbankcomputing.co.uk/software/pyqt/download
Sudo Python Configure. py
Sudo make
Sudo make install


0x03: Test


Now, after the configuration is complete, we can open the apk_ide.py script mentioned in the previous article and open it under the command line.
Python apk_ide.py
Remember to put apktool. jar in the corresponding directory.

Address of the previous article:

Http://bbs.pediy.com/showthread.php? T = 192045

The following is a test:





At the same time, remember to configure the relevant Java environment variables. Note that I have simply modified the code of the previous article, using the absolute path of Java.

Recently, I am writing the query and search function, and searching for the files where more than two strings are located at the same time. You can add them later.

With decompilation and search, we can easily create an integrated tool, integrating decompilation, search, modification, recompilation, and signature...

And then add some new features...

If you are interested in working together, you can send me an email, 1132575842 # QQ.com, get an open-source APK modification tool, and then open-source for cross-platform use ..

Simple configuration of The Decompilation tool and its development environment in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.