Skip to content

Instantly share code, notes, and snippets.

View huhuang03's full-sized avatar
😀
please focus

Aha huhuang03

😀
please focus
View GitHub Profile
private fun miuiPermissionIntent(context: Context): Intent {
val intent = Intent("miui.intent.action.APP_PERM_EDITOR")
intent.putExtra("extra_pkgname", context.packageName)
if (hasActivity(context, intent)) return intent
intent.setPackage("com.miui.securitycenter")
if (hasActivity(context, intent)) return intent
intent.setClassName("com.miui.securitycenter", "com.miui.permcenter.permissions.AppPermissionsEditorActivity")
return intent
How do I uninstall?
1. Remove /Applications/Wireshark.app
2. Remove /Library/Application Support/Wireshark
3. Remove the wrapper scripts from /usr/local/bin
4. Unload the org.wireshark.ChmodBPF.plist launchd job
5. Remove /Library/LaunchDaemons/org.wireshark.ChmodBPF.plist
6. Remove the access_bpf group.
7. Remove /etc/paths.d/Wireshark
8. Remove /etc/manpaths.d/Wireshark
bash-3.2$ m iso_img
make: Entering directory '/Volumes/android/source/android-x86'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=android_x86
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86
VERSION = 1
PATCHLEVEL = 22
SUBLEVEL = 1
EXTRAVERSION =
NAME = bionic
# prevent local tree builds in bionic,
# but allow initial version check (SUBMAKE)
ifeq (,$(filter s, $(MAKEFLAGS)))
KBUILD_OUTPUT ?= $(OUT)/obj/busybox
attach进程的两种方式,第一种是重新运行游戏
device = frida.get_usb_device()
pid = device.spawn("com.cocos2d.fishingfun.uc")
session = device.attach(pid)
device.resume(pid)
第二种是运行之后附加
device = frida.get_usb_device()
session = device.attach("com.cocos2d.fishingfun.uc")
nm -aDC --defined-only youso.so
AndroidManifest中的name为固定com.saurik.substrate.main
value为类名。.开头的话为相对包名
#include <stdlib.h>
#include <stdio.h>
int len = 8;
void quick_sort_iter(int*, int, int);
void printArray(int array[], int len) {
for(int i = 0; i < len; i++) {
printf("%d ", array[i]);
@huhuang03
huhuang03 / gist:e00909ccacbd499d1ac835b35d7d5770
Created December 4, 2017 06:23
编译器和解释器的区别
刚开始都是相同的,都是将源输入分析成一个语法树。
但是之后,编译器会将语法树转换成其他语言。
而解释器一边分析语法树一边执行。
gcc -E foo.c -o foo.i
gcc -S foo.i -o foo.s