Giter Club home page Giter Club logo

appfence's Introduction

Appfence

This project is obsoleted. We move on extending strace not ptrace for our desired functionalities.

Appfence is an android sandbox that provides both traditional file/network isolation as well as Android-specific sandboxing. Appfence provides two major functionalities:

  • redirect files accessed by the sandboxed app. Thus the sandboxed app cannot access files belonging to the same app in normal mode.
  • Android API sandboxing, which is under investigation.

Note: Appfence operates on system call level (ptrace-based).

Getting started

Eclipse + CDT + Android NDK + Android SDK

The project is mainly using Android NDK toolchain (compilers, scripts, debuggers) for development. Also Android SDK is needed if the actual device is needed for development.

Eclipse setup

  • We need some environment variables in Eclipse for the NDK path. Here are the pics.
  • First setup the Android NDK path:
  • Second setup the environment variables. Note that on Windows the build script is ndkbuild.cmd. On Linux it is ndkbuild.
  • Now import the project to Eclipse, you should see include/ resolved.

Building the project

  • There is no auto build enabled. So once the code is changed, you need to go to Run->Build All.
  • Make sure NDK build works fine and no errors pop up (in best case, no warnings too).

Testing (Run)

  • The testng can be done in an emulated device or an actual device. An external tool is provided to upload the executable and launch it. The launch configuration is appfence cpp.launch, which in turns calls the run.bat script.

Debugging

  • The GDB way will come soon

Adding src files

  • The Android.mk in the jni folder is the build script, which is straightforward. Everytime you add new source files, add it to this makefile.
  • The Makefile at the project root folder is just for non-Eclipse developers.
  • Note that you cannot change the jni folder name, which is identified by the Android build tool chain.

appfence's People

Contributors

qqfish avatar mingyuan-xia 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.