This file contains 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
Devices that have been tested, may require the latest firmware | |
▪️ Infinix NOTE 30 (X6833B) | |
▪️ Infinix NOTE 30 Pro (X678B) | |
▪️ Infinix NOTE 12 2023 (X676C) | |
▪️ POVA 4 (LG7n) | |
▪️ POVA 4 Pro (LG8n) | |
▪️ POVA 5 (LH7n) |
This file contains 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
#!/bin/bash | |
# Set the input file | |
file="transsion_touch.ko" | |
# Define patterns for replacement | |
pattern1='0000004a' | |
pattern2='patched_get_boot_mode' | |
# Patching the file |
This file contains 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
step_commits=$(git log --oneline --reverse refs/heads/android14-6.1-2023-11 | awk 'NR % 500000 == 0') | |
echo "$step_commits" | while read commit message; do git push -f rama $commit:refs/heads/android14-6.1-2023-11; done |
This file contains 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
# Charging monitor Infinix Note 10 Pro | |
# usage: watch bash chg.sh | |
# get values from kernel | |
current=$(cat /sys/devices/platform/tran_battery/Pump_Express_ICharger)0 | |
volt=$(cat /sys/devices/platform/tran_battery/Pump_Express_VCharger) | |
temp=$(cat /sys/class/thermal/thermal_zone20/temp) | |
# return 0 if not charging | |
if [ ${#current} -le 4 ]; then curr=$current; else curr=0; fi |
This file contains 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
#!/bin/bash | |
# kernel build script (kanged from somewhere i forgot) | |
# fill the vars yourself | |
DEFCONFIG=lancelot_defconfig | |
AK=https://github.com/rama982/AnyKernel3 | |
ZIPNAME="Genom-OSS-lancelot-BETA" | |
# telegram env |
This file contains 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
#/bin/bash | |
# optimize image files with PNGOUT | |
# usage: bash imageopti.sh dir 4 | |
# images directory | |
DIR=$1 | |
# threads | |
N=$2 | |
for images in $DIR/* |
This file contains 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 sys, os, time | |
from telethon.sync import TelegramClient | |
from telethon.tl.functions.messages import GetAllChatsRequest | |
from telethon import errors | |
import math | |
def callback(current, total): | |
curr = convert_size(current) | |
tot = convert_size(total) | |
print('Downloaded', curr, 'out of', tot, |
This file contains 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
#!/usr/bin/env bash | |
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\ | |
function register_clang_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \ |
This file contains 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
#!/bin/bash | |
# Script to download large files from google drive using curl | |
# Source https://stackoverflow.com/a/38937732 | |
# Edited by rama982 | |
# Usage example: bash gdcurl.sh 1WPyPIX07W4diry8ZifQWZlPpDa4UWg2s cookies.txt | |
# google file ID | |
ggID=$1 | |
# google url |
This file contains 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
0.0.0.0 10.235.124.13 | |
0.0.0.0 10.99.168.145 | |
0.0.0.0 10.99.184.96 | |
0.0.0.0 a.stat.xiaomi.com | |
0.0.0.0 abtest.mistat.intl.xiaomi.com | |
0.0.0.0 abtest.mistat.xiaomi.com | |
0.0.0.0 account.jetbrains.com | |
0.0.0.0 account.preview.n.xiaomi.net | |
0.0.0.0 account.xiaomi.com | |
0.0.0.0 ad.mi.com |