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
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 |
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
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 |
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
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 |
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
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 |
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
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") |
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
nm -aDC --defined-only youso.so |
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
AndroidManifest中的name为固定com.saurik.substrate.main | |
value为类名。.开头的话为相对包名 |
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
#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]); |
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
刚开始都是相同的,都是将源输入分析成一个语法树。 | |
但是之后,编译器会将语法树转换成其他语言。 | |
而解释器一边分析语法树一边执行。 |
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
gcc -E foo.c -o foo.i | |
gcc -S foo.i -o foo.s |