This page describes how to setup Grafana Promtail and Loki for sending the contents of local logs to the centralized Grafana Loki server or Grafana Cloud.
- Docker Engine
- Docker Compose
This page describes how to build and run containers from scratch, and configure container networking from scratch
using the command line tools, chroot
, unshare
, ip
and the Linux kernel feature, Namespaces
. We will also demonstrate how to use them.
This page contains a guide on how to setup Ccache, Compiler Cache, and speed up the C/C++ compilation time using Ccache. And this guide will focus on the Linux x86_64 system.
Make sure you installed the following tools on your Linux host.
Please, see the details information on Minimal requirements to install required build tools on your Linux host for compile the Busybox and Linux kernel.
# This Android.mk is for compiling AudioWaveMaker Android app | |
# for Android Make Build System. | |
# | |
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \ | |
frameworks/support/design/res \ | |
frameworks/support/v7/appcompat/res \ | |
frameworks/support/v17/leanback/res |
<!-- Networking and telephony --> | |
<uses-permission android:name="android.permission.BLUETOOTH" /> | |
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | |
<uses-permission android:name="android.permission.CONTROL_VPN" /> |
# Inline Kernel Build | |
KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/aarch64/aarch64-linux-android-4.9/bin | |
KERNEL_TOOLCHAIN_PREFIX := aarch64-linux-android- | |
TARGET_KERNEL_SOURCE := kernel/lge/bullhead | |
TARGET_KERNEL_CONFIG := bullhead_defconfig | |
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb |
# USEFUL TWRP RECOVERY FLAGS | |
# by ZawZaw @XDA-Developers | |
# Thanks to : @xda-developers for helps | |
# Add EXT4 support | |
TARGET_USERIMAGES_USE_EXT4 := true | |
# Disable/enable SELinux. Only suggested when you want to enable SELinux support | |
TWHAVE_SELINUX := true |
# Inline Kernel Build | |
KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/aarch64/aarch64-linux-android-4.9/bin | |
KERNEL_TOOLCHAIN_PREFIX := aarch64-linux-android- | |
TARGET_KERNEL_SOURCE := kernel/moto/shamu | |
TARGET_KERNEL_CONFIG := shamu_defconfig | |
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb |
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape> | |
<solid android:color="@android:color/white" /> | |
<corners android:radius="3dp" /> | |
<stroke android:width="2dp" android:color="@color/color_primary" /> | |
</shape> | |
</item> | |
</selector> |