Skip to content

Instantly share code, notes, and snippets.

View karthik4579's full-sized avatar

karthik nair karthik4579

View GitHub Profile

CentOS 7 AOSP Building Guide

install libraries

# fetch source
sudo yum install git
sudo yum install wget
# to compile
sudo yum install java-1.7.0-openjdk
@karthik4579
karthik4579 / Bringup.md
Created February 18, 2022 06:20 — forked from mvaisakh/Bringup.md
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@karthik4579
karthik4579 / remove-git-config.sh
Created July 5, 2022 06:08 — forked from vanpeerdevelopment/remove-git-config.sh
Command to remove a git configuration.
# Remove repository configuration
git config --unset [key]
# Remove global configuration
git config --global --unset [key]
# Remove system configuration
git config --system --unset [key]
installmake ()
{
cd /tmp || exit 1
axel -a -n 10 https://ftp.gnu.org/gnu/make/make-"${1:?}".tar.gz
tar xvzf /tmp/make-"${1:?}".tar.gz
cd /tmp/make-"${1:?}" || exit 1
./configure
bash ./build.sh
sudo install ./make /usr/local/bin/make
cd - || exit 1
@karthik4579
karthik4579 / BuildGuide.txt
Created August 25, 2022 13:59 — forked from masemoel/BuildGuide.txt
How to build an A10+ ROM from scratch under Ubuntu 20.04 (or based) and higher
To build a A10+ (AOSP/LOS based) on Ubuntu 20.04+ (or distros based on it), there are four main steps:
(This guide is applicable for recoveries as well (TWRP, OFRP...))
Working on Android 9, 10, 11 and 12
#################################################################
# Step 1: Setup your environment #
#################################################################
****Setup Linux to build Android****
@karthik4579
karthik4579 / 8GB_android-12_compilation-note
Created August 25, 2022 13:59 — forked from verNANDo57/8GB_android-12_compilation-note
Workarounds for building Android 12 on 8GB RAM
Workarounds for building S on 8GB RAM environment:
1. At the start of the build:
[ 99% 138/139] /mnt/ssd/lineage/out/soong/.bootstrap/bin/soong_build /mnt/ssd/lineage/out/soong/build.ninja
This used to take around 30mins, after enabling zram now it takes around 30secs (thanks to @kdrag0n for the zram idea) which is on par with what happens in 16GB RAM building environments
sudo apt install zram-config for installing zram-config package
sudo nano /etc/fstab and add a # in front of the swap disk if you have one and then reboot
After booting cat /proc/swaps to check if zram is enabled or not
@karthik4579
karthik4579 / sepolicy.md
Created August 30, 2022 17:41 — forked from msfjarvis/sepolicy.md
How to write sepolicy to fix a denial
#!/bin/bash
while true;
do
echo "running ..."
sleep 2s
done
#!/bin/bash
git clone https://github.com/ccache/ccache.git && cd ccache
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make && make install
udp://tracker.opentrackr.org:1337/announce
https://tracker2.ctix.cn:443/announce
https://tracker1.520.jp:443/announce
udp://opentracker.i2p.rocks:6969/announce
http://tracker.openbittorrent.com:80/announce