Skip to content

Instantly share code, notes, and snippets.

View wuairc's full-sized avatar

wuairc wuairc

View GitHub Profile
@wuairc
wuairc / adb_pull_all_apk_in_device_dir.sh
Created January 25, 2019 08:04
adb pull files (jars, apks) from device directory
for i in `adb shell find /system/vendor/app -name '*.apk'`;
do
adb pull $i
done
@wuairc
wuairc / index.js
Created January 9, 2019 04:15 — forked from edokeh/index.js
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@wuairc
wuairc / android-get-generated-apk-files.gradle
Last active March 19, 2017 12:54
Android: Get generated apk files on build finish.
// copy to the build.gradle file of your project's application module
project.afterEvaluate {
final Set<File> possibleOutputFiles = new HashSet<>()
android.applicationVariants.each {
it.outputs.each { BaseVariantOutput output ->
possibleOutputFiles.add(output.outputFile)
}
}
@wuairc
wuairc / gcc-demangle-type-name-string-types.cpp
Last active September 29, 2015 15:03
Demangle type name generated by gcc, and test various string prefix.
#include <iostream>
#include <iomanip>
#include <typeinfo>
#include <cxxabi.h>
static char *getDemangledName(const char *mangledName) {
int status;
return abi::__cxa_demangle(mangledName, 0, 0, &status);
}