• Stars
    star
    1,007
  • Rank 45,632 (Top 0.9 %)
  • Language
    Java
  • Created over 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

 Copyright (C) 2012 Sony Mobile Communications AB

 This file is part of ApkAnalyser.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

==============================================================================

Introduction
------------
ApkAnalyser is a static, virtual analysis tool for examining and validating 
the development work of your Android app. It's a complete tool chain which supports 
modification of the binary application with more printouts. You are then able to 
repack, install, run and verify the result from logcat. ApkAnalyser also supports 
resource analysis, and you can decode XML, look up resource references and detect 
potential issues in your app.

It��s a stand-alone J2SE application, released under Apache 2.0 license, 100% written in Java.


Open Source Projects
--------------------

Some code of following OSS projects are imported and modified:
1. smali, dalvik assembler/disassembler, http://code.google.com/p/smali/
2. apktool, reengineering binary Android apps, http://code.google.com/p/android-apktool/
3. Android4ME, J2ME port of Google's Android, http://code.google.com/p/android4me/
4. Android Open Source Project

Following OSS projects are used as jar library:
1. ASM, Java bytecode manipulation and analysis framework, http://asm.ow2.org/license.html 
2. Jgraphx, Java Graph Visualization Library, http://www.jgraph.com/jgraph.html
3. Xpp3, a streaming pull XML parser, http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions
4. L2fprod, extended swing components, http://www.l2fprod.com/common/


Build Infomation
----------------

Firstly, the latest ApkAnalyser is available at:

https://github.com/sonyxperiadev/ApkAnalyser

ApkAnalyser includes two open source projects, smali and apktool.
The projects must be built in sequence of:

1. smali
2. apktool
3. apkanalyser

All of the projects are managed by Maven2 build system.

http://maven.apache.org/download.html

The project could be built on JDK1.5, 1.6 or 1.7.


Build Steps
-----------

1. Get the latest code 
git clone git://github.com/sonyxperiadev/ApkAnalyser.git

2. Build smali project
cd smali
mvn install

3. Build apktool project
cd ../apktool
mvn install

4. Install jgraphx into local Maven repository
cd ../apkanalyser
mvn install:install-file -Dfile=lib/jgraphx.jar -DgroupId=com.mxgraph -DartifactId=jgraphx -Dversion=1.7.1.9 -Dpackaging=jar -DgeneratePom=true

5. Build and package ApkAnalyser
mvn assembly:assembly

6. The executable jar file should be at 
apkanalyser\target\apkanalyser-{version}-exec.jar

Optionally, Eclipse project could also be generated by "mvn eclipse:eclipse" command.


Launch ApkAnalyser
------------------

To launch it, just execute: 

java -jar ApkAnalyser.jar

Sometimes, ApkAnalyser consumes lots of memory for analysing the dalvik bytecodes. 
It may run out of memory expecially for loading more than one big odexed APK files.
In that case, the max heap size should be explicitly incrased by "-Xmx1024m" parameter: 

java -Xmx1024m -jar ApkAnalyser.jar


Contacts
--------

Zhang Bojie, Sony Mobile Communications
[email protected]

More Repositories

1

ChkBugReport

A command line tool which parses and converts android bugreport files into more human readable html reports.
Java
946
star
2

kernel

C
353
star
3

dataflow

Render graphs using a declarative markup.
Haskell
149
star
4

kernel-copyleft

Copyleft archives for Xperia kernels
C
137
star
5

WebGL

WebGL for Android Browser
C++
119
star
6

XAppDbg

Extra application debugging interface
Java
105
star
7

amazon-custom-resources

JavaScript
99
star
8

MultimediaForAndroidLibrary

Java
88
star
9

device-sony-yuga

Makefile
79
star
10

DASH

The Dynamic Android Sensor HAL
C
77
star
11

device-sony-lt26

Android device configuration for Xperia S
C
70
star
12

device-sony-common

Makefile
61
star
13

pygerrit

Python
52
star
14

bug_tracker

Empty repository that is used as a bugtracker for Open Devices project
52
star
15

gerrit-events

Java
47
star
16

device-sony-aries

C
45
star
17

BacklogTool

This tool keeps track of the backlog for software development teams
JavaScript
43
star
18

local_manifests

42
star
19

device-sony-leo

C
40
star
20

device-sony-maple

Makefile
40
star
21

device-sony-lilac

Makefile
36
star
22

DrmLicenseService

Java
35
star
23

Folding-home

C
34
star
24

device-sony-suzuran

Makefile
33
star
25

device-sony-honami

Makefile
27
star
26

device-sony-pioneer

Makefile
25
star
27

device-sony-c2105

Ruby
24
star
28

CDB-Assist

C
23
star
29

device-sony-amami

Makefile
22
star
30

device-sony-shinano

C
22
star
31

camera

C++
21
star
32

thermanager

Sony Xperia AOSP thermal manager service
C
21
star
33

device-sony-kagura

Makefile
20
star
34

device-sony-yoshino

Makefile
19
star
35

device-sony-kugo

Makefile
19
star
36

WebSDK

WebSDK packager with PhoneGap
19
star
37

device-sony-suzu

Makefile
18
star
38

home-badge

Java
18
star
39

device-sony-loire

Makefile
17
star
40

UnderwaterApps

Java
17
star
41

device-sony-togari

Makefile
16
star
42

device-sony-apollo

Makefile
15
star
43

device-sony-sumire

Makefile
15
star
44

device-sony-kumano

Makefile
15
star
45

device-sony-poplar

Makefile
15
star
46

device-sony-akari

Makefile
14
star
47

ave

Python
14
star
48

device-sony-tama

Makefile
14
star
49

device-sony-edo

Makefile
13
star
50

device-sony-sirius

C
13
star
51

lumber-mill

Where logs are cut into lumber
Java
12
star
52

device-sony-pdx206

Makefile
12
star
53

kernel-defconfig

Shell
12
star
54

EvolutionUI

Java
12
star
55

device-sony-discovery

Makefile
12
star
56

vendor-qcom-opensource-fm

Java
12
star
57

device-sony-pdx201

Makefile
12
star
58

device-sony-mermaid

Makefile
11
star
59

device-sony-griffin

Makefile
11
star
60

device-sony-akatsuki

Makefile
11
star
61

device-sony-lena

Makefile
10
star
62

device-sony-sgp321

Shell
10
star
63

device-sony-bahamut

Makefile
10
star
64

device-sony-tone

Makefile
10
star
65

mkqcdtbootimg

C
10
star
66

device-sony-kitakami

Makefile
10
star
67

device-sony-keyaki

Makefile
10
star
68

device-sony-satsuki

Makefile
9
star
69

device-sony-sagami

Makefile
9
star
70

vendor-sony-kernel

Makefile
9
star
71

device-sony-nile

Makefile
8
star
72

vendor-qcom-opensource-wlan-qcacld-3.0

C
8
star
73

repo_update

Shell
8
star
74

CameraTest

Java
8
star
75

device-sony-kirin

Makefile
8
star
76

device-sony-tulip

Makefile
7
star
77

device-sony-pdx215

Makefile
7
star
78

device-sony-pdx203

Makefile
7
star
79

vendor-sony-oss-simdetect

Kotlin
7
star
80

device-sony-pdx223

Makefile
7
star
81

prima

Mirror of git://codeaurora.org/external/wlan/prima.git
C
7
star
82

device-sony-yukon

Makefile
7
star
83

device-sony-rhine

Makefile
7
star
84

device-sony-castor

Makefile
7
star
85

device-sony-pdx213

Makefile
6
star
86

kernel-techpack-audio

C
6
star
87

device-sony-eagle

Makefile
6
star
88

timekeep

C
6
star
89

device-sony-c6503

Shell
6
star
90

device-sony-sepolicy

Makefile
6
star
91

kernel-sony-msm-4.9-common

Shell
5
star
92

device-qcom-sepolicy

Makefile
5
star
93

device-sony-pdx214

Makefile
5
star
94

device-sony-flamingo

Makefile
5
star
95

device-sony-kanuti

Makefile
5
star
96

vendor-qcom-opensource-audio-hal-primary-hal

C
5
star
97

device-sony-tianchi

Makefile
5
star
98

transpower

Java
5
star
99

device-sony-pdx225

Makefile
5
star
100

vendor-broadcom-wlan

Makefile
5
star