Skip to content

Instantly share code, notes, and snippets.

View sppidy's full-sized avatar
:fishsticks:
Android ....

Spidy sppidy

:fishsticks:
Android ....
View GitHub Profile
@sppidy
sppidy / keygen.sh
Last active June 2, 2024 20:54
This script is for generating signing keys for custom rom development and upload the certificates to backblaze bucket. This script is meant to be run in devspace. Pre-reqestites : you should blaze back account and have your own key
#!/bin/bash
set -euo pipefail
if [ "${DCDEVSPACE:-0}" == "1" ]; then
# Create a temporary directory for certificates
CERT_DIR=$(mktemp -d /tmp/android-certs.XXXXXX)
# Define the subject details for the certificates
read -p "Country : " C
read -p "State : " ST
read -p "Locality : " L
read -p "Organization Name : " O
@sppidy
sppidy / crave_sign.sh
Last active June 2, 2024 20:54
Warning to those use this script Your passwords and your api keys are visible to Crave's team members If you trust Crave Team then you can go ahead to use this script.
#!/bin/bash
set -euo pipefail
# Ensure necessary environment variables are set
: "${BUCKET_NAME:?}"
: "${KEY_ENCRYPTION_PASSWORD:?}"
: "${BKEY_ID:?}"
: "${BAPP_KEY:?}"
# Directory for storing certificates