Skip to content

Instantly share code, notes, and snippets.

wuairc wuairc

View GitHub Profile
@wuairc
wuairc / adb_pull_all_apk_in_device_dir.sh
Created Jan 25, 2019
adb pull files (jars, apks) from device directory
View adb_pull_all_apk_in_device_dir.sh
for i in `adb shell find /system/vendor/app -name '*.apk'`;
do
adb pull $i
done
@wuairc
wuairc / index.js
Created Jan 9, 2019 — forked from edokeh/index.js
佛祖保佑,永无 BUG
View index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@wuairc
wuairc / android-get-generated-apk-files.gradle
Last active Mar 19, 2017
Android: Get generated apk files on build finish.
View android-get-generated-apk-files.gradle
// 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 Sep 29, 2015
Demangle type name generated by gcc, and test various string prefix.
View gcc-demangle-type-name-string-types.cpp
#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);
}
You can’t perform that action at this time.