GithubHelp home page GithubHelp logo

apkparser's Introduction

ApkParser

Using Config

In your config, you will be seeing something like this:

[B1]  
resConfigs = en, tr

[B5]  
minSdkVersion = 16

...
  • To add more than one items like in [B1], use ' , ' to seperate items.
  • For others, you can just change the value. For example in [B5] you can change your minSdkVersion into 19 by changing B5 into:
[B5] 
minSdkVersion = 19

Warning: you should not delete any of the sections in the default configuration file, otherwise the program will crash.

Command Line Parameters

There are 3 parameters that the script uses. You can use -h option to see the parameter tags and their description like below:

python initializer.py -h
usage: initializer.py [-h] [-d [DIR]] [-c [CONFIG]] [-a [APK]] [-t TASKS]

optional arguments:
  -h, --help            show this help message and exit
  -d [DIR], --dir [DIR]
                        Directory location
  -c [CONFIG], --config [CONFIG]
                        Config File Location
  -a [APK], --apk [APK]
                        Apk Location
  -t TASKS, --tasks TASKS
                        Optional task file to import check functions

Test functions

Tests of the Checklist are divided into 2 files. yigit.py and berker.py .
Each contains a Checklist class and relevant test functions. You can call execute_test_batch() function after initializing the Checklist object to run all the tests or you can call the tests from the initialized object individually.

  • Executing all tests
 test_results = self.checklist_yigit.execute_test_batch(config_location)
  • Executing individual tests
  man1_result = self.checklist_yigit.man1()
  # Some tests require extra parameters so you need to parse the configuration file
  config = ConfigParser.ConfigParser()
  config.read(config_location)
  proguardList = config.get('PRG3', 'proguardList')
  prg3_result = self.checklist_yigit.prg3(proguardList)

Result report

Script creates the result report as a directory. You can set the location of the report directory from the [OUTPUT] section of the configuration file.

apkparser's People

Contributors

ebsenol avatar yigitozgumus avatar

Watchers

 avatar  avatar

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.