Reverse engineer protobuf files from generated javanano code for android.
This is scrappy development code which has only been tested against the Google Play APK (for the finsky project). As such it is still rough around the edges and may not work for other cases.
Either globally or inside a virtualenv:
pip install -r requirements.txt
The main script works on the classes.dex
file you'll find after you unzip
your APK. It writes to the directory ./output
, so please make sure that
exists.
python reprotobuf.py path/to/classes.dex
Based on the method for micro protobuf implemented in androproto.py, and adapted for the nano case by androguard-protobuf-nano-extractor. This project also makes heavy use of the androguard library.