- Install https://www.msys2.org/docs/installer/
- Use UCRT64 shell
Follow installation docs.
- git clone && cd to dir
- uv venv && mkdir build
Follow installation docs.
| """ | |
| Test cloudflare WARP endpoints | |
| Select all the best WARP endpoints | |
| Thanks to https://gitlab.com/Misaka-blog/warp-script#warp-endpoint-ip-优选脚本 | |
| """ | |
| import asyncio | |
| import csv | |
| import ipaddress | |
| import logging |
| set showmatch " show matching | |
| set ignorecase " case insensitive | |
| set mouse= " disable mouse | |
| set hlsearch " highlight search | |
| set incsearch " incremental search | |
| set tabstop=4 " number of columns occupied by a tab | |
| set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing | |
| set expandtab " converts tabs to white space | |
| set shiftwidth=4 " width for autoindents | |
| set autoindent " indent a new line the same amount as the line just typed |
| " -- Native | |
| syntax on " syntax highlighting | |
| set nocompatible " disable compatibility to old-time vi | |
| set showmatch " show matching | |
| set ignorecase " case insensitive | |
| set mouse=v " middle-click paste with | |
| set hlsearch " highlight search | |
| set incsearch " incremental search | |
| set tabstop=4 " number of columns occupied by a tab | |
| set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing |
usbmuxd (available via brew)scp to copy file to/from deviceForward remote (iDevice) port 44 (Dropbear SSH) to local (Mac) 2222
The CTREE is built from the optimized microcode (maturity at CMAT_FINAL), it represents an AST-like tree with C statements and expressions. It can be printed as C code.
Extract boot.img from target(android phone) 1.1 If you only have kernel and ramdisk in boot partition, use mkbootimg to create a boot.img from those files
put boot_patch.sh and util_functions.sh from common into Magisk directory matching with HOST MACHINE(pc/raspberry) architecture (x86/arm) 2.1 The scripts can be found in Magisk github under scripts/ 2.2 If running on host machine, comment out util_functions.sh line 35 and replace it with echo "$1"
Run "./boot_patch.sh $path_to_boot_img" and it will automatically be patched and WILL BE SAVED AS new-boot.img 3.1 Optionally, before running script, you can set KEEPVERITY & KEEPFORCEENCRYPT env vars for patched boot.img 3.2 Optionally, delete leftover files such as kernel, ramdisk.cpio & stock_boot if u want.