Skip to content

Instantly share code, notes, and snippets.

View mcxiaoke's full-sized avatar

Hello World mcxiaoke

  • Earth
View GitHub Profile
@mcxiaoke
mcxiaoke / mitm_start.sh
Last active May 6, 2022 10:55
GrassCutter autopatchhk.yuanshen.com mitmproxy script
#!/bin/sh
./bin/mitmweb --no-web-open-browser --web-host 0.0.0.0 -s ./custom_proxy.py -k --set tls_version_server_min=SSL3 --set tls_version_client_min=SSL3 --verbose

1. Create new branch:

git checkout -b otherrepo-master master

2. Get the contents of the PR

git pull https://github.com/otherrepo/my-repo-name.git master
@mcxiaoke
mcxiaoke / shittyinjector.cpp
Created May 2, 2022 07:31 — forked from khang06/shittyinjector.cpp
Barebones launcher/injector for mhynot2
#include <Windows.h>
#include <stdio.h>
#define GAME_DIR L"D:\\Games\\Genshin Impact\\Genshin Impact game"
#define DLL_PATH "C:\\Users\\Khang\\source\\repos\\mhynot2-rewritten\\x64\\Debug\\mhynot2-rewritten.dll"
int main() {
printf("hi\n");
SetCurrentDirectoryW(GAME_DIR);
@mcxiaoke
mcxiaoke / aria2.conf
Created March 26, 2022 06:21 — forked from qzm/aria2.conf
Best aria2 Config
### Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
@mcxiaoke
mcxiaoke / miui-safe-disabled-apps.md
Last active August 22, 2023 22:53
MIUI Safe Disabled Apps (MIUI 13)

Intro

Disable app pm disable-user app.package.name

Re-enable it pm enable app.package.name

Uninstall app Sometimes uninstall command may not work without -k option on un-rooted devices

@mcxiaoke
mcxiaoke / miui-system-apps.md
Created February 27, 2022 08:17
Xiaomi MIUI 13 System Apps (20220227)

MIUI 13 System Apps

标记说明

  • ★ 不能删,MIUI系统核心组件
  • ◉ 不能删,Android系统核心组件

Android系统组件

标记 应用 包名
@mcxiaoke
mcxiaoke / unicode-script-value-alias.txt
Created February 27, 2022 03:56
Unicode Script Value Alias
# Script (sc)
sc ; Adlm ; Adlam
sc ; Aghb ; Caucasian_Albanian
sc ; Ahom ; Ahom
sc ; Arab ; Arabic
sc ; Armi ; Imperial_Aramaic
sc ; Armn ; Armenian
sc ; Avst ; Avestan
sc ; Bali ; Balinese
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active June 4, 2024 14:06
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@mcxiaoke
mcxiaoke / checkSystemSelfProtection.java
Last active February 26, 2022 14:33
Xiaomi MIUI 13 system protection in com.miui.server.SecurityManagerService line 664 in /system/framework/miui-services.jar
/* JADX WARN: Type inference failed for: r0v0, types: [com.miui.server.SecurityManagerService$1] */
private void checkSystemSelfProtection(final boolean z) {
new Thread() { // from class: com.miui.server.SecurityManagerService.1
@Override // java.lang.Thread, java.lang.Runnable
public void run() {
Process.setThreadPriority(10);
if (!miui.os.Build.IS_TABLET && !z) {
System.currentTimeMillis();
PackageManager packageManager = SecurityManagerService.this.mContext.getPackageManager();
try {
@mcxiaoke
mcxiaoke / android-backup-apk-and-datas.md
Created February 24, 2022 14:56 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

To get the list of your installed applications: