Skip to content

Instantly share code, notes, and snippets.

View EvilAnsh's full-sized avatar
🎯
Focusing

αиѕн EvilAnsh

🎯
Focusing
  • Bihar, India
  • 10:25 (UTC +05:30)
View GitHub Profile
@EvilAnsh
EvilAnsh / crave-evo.sh
Last active September 1, 2025 06:33
EVOLUTION-X BUILD SCRIPT FOR [CRAVE]
#!/bin/bash
rm -rf .repo/local_manifests; \
# Rom source repo
repo init -u https://github.com/Evolution-X/manifest -b bka --git-lfs; \
echo "=================="; \
echo "Repo init success"; \
echo "=================="; \
@EvilAnsh
EvilAnsh / Setup.sh
Last active May 19, 2025 07:20
Setup Android env in Linux
#!/bin/bash
# Set username and email
USERNAME="Ansh"
EMAIL="singhansh64321@gmail.com"
# Configure Git
git config --global user.name "$USERNAME"
git config --global user.email "$EMAIL"
@EvilAnsh
EvilAnsh / SEPolicy.patch
Created March 30, 2024 05:43
[PATCH] sepolicy: Exclude debug sepolicies on user build
From f3921757e47a5bd53df91050952551549da15d40 Mon Sep 17 00:00:00 2001
From: SamarV-121 <samar@samarv121.dev>
Date: Sat, 30 Mar 2024 10:58:48 +0530
Subject: [PATCH] sepolicy: Exclude debug sepolicies on user build
Change-Id: I76a43816185c98e08e0439cd29d3f7a3325ca795
---
SEPolicy.mk | 18 +++++++++++++-----
bsp/debug/plat_private/system_server.te | 7 +++++++
bsp/plat_private/system_server.te | 7 -------
@EvilAnsh
EvilAnsh / Blaze.sh
Last active August 19, 2024 06:14
Blaze
# Vendor
rm -rf vendor/realme/RM6785-common
if [ ! -d "vendor/realme/RM6785-common" ]; then
mkdir -p vendor/realme/RM6785-common
git clone https://github.com/PixelOS-Devices/vendor_realme_RM6785-common.git -b fourteen vendor/realme/RM6785-common
sed -i 's/RMX2001L1 RMX2151L1/& RM6785/' vendor/realme/RM6785-common/Android.mk
fi
# Kernel
rm -rf kernel/realme/mt6785