Skip to content

Instantly share code, notes, and snippets.

View lattice0's full-sized avatar
🦀

Lattice 0 lattice0

🦀
View GitHub Profile
@lattice0
lattice0 / key
Last active April 14, 2022 03:35
key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDEhU8Fvn57jx3SgH2i88sF4473n/ugZfe7gsmUdMkSA/MzT9o3q4C66lfLcEgAVjXOs9N1XVHQ1ycoGJXsyRHDO8ijs3XuAmRWW/9/e+fph4Rpeh04ESjKQqpXuGXQHPCiMyn3A5QhDGerochwAy+rLDAi02FRqNU83OPls9sk8uV67gJK52PrB5nX/c9AIm2HldlswRzxaatCeCkq5bwW7C7b47wXbWZ2qLj7V+9NXuM37uWUGdX6a5G0FteNPH9QjImcEfrIoPDH58SpIbyTx0ZmRn785rFvbETTHpcmU5VwjA+XzFTAOqC6ZKN0za9nZrapv5Pn/MVuVVR77rHAFqXDsuWHYP3Sh08bANur/loGLH+5b9eF7XYbYDMRz4uj03USI4Ca4VjjudKWHi2NOJZN6d7BQvPulkskD/5rHGnIBSARvOa/o2uBbQrBJjybbNoG2XxxfYxvZXhB/TagtIrHZDLwW6/I7qpPoaVudTOSIiZT7HI9x309z13XkzBEtNK43ImdpbE8MPsNuFIIBa0iinJdrWZ60cP3fbhVzrwBtmfmIcRy+T0PziSPp0hbuC5DTAm32imXfTEblGPNehFI+rK+FjXZ2mtQjA7cus4J4DcVPVLSEtXPLaQMzfqPx6IlIoYERrxvdsFNC6Q5f8/sLAtP6sjO9G+pYZJ6BQ== cardno:000616358784
https://datatracker.ietf.org/doc/html/rfc6184#section-8.1
https://www.itu.int/rec/T-REC-H.264-202108-I/en
#https://forums.developer.nvidia.com/t/how-do-i-change-the-device-tree/154431/6
#Install kernel deps
set -x
set -e
sudo apt update && sudo apt-get install -y build-essential bc git curl wget xxd kmod libssl-dev
#Gets the kernel
https://en.wikipedia.org/wiki/Xvfb
@lattice0
lattice0 / gist:11e8b5d128a27b106f9702fb13638f46
Created April 5, 2021 04:19
run in background android ignore
./adb shell cmd appops set com.whatsapp RUN_IN_BACKGROUND ignore
./adb shell cmd appops set com.yubico.yubioath RUN_IN_BACKGROUND ignore
./adb shell cmd appops set com.instagram.android RUN_IN_BACKGROUND ignore
./adb shell cmd appops set com.whatsapp RUN_IN_BACKGROUND
./adb shell cmd appops set com.zhiliaoapp.musically RUN_IN_BACKGROUND ignore
./adb shell cmd appops set com.tinder RUN_IN_BACKGROUND ignore
./adb shell cmd appops get piuk.blockchain.android RUN_IN_BACKGROUND
./adb shell cmd appops set piuk.blockchain.android RUN_IN_BACKGROUND ignore
./adb shell cmd appops set br.com.intermedium RUN_IN_BACKGROUND ignore
./adb shell cmd appops set bipa.app.bipa RUN_IN_BACKGROUND ignore
@lattice0
lattice0 / gist:85ac2aaba12a09df383fb6ca42d1ca59
Created February 22, 2021 20:24
simple boinary file write tests C++
#include <iostream>
#include <fstream>
#include <vector>
int main()
{
std::fstream f;
std::string filePath = "file.txt";
f.open(filePath, std::ios_base::binary | std::ios_base::out | std::ios_base::in | std::ios_base::trunc );
if (!f.is_open()) {
@lattice0
lattice0 / gist:c83234be17b0864d4450dd2aeb4258a2
Created February 9, 2021 00:43
c++ file open/write test android
ALOGV(TAG, "#####################################################################");
std::fstream f;
ALOGV(TAG, "original filePath: %s", filePath.c_str());
std::string filePath2 = "/storage/emulated/0/Android/data/com.stompai.flutter_app/files/something_3.txt";//filePath + "22w";
ALOGV(TAG, "gonna open filePath2: %s", filePath2.c_str());
f.open(filePath2, std::ios_base::binary | std::ios_base::in | std::ios_base::out);
if (f.is_open()) {
ALOGV(TAG, "is open");
} else {
ALOGV(TAG, "is closed");
@lattice0
lattice0 / gist:c756b4a186ddcdfc095becb94db6efae
Created February 5, 2021 12:20
compilate qemu android emulator
repo init -u https://android.googlesource.com/platform/manifest -b emu-master-dev --depth=1
repo sync -c -j8
cd external/qemu
python android/build/python/cmake.py [--target darwin_aarch64]
https://fettec.net/en/shop/fettec-motor-1303.6 - FETtec Motor 1303.6
https://fettec.net/en/shop/fettec-mini-aio-15a - FETtec Mini AIO 15A (controller + ESCS?)
@lattice0
lattice0 / gist:0f5fa522e4561aa8f61e2089d6f013a4
Last active January 25, 2021 07:08
aosp study annotations
boot.img format:
https://forum.xda-developers.com/t/howto-unpack-edit-and-repack-boot-images.443994/
partitions explanation:
https://forum.xda-developers.com/t/info-android-device-partitions-and-filesystems.3586565/
bootloader unlock possibility for some brands: