Giter Club home page Giter Club logo

twoyi's Introduction

Twoyi Platform

A lightweight Android container on Android

contributions welcome Website

Built with ❤︎ by Twoyi


Screenshot

Introduction

Twoyi is a lightweight Android container. It can run a relatively complete Android system as a normal app (no ROOT required) on Android. And it supports Android 8.1 ~ 12.

Capability

  1. Using Taiji·Yang without unlock bootloader; Xposed, EdXposed, and LSPosed can also be supported later(no ROOT required).
  2. Using ROOT function on Rootless devices.
  3. Magisk module will be partially supported.
  4. The HAL layer of Twoyi is virtualizable; e.g. virtual camera, etc.
  5. Twoyi can also be used for security research; e.g. shelling, etc.

Features

  1. Twoyi is a rootless Android system-level container; it runs a relatively complete Android system inside and can be isolated to a certain extent from the external system.
  2. The internal Android version is Android 8.1; Android 10 will be supported later.
  3. The booting of Twoyi is very fast, the system can be booted in about three seconds except the first initialization.
  4. Twoyi is an open source project.
  5. The internal system of Twoyi will be fully customizable. Because its system is open source, you can pull a branch to compile AOSP; do custom development of system components, such as framework, HAL; implement virtual cameras, virtual sensors and other special features.

How to Build

Twoyi is divided into two parts:

  1. the twoyi App, which is actually a UI rendering engine.
  2. the internal ROM of twoyi.

This repository is the twoyi App, and the twoyi ROM is opensource-ing; therefore, at this stage, the rootfs of the ROM cannot be compiled from the source code yet.

Build Twoyi ROM

WIP

Build Twoyi App

Install Rust

Twoyi is partially written in Rust, please install Rust and Cargo first

You can check it by running: ./gradlew cargoBuild, if it succeed, you will see the libtwoyi.so in app/src/main/jniLibs/arm64-v8a.

Install cargo-ndk

Please refer: cargo-ndk

Integrating rootfs

The ROM of Twoyi is opensource-ing, so you cannot build it now. You can use the prebuilt ROM instead.

Extracting the rootfs.7z from the official release apk and put it in the app/assets directory of this project.

Build with Android Studio

Final step, just build it with Android Studio normally.

Discussion

Telegram Group

Contacts

[email protected]

twoyi's People

Contributors

tiann 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.