Skip to content

Instantly share code, notes, and snippets.

View chipcerio's full-sized avatar
🏠
Working from home

Chip Cerio chipcerio

🏠
Working from home
View GitHub Profile
# facebook development key hash
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
# facebook release key hash
keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
# to create SSH key, you do this
# https://help.github.com/articles/generating-ssh-keys/
#
# assuming,
# john.doe@gmail.com is your personal email and
# john.doe@sym.ph is your company email
# $ ssh-keygen -t rsa -b 4096 -C "john.doe@gmail.com"
# create another SSH key for specific company following the above command
$ ssh-keygen -t rsa -f -b 4096 ~/.ssh/id_rsa_symph -C "john.doe@sym.ph"
# WARNING!!!
# flashing factory images using this method erases the user data
# including third-party apps installed
# make sure you have downloaded the Android SDK to perform adb & fastboot commands
$ adb reboot bootloader
# some devices may not have radio.img
$ fastboot flash bootloader bootloader.img
$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000