Skip to content

Instantly share code, notes, and snippets.

View huhuang03's full-sized avatar
😀
please focus

Aha huhuang03

😀
please focus
View GitHub Profile
#include <android/log.h>
#define TAG "projectname" // 这个是自定义的LOG的标识
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,TAG ,__VA_ARGS__) // 定义LOGD类型
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,TAG ,__VA_ARGS__) // 定义LOGI类型
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,TAG ,__VA_ARGS__) // 定义LOGW类型
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,TAG ,__VA_ARGS__) // 定义LOGE类型
#define LOGF(...) __android_log_print(ANDROID_LOG_FATAL,TAG ,__VA_ARGS__) // 定义LOGF类型
repo sync -f --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
@huhuang03
huhuang03 / GitConfigHttpProxy.md
Created May 16, 2020 11:09 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

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
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
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
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为类名。.开头的话为相对包名