Skip to content

Instantly share code, notes, and snippets.

View Bradford1040's full-sized avatar
:octocat:
it's all shits & giggles till someone giggles & shits!

𝔅яа∂ƒøя∂¹⁰⁴⁰ Bradford1040

:octocat:
it's all shits & giggles till someone giggles & shits!
View GitHub Profile
@Bradford1040
Bradford1040 / certkeystore.java
Created August 18, 2025 01:21 — forked from jac18281828/certkeystore.java
Complete Bouncycastle Certificate and KeyStore example
package com.jcairns;
import org.bouncycastle.asn1.oiw.OIWObjectIdentifiers;
import org.bouncycastle.asn1.x500.X500Name;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
import org.bouncycastle.asn1.x509.AuthorityKeyIdentifier;
import org.bouncycastle.asn1.x509.BasicConstraints;
import org.bouncycastle.asn1.x509.Extension;
import org.bouncycastle.asn1.x509.SubjectKeyIdentifier;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
These instructions describe how to install an Android toolchain capable of compiling standalone C/C++ programs for an Android device.
1. Download Android NDK from https://developer.android.com/ndk/downloads/index.html and unpack it somewhere.
2. Run the included script to install a standalone toolchain:
mkdir $HOME/opt
$NDK/build/tools/make-standalone-toolchain.sh --arch=arm --install-dir=$HOME/opt/android_toolchain
3. Create a test program and compile it:
cat > hello.c << EOF
@Bradford1040
Bradford1040 / setting-up-msysgit-and-gpg4win.md
Last active May 13, 2025 02:33 — forked from mflatischler/setting-up-msysgit-and-gpg4win.md
Setting up Git for Windows and Gpg4win (WIP)

Setting up [Git for Windows] and [Gpg4win]

This article will help you set up your development environment with git and gpg to sign your commits and manage your gpg keys for different personas.

This article will not guide you step by step to install the programms needed, explain how gpg works nor will it tell you why you should sign your git commits.

Prerequisites

@Bradford1040
Bradford1040 / fastboot_help.md
Created March 21, 2025 16:10 — forked from MrHallows/fastboot_help.md
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:
@Bradford1040
Bradford1040 / Boot image extraction guide.md
Created March 8, 2025 17:02 — forked from gitclone-url/Boot image extraction guide.md
Guide on how to extract boot image from any android phone without needing to root using magisk and without custom recovery.

Boot Image Extraction Guide

Guide on how to extract a boot image from any Android phone without needing to root using Magisk and without a custom recovery.

Most Android users face hurdles when attempting to root their phones because they require a boot image for patching, and custom recoveries specifically designed for their devices are often unavailable. Additionally, finding the phone firmware online can be challenging. As a result, rooting such phones becomes a daunting task. In this guide, I'll provide a comprehensive solution for users who want to extract the boot image from their phone without the need to root it first, download firmware from the internet, or rely on custom recoveries.

Getting started!

Before diving into the guide, please thoroughly review the Frequently Asked Questions (FAQ) to understand the basics of GSI and the various naming conventi

@Bradford1040
Bradford1040 / AdbCommands
Created July 23, 2024 18:05 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader