All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
- Download Android SDK, NDK, system and kernel source code;
- Download modified lxc and libcap source code (ppoffiec/lxc-android, ppoffice/libcap-android)
- Build Android system from source first so that we can link to its shared library when we build lxc (or maybe we don't have to);
- Modify Android kernel config and make sure lxc-checkconfig does not report any missing features. Then build kernel;
- Modify Android
system/core/rootdir/init.rcaccording toinit.rc.diff. Make sure you mount all the cgroup subsystems needed (cpu, cpuacct, cpuset, memory, pids, devices, freezer, blkio) under/sys/fs/cgruop, otherwise lxc won't find them; - Rebuilt the Android system image so that the modified init.rc is in the image;
- Fire up the emulator with custom kernel (
emulator -kernel kernel-file-path) and use adb shell and dmesg to check if everything is doing ok.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/dexlayout/Android.bp b/dexlayout/Android.bp | |
| index 33ba58f..f3b2a7e 100644 | |
| --- a/dexlayout/Android.bp | |
| +++ b/dexlayout/Android.bp | |
| @@ -74,6 +74,13 @@ cc_defaults { | |
| ], | |
| } | |
| +cc_defaults { | |
| + name: "compact_dex_converter_defaults", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/oatdump/Android.bp b/oatdump/Android.bp | |
| index 71e276d..3d50229 100644 | |
| --- a/oatdump/Android.bp | |
| +++ b/oatdump/Android.bp | |
| @@ -35,6 +35,7 @@ art_cc_binary { | |
| shared_libs: [ | |
| "libart", | |
| "libart-compiler", | |
| + "libart-dexlayout", | |
| "libart-disassembler", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.graphics.PointF; | |
| import android.view.animation.Interpolator; | |
| /** | |
| * From https://github.com/codesoup/android-cubic-bezier-interpolator | |
| * Derived from: https://github.com/rdallasgray/bez | |
| */ | |
| public class CubicBezierInterpolator implements Interpolator { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |