# put stock boot.img into /sdcard/boot.img
# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)
This file contains hidden or 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
| #!/system/bin/sh | |
| until [ -d "/sdcard/Android" ]; do | |
| sleep 3 | |
| done | |
| sleep 10 | |
| sh /sdcard/xiaomi-camera-checker.sh >>/sdcard/xiaomi-camera-checker.log 2>&1 |
This file contains hidden or 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
| #!/sbin/sh | |
| # | |
| # Copyright (C) 2018 Unlegacy Android Project | |
| # Copyright (C) 2018 Svyatoslav Ryhel | |
| # Copyright (C) 2019 Nick80835 | |
| # Copyright (C) 2019 z3dd3r | |
| # | |
| # Made for Hammerhead | |
| # |
sudo pacman -S --needed base-devel git gnupg flex bison zip curl zlib libx11 mesa libxml2 libxslt unzip fontconfig gcc-multilib ccache bc git-lfs gperf imagemagick protobuf python-protobuf elfutils ncurses lz4 sdl libxml2 lzop rsync squashfs-tools fontconfig imagemagick ttf-dejavu cpio git-lfs freetype2 unzip zip rsync
This file contains hidden or 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
| [ | |
| { | |
| "name": "Battery health", | |
| "description": "当充电状态变化时,显示电池健康度", | |
| "priority": 1, | |
| "delay": 250, | |
| "condition": "powerConnected || powerDisconnected", | |
| "actions": [ | |
| "ui.showLongToast(\"电池健康度 \" + su.exe(\"cat /sys/class/power_supply/bms/battery_h\").out[0] + \"\n循环次数 \" + su.exe(\"cat /sys/class/power_supply/battery/cycle_count\").out[0]);" | |
| ] |
- shadowsocks-libev: v3.3.5-6329526199674ddda8d8396a66072890b244972b
- shadowsocks-rust: v1.10.7
- 测试脚本: https://gist.github.com/pexcn/93b6ae3e137dfc11fda8a01abc6898fa
- 若不知道 CPU 是否支持 AES-NI, 则
chacha20-ietf-poly1305为最稳妥的选择。 - 若 CPU 支持 AES-NI, 则 shadowsocks-rust 选择
aes-128-gcm, shadowsocks-libev 选择aes-256-gcm为最佳。
- Modifying MSR may void your CPU's (or system board's) warranty. Proceed with caution. I am not responsible for any damage caused by this article.
- MSR addresses vary significantly between CPUs. Check your CPU's MSR address using Intel's documentation.
- This has only been tested on the Intel i7-8550U (Kaby Lake R).
- This article is a translation of this article. If you can read Korean, I recommend reading that article instead.
NewerOlder