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
| # Step 3. Generate Makefile with CMake. | |
| # -Dprotobuf_BUILD_SHARED_LIBS=ON By default is static library (*.a file). I want a | |
| # shared library (*.so file). | |
| # -DCMAKE_INSTALL_PREFIX Because it's a cross-compiled library. You probably | |
| # want to install the header files and shared library | |
| # in specific folder rather than default /usr/local | |
| # directory. | |
| # -DANDROID_STL=c++_shared For the library using C++11, link to C++11 runtime. | |
| # -DANDROID_LINKER_FLAGS="-landroid -llog" For the library using functions of libandroid.so | |
| # and liblog.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
| export PREFIX=~/Downloads/protobuf-3.5.0/build-v7a/ | |
| export PATH=$TOOLCHAIN/bin:$PATH | |
| export SYSROOT=$TOOLCHAIN/sysroot | |
| export CC="arm-linux-androideabi-clang --sysroot $SYSROOT" | |
| export CXX="arm-linux-androideabi-clang++ --sysroot $SYSROOT" | |
| export CXXSTL=$NDK_HOME/sources/cxx-stl/gnu-libstdc++/4.9 | |
| export LD=$TOOLCHAIN/bin/arm-linux-androideabi-ld | |
| ../configure \ | |
| --prefix=$PREFIX \ |
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
| adb reverse localabstract:droidpuppet_endpoint tcp:12345 | |
| PACKAGE=`pm path me.sweetll.gowther` PACKAGE=${PACKAGE#*:} | |
| CLASSPATH=$PACKAGE app_process -Djava.library.path=/system/lib64:${PACKAGE%/*}/lib/arm64 /system/bin me.sweetll.gowther.Main |
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
| #pragma once | |
| #include <cstdio> | |
| extern "C" { | |
| #include <SDL/SDL.h> | |
| #include <libavcodec/avcodec.h> | |
| #include <libavformat/avformat.h> | |
| #include <libswscale/swscale.h> | |
| #include <libavutil/pixfmt.h> | |
| #include <libavutil/error.h> |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #include <linux/input.h> | |
| #include <linux/uinput.h> | |
| #define die(str, args...) do { \ |
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
| # Built application files | |
| /*/build/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties | |
| # Gradle generated files |