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
| Register in the manifest receiver that catch all possible implicit broadcasts | |
| (https://developer.android.com/guide/components/broadcast-exceptions) | |
| In this example I used locale changed broadcast. | |
| <receiver android:name=".broadcast.HackBroadcast" | |
| android:exported="true" | |
| android:enabled="true"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.LOCALE_CHANGED" /> |
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
| git clone https://github.com/u-boot/u-boot.git | |
| cd u-boot | |
| git checkout -b emmc_env v2023.04-rc5 | |
| export CROSS_COMPILE=arm-linux-gnueabi- && export ARCH=arm | |
| make am335x_evm_defconfig | |
| make xconfig | |
| # Go to Environment -> Device and partition for where to store the environment in FAT -> Enter 1:1. Save config | |
| make -j8 |
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
| sudo apt install sed make binutils gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync wget libncurses-dev | |
| git clone https://git.buildroot.net/buildroot | |
| git checkout -b bootlin 2022.02 | |
| make beaglebone_defconfig | |
| make -j16 |
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
| package some.pkg | |
| import android.content.SharedPreferences | |
| import com.squareup.moshi.JsonAdapter | |
| import kotlinx.coroutines.channels.BufferOverflow | |
| import kotlinx.coroutines.flow.MutableSharedFlow | |
| import timber.log.Timber | |
| import kotlin.properties.ReadWriteProperty | |
| import kotlin.reflect.KProperty |
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
| #!/bin/bash | |
| input=$1 | |
| if [ -z "$input" ] | |
| then | |
| echo "Usage test.h input_file_path" | |
| echo "File path is empty" | |
| exit | |
| fi |
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
| apktool d ${APK_NAME}.apk | |
| apktool b --use-aapt2 . | |
| jarsigner -verbose -keystore ~/.android/debug.keystore -storepass android -keypass android *.apk androiddebugkey |
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
| #!/bin/bash | |
| export OPENCV_ROOT=/mnt/hdd/Downloads/opencv/3.4.7 | |
| export ANDROID_STANDALONE_TOOLCHAIN=${OPENCV_ROOT}/build/toolchain | |
| export ANDROID_NDK=/mnt/hdd/Downloads/android-ndks/ndk-14 | |
| export ANDROID_HOME=/mnt/hdd/Android/Sdk | |
| ANDROID_BUILD_DIR=${OPENCV_ROOT}/android_build | |
| rm -rf $ANDROID_BUILD_DIR | |
| mkdir $ANDROID_BUILD_DIR |
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
| mkdir /mnt/hdd/Downloads/opencv/opencv/build && \ | |
| cd /mnt/hdd/Downloads/ndk-16/build/tools/ && \ | |
| python make_standalone_toolchain.py \ | |
| --arch arm \ | |
| --api 21 \ | |
| --install-dir /mnt/hdd/Downloads/opencv/opencv/build/toolchain && \ | |
| export ANDROID_STANDALONE_TOOLCHAIN=/mnt/hdd/Downloads/opencv/opencv/build/toolchain && \ | |
| export ANDROID_HOME=/mnt/hdd/Android/Sdk/ && \ | |
| export ANDROID_NDK_HOME=/mnd/hdd/Downloads/ndk-16/ && \ | |
| cd /mnt/hdd/Downloads/opencv/opencv/build/ && \ |