Skip to content

Instantly share code, notes, and snippets.

@mildsunrise
mildsunrise / blobs.py
Last active July 30, 2025 20:32
Logic to work with Android KeyMaster blobs and Vold
#!/usr/bin/env python3
'''
keymaster blob logic.
Offers:
- low-level blob encoding and decoding
- loading softkeymaster blobs
- performing cryptographic operations (emulating KeyMaster) on a loaded blob
- CLI tool for parsing softkeymaster blobs and performing operations with them
@mildsunrise
mildsunrise / README.md
Created October 19, 2021 22:12
🔬 Script to mount decrypted disk on Android 12 https://twitter.com/mild_sunrise/status/1449321409793175552

Important: This script is not really meant to be used as is, instead you should execute each step one by one, understanding its purpose. I highly recommend you read the accompanying Twitter thread before trying it.

--

This is a script that performs all needed actions to mount the userdata partition of an Android 12 emulator device (AVD).